<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Python/bltinmodule.c, branch Mariatta-patch-2</title>
<subtitle>github.com: python/cpython.git
</subtitle>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/'/>
<entry>
<title>bpo-42152: Use PyDict_Contains and PyDict_SetDefault if appropriate. (GH-22986)</title>
<updated>2020-10-26T10:47:57+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2020-10-26T10:47:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=b510e101f8b5b31276bf97b921ca9247162881d2'/>
<id>b510e101f8b5b31276bf97b921ca9247162881d2</id>
<content type='text'>
If PyDict_GetItemWithError is only used to check whether the key is in dict,
it is better to use PyDict_Contains instead.

And if it is used in combination with PyDict_SetItem, PyDict_SetDefault can
replace the combination.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If PyDict_GetItemWithError is only used to check whether the key is in dict,
it is better to use PyDict_Contains instead.

And if it is used in combination with PyDict_SetItem, PyDict_SetDefault can
replace the combination.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41078: Fix bltinmodule.c with Py_TRACE_REFS (GH-21058)</title>
<updated>2020-06-22T16:02:49+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-22T16:02:49+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c96d00e88ead8f99bb6aa1357928ac4545d9287c'/>
<id>c96d00e88ead8f99bb6aa1357928ac4545d9287c</id>
<content type='text'>
Add pycore_object.h include to fix bltinmodule.c when Py_TRACE_REFS
macro is defined.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add pycore_object.h include to fix bltinmodule.c when Py_TRACE_REFS
macro is defined.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-41078: Rename pycore_tupleobject.h to pycore_tuple.h (GH-21056)</title>
<updated>2020-06-22T15:27:35+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-06-22T15:27:35+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=384621c42f9102e31ba2c47feba144af09c989e5'/>
<id>384621c42f9102e31ba2c47feba144af09c989e5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40636: PEP 618: add strict parameter to zip() (GH-20921)</title>
<updated>2020-06-19T10:16:57+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-06-19T10:16:57+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=310f6aa7db8dd48952ed718111ce0f016b1c8ef9'/>
<id>310f6aa7db8dd48952ed718111ce0f016b1c8ef9</id>
<content type='text'>
zip() now supports PEP 618's strict parameter, which raises a
ValueError if the arguments are exhausted at different lengths.
Patch by Brandt Bucher.

Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;
Co-authored-by: Ram Rachum &lt;ram@rachum.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
zip() now supports PEP 618's strict parameter, which raises a
ValueError if the arguments are exhausted at different lengths.
Patch by Brandt Bucher.

Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;
Co-authored-by: Ram Rachum &lt;ram@rachum.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40471: Fix grammar typo in 'issubclass' docstring (GH-19847)</title>
<updated>2020-06-03T13:19:45+00:00</updated>
<author>
<name>Alex Povel</name>
<email>48824213+alexpovel@users.noreply.github.com</email>
</author>
<published>2020-06-03T13:19:45+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=df773f8c5454acebe08c31e7308597fa5a8bf5df'/>
<id>df773f8c5454acebe08c31e7308597fa5a8bf5df</id>
<content type='text'>
Just a brief grammar fix.

See also &lt;&gt;.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Just a brief grammar fix.

See also &lt;&gt;.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40636: Clarify the zip built-in docstring. (GH-20118)</title>
<updated>2020-05-15T21:26:00+00:00</updated>
<author>
<name>Gregory P. Smith</name>
<email>greg@krypto.org</email>
</author>
<published>2020-05-15T21:26:00+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=6a5d3ff67644af42b1a781be2eacb2e82913441c'/>
<id>6a5d3ff67644af42b1a781be2eacb2e82913441c</id>
<content type='text'>
Clarify the zip built-in docstring.

This puts much simpler text up front along with an example.

As it was, the zip built-in docstring was technically correct.  But too
technical for the reader who shouldn't _need_ to know about `__next__` and
`StopIteration` as most people do not need to understand the internal
implementation details of the iterator protocol in their daily life.

This is a documentation only change, intended to be backported to 3.8; it is
only tangentially related to PEP-618 which might offer new behavior options
in the future.

