<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/test/test_cmd_line.py, branch 3.7</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_cmd_line.py?h=3.7</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/test/test_cmd_line.py?h=3.7'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-10-05T21:55:28Z</updated>
<entry>
<title>[3.7] gh-96848: Fix -X int_max_str_digits option parsing (#96988) (#97576)</title>
<updated>2022-10-05T21:55:28Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2022-10-05T21:55:28Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=98884f523d783ecd9933c1ca52d80fbbd7d6bdf5'/>
<id>urn:sha1:98884f523d783ecd9933c1ca52d80fbbd7d6bdf5</id>
<content type='text'>
Fix command line parsing: reject "-X int_max_str_digits" option with
no value (invalid) when the PYTHONINTMAXSTRDIGITS environment
variable is set to a valid limit.

(cherry picked from commit 41351662bcd21672d8ccfa62fe44d72027e6bcf8)</content>
</entry>
<entry>
<title>[3.7] gh-95778: CVE-2020-10735: Prevent DoS by very large int() (GH-96504)</title>
<updated>2022-09-06T05:24:36Z</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2022-09-06T05:24:36Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=15ec1afd4fcd2da1e2d2b256c562fb42d8d886a2'/>
<id>urn:sha1:15ec1afd4fcd2da1e2d2b256c562fb42d8d886a2</id>
<content type='text'>
Converting between `int` and `str` in bases other than 2
(binary), 4, 8 (octal), 16 (hexadecimal), or 32 such as base 10 (decimal) now
raises a `ValueError` if the number of digits in string form is above a
limit to avoid potential denial of service attacks due to the algorithmic
complexity. This is a mitigation for CVE-2020-10735
(https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-10735).

This new limit can be configured or disabled by environment variable, command
line flag, or :mod:`sys` APIs. See the `Integer String Conversion Length
Limitation` documentation.  The default limit is 4300
digits in string form.

Patch by Gregory P. Smith [Google] and Christian Heimes [Red Hat] with feedback
from Victor Stinner, Thomas Wouters, Steve Dower, Ned Deily, and Mark Dickinson.</content>
</entry>
<entry>
<title>Revert "Remove unused imports in tests (GH-14518) (GH-14522)" (GH-14555)</title>
<updated>2019-07-02T12:42:39Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-02T12:42:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=19b8d903b0dd43dc405c4d6e1c61c3429020545e'/>
<id>urn:sha1:19b8d903b0dd43dc405c4d6e1c61c3429020545e</id>
<content type='text'>
This reverts commit e34b5f4d6483187969d5149c801d056b72ef2ddb.</content>
</entry>
<entry>
<title>Remove unused imports in tests (GH-14518) (GH-14522)</title>
<updated>2019-07-01T18:02:39Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-07-01T18:02:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e34b5f4d6483187969d5149c801d056b72ef2ddb'/>
<id>urn:sha1:e34b5f4d6483187969d5149c801d056b72ef2ddb</id>
<content type='text'>
(cherry picked from commit 8f4ef3b019ce380022018587571b0f970e668de3)</content>
</entry>
<entry>
<title>Revert "[3.7] bpo-34589: Add -X coerce_c_locale option; C locale coercion off by default (GH-9379)" (GH-9416)</title>
<updated>2018-09-19T19:01:52Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-09-19T19:01:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=95cc3ee00cfa079751ae2bb9a8d3387053b50489'/>
<id>urn:sha1:95cc3ee00cfa079751ae2bb9a8d3387053b50489</id>
<content type='text'>
This reverts commit 144f1e2c6f4a24bd288c045986842c65cc289684.</content>
</entry>
<entry>
<title>[3.7] bpo-34589: Add -X coerce_c_locale option; C locale coercion off by default (GH-9379)</title>
<updated>2018-09-18T01:01:39Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-09-18T01:01:39Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=144f1e2c6f4a24bd288c045986842c65cc289684'/>
<id>urn:sha1:144f1e2c6f4a24bd288c045986842c65cc289684</id>
<content type='text'>
* bpo-34589: Make _PyCoreConfig.coerce_c_locale private (GH-9371)

_PyCoreConfig:

* Rename coerce_c_locale to _coerce_c_locale
* Rename coerce_c_locale_warn to _coerce_c_locale_warn

These fields are now private (name prefixed by "_").

(cherry picked from commit 188ebfa475a6f6aa2d0ea14ca8e1fbe7865b6d27)

* bpo-34589: C locale coercion off by default (GH-9073)

Py_Initialize() and Py_Main() cannot enable the C locale coercion
(PEP 538) anymore: it is always disabled. It can now only be enabled
by the Python program ("python3).

test_embed: get_filesystem_encoding() doesn't have to set PYTHONUTF8
nor PYTHONCOERCECLOCALE, these variables are already set in the
parent.

(cherry picked from commit 7a0791b6992d420dc52536257f2f093851ed7215)

* bpo-34589: Add -X coerce_c_locale command line option (GH-9378)

Add a new -X coerce_c_locale command line option to control C locale
coercion (PEP 538).

(cherry picked from commit dbdee0073cf0b88fe541980ace1f650900f455cc)</content>
</entry>
<entry>
<title>[3.7] bpo-34247: Fix Python 3.7 initialization (#8659)</title>
<updated>2018-08-05T10:31:59Z</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2018-08-05T10:31:59Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=0c90d6f75931da4fec84d06c2efe9dd94bb96b77'/>
<id>urn:sha1:0c90d6f75931da4fec84d06c2efe9dd94bb96b77</id>
<content type='text'>
* -X dev: it is now possible to override the memory allocator using
  PYTHONMALLOC even if the developer mode is enabled.
* Add _Py_InitializeFromConfig()
* Add _Py_Initialize_ReadEnvVars() to set global configuration
  variables from environment variables
* Fix the code to initialize Python: Py_Initialize() now also reads
  environment variables
* _Py_InitializeCore() can now be called twice: the second call
  only replaces the configuration.
* Write unit tests on Py_Initialize() and the different ways to
  configure Python
* The isolated mode now always sets Py_IgnoreEnvironmentFlag and
  Py_NoUserSiteDirectory to 1.
* pymain_read_conf() now saves/restores the configuration
  if the encoding changed</content>
</entry>
<entry>
<title>bpo-32457: Improves handling of denormalized executable path when launching Python (GH-5756)</title>
<updated>2018-02-22T19:15:16Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-22T19:15:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=e5a9b3574c89a070fbc43caf541759f504e3d492'/>
<id>urn:sha1:e5a9b3574c89a070fbc43caf541759f504e3d492</id>
<content type='text'>
(cherry picked from commit 48e8c82fc63d2ddcddce8aa637a892839b551619)

Co-authored-by: Steve Dower &lt;steve.dower@microsoft.com&gt;</content>
</entry>
<entry>
<title>[3.7] Improves the ability to build in CI (GH-5729)</title>
<updated>2018-02-18T03:31:37Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2018-02-18T03:31:37Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=fa9a502a387a26ba116840d35ae4a30f672e78ad'/>
<id>urn:sha1:fa9a502a387a26ba116840d35ae4a30f672e78ad</id>
<content type='text'>
</content>
</entry>
<entry>
<title>bpo-31975 (PEP 565): Show DeprecationWarning in __main__ (GH-4458)</title>
<updated>2018-01-08T02:45:02Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2018-01-08T02:45:02Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9b99747386b690007027c3be2a5d7cfe3d3634f5'/>
<id>urn:sha1:9b99747386b690007027c3be2a5d7cfe3d3634f5</id>
<content type='text'>
- primary change is to add a new default filter entry for
  'default::DeprecationWarning:__main__'
- secondary change is an internal one to cope with plain
  strings in the warning module's internal filter list
  (this avoids the need to create a compiled regex object
  early on during interpreter startup)
- assorted documentation updates, including many more
  examples of configuring the warnings settings
- additional tests to ensure that both the pure Python and
  the C accelerated warnings modules have the expected
  default configuration</content>
</entry>
</feed>
