<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/cpython-git.git/Modules/parsermodule.c, branch fix-cf-feature-versiob</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-40939: Remove the old parser (GH-20768)</title>
<updated>2020-06-11T16:30:46+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2020-06-11T16:30:46+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1ed83adb0e95305af858bd41af531e487f54fee7'/>
<id>1ed83adb0e95305af858bd41af531e487f54fee7</id>
<content type='text'>
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This commit removes the old parser, the deprecated parser module, the old parser compatibility flags and environment variables and all associated support code and documentation.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39573: Clean up modules and headers to use Py_IS_TYPE() function (GH-18521)</title>
<updated>2020-02-17T10:09:15+00:00</updated>
<author>
<name>Dong-hee Na</name>
<email>donghee.na92@gmail.com</email>
</author>
<published>2020-02-17T10:09:15+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1b55b65638254aa78b005fbf0b71fb02499f1852'/>
<id>1b55b65638254aa78b005fbf0b71fb02499f1852</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-39573: Use Py_TYPE() macro in Modules directory (GH-18393)</title>
<updated>2020-02-07T02:37:06+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@python.org</email>
</author>
<published>2020-02-07T02:37:06+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8'/>
<id>daa9756cb6395323d6f291efe5c7d7fdc6b2e9d8</id>
<content type='text'>
Replace direct access to PyObject.ob_type with Py_TYPE().</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Replace direct access to PyObject.ob_type with Py_TYPE().</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-15999: Clean up of handling boolean arguments. (GH-15610)</title>
<updated>2019-09-01T09:16:51+00:00</updated>
<author>
<name>Serhiy Storchaka</name>
<email>storchaka@gmail.com</email>
</author>
<published>2019-09-01T09:16:51+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=1f21eaa15e8a0d2b0f78d0e3f2b9e5b458eb0a70'/>
<id>1f21eaa15e8a0d2b0f78d0e3f2b9e5b458eb0a70</id>
<content type='text'>
* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* Use the 'p' format unit instead of manually called PyObject_IsTrue().
* Pass boolean value instead 0/1 integers to functions that needs boolean.
* Convert some arguments to boolean only once.
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37268: Add deprecation notice and a DeprecationWarning for the parser module (GH-15017)</title>
<updated>2019-07-30T11:04:01+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-07-30T11:04:01+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9211e2fd81fe1db6f73ded70752b144cc9691ab6'/>
<id>9211e2fd81fe1db6f73ded70752b144cc9691ab6</id>
<content type='text'>
Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.





https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Deprecate the parser module and add a deprecation warning triggered on import and a warning block in the documentation.





https://bugs.python.org/issue37268



Automerge-Triggered-By: @pablogsal</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-37253: Add _PyCompilerFlags_INIT macro (GH-14018)</title>
<updated>2019-06-13T00:16:41+00:00</updated>
<author>
<name>Victor Stinner</name>
<email>vstinner@redhat.com</email>
</author>
<published>2019-06-13T00:16:41+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=37d66d7d4bc7dbac9809d69966a774ebb32563be'/>
<id>37d66d7d4bc7dbac9809d69966a774ebb32563be</id>
<content type='text'>
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags
variables, rather than initializing cf_flags and cf_feature_version
explicitly in each variable.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Add a new _PyCompilerFlags_INIT macro to initialize PyCompilerFlags
variables, rather than initializing cf_flags and cf_feature_version
explicitly in each variable.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36974: tp_print -&gt; tp_vectorcall_offset and tp_reserved -&gt; tp_as_async (GH-13464)</title>
<updated>2019-05-31T02:13:39+00:00</updated>
<author>
<name>Jeroen Demeyer</name>
<email>J.Demeyer@UGent.be</email>
</author>
<published>2019-05-31T02:13:39+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=530f506ac91338b55cf2be71b1cdf50cb077512f'/>
<id>530f506ac91338b55cf2be71b1cdf50cb077512f</id>
<content type='text'>
Automatically replace
tp_print -&gt; tp_vectorcall_offset
tp_compare -&gt; tp_as_async
tp_reserved -&gt; tp_as_async
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Automatically replace
tp_print -&gt; tp_vectorcall_offset
tp_compare -&gt; tp_as_async
tp_reserved -&gt; tp_as_async
</pre>
</div>
</content>
</entry>
<entry>
<title>fix warnings by adding more const (GH-12924)</title>
<updated>2019-04-23T11:39:37+00:00</updated>
<author>
<name>Inada Naoki</name>
<email>songofacandy@gmail.com</email>
</author>
<published>2019-04-23T11:39:37+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=09415ff0ebbbe97c8cd08ac1f94673d7a49c8018'/>
<id>09415ff0ebbbe97c8cd08ac1f94673d7a49c8018</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36440: include node names in ParserError messages, instead of numeric IDs (GH-12565)</title>
<updated>2019-04-03T05:12:07+00:00</updated>
<author>
<name>tyomitch</name>
<email>tyomitch@gmail.com</email>
</author>
<published>2019-04-03T05:12:07+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=cb0748d3939c31168ab5d3b80e3677494497d5e3'/>
<id>cb0748d3939c31168ab5d3b80e3677494497d5e3</id>
<content type='text'>
The error messages in the parser module are referring to numeric IDs for the nodes. To improve readability, use the node names when reporting errors.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The error messages in the parser module are referring to numeric IDs for the nodes. To improve readability, use the node names when reporting errors.</pre>
</div>
</content>
</entry>
<entry>
<title>bpo-36256: Fix bug in parsermodule when parsing if statements (GH-12477)</title>
<updated>2019-03-21T23:33:02+00:00</updated>
<author>
<name>Pablo Galindo</name>
<email>Pablogsal@gmail.com</email>
</author>
<published>2019-03-21T23:33:02+00:00</published>
<link rel='alternate' type='text/html' href='http://91.123.203.49/cgit/delta/cpython-git.git/commit/?id=9a0000d15d27361eaa47b77600c7c00a9787a894'/>
<id>9a0000d15d27361eaa47b77600c7c00a9787a894</id>
<content type='text'>
bpo-36256: Fix bug in parsermodule when parsing if statements

In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with
two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
bpo-36256: Fix bug in parsermodule when parsing if statements

In the parser module, when validating nodes before starting the parsing with to create a ST in "parser_newstobject" there is a problem that appears when two arcs in the same DFA state has transitions with labels with the same type. For example, the DFA for if_stmt has a state with
two labels with the same type: "elif" and "else" (type NAME). The algorithm tries one by one the arcs until the label that starts the arc transition has a label with the same type of the current child label we are trying to accept. In this case, the arc for "elif" comes before the arc for "else"and passes this test (because the current child label is "else" and has the same type as "elif"). This lead to expecting a namedexpr_test (305) instead of a colon (11). The solution is to compare also the string representation (in case there is one) of the labels to see if the transition that we have is the correct one.</pre>
</div>
</content>
</entry>
</feed>
