Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

python line number

#python3
from inspect import currentframe, getframeinfo

frameinfo = getframeinfo(currentframe())

print(frameinfo.filename, frameinfo.lineno)
Comment

PREVIOUS NEXT
Code Example
Python :: pandas difference between two dataframes 
Python :: re.search() 
Python :: python catch any exception 
Python :: filter dataframe with a list of index 
Python :: how to get last letter of string python 
Python :: Django rest framework update or delete 
Python :: python how to delete a variable 
Python :: How to efficiently search for a pattern string within another bigger one, in Python? 
Python :: filter query objects by date range in Django 
Python :: cosine similarity python 
Python :: how to add one to a variable in python 
Python :: range() python 
Python :: formatted string in python 
Python :: python timeit function return value 
Python :: create jwt token in django 
Python :: python print variable and string 
Python :: validationerror django params 
Python :: python problem append same value 
Python :: vigenere cipher with all printable characters python 
Python :: rename colonne pandas 
Python :: python append to dictionary 
Python :: append two 1d arrays python 
Python :: python requests with authorisation token 
Python :: os.path.dirname(__file__) 
Python :: enumerate() 
Python :: image completion inpainting with python 
Python :: form field required in django views 
Python :: django set cookie 
Python :: comment transformer un chaine de caractere en liste python 
Python :: int to byte array python 
ADD CONTENT
Topic
Content
Source link
Name
1+5 =