<feed xmlns='http://www.w3.org/2005/Atom'>
<title>python.git/Lib/ast.py, branch 3.10</title>
<subtitle>Python interpreter</subtitle>
<id>http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/ast.py?h=3.10</id>
<link rel='self' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/atom/Lib/ast.py?h=3.10'/>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/'/>
<updated>2022-11-22T11:06:26Z</updated>
<entry>
<title>gh-99341: Cover type ignore nodes when incrementing line numbers (GH-99422)</title>
<updated>2022-11-22T11:06:26Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-11-22T11:06:26Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=99e852c28fb7ba86aebbe6926b93eb2db8fd9a10'/>
<id>urn:sha1:99e852c28fb7ba86aebbe6926b93eb2db8fd9a10</id>
<content type='text'>
(cherry picked from commit 1acdfec359fdf3db936168480be0f4157273c200)

Co-authored-by: Batuhan Taskaya &lt;isidentical@gmail.com&gt;</content>
</entry>
<entry>
<title>gh-95588: Drop the safety claim from `ast.literal_eval` docs. (GH-95919)</title>
<updated>2022-10-02T01:24:55Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-10-02T01:24:55Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a4fbb949659b86b0925b20a9ef6bc2877f397252'/>
<id>urn:sha1:a4fbb949659b86b0925b20a9ef6bc2877f397252</id>
<content type='text'>
It was never really safe and this claim conflicts directly with the big warning in the docs about it being able to crash the interpreter.
(cherry picked from commit 8baef8ae367041a5cfefb40b19c7b87e9bcb56a2)

Co-authored-by: Gregory P. Smith &lt;greg@krypto.org&gt;</content>
</entry>
<entry>
<title>gh-92986: Fix ast.unparse when ImportFrom.level is None (GH-92992)</title>
<updated>2022-09-05T17:39:52Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2022-09-05T17:39:52Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=6cc31af657a0aaf5a8ba0564b35124f1ca542287'/>
<id>urn:sha1:6cc31af657a0aaf5a8ba0564b35124f1ca542287</id>
<content type='text'>
This doesn't happen naturally, but is allowed by the ASDL and compiler.
We don't want to change ASDL for backward compatibility reasons
(GH-57645, GH-92987)
(cherry picked from commit 200c9a8da0e2b892c476807e986009c01327e781)

Co-authored-by: Shantanu &lt;12621235+hauntsaninja@users.noreply.github.com&gt;</content>
</entry>
<entry>
<title>[3.10] bpo-44559: [Enum] revert enum module to 3.9 (GH-27010)</title>
<updated>2021-07-04T04:08:42Z</updated>
<author>
<name>Ethan Furman</name>
<email>ethan@stoneleaf.us</email>
</author>
<published>2021-07-04T04:08:42Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=9bf7c2d638a582af2444bc864feba13ab8957b68'/>
<id>urn:sha1:9bf7c2d638a582af2444bc864feba13ab8957b68</id>
<content type='text'>
* [Enum] revert enum module to 3.9</content>
</entry>
<entry>
<title>Fix typo in ast.py (GH-25740)</title>
<updated>2021-05-04T13:39:16Z</updated>
<author>
<name>Miss Islington (bot)</name>
<email>31488909+miss-islington@users.noreply.github.com</email>
</author>
<published>2021-05-04T13:39:16Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=62a983d866af69973c4a31ed8f11dc5e97171a4c'/>
<id>urn:sha1:62a983d866af69973c4a31ed8f11dc5e97171a4c</id>
<content type='text'>
parantheses -&gt; parentheses
(cherry picked from commit 9ee8448243e776d2a07a9868e9795bbb2c828f9c)

Co-authored-by: Ikko Ashimine &lt;eltociear@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-43892: Make match patterns explicit in the AST (GH-25585)</title>
<updated>2021-04-29T05:58:44Z</updated>
<author>
<name>Nick Coghlan</name>
<email>ncoghlan@gmail.com</email>
</author>
<published>2021-04-29T05:58:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=1e7b858575d0ad782939f86aae4a2fa1c29e9f14'/>
<id>urn:sha1:1e7b858575d0ad782939f86aae4a2fa1c29e9f14</id>
<content type='text'>
Co-authored-by: Brandt Bucher &lt;brandtbucher@gmail.com&gt;</content>
</entry>
<entry>
<title>bpo-38659: [Enum] add _simple_enum decorator (GH-25497)</title>
<updated>2021-04-21T17:20:44Z</updated>
<author>
<name>Ethan Furman</name>
<email>ethan@stoneleaf.us</email>
</author>
<published>2021-04-21T17:20:44Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=a02cb474f9c097c83cd444a47e9fb5f99b4aaf45'/>
<id>urn:sha1:a02cb474f9c097c83cd444a47e9fb5f99b4aaf45</id>
<content type='text'>
add:

