[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

[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

[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 ___ ___

[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).

[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 ___

[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

[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 ___

[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 ___ ___

[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

[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

[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

[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 ___

[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 ___

[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

[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

[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

[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 ___

[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 ___

[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

[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 ___

[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 ___ ___

[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

[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

[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

[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

[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

[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

[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

[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 ___

[issue24505] shutil.which wrong result on Windows

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
STINNER Victor added the comment: Usually, constructors try to accept format returned by repr(obj), or even str(obj). It's the case for Fraction: >>> str(fractions.Fraction(1, 2)) '1/2' >>> fractions.Fraction("1/2") Fraction(1, 2) It works as expected. I dislike the idea of trying to handle

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

2021-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: Currently, super() is decoupled from the core language. It is just a builtin that provides customized attribute lookup. This PR makes super() more tightly integrated with the core language, treating it as if it were a keyword and part of the grammar.

[issue43571] Add option to create MPTCP sockets

2021-03-20 Thread Rui Cunha
Change by Rui Cunha : -- components: Extension Modules nosy: RuiCunhaM, ncoghlan, petr.viktorin priority: normal severity: normal status: open title: Add option to create MPTCP sockets type: enhancement versions: Python 3.10 ___ Python tracker

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

2021-03-20 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43570] pyspecific.py > AuditEvent mess with translations

2021-03-20 Thread Julien Palard
Change by Julien Palard : -- keywords: +patch pull_requests: +23704 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24945 ___ Python tracker ___

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

2021-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: FWIW, I'm running a user poll on Twitter and have asked people to state their rationale: https://twitter.com/raymondh/status/1373315362062626823 Take it with a grain of salt. Polls totals don't reflect how much thought each person put into their

[issue23948] Deprecate os.kill() on Windows

2021-03-20 Thread John Ehresman
John Ehresman added the comment: The original idea was to not use kill on win32 because developers often assume it will work like it does on unix-like OS's -- my claim is while kill could be improved on win32, it still won't support all the things kill can do elsewhere. I don't think

[issue43536] 3.9.2 --without-pymalloc --with-pydebug --with-valgrind: test failed: test_posix

2021-03-20 Thread Ned Deily
Ned Deily added the comment: Please report the verbose results from the failing test cases; otherwise we are just guessing at what the exact failure is. Use the -w or -v options to test.regrtest. -- nosy: +ned.deily ___ Python tracker

[issue43570] pyspecific.py > AuditEvent mess with translations

2021-03-20 Thread Julien Palard
New submission from Julien Palard : In case an `.. audit-event::` has a content, Sphinx gets confused: It will provide both "auto-generated" and the content in po files, for interactivehook for example we have: #: library/sys.rst:953 msgid "" "Raises an :ref:`auditing event `

[issue28188] os.putenv should support bytes arguments on Windows

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11354] argparse: nargs could accept range of options count

2021-03-20 Thread Alex Kanitz
Alex Kanitz added the comment: Given that people were asking for real-world use cases, here's one: high-throughput sequencing, e.g., in RNA-Seq (https://en.wikipedia.org/wiki/RNA-Seq), typically yields either one or two output files, depending on the type of the sequencing library. As the

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread STINNER Victor
New submission from STINNER Victor : Example on aarch64 Fedora Stable Clang Installed 3.x: https://buildbot.python.org/all/#/builders/14/builds/804 == ERROR: test_open_binary

[issue42129] Support resources in namespace packages

2021-03-20 Thread STINNER Victor
STINNER Victor added the comment: Please see bpo-43569: "test_importlib failed on installed Python" regression introduced by commit 67148254146948041a77d8a2989f41b88cdb2f99. -- nosy: +vstinner ___ Python tracker

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread STINNER Victor
STINNER Victor added the comment: It seems like tests were added by: commit 67148254146948041a77d8a2989f41b88cdb2f99 Author: Jason R. Coombs Date: Thu Mar 4 13:43:00 2021 -0500 bpo-42129: Add support for resources in namespaces (GH-24670) * Unify behavior in

[issue43571] Add option to create MPTCP sockets

2021-03-20 Thread Rui Cunha
Change by Rui Cunha : -- keywords: +patch pull_requests: +23705 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24946 ___ Python tracker ___

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

2021-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > Of 721 uses of the join() method (excluding os.path.join()) > in the stdlib, only 10 need forceful stringification with > map(str, ...) Thanks for looking a real world code. I'm surprised that the standard library stats aren't representative of my

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

2021-03-20 Thread jack1142
Change by jack1142 : -- nosy: +jack1142 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2021-03-20 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-20 Thread STINNER Victor
STINNER Victor added the comment: Python uses GetACP(), the ANSI code page of the operating system, for years. What is the advantage of using a different encoding? In my experience, most applications use the ANSI code page because they use the ANSI flavor of the Windows API. What is the

[issue42129] Support resources in namespace packages

2021-03-20 Thread STINNER Victor
STINNER Victor added the comment: I reopen the issue. -- resolution: fixed -> status: closed -> open ___ Python tracker ___ ___

[issue40521] [subinterpreters] Make free lists and unicode caches per-interpreter

2021-03-20 Thread Raymond Hettinger
Change by Raymond Hettinger : -- pull_requests: +23703 pull_request: https://github.com/python/cpython/pull/24944 ___ Python tracker ___

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-20 Thread Chris Morton
Chris Morton added the comment: Hi Terry, The reason why your code does not reproduce the issue is because you first execute the code in a global context which then puts the definition of c in that context. Subsequent calling in the local context then works. If you remove the first exec

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset ee48c7d54147ae906776b9f6f96e8920e097d0c4 by Dino Viehland in branch 'master': bpo-43452: Micro-optimizations to PyType_Lookup (GH-24804) https://github.com/python/cpython/commit/ee48c7d54147ae906776b9f6f96e8920e097d0c4 -- nosy:

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread miss-islington
miss-islington added the comment: New changeset ac17ed60f2033253248be494a8e1980fe7e3531d by Antoine Pitrou in branch '3.9': [3.9] bpo-43517: Fix false positive in detection of circular imports (GH-24895) (GH-24948)

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Interestingly, the pull request never alerted to any buildbot failures. Any idea how I can reproduce the issue locally? Is there a docker image that would likely replicate the environment in which the tests are failing? --

[issue42137] Raise an ImportWarning for calling module_repr() on loaders

2021-03-20 Thread Brett Cannon
Brett Cannon added the comment: Should try to use __spec__ first, but if it isn't set then fall back on module_repr() and raise an ImportWarning. See Lib/importlib/_bootstrap.py:_module_repr. -- ___ Python tracker

[issue43481] PyEval_EvalCode() namespace issue not observed in Python 2.7.

2021-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Foolish me. Commenting out the first exec results in the 2nd exec raising. Commenting out the 2nd exec also results in the class code raising, which is what I expected. The point of the class code is to partially explain the exception, which is not a bug,

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

2021-03-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read all the responses as of this timestamp. They left me more persuaded that joining objects with a string (or bytes) is explicit enough that the objects *must* be coerced to strings. A problem with coercion in "1 + '2'" is that there is no 'must'. The

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks Antoine! -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-20 Thread Robert Pollak
Change by Robert Pollak : -- nosy: +jondo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43571] Add option to create MPTCP sockets

2021-03-20 Thread Gregory P. Smith
New submission from Gregory P. Smith : New changeset b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77 by Rui Cunha in branch 'master': bpo-43571: Add IPPROTO_MPTCP macro (GH-24946) https://github.com/python/cpython/commit/b05b48dd7ab68bf0046356f2abd6d7fe3b5b3d77 -- nosy: +gregory.p.smith

[issue27602] Enable py launcher to launch repository Python.

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43542] Add image/heif(heic) to list of media types in mimetypes.py

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.10 ___ Python tracker ___

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: I've submitted a PR and triggered build by buildbots, but I don't see that the indicated builder is building the PR. Shall I just submit and see what happens? Any other ideas how to verify the installed builder buildbots? --

[issue43552] Add locale.get_locale_encoding() and locale.get_current_locale_encoding()

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: > In my experience, most applications use the ANSI code page because > they use the ANSI flavor of the Windows API. The default encoding at startup and in the "C" locale wouldn't change. It would only differ from the default if setlocale(LC_CTYPE, locale_name)

[issue38890] subprocess.Popen should not emit a ResourceWarning for a detached process

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: On POSIX the norm for anything daemonizing itself is to fork() and let the parent die so that its original process with the child pid has ended. But I'm used to this being the responsibility of the daemon process. Not the code launching the daemon.

[issue43542] Add image/heif(heic) to list of media types in mimetypes.py

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: New changeset 20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d by Ilya Stepin in branch 'master': bpo-43542: Add heif/heic formats in mimetypes (GH-24917) https://github.com/python/cpython/commit/20a5b7e986377bdfd929d7e8c4e3db5847dfdb2d --

[issue43080] pprint for dataclass instances

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: +0.5 I lean towards just accepting this under the conditions Eric describes given that dataclass is a stdlib concept and nobody is likely to claim that such output from pprint is a bad thing. The larger "some form of protocol for pprint to work on all

[issue43547] support ZIP files with zeroed out fields (e.g. for reproducible builds)

2021-03-20 Thread Felix C. Stegerman
Change by Felix C. Stegerman : -- nosy: +obfusk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Antoine Pitrou
Antoine Pitrou added the comment: New changeset 2fd16ef406bba239b1334057fb499496a84b3aa2 by Antoine Pitrou in branch 'master': bpo-43517: Fix false positive in detection of circular imports (#24895) https://github.com/python/cpython/commit/2fd16ef406bba239b1334057fb499496a84b3aa2

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23708 pull_request: https://github.com/python/cpython/pull/24950 ___ Python tracker ___

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread miss-islington
miss-islington added the comment: New changeset 66c8adfa27aeea004657ef29b6db4e4c360ad611 by Antoine Pitrou in branch 'master': bpo-43517 (followup): Install additional test directory (GH-24950) https://github.com/python/cpython/commit/66c8adfa27aeea004657ef29b6db4e4c360ad611 --

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

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: -10. I agree with Serhiy. Automatic type conversion is rarely a feature. It leads to silent bugs when people pass the wrong things. Be explicit. We are intentionally not one of those everything is really a string languages like Perl or Javascript.

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list

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

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> rejected stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue29178] Adding bytes.frombuffer(byteslike) constructor

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- stage: -> patch review versions: -Python 3.8, Python 3.9 ___ Python tracker ___ ___

[issue33240] shutil.rmtree fails if inner folder is open in Windows Explorer

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Isn't this just "how windows behaves" on some filesystems with little that we can do about it? The only real action item I can see here is that if it is _reasonable_ for us to detect the situation and improve the error message, that'd help the users (and

[issue43452] Microoptimize PyType_Lookup for cache hits

2021-03-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +23707 pull_request: https://github.com/python/cpython/pull/24949 ___ Python tracker ___

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23706 pull_request: https://github.com/python/cpython/pull/24948 ___ Python tracker ___

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- assignee: -> jaraco nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2021-03-20 Thread Emil Stenström
Emil Stenström added the comment: Since the proposal is fully backwards compatible I don’t think preferring the old version is a reason against this nicer API. After all, people that like the current version can continue using it as they do today. Teaching Python to beginners is a great way

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23709 pull_request: https://github.com/python/cpython/pull/24951 ___ Python tracker ___

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Jason R. Coombs added the comment: Oh, "installed python". So maybe Python requires one register files in more than one place to add them to the installation. -- ___ Python tracker

[issue43572] "Too many open files" on macOS buildbot

2021-03-20 Thread Antoine Pitrou
New submission from Antoine Pitrou : See https://buildbot.python.org/all/#/builders/366/builds/960/steps/5/logs/stdio -- messages: 389184 nosy: mattbillenstein, pablogsal, pitrou, zach.ware priority: normal severity: normal status: open title: "Too many open files" on macOS buildbot

[issue43517] Fix false positives in circular import detection with from-imports

2021-03-20 Thread miss-islington
miss-islington added the comment: New changeset 107cf078910db7c1cafdd486270ba8083d72aed7 by Antoine Pitrou in branch '3.9': [3.9] bpo-43517 (followup): Install additional test directory (GH-24950) (GH-24951) https://github.com/python/cpython/commit/107cf078910db7c1cafdd486270ba8083d72aed7

[issue43569] test_importlib failed on installed Python

2021-03-20 Thread Jason R. Coombs
Change by Jason R. Coombs : -- keywords: +patch pull_requests: +23710 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24952 ___ Python tracker ___

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

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: The proposal I like is for a unicode numeric normalization functions that return the ascii equivalent to exist. These ideally belong in a third party PyPI library anyways, as they're the kind of thing that needs updating every time a new unicode revision

[issue43571] Add option to create MPTCP sockets

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Thanks for the contribution! Simple constant addition. I ignored the contributor CLA status as a result. There's only one way to write this non-logic plumbing. -- assignee: -> gregory.p.smith resolution: -> fixed stage: patch review -> commit

[issue43487] Rename __unicode__ methods to __str__ in 2to3 conversion

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: We're not accepting anything new into lib2to3 anymore as it is deprecated and slated for eventual removal. I recommend putting any fixers you develop up as on PyPI as package(s) for others to use. -- nosy: +gregory.p.smith resolution: ->

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

2021-03-20 Thread Emil Stenström
Emil Stenström added the comment: Terry, Gregory: The suggestion is not to change what 1 + "2" does, I fully agree that it behaves at it should. The suggestion is to change what ",".join(1, "2") does. There's no doubt that the intended result is "1, 2". That's why it's possible to coerce.

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

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: Steve's approach makes sense and should be robust. side note: do we need to care about Windows 7 anymore in 3.10 given that microsoft no longer supports it? -- nosy: +gregory.p.smith ___ Python tracker

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

2021-03-20 Thread Gregory P. Smith
Gregory P. Smith added the comment: There is a lot of doubt. That should clearly raise an exception because this function is intended to only operate on strings. Trivial types examples like that gloss over the actual problem. data_from_some_computations = [b"foo", b"bar"] # probably

[issue43542] Add image/heif(heic) to list of media types in mimetypes.py

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue32592] Drop support of Windows Vista and Windows 7

2021-03-20 Thread Gregory P. Smith
Change by Gregory P. Smith : -- title: Drop support of Windows Vista and 7 in Python 3.9 -> Drop support of Windows Vista and Windows 7 type: -> enhancement ___ Python tracker

  1   2   >