Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
my2to3
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
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Emmy Vouriot
my2to3
Commits
07ce3aa2
Commit
07ce3aa2
authored
Jul 03, 2020
by
Bryton Lacquement
🚪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
division_traced: add a comment about the 'id' parameter
parent
902d8d16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
my2to3/fixes/fix_division_trace.py
my2to3/fixes/fix_division_trace.py
+3
-0
No files found.
my2to3/fixes/fix_division_trace.py
View file @
07ce3aa2
...
...
@@ -15,6 +15,9 @@ trace = create_table("division", "filename", "lineno", "id", "dividend_type", "d
@
register_tracing_function
def
division_traced
(
id
,
dividend
,
divisor
):
# id is used to differentiate the divisions of the same line. It is not
# possible to obtain this information with inspect.currentframe() only.
previous_frame
=
inspect
.
currentframe
().
f_back
trace
(
...
...
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