[issue43574] Regression in overallocation for literal list initialization in v3.9+

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

[issue33935] [Windows] samefile() should not use zero-valued st_dev and st_ino

2021-03-20 Thread Eryk Sun
Change by Eryk Sun : -- title: shutil.copyfile throws incorrect SameFileError on Google Drive File Stream -> [Windows] samefile() should not use zero-valued st_dev and st_ino ___ Python tracker

[issue4198] os.path.normcase gets fooled on windows with mapped linux network drive

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: Filesystem paths in Windows are normally opened case insensitive, but a filesystem can choose to ignore this. NTFS does so for directories that flagged as case sensitive [1]. ntpath.normcase() doesn't incorporate this information. It would have to query the

[issue33935] shutil.copyfile throws incorrect SameFileError on Google Drive File Stream

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

[issue43577] Deadlock when using SSLContext._msg_callback and SSLContext.sni_callback

2021-03-20 Thread Andrew Dailey
New submission from Andrew Dailey : Hello, I think I might've stumbled onto an oversight with how an SSLSocket handles overwriting its SSLContext within an sni_callback. If both "_msg_callback" and "sni_callback" are defined on an SSLContext object and the sni_callback replaces the context

[issue43576] python3.6.4 os.environ error when write chinese to file

2021-03-20 Thread rushant
New submission from rushant <953779...@qq.com>: # -*- coding: utf-8 -*- import os job_name = os.environ['a'] print(job_name) print(isinstance(job_name, str)) print(type(job_name)) with open('name.txt', 'w', encoding='utf-8')as fw: fw.write(job_name) i have set environment param by : export

[issue43447] Generate vectorcall code to parse arguments using Argument Clinic

2021-03-20 Thread Dong-hee Na
Dong-hee Na added the comment: I agree with we should update AC to generate vectorcall. I am going to investigate what we can :) -- ___ Python tracker ___

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

2021-03-20 Thread Vedran Čačić
Vedran Čačić added the comment: Yes, I know what strong typing means, and can you please read again what I've written? It was exactly about "In the face of ambiguity, refuse the temptation to guess.", because binary operators are inherently ambiguous when given differently typed operands.

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

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: Ah, word, was looking at stdout -- 256 is pretty low, raised it to 200k... -- ___ Python tracker ___

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +23714 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24955 ___ Python tracker ___

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

2021-03-20 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: >> I don't see that error message - where are you seeing it? You need to search for it in the full log: stderr: --- Traceback (most recent call last): File

[issue43575] map() instantiation time reducing by using PEP 590 vectorcall

2021-03-20 Thread Dong-hee Na
New submission from Dong-hee Na : +---+--+--+ | Benchmark | map_bench_master | map_bench_vectorcall | +===+==+==+ | bench map | 151 ns | 116 ns: 1.30x faster |

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Chad Netzer
Change by Chad Netzer : -- keywords: +patch pull_requests: +23712 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24954 ___ Python tracker ___

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

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: In any case - I've raised file/process limits on the buildbot. -- ___ Python tracker ___ ___

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Change by Brett Cannon : -- keywords: +patch pull_requests: +23711 stage: -> patch review pull_request: https://github.com/python/cpython/pull/24953 ___ Python tracker ___

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

2021-03-20 Thread Matt Billenstein
Matt Billenstein added the comment: I don't see that error message - where are you seeing it? -- ___ Python tracker ___ ___

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Change by Brett Cannon : -- dependencies: -[importlib] deprecate module_repr() methods ___ Python tracker ___ ___ Python-bugs-list

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +serhiy.storchaka, vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue43574] Regression in overallocation for literal list initialization in v3.9+

2021-03-20 Thread Chad Netzer
New submission from Chad Netzer : In Python v3.9+ there was a regression in the amount of used memory for list-literals, due to switching to using list_extend() to allocate memory for the new list to accomodate the literal elements. Example, in Python v3.8.x (and before): ``` $ python38 Python

[issue42137] Prefer using __spec__ over module_repr() for ModuleType.__repr__

2021-03-20 Thread Brett Cannon
Brett Cannon added the comment: Thinking about it more, raising ImportWarning (or DeprecationWarning) is unnecessarily noisy as the existence of the module isn't problematic, it just won't be used anymore in the future. So updating the code to use __spec__ first and then document in "What's

[issue42914] pprint numbers with underscore

2021-03-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: I don't think underscores can be on by default. It needs to be opt-in to be backwards compatible. -- ___ Python tracker ___

[issue43573] [types] Document __spec__ for types.ModuleType

2021-03-20 Thread Brett Cannon
New submission from Brett Cannon : https://docs.python.org/3/library/types.html#types.ModuleType does not document __spec__. -- assignee: docs@python components: Documentation messages: 389204 nosy: brett.cannon, docs@python priority: normal severity: normal status: open title:

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

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: > oh, I missed that a notification happens to the other process(es) in a > common case, a bit of retrying with backoff would actually make sense The other common problem with deleting an empty directory is when it's opened as the working directory of a process.

[issue40894] asyncio.gather() cancelled() always False

2021-03-20 Thread Ben Buchwald
Ben Buchwald added the comment: Hopefully I'm not too late to comment on this. I also just hit this issue, but I do not agree with the proposed PR. Only modifying _GatheringFuture.cancelled() just fixes one of the side-effects of the problem. The state of the future is still FINISHED and

[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: oh, I missed that a notification happens to the other process(es) in a common case, a bit of retrying with backoff would actually make sense there. But I wouldn't let a retry run for longer than a second or three, as code tends to assume that rmtree is

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

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: > Isn't this just "how windows behaves" on some filesystems with > little that we can do about it? The suggestion was to include an error handler that retries unlink() and rmdir() -- particularly rmdir() -- a given number of times, probably with an exponential

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

2021-03-20 Thread Eryk Sun
Eryk Sun added the comment: > side note: do we need to care about Windows 7 anymore in > 3.10 given that microsoft no longer supports it? If the fix comes in time for Python 3.8, then it needs to support Windows 7. For Python 3.9+, the 32 KiB limit can be removed. The console

[issue42914] pprint numbers with underscore

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

[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

[issue42917] Block stack size for frame objects should be dynamically sizable

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

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

[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

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

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

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

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

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

[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

[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 : -- assignee: -> gregory.p.smith nosy: +gregory.p.smith versions: +Python 3.10 ___ Python tracker ___

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

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

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

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

[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

[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

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

[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

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

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

[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

[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

[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 Gregory P. Smith
Gregory P. Smith added the comment: Thanks Antoine! -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list mailing

[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

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

[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 Antoine Pitrou
Change by Antoine Pitrou : -- pull_requests: +23709 pull_request: https://github.com/python/cpython/pull/24951 ___ 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 --

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

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

[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

[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

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

[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
Change by Jason R. Coombs : -- assignee: -> jaraco nosy: +jaraco ___ Python tracker ___ ___ Python-bugs-list mailing list

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

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

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

[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

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

[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

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

[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 Batuhan Taskaya
Change by Batuhan Taskaya : -- nosy: +BTaskaya ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[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

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

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

[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

[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

[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

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

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

[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

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

[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

[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

[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

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

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

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

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

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

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

  1   2   >