Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

why am I getting bytecode diff output? #1

Closed
dimaqq opened this issue Dec 17, 2013 · 1 comment
Closed

why am I getting bytecode diff output? #1

dimaqq opened this issue Dec 17, 2013 · 1 comment

Comments

@dimaqq
Copy link

dimaqq commented Dec 17, 2013

installed in 2.7 virtualenv, ran against and svn change like so:
pydiff somecheckout/.svn/pristine/1b/1bdxxx.svn-base somecheckout/path/somefile.py

got diff like this:

@@ -6730,7 +6730,7 @@
                               'STOP_CODE',
                               'POP_TOP',
                               'JUMP_FORWARD',
-                              'BREAK_LOOP',
+                              'YIELD_VALUE',
                               'STOP_CODE',
                               'LOAD_FAST',
                               '<6>',

[4 more similar blocks snipped]

the actual change was in this form:

-    somecall(foo(value))
+    tmp = foo(value)
+    somecall(tmp)
@dimaqq
Copy link
Author

dimaqq commented Dec 17, 2013

oh I see it's by design...

I suppose I expected to see these changes annotated by source code line or something....

feel free to close.

@myint myint closed this as completed Dec 17, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants