[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-03-20 Thread Joshua Root
Change by Joshua Root : -- keywords: +patch pull_requests: +23702 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24941 ___ Python tracker ___

[issue43568] Drop support for Mac OS X < 10.3 module linking

2021-03-20 Thread Joshua Root
New submission from Joshua Root : The `-undefined dynamic_lookup` option can only be used in LDSHARED on Mac OS X 10.3 and later. There is a fallback to explicitly linking with the framework for 10.2 and earlier. I'm pretty sure that currently supported Python versions don't build on 10.2 or

[issue43563] Use dedicated opcodes to speed up calls/attribute lookups with super() as receiver

2021-03-20 Thread Mark Shannon
Mark Shannon added the comment: Why? Do you have any evidence that the overhead of super() is significant in real programs, or that the proposed change actually speeds up anything beyond your micro-benchmark? -- nosy: +Mark.Shannon ___ Python

[issue43567] regen.vcxproj cannot regenerate some necessary files

2021-03-20 Thread Jiaxin Peng
New submission from Jiaxin Peng : I tried to modify Grammar/python.gram, Grammar/Tokens, Parser/Python.asdl, to add a new token to the grammar. And when using `build.bat --regen`, only parser.c is newly generated. Other files, as mentioned in https://devguide.python.org/grammar/ that should

[issue43526] Programmatic management of BytesWarning doesn't work for native triggers.

2021-03-20 Thread Xavier Morel
Xavier Morel added the comment: > In normal circumstances you should never deal with BytesWarning. The -b > option is only used for testing your program for some possible bugs caused by > migration from Python 2. If your program always worked only with Python 3, > the -b option has no use

[issue43502] [C-API] Convert obvious unsafe macros to static inline functions

2021-03-20 Thread Erlend Egeberg Aasland
Erlend Egeberg Aasland added the comment: Based on the feedback, I'm closing this. The PyUnicode_* macros, or the callers, can be fixed in a separate issue. -- resolution: -> wont fix stage: patch review -> resolved status: open -> closed ___

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-20 Thread Mark Dickinson
Mark Dickinson added the comment: Carl: can you say more about the problem that motivated this issue? -- ___ Python tracker ___

[issue43520] Make Fraction(string) handle non-ascii slashes

2021-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It would be nice to have an utility function in unicodedata to convert Unicode characters to their ASCII equivalents (if they exist). It would allow to explicitly convert all slashes to / (and all digits to 0-9) before passing string to Fraction

[issue43556] fix attr names for ast.expr and ast.stmt

2021-03-20 Thread Zackery Spytz
Change by Zackery Spytz : -- keywords: +patch nosy: +ZackerySpytz nosy_count: 2.0 -> 3.0 pull_requests: +23701 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24940 ___ Python tracker

[issue29178] Adding bytes.frombuffer(byteslike) constructor

2021-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I am more warm to this feature now (+0). Not because it would allow to write some code shorter, but because it can be in line with other type-strict alternate constructors, like int.fromnumber() and int.parse(). But questions about parameters and

[issue29996] Use terminal width by default in pprint

2021-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Closing then. I'll just add my implementation in my .pythonrc.py. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue43535] Make str.join auto-convert inputs to strings.

2021-03-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Vedran, it is not what strong typing means. Strong typing means that '2'+3 is an error instead of '23' or 5. str.join() expects an iterable of strings. If some of items is not a string, it is a sign of programming error. I prefer to get an exception

[issue37871] Windows: WindowsConsoleIO produces mojibake for strings longer than 32 KiB

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- stage: -> needs patch versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Interpreter Core -Library (Lib) versions: +Python 3.10 -Python 3.7 ___ Python tracker ___ ___

[issue28166] WindowsConsoleIO misbehavior when Ctrl+C is ignored

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg359933 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29996] Use terminal width by default in pprint

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue29996] Use terminal width by default in pprint

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg291198 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue30405] build.bat: register binaries for py launcher

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue27602] Enable py launcher to launch repository Python.

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: See also bpo-30405, which has more discussion about supporting PEP 514 in the launcher. -- ___ Python tracker ___

[issue30405] build.bat: register binaries for py launcher

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg293989 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue43566] Docs say int('010', 0) is not legal, but it is

2021-03-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43566] Docs say int('010', 0) is not legal, but it is

2021-03-20 Thread Chris Wilson
Chris Wilson added the comment: Actually, octal is not a legal literal in Python 3, sorry. -- resolution: -> rejected ___ Python tracker ___

[issue30374] Make win_add2path.py take effect without having to log off

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: -ctypes versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___

[issue29178] Adding bytes.frombuffer(byteslike) constructor

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue29971] Lock.acquire() not interruptible on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules, Interpreter Core versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.7 ___ Python tracker ___

[issue29971] Lock.acquire() not interruptible on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- Removed message: https://bugs.python.org/msg291089 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue36305] Inconsistent behavior of pathlib.WindowsPath with drive paths

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___ Python-bugs-list

[issue32862] os.dup2(fd, fd, inheritable=False) behaves inconsistently

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- versions: +Python 3.10, Python 3.8, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___ ___

[issue32865] os.pipe creates inheritable FDs with a bad internal state on Windows

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- components: +Extension Modules -Library (Lib) versions: +Python 3.10, Python 3.9 -Python 3.6, Python 3.7 ___ Python tracker ___

[issue43566] Docs say int('010', 0) is not legal, but it is

2021-03-20 Thread Chris Wilson
New submission from Chris Wilson : The documentation for the int() builtin says: Base 0 means to interpret exactly as a code literal, so that the actual base is 2, 8, 10, or 16, and so that int('010', 0) is not legal, while int('010') is, as well as int('010', 8).

<    1   2