File tree Expand file tree Collapse file tree 4 files changed +16
-13
lines changed
Expand file tree Collapse file tree 4 files changed +16
-13
lines changed Original file line number Diff line number Diff line change 1+ .. role :: raw-html-m2r(raw)
2+ :format: html
3+
14
25
36.. image :: logo.png
@@ -264,14 +267,14 @@ Limitations
264267
265268
266269* Working in ``ipython REPL `` but not in standard ``python console ``
267- * You have to know at which stack the function/class will be called
270+ * You have to know at which stack the function/class will be called (caller's depth)
268271* Not working with ``reticulate `` from ``R `` since it cuts stacks to the most recent one.
269- * `` nameof `` cannot be used in statements in ``pytest ``
270- .. code-block ::
271-
272- a = 1
273- assert nameof(a) == 'a'
274- # Retrieving failure.
275- # The right way:
276- aname = nameof(a)
277- assert aname == 'a'
272+ * :raw-html-m2r: ` <del> \ `` nameof` ` cannot be used in statements in ``pytest ``\ </del>` (supported in `` v0.2.0 `` \ )
273+ .. code-block :: diff
274+
275+ - a = 1
276+ + assert nameof(a) == 'a'
277+ - # Retrieving failure.
278+ - # The right way:
279+ - aname = nameof(a)
280+ - assert aname == 'a'
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ build-backend = "poetry.masonry.api"
44
55[tool .poetry ]
66name = " python-varname"
7- version = " 0.1.7 "
7+ version = " 0.2.0 "
88description = " Retrieving variable names of function or class calls."
99authors = [ " pwwang <pwwang@pwwang.com>" ,]
1010license = " MIT"
Original file line number Diff line number Diff line change 2121setup (
2222 long_description = readme ,
2323 name = 'python-varname' ,
24- version = '0.1.7 ' ,
24+ version = '0.2.0 ' ,
2525 description = 'Retrieving variable names of function or class calls.' ,
2626 python_requires = '==3.*,>=3.6.0' ,
2727 project_urls = {
Original file line number Diff line number Diff line change 55from collections import namedtuple as standard_namedtuple
66import executing
77
8- __version__ = "0.1.7 "
8+ __version__ = "0.2.0 "
99
1010VARNAME_INDEX = [- 1 ]
1111
You can’t perform that action at this time.
0 commit comments