1. 11 Mar, 2018 1 kayıt (commit)
  2. 18 Agu, 2017 1 kayıt (commit)
    • syncosmic's avatar
      bpo-31183: `dis` now handles coroutines & async generators (GH-3077) · fe2b56ab
      syncosmic yazdı
      Coroutines and async generators use a distinct attribute name for their
      code objects, so this updates the `dis` module to correctly disassemble
      objects with those attributes.
      
      Due to the increase in the test module length, it also fixes some latent
      defects in the tests related to how the displayed source line numbers
      are extracted.
      
      https://bugs.python.org/issue31230 is a follow-up issue suggesting we
      may want to solve this a different way, by instead giving all these object
      types a common `__code__` attribute, avoiding the need for special
      casing in the `dis` module.
      fe2b56ab
  3. 11 Haz, 2017 1 kayıt (commit)
  4. 19 Nis, 2017 1 kayıt (commit)
  5. 05 Nis, 2017 1 kayıt (commit)
  6. 08 Eki, 2016 1 kayıt (commit)
  7. 11 Eyl, 2016 1 kayıt (commit)
    • Serhiy Storchaka's avatar
      Issue #27213: Fixed different issues with reworked CALL_FUNCTION* opcodes. · b7281058
      Serhiy Storchaka yazdı
      * BUILD_TUPLE_UNPACK and BUILD_MAP_UNPACK_WITH_CALL no longer generated with
        single tuple or dict.
      * Restored more informative error messages for incorrect var-positional and
        var-keyword arguments.
      * Removed code duplications in _PyEval_EvalCodeWithName().
      * Removed redundant runtime checks and parameters in _PyStack_AsDict().
      * Added a workaround and enabled previously disabled test in test_traceback.
      * Removed dead code from the dis module.
      b7281058
  8. 09 Eyl, 2016 2 kayıt (commit)
    • Victor Stinner's avatar
      Rework CALL_FUNCTION* opcodes · f9b760f4
      Victor Stinner yazdı
      Issue #27213: Rework CALL_FUNCTION* opcodes to produce shorter and more
      efficient bytecode:
      
      * CALL_FUNCTION now only accepts position arguments
      * CALL_FUNCTION_KW accepts position arguments and keyword arguments, but keys
        of keyword arguments are packed into a constant tuple.
      * CALL_FUNCTION_EX is the most generic, it expects a tuple and a dict for
        positional and keyword arguments.
      
      CALL_FUNCTION_VAR and CALL_FUNCTION_VAR_KW opcodes have been removed.
      
      2 tests of test_traceback are currently broken: skip test, the issue #28050 was
      created to track the issue.
      
      Patch by Demur Rumed, design by Serhiy Storchaka, reviewed by Serhiy Storchaka
      and Victor Stinner.
      f9b760f4
    • Yury Selivanov's avatar
  9. 26 May, 2016 1 kayıt (commit)
  10. 24 May, 2016 1 kayıt (commit)
  11. 08 May, 2016 1 kayıt (commit)
  12. 23 Nis, 2016 1 kayıt (commit)
  13. 20 Ock, 2016 1 kayıt (commit)
    • Victor Stinner's avatar
      co_lnotab supports negative line number delta · f3914eb1
      Victor Stinner yazdı
      Issue #26107: The format of the co_lnotab attribute of code objects changes to
      support negative line number delta.
      
      Changes:
      
      * assemble_lnotab(): if line number delta is less than -128 or greater than
        127, emit multiple (offset_delta, lineno_delta) in co_lnotab
      * update functions decoding co_lnotab to use signed 8-bit integers
      
        - dis.findlinestarts()
        - PyCode_Addr2Line()
        - _PyCode_CheckLineNumber()
        - frame_setlineno()
      
      * update lnotab_notes.txt
      * increase importlib MAGIC_NUMBER to 3361
      * document the change in What's New in Python 3.6
      * cleanup also PyCode_Optimize() to use better variable names
      f3914eb1
  14. 18 Agu, 2015 1 kayıt (commit)
  15. 12 May, 2015 1 kayıt (commit)
  16. 25 Tem, 2014 1 kayıt (commit)
  17. 22 Kas, 2013 1 kayıt (commit)
  18. 06 Kas, 2013 1 kayıt (commit)
    • Nick Coghlan's avatar
      Close #19378: address flaws in the new dis module APIs · 90b8e7d2
      Nick Coghlan yazdı
      - confusing line_offset parameter -> first_line parameter
      - systematically test and fix new file parameter
      - remove redundant Bytecode.show_info() API
      - rename Bytecode.display_code() to Bytecode.dis() and have it
        return the multi-line string rather than printing it directly
      - eliminated some not-so-helpful helpers from the bytecode_helper
        test support module
      
      Also fixed a longstanding defect (worked around in the test suite)
      where lines emitted by the dis module could include trailing white
      space. That no longer happens, allowing the formatting tests to be
      simplified to use plain string comparisons.
      90b8e7d2
  19. 24 Agu, 2013 1 kayıt (commit)
  20. 23 Agu, 2013 1 kayıt (commit)
  21. 06 May, 2013 1 kayıt (commit)
  22. 07 Haz, 2012 1 kayıt (commit)
  23. 10 Eyl, 2010 3 kayıt (commit)
  24. 17 Agu, 2010 2 kayıt (commit)
  25. 03 Tem, 2010 1 kayıt (commit)
  26. 04 Nis, 2010 3 kayıt (commit)
  27. 10 May, 2009 1 kayıt (commit)
  28. 01 Ock, 2009 2 kayıt (commit)
    • Benjamin Peterson's avatar
      Merged revisions 68116-68119,68121,68123-68127 via svnmerge from · 75edad05
      Benjamin Peterson yazdı
      svn+ssh://pythondev@svn.python.org/python/trunk
      
      ........
        r68116 | georg.brandl | 2009-01-01 05:46:51 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4100: note that element children are not necessarily present on "start" events.
      ........
        r68117 | georg.brandl | 2009-01-01 05:53:55 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4156: make clear that "protocol" is to be replaced with the protocol name.
      ........
        r68118 | georg.brandl | 2009-01-01 06:00:19 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4185: clarify escape behavior of replacement strings.
      ........
        r68119 | georg.brandl | 2009-01-01 06:09:40 -0600 (Thu, 01 Jan 2009) | 3 lines
      
        #4222: document dis.findlabels() and dis.findlinestarts() and
        put them into dis.__all__.
      ........
        r68121 | georg.brandl | 2009-01-01 06:43:33 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        Point to types module in new module deprecation notice.
      ........
        r68123 | georg.brandl | 2009-01-01 06:52:29 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4784: ... on three counts ...
      ........
        r68124 | georg.brandl | 2009-01-01 06:53:19 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4782: Fix markup error that hid load() and loads().
      ........
        r68125 | georg.brandl | 2009-01-01 07:02:09 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4776: add data_files and package_dir arguments.
      ........
        r68126 | georg.brandl | 2009-01-01 07:05:13 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        Handlers are in the `logging.handlers` module.
      ........
        r68127 | georg.brandl | 2009-01-01 07:14:49 -0600 (Thu, 01 Jan 2009) | 2 lines
      
        #4767: Use correct submodules for all MIME classes.
      ........
      75edad05
    • Georg Brandl's avatar
      #4222: document dis.findlabels() and dis.findlinestarts() and · 775c3070
      Georg Brandl yazdı
      put them into dis.__all__.
      775c3070
  29. 04 Haz, 2008 1 kayıt (commit)
  30. 27 Kas, 2007 1 kayıt (commit)
  31. 19 Eki, 2007 1 kayıt (commit)
  32. 30 Agu, 2007 1 kayıt (commit)
  33. 07 Haz, 2007 1 kayıt (commit)
    • Guido van Rossum's avatar
      Merged revisions 55795-55816 via svnmerge from · 1325790b
      Guido van Rossum yazdı
      svn+ssh://pythondev@svn.python.org/python/branches/p3yk
      
      ........
        r55797 | neal.norwitz | 2007-06-07 00:00:57 -0700 (Thu, 07 Jun 2007) | 3 lines
      
        Get rid of some remnants of classic classes.  types.ClassType == type.
        Also get rid of almost all uses of the types module and use the builtin name.
      ........
        r55798 | neal.norwitz | 2007-06-07 00:12:36 -0700 (Thu, 07 Jun 2007) | 1 line
      
        Remove a use of types, verify commit hook works
      ........
        r55809 | guido.van.rossum | 2007-06-07 11:11:29 -0700 (Thu, 07 Jun 2007) | 2 lines
      
        Fix syntax error introduced by Neal in last checkin.
      ........
      1325790b