* `_simple_enum` decorator to transform a normal class into an enum
* `_test_simple_enum` function to compare
* `_old_convert_` to enable checking `_convert_` generated enums

`_simple_enum` takes a normal class and converts it into an enum:

    @simple_enum(Enum)
    class Color:
        RED = 1
        GREEN = 2
        BLUE = 3

`_old_convert_` works much like` _convert_` does, using the original logic:

    # in a test file
    import socket, enum
    CheckedAddressFamily = enum._old_convert_(
            enum.IntEnum, 'AddressFamily', 'socket',
            lambda C: C.isupper() and C.startswith('AF_'),
            source=_socket,
            )

`_test_simple_enum` takes a traditional enum and a simple enum and
compares the two:

    # in the REPL or the same module as Color
    class CheckedColor(Enum):
        RED = 1
        GREEN = 2
        BLUE = 3

    _test_simple_enum(CheckedColor, Color)

    _test_simple_enum(CheckedAddressFamily, socket.AddressFamily)

Any important differences will raise a TypeError</content>
</entry>
<entry>
<title>Revert "bpo-38659: [Enum] add _simple_enum decorator (GH-25285)" (GH-25476)</title>
<updated>2021-04-20T02:12:24Z</updated>
<author>
<name>Ethan Furman</name>
<email>ethan@stoneleaf.us</email>
</author>
<published>2021-04-20T02:12:24Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=503cdc7c124cebbd777008bdf7bd9aa666b25f07'/>
<id>urn:sha1:503cdc7c124cebbd777008bdf7bd9aa666b25f07</id>
<content type='text'>
This reverts commit dbac8f40e81eb0a29dc833e6409a1abf47467da6.</content>
</entry>
<entry>
<title>bpo-38659: [Enum] add _simple_enum decorator (GH-25285)</title>
<updated>2021-04-20T01:04:53Z</updated>
<author>
<name>Ethan Furman</name>
<email>ethan@stoneleaf.us</email>
</author>
<published>2021-04-20T01:04:53Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=dbac8f40e81eb0a29dc833e6409a1abf47467da6'/>
<id>urn:sha1:dbac8f40e81eb0a29dc833e6409a1abf47467da6</id>
<content type='text'>
add:

_simple_enum decorator to transform a normal class into an enum
_test_simple_enum function to compare
_old_convert_ to enable checking _convert_ generated enums
_simple_enum takes a normal class and converts it into an enum:

@simple_enum(Enum)
class Color:
    RED = 1
    GREEN = 2
    BLUE = 3

_old_convert_ works much like _convert_ does, using the original logic:

# in a test file
import socket, enum
CheckedAddressFamily = enum._old_convert_(
        enum.IntEnum, 'AddressFamily', 'socket',
        lambda C: C.isupper() and C.startswith('AF_'),
        source=_socket,
        )

test_simple_enum takes a traditional enum and a simple enum and
compares the two:

# in the REPL or the same module as Color
class CheckedColor(Enum):
    RED = 1
    GREEN = 2
    BLUE = 3

_test_simple_enum(CheckedColor, Color)

_test_simple_enum(CheckedAddressFamily, socket.AddressFamily)

Any important differences will raise a TypeError</content>
</entry>
<entry>
<title>bpo-43521: Allow ast.unparse with empty sets and NaN (GH-24897)</title>
<updated>2021-03-18T17:36:06Z</updated>
<author>
<name>Kodi Arfer</name>
<email>Kodiologist@users.noreply.github.com</email>
</author>
<published>2021-03-18T17:36:06Z</published>
<link rel='alternate' type='text/html' href='http://dangofactory.net/cgit/cgit.cgi/Server/python.git/commit/?id=08ff4369afca84587b1c82034af4e9f64caddbf2'/>
<id>urn:sha1:08ff4369afca84587b1c82034af4e9f64caddbf2</id>
<content type='text'>
Automerge-Triggered-By: GH:pablogsal</content>
</entry>
</feed>
