1. 28 Sep, 2019 3 commits
    • 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
  2. 27 Sep, 2019 7 commits
  3. 26 Sep, 2019 17 commits
  4. 25 Sep, 2019 13 commits