Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
66d52025
Commit
66d52025
authored
9 years ago
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The line of a decorated function is the decorator
This is the test for the fix in vinzenz/libpypa#49
parent
54a9559e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletion
+14
-1
build_deps/libpypa
build_deps/libpypa
+1
-1
test/tests/decorated_func_line.py
test/tests/decorated_func_line.py
+13
-0
No files found.
libpypa
@
1f62a285
Subproject commit
8eb292731c29b6083c67c3ed58789f5494fab6e4
Subproject commit
1f62a285c57da50c00249a704deac00dae3c247b
This diff is collapsed.
Click to expand it.
test/tests/decorated_func_line.py
0 → 100644
View file @
66d52025
def
wrapper
(
f
):
return
f
@
wrapper
@
wrapper
def
foo
():
pass
# Should print the line that the first "@wrapper" is on:
print
foo
.
func_code
.
co_firstlineno
import
inspect
print
repr
(
inspect
.
getsource
(
foo
))
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment