[issue41100] Support macOS 11 and Apple Silicon Macs
John Reese added the comment: Is there an ETA for having Big Sur support backported to the 3.8 branch, or is it already there and I'm just not seeing it here? -- nosy: +jreese ___ Python tracker <https://bugs.python.org/issue41100> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33983] unify types for lib2to3.pytree.Base.children
John Reese added the comment: The problem I'm trying to solve is around functions that operate on a Union[Leaf, Node], and want to be able to do things like `grandchildren = node.children[0].children + node.children[1].children` (contrived example, but point being tuple+list=TypeError while list+tuple=OK). There are similar cases around list methods not being available for tuples. In both cases, as is, the function needs to do some amount of type checking at runtime of each child to determine what operations can be done. Also, IMO, from a type annotation perspective, having a child class that uses a different type for an attribute from the base class is an anti-pattern, or weird at best. re. error prone: Since the expectation in lib2to3 is already that fixers shouldn't be modifying `node.children` directly, I don't see how this makes anything more error prone. Base/Leaf objects lack those methods for modifications, so unless the code is already being a bad actor, the situation isn't changed. -- ___ Python tracker <https://bugs.python.org/issue33983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33983] unify types for lib2to3.pytree.Base.children
Change by John Reese : -- keywords: +patch pull_requests: +7588 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33983] unify types for lib2to3.pytree.Base.children
New submission from John Reese : When type checking applications using lib2to3, the difference in types for lib2to3.pytree.Base.children versus Node.children makes it difficult to accept both leaves and nodes and programatically work with child nodes/leaves. Base/Leaf both have `children` defined as an empty Tuple, while Node defines it as an empty list. It would be more useful for Base/Leaf to also use an empty list, so that the type is the same, regardless of which type of object you are given. -- components: Library (Lib) messages: 320616 nosy: jreese, lukasz.langa priority: normal severity: normal status: open title: unify types for lib2to3.pytree.Base.children type: enhancement versions: Python 3.8 ___ Python tracker <https://bugs.python.org/issue33983> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33516] unittest.mock: Add __round__ to supported magicmock methods
Change by John Reese <jre...@leetcode.net>: -- nosy: +jreese, lukasz.langa ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33516> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33516] unittest.mock: Add __round__ to supported magicmock methods
Change by John Reese <jre...@leetcode.net>: -- keywords: +patch pull_requests: +6553 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33516> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33428] pathlib.Path.glob does not follow symlinks
John Reese <jre...@leetcode.net> added the comment: This looks like an issue specific to Windows? I can't replicate on Mac, and given Windows' method of implementing "symlinks" as junctions. -- nosy: +jreese ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33428> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33496] Accept Pathlib paths for sqlite file
John Reese <jre...@leetcode.net> added the comment: Looks like this is already changed for 3.7: see commit a22a127458 -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33496> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33496] Accept Pathlib paths for sqlite file
Change by John Reese <jre...@leetcode.net>: -- nosy: +jreese ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33496> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33504] configparser should use dict instead of OrderedDict in 3.7+
Change by John Reese <jre...@leetcode.net>: -- nosy: +lukasz.langa ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33504> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33504] configparser should use dict instead of OrderedDict in 3.7+
Change by John Reese <jre...@leetcode.net>: -- keywords: +patch pull_requests: +6504 stage: -> patch review ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33504> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33504] configparser should use dict instead of OrderedDict in 3.7+
New submission from John Reese <jre...@leetcode.net>: The configparser module uses `collections.OrderedDict` as its default, but this is no longer necessary in 3.7+ due to the semantics of core dictionaries being ordered by design. configparser should just use `dict` by default now, instead. -- components: Library (Lib) messages: 316547 nosy: jreese priority: normal severity: normal status: open title: configparser should use dict instead of OrderedDict in 3.7+ type: enhancement versions: Python 3.7, Python 3.8 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33504> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
Changes by John Reese jre...@leetcode.net: -- nosy: -jreese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6715] xz compressor support
Changes by John Reese jre...@leetcode.net: -- nosy: +jreese ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6715 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com