Wording based a bit more on enumerate per Brandt's suggestion.

This gets rid of the legacy wording paragraph which seems too tied to
implementation details of the iterator protocol which isn't relevant here.

Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Clarify the zip built-in docstring.

This puts much simpler text up front along with an example.

As it was, the zip built-in docstring was technically correct.  But too
technical for the reader who shouldn't _need_ to know about `__next__` and
`StopIteration` as most people do not need to understand the internal
implementation details of the iterator protocol in their daily life.

This is a documentation only change, intended to be backported to 3.8; it is
only tangentially related to PEP-618 which might offer new behavior options
in the future.

Wording based a bit more on enumerate per Brandt's suggestion.

This gets rid of the legacy wording paragraph which seems too tied to
implementation details of the iterator protocol which isn't relevant here.

Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Support type comments (GH-19780)</title>
<updated>2020-04-30T19:12:19+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-30T19:12:19+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c001c09e9059ba04bc088349cd87a1374dc0754f'/>
<id>c001c09e9059ba04bc088349cd87a1374dc0754f</id>
<content type='text'>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This implements full support for # type: &lt;type&gt; comments, # type: ignore &lt;stuff&gt; comments, and the func_type parsing mode for ast.parse() and compile().

Closes https://github.com/we-like-parsers/cpython/issues/95.

(For now, you need to use the master branch of mypy, since another issue unique to 3.9 had to be fixed there, and there's no mypy release yet.)

The only thing missing is `feature_version=N`, which is being tracked in https://github.com/we-like-parsers/cpython/issues/124.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Use old compiler when compile mode is func_type (GH-19692)</title>
<updated>2020-04-23T22:42:56+00:00</updated>
<author>
<name>Guido van Rossum</name>
<email>guido@python.org</email>
</author>
<published>2020-04-23T22:42:56+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=bc28805570ae3e8835a5d502ae9ab15c52449f77'/>
<id>bc28805570ae3e8835a5d502ae9ab15c52449f77</id>
<content type='text'>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is invoked by mypy, using ast.parse(source, "&lt;func_type&gt;", "func_type"). Since the new grammar doesn't yet support the func_type_input start symbol we must use the old compiler in this case to prevent a crash.

https://bugs.python.org/issue40334</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: Rename PyConfig.use_peg to _use_peg_parser (GH-19670)</title>
<updated>2020-04-23T01:03:24+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-04-23T01:03:24+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1def7754b7a41fe57efafaf5eff24cfa15353444'/>
<id>1def7754b7a41fe57efafaf5eff24cfa15353444</id>
<content type='text'>
* Rename PyConfig.use_peg to _use_peg_parser
* Document PyConfig._use_peg_parser and mark it a deprecated
* Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
  in the documentation.
* Add use_old_parser() and skip_if_new_parser() to test.support
* Remove sys.flags.use_peg: use_old_parser() uses
  _testinternalcapi.get_configs() instead.
* Enhance test_embed tests
* subprocess._args_from_interpreter_flags() copies -X oldparser</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Rename PyConfig.use_peg to _use_peg_parser
* Document PyConfig._use_peg_parser and mark it a deprecated
* Mark -X oldparser option and PYTHONOLDPARSER env var as deprecated
  in the documentation.
* Add use_old_parser() and skip_if_new_parser() to test.support
* Remove sys.flags.use_peg: use_old_parser() uses
  _testinternalcapi.get_configs() instead.
* Enhance test_embed tests
* subprocess._args_from_interpreter_flags() copies -X oldparser</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-40334: PEP 617 implementation: New PEG parser for CPython (GH-19503)</title>
<updated>2020-04-22T22:29:27+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-04-22T22:29:27+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=c5fc15685202cda73f7c3f5c6f299b0945f58508'/>
<id>c5fc15685202cda73f7c3f5c6f299b0945f58508</id>
<content type='text'>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Lysandros Nikolaou &lt;lisandrosnik@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Guido van Rossum &lt;guido@python.org&gt;
Co-authored-by: Lysandros Nikolaou &lt;lisandrosnik@gmail.com&gt;</pre>
</div>
</content>
</entry>
</feed>
