1. 30 Sep, 2019 5 commits
  2. 29 Sep, 2019 4 commits
  3. 28 Sep, 2019 5 commits
    • Pascal Chambon's avatar
    • T. Wouters's avatar
      bpo-38115: Deal with invalid bytecode offsets in lnotab (GH-16079) · c8165036
      T. Wouters authored
      Document that lnotab can contain invalid bytecode offsets (because of
      terrible reasons that are difficult to fix). Make dis.findlinestarts()
      ignore invalid offsets in lnotab. All other uses of lnotab in CPython
      (various reimplementations of addr2line or line2addr in Python, C and gdb)
      already ignore this, because they take an address to look for, instead.
      
      Add tests for the result of dis.findlinestarts() on wacky constructs in
      test_peepholer.py, because it's the easiest place to add them.
      c8165036
    • Jason R. Coombs's avatar
      bpo-38216, bpo-36274: Allow subclasses to separately override validation and... · 7774d783
      Jason R. Coombs authored
      bpo-38216, bpo-36274: Allow subclasses to separately override validation and encoding behavior (GH-16448)
      
      * bpo-38216: Allow bypassing input validation
      
      * bpo-36274: Also allow the URL encoding to be overridden.
      
      * bpo-38216, bpo-36274: Add tests demonstrating a hook for overriding validation, test demonstrating override encoding, and a test to capture expectation of the interface for the URL.
      
      * Call with skip_host to avoid tripping on the host checking in the URL.
      
      * Remove obsolete comment.
      
      * Make _prepare_path_encoding its own attr.
      
      This makes overriding just that simpler.
      
      Also, don't use the := operator to make backporting easier.
      
      * Add a news entry.
      
      * _prepare_path_encoding -> _encode_prepared_path()
      
      * Once again separate the path validation and request encoding, drastically simplifying the behavior. Drop the guarantee that all processing happens in _prepare_path.
      7774d783
    • Victor Stinner's avatar
      bpo-38304: Add PyConfig.struct_size (GH-16451) · 441b10cf
      Victor Stinner authored
      Add a new struct_size field to PyPreConfig and PyConfig structures to
      allow to modify these structures in the future without breaking the
      backward compatibility.
      
      * Replace private _config_version field with public struct_size field
        in PyPreConfig and PyConfig.
      * Public PyPreConfig_InitIsolatedConfig() and
        PyPreConfig_InitPythonConfig()
        return type becomes PyStatus, instead of void.
      * Internal _PyConfig_InitCompatConfig(),
        _PyPreConfig_InitCompatConfig(), _PyPreConfig_InitFromConfig(),
        _PyPreConfig_InitFromPreConfig() return type becomes PyStatus,
        instead of void.
      * Remove _Py_CONFIG_VERSION
      * Update the Initialization Configuration documentation.
      441b10cf
    • Jesús Cea's avatar
  4. 27 Sep, 2019 7 commits
  5. 26 Sep, 2019 17 commits
  6. 25 Sep, 2019 2 commits