[issue44881] Consider integration of PyObject_GC_UnTrack() with the trashcan C API

2021-08-12 Thread Neil Schemenauer
Neil Schemenauer added the comment: > The problem of PyObject_GC_UnTrack() is just the most visible effect of the > trashcan mecanism: tp_dealloc can be called twice, and this is *not* expected > by the tp_dealloc API. The fact that Py_TRASHCAN_BEGIN and Py_TRASHCAN_END can cause tp_dealloc to

[issue44908] recommend httpx as well as requests in http.client/urllib.request docs

2021-08-12 Thread Thomas Grainger
New submission from Thomas Grainger : HTTPX is a fully featured HTTP client for Python 3, which provides sync and async APIs, and support for both HTTP/1.1 and HTTP/2. It's also broadly compatible and inspired by the requests API: https://github.com/encode/httpx/blob/master/docs/compatibility

[issue44907] examples code output do not macth the current version 3.9

2021-08-12 Thread 杨青
New submission from 杨青 : https://docs.python.org/3/tutorial/controlflow.html I got like this following: TypeError: function() got multiple values for argument 'a' not: TypeError: function() got multiple values for keyword argument 'a' >>> def function(a): ... pass ... >>> function(0, a=0) T

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Chris Jerdonek
Chris Jerdonek added the comment: Out of curiosity, is the failure deterministic in environments where it fails? If not, what is the source of the indeterminism -- some kind of race condition or something else? -- nosy: +chris.jerdonek ___ Python

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread meowmeowcat
meowmeowcat added the comment: > Isn't it a duplicate of issue41203? Oh, sorry, I didn't notice that we have issue41203. I'll close this issue. -- resolution: -> duplicate stage: -> resolved status: open -> closed ___ Python tracker

[issue34938] Fix mimetype.init() to account for from import

2021-08-12 Thread Andrei Kulakov
Andrei Kulakov added the comment: How about returning the updated dicts from init() and showing an example in the docs of such usage? -- nosy: +andrei.avk ___ Python tracker

[issue41234] Remove symbol.sym_name

2021-08-12 Thread Andrei Kulakov
Andrei Kulakov added the comment: This can be closed; from the PR note: Resolved in PR #21624, can close. -- nosy: +andrei.avk ___ Python tracker ___ _

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2021-08-12 Thread Hugo Delgado
Hugo Delgado added the comment: Yes, I've created a PR for it. https://github.com/python/cpython/pull/27751 Happy to adapt it as needed. Thanks -- ___ Python tracker ___ ___

[issue24955] webbrowser broken on Mac OS X when using the BROWSER variable

2021-08-12 Thread Hugo Delgado
Change by Hugo Delgado : -- pull_requests: +26228 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/27751 ___ Python tracker ___ _

[issue44906] Crash on deep call stack under Windows

2021-08-12 Thread Alejandro Reimondo
New submission from Alejandro Reimondo : The py8.py file starts a S8 system, a Smalltalk system running on Python runtime, I am actually developing (in Beta). The system is running w/o problems on OSX systems, but crash (fast exit w/o any information) when running on Windows. The crash occurs

[issue38656] mimetypes for python 3.7.5 fails to detect matroska video

2021-08-12 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +26227 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27750 ___ Python tracker

[issue44905] Abstract instance and class attributes for abstract base classes

2021-08-12 Thread Tomasz Rzepecki
New submission from Tomasz Rzepecki : There seems to be no way to transparently make an abstract base class enforce instance attributes for subclasses (without creating a custom metaclass, see e.g. https://newbedev.com/python-abstract-class-shall-force-derived-classes-to-initialize-variable-i

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: My smallest failing example so far: def test_recursion_in_except_handler(self): self.test_no_hang_on_context_chain_cycle2() def set_relative_recursion_limit(n): depth = 1 while True: try:

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-12 Thread Dennis Sweeney
Dennis Sweeney added the comment: Perhaps it would be better to convert existing such tests to @cpython_only, since as far as I know, id() and `is` are implementation-defined for immutable objects. -- nosy: +Dennis Sweeney ___ Python tracker

[issue38856] asyncio ProactorEventLoop: wait_closed() can raise ConnectionResetError

2021-08-12 Thread Artem
Artem added the comment: Python 3.9.6 Linux same issue. -- nosy: +seer versions: +Python 3.9 ___ Python tracker ___ ___ Python-bugs

[issue44904] Erroneous behaviour for abstract class properties

2021-08-12 Thread Tomasz Rzepecki
New submission from Tomasz Rzepecki : Subclassing an abc with an abstract class property yields to unexpected behaviour: the class property is called, and an abstract class may be erroneously considered concrete. See https://stackoverflow.com/a/68763572/4434666 for details. -- files:

[issue40469] TimedRotatingFileHandler rotating on use not time

2021-08-12 Thread Vinay Sajip
Vinay Sajip added the comment: > The assumed behaviour of TimedRotatingFileHandler is to rotate log files > older than configured. Even when the script is executed multiple times. Ah, but is it? The purpose of TimedRotatingFileHandler is to rotate files based on time intervals, and is normal

[issue41322] unittest: deprecate test methods returning non-None values

2021-08-12 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch nosy: +andrei.avk nosy_count: 8.0 -> 9.0 pull_requests: +26226 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27748 ___ Python tracker

[issue44873] base64 RFC4648 test cases

2021-08-12 Thread Andrei Kulakov
Change by Andrei Kulakov : -- keywords: +patch pull_requests: +26225 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27747 ___ Python tracker ___ _

[issue41930] Wrap sqlite3_serialize API in sqlite3 module

2021-08-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: I've been fiddling with this between others projects lately; the PR is mostly ready. The only remaining issue is how to include this in the Connection object: - The serialize API was added as a compile-time option (SQLITE_ENABLE_DESERIALIZE) in SQLite 3.23

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2021-08-12 Thread Eryk Sun
Eryk Sun added the comment: > I don't understand the wording proposed (that seem backwards to me?) Thanks. Looks like I inverted the logic of the quoted paragraph. It should have been a "relative path with a slash in it" is resolved against the current working directory, not "without a slash

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread E. Paine
E. Paine added the comment: Thank you for looking at this in great detail Mark and that all seems like a very useful set of changes! I've got a few more specific comments below, but they're mostly just small details. 2. I'd personally prefer alphabetical order (except Tix, which should be la

[issue43392] Optimize repeated calls to `__import__()`

2021-08-12 Thread Antoine Pitrou
Change by Antoine Pitrou : -- components: +Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed type: -> performance versions: +Python 3.11 -Python 3.10, Python 3.6, Python 3.7, Python 3.8, Python 3.9 ___ Py

[issue43392] Optimize repeated calls to `__import__()`

2021-08-12 Thread miss-islington
miss-islington added the comment: New changeset 03648a2a91f9f1091cd21bd4cd6ca092ddb25640 by Germán Méndez Bravo in branch 'main': bpo-43392: Optimize repeated calls to `__import__()` (GH-24735) https://github.com/python/cpython/commit/03648a2a91f9f1091cd21bd4cd6ca092ddb25640 -- nosy:

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread Mason Ginter
Mason Ginter added the comment: Those changes sound great to me, Mark. I've been busy with work and don't think I'll have the time to implement those changes. If you or someone else would like to work on this, I would gladly let you take over. --

[issue44885] Incorrect exception highlighting for fstring format

2021-08-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 4b86c9c5146c339c689830619be9d29b8f7bf417 by Pablo Galindo Salgado in branch '3.9': [3.9] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27744) https://github.com/python/cpython

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread Jack DeVries
Jack DeVries added the comment: Oh yeah, sorry, it looks like this can be closed as duplicate. -- ___ Python tracker ___ ___ Python

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Isn't it a duplicate of issue41203? -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Pytho

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: This fails (test_recursion_normalizing_with_no_memory is not needed): ./python.exe -m test -R 3:3 test_exceptions -m test_no_hang_on_context_chain_cycle2 -m test_recursion_normalizing_infinite_exception -m test_recursion_in_except_handler -- ___

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Change by Irit Katriel : -- keywords: +patch pull_requests: +26224 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27746 ___ Python tracker ___ ___

[issue44891] Tests for `id(a) == id(a * 1)` for `bytes` and `str`

2021-08-12 Thread Nikita Sobolev
Change by Nikita Sobolev : -- keywords: +patch pull_requests: +26223 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27745 ___ Python tracker ___ _

[issue44885] Incorrect exception highlighting for fstring format

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

[issue44885] Incorrect exception highlighting for fstring format

2021-08-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset c28c2e1cb0dd5fc8b17514e2c4ee17415af733a4 by Pablo Galindo Salgado in branch '3.10': [3.10] bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) (GH-27743) https://github.com/python/cpyth

[issue44894] HTTP request handler should check sys.stderr for None before use for logging

2021-08-12 Thread Xiaoling Bao
Xiaoling Bao added the comment: It looks https://bugs.python.org/issue43348 has the same root cause as this one. When running with pythonservice.exe or pythonw.exe, sys.stderr will be None and thus causing crash when logging messages (calling sys.stderr.write). -- type: -> behavior

[issue44885] Incorrect exception highlighting for fstring format

2021-08-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26222 pull_request: https://github.com/python/cpython/pull/27744 ___ Python tracker ___ ___

[issue44885] Incorrect exception highlighting for fstring format

2021-08-12 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- pull_requests: +26221 pull_request: https://github.com/python/cpython/pull/27743 ___ Python tracker ___ ___

[issue44885] Incorrect exception highlighting for fstring format

2021-08-12 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset 8e832fb2a2cb54d7262148b6ec15563dffb48d63 by Pablo Galindo Salgado in branch 'main': bpo-44885: Correct the ast locations of f-strings with format specs and repeated expressions (GH-27729) https://github.com/python/cpython/commit/8e832fb2

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: The direct answer is that you open an issue like you did, make an argument, as you did, and then submit a pull request. But we certainly do not need two redundant lists. The Othergui page has a link to https://wiki.python.org/moin/GuiProgramming which is no

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-12 Thread Zachary Ware
Zachary Ware added the comment: I don't have the bandwidth to do so at the moment, but am willing to review one :) -- keywords: +easy, newcomer friendly stage: -> needs patch type: -> enhancement ___ Python tracker

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread Simão Afonso
Change by Simão Afonso : -- nosy: +simao.afonso ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-12 Thread Zachary Ware
Zachary Ware added the comment: Frankly, we should probably just remove that page, or replace it with a generic "Many other GUI toolkits can be found on PyPI" message. -- nosy: +mdk, zach.ware versions: +Python 3.11 -Python 3.6, Python 3.7, Python 3.8

[issue44903] [Doc] How does one to about getting onto the "Other Graphical User Interface Packages" page?

2021-08-12 Thread PySimpleGUI
New submission from PySimpleGUI : Some time ago I noticed that the Python documentation has a list of GUI packages that are not part of the Python standard library. https://docs.python.org/3/library/othergui.html The title of the page I'm talking about says: Other Graphical User Interface Pac

[issue15533] subprocess.Popen(cwd) documentation: Posix vs Windows

2021-08-12 Thread ban
ban added the comment: >> "In particular, the function looks for executable (or for the >> first item in args) relative to cwd if the executable path is >> a relative path." > > For POSIX, this should be stated as a "relative path without a slash in > it" or a "relative path without a direct

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread Jack DeVries
Jack DeVries added the comment: Ok, that was no help... I'll just upload the diff. -- keywords: +patch Added file: https://bugs.python.org/file50211/os_x_to_macos_fix.diff ___ Python tracker

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: The problem disappears if I add a gc.collect() loop at the beginning of the new test: diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 79798ecf05..e0aeac9d10 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread Jack DeVries
Jack DeVries added the comment: I've done it. See the changes here: https://github.com/python/cpython/compare/main...jdevries3133:bpo-44902-macOS I'll hold off on a PR pending some feedback on whether this change is desirable. Also, I did not make changes to whatsnew documents, because they

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread Jack DeVries
Jack DeVries added the comment: oops, the link was mutilated... maybe this will help:: ```` -- ___ Python tracker _

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread Mark Roseman
Change by Mark Roseman : -- nosy: +lukasz.langa, terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: > I don't know why you need to kill it. It's not a long test. Ah I see, -F. -- ___ Python tracker ___

[issue42560] Improve Tkinter Documentation

2021-08-12 Thread Mark Roseman
Mark Roseman added the comment: Here are my broad suggestions for improvement (each of these would turn into a separate PR). Thoughts for/against each? 1. 'See also' section: use this to guide people to what they need. update to point out challenge of finding material given age etc., clearer

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread STINNER Victor
STINNER Victor added the comment: > I see it on Mac but not windows. Aha, maybe there is something specific on Mac which triggers an exact code path to trigger to bug. I already saw bugs like that. You can try to play with gc.set_threshold() to change how garbage collection is triggered. -

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: I don't know why you need to kill it. It's not a long test. -- ___ Python tracker ___ ___ Python-bu

[issue44901] Info about used pickle protocol used by multiprocessing.Queue

2021-08-12 Thread Eric V. Smith
Eric V. Smith added the comment: Because this is a usage question and not a bug, you'll get more help using the python-list mailing list or Stack Overflow, or some other Q&A forum. -- nosy: +eric.smith ___ Python tracker

[issue44890] Enable specialization stats collection when in Py_DEBUG

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: New changeset 789a6af29f531f78abd2e2f6af80084ccabf80b1 by Irit Katriel in branch 'main': bpo-44890: Fix AMD build error (GH-27740) https://github.com/python/cpython/commit/789a6af29f531f78abd2e2f6af80084ccabf80b1 -- __

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread STINNER Victor
STINNER Victor added the comment: > Victor, if the …cycle2 test is hanging then you need the change in PR27626. That's the commit d5c217475c4957a8084ac3f92ae012ece5edc7cb. My main branch is up to date (commit 8ac0886091c27bf4b6bb0a9b571e174b554d31a4), it includes the commit d5c217475c4957a808

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread STINNER Victor
STINNER Victor added the comment: I am not more lucky in the main branch. I ran it for 30 minutes and it didn't fail. $ ./python -m test -R 3:3 test_exceptions -m test_no_hang_on_context_chain_cycle2 -m test_recursion_normalizing_infinite_exception -m test_recursion_in_except_handler -m te

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: Victor, if the …cycle2 test is hanging then you need the change in PR27626. -- ___ Python tracker ___ __

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Irit Katriel
Irit Katriel added the comment: I see it on Mac but not windows. Running the test with -v or adding prints makes the leak go away. I’m suspecting that one of the recursion tests fails to clear an exception or something like that. Removing any one of the tests makes it stop failing.

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread STINNER Victor
STINNER Victor added the comment: I fail to reproduce the issue on Linux on the 3.10 branch. I interrupted the job after 20 minutes: $ ./python -m test -R 3:3 test_exceptions -m test_no_hang_on_context_chain_cycle2 -m test_recursion_normalizing_infinite_exception -m test_recursion_in_excep

[issue44902] [Doc] Changing 'Mac OS X'/'OS X' to 'macOS'

2021-08-12 Thread meowmeowcat
New submission from meowmeowcat : Changing 'Mac OS X'/'OS X' to 'macOS' in docs. https://www.python.org has already changed to 'macOS'. -- assignee: docs@python components: Documentation messages: 399448 nosy: docs@python, meowmeowmeowcat priority: normal severity: normal status: open

[issue44901] Info about used pickle protocol used by multiprocessing.Queue

2021-08-12 Thread Christian Buhtz
New submission from Christian Buhtz : I read some of the PEPs about pickeling. But I would not say that I understood everything. Of course I checked the docu about multiprocessing.Queue. Currently it is not clear for me which pickle protocol is used by multiprocessing.Queue. Maybe I missed so

[issue44900] Implement superinstructions

2021-08-12 Thread Mark Shannon
Change by Mark Shannon : -- keywords: +patch pull_requests: +26220 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27741 ___ Python tracker ___ ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-12 Thread Łukasz Langa
Łukasz Langa added the comment: This is now merged. Thanks for all input, everyone! ✨ 🍰 ✨ -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26228] pty.spawn hangs on FreeBSD 9.3, 10.x, 12.1

2021-08-12 Thread Łukasz Langa
Łukasz Langa added the comment: New changeset 5d34ad4e1943a88c9d3aadd300fd0f05dab7 by Miss Islington (bot) in branch '3.10': bpo-26228: Fix pty EOF handling (GH-12049) (GH-27732) https://github.com/python/cpython/commit/5d34ad4e1943a88c9d3aadd300fd0f05dab7 -- ___

[issue44890] Enable specialization stats collection when in Py_DEBUG

2021-08-12 Thread Irit Katriel
Change by Irit Katriel : -- pull_requests: +26219 pull_request: https://github.com/python/cpython/pull/27740 ___ Python tracker ___

[issue44900] Implement superinstructions

2021-08-12 Thread Mark Shannon
New submission from Mark Shannon : PEP 659 quickening provides a mechanism for replacing instructions. We should exploit this to implement superinstructions when quickening. See https://github.com/faster-cpython/ideas/issues/16 -- messages: 399444 nosy: Mark.Shannon priority: normal sev

[issue44899] tarfile: add support for creating an archive of potentially changing files

2021-08-12 Thread Marko Tuononen
New submission from Marko Tuononen : I have a use case where I need to create a tar archive from a collection of potentially changing files. I need to use system resources sparingly and because of that it is not possible to first make a copy of the files. Current state of the tarfile library:

[issue44890] Enable specialization stats collection when in Py_DEBUG

2021-08-12 Thread Irit Katriel
Change by Irit Katriel : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44890] Enable specialization stats collection when in Py_DEBUG

2021-08-12 Thread Mark Shannon
Mark Shannon added the comment: New changeset 8ac0886091c27bf4b6bb0a9b571e174b554d31a4 by Irit Katriel in branch 'main': bpo-44890: collect specialization stats if Py_DEBUG (GH-27731) https://github.com/python/cpython/commit/8ac0886091c27bf4b6bb0a9b571e174b554d31a4 -- nosy: +Mark.Sh

[issue44859] Improve some sqlite3 errors

2021-08-12 Thread Erlend E. Aasland
Erlend E. Aasland added the comment: > Also, for SQLite 3.7.17 and above, we should raise sqlite3.Warning for error > codes SQLITE_NOTICE and SQLITE_WARNING. Er, forget that. Neither are returned by any SQLite C interface, at the moment. They can (currently) only be used as the first argumen

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue44878] Clumsy dispatching on interpreter entry.

2021-08-12 Thread Mark Shannon
Change by Mark Shannon : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue44878] Clumsy dispatching on interpreter entry.

2021-08-12 Thread Mark Shannon
Mark Shannon added the comment: New changeset a530a9538f3f444bebd2d2b71fe5f2e747e76d73 by Mark Shannon in branch 'main': bpo-44878: Remove loop from interpreter. All dispatching is done by gotos. (GH-27727) https://github.com/python/cpython/commit/a530a9538f3f444bebd2d2b71fe5f2e747e76d73 -

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-12 Thread meowmeowcat
Change by meowmeowcat : -- nosy: +meowmeowmeowcat ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: Also, we need to know the version of Python and your OS. -- ___ Python tracker ___ ___ Python-bu

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-12 Thread Steven D'Aprano
Steven D'Aprano added the comment: How did you enter the Chinese characters? It works for me: >>> filename = 'Beijing 北京市' >>> with open(filename, 'w') as f: ... f.write('data') ... 4 >>> from pathlib import Path >>> p = Path(filename) >>> p.read_bytes() b'data' Please provide a *minima

[issue44881] Consider integration of PyObject_GC_UnTrack() with the trashcan C API

2021-08-12 Thread STINNER Victor
STINNER Victor added the comment: The problem of PyObject_GC_UnTrack() is just the most visible effect of the trashcan mecanism: tp_dealloc can be called twice, and this is *not* expected by the tp_dealloc API. Putting trashcan mecanism outside tp_dealloc can allow to make sure that tp_deal

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-12 Thread russiavk
russiavk added the comment: It give me error :FileNotFoundError [errno 2] No such file or directory -- ___ Python tracker ___ ___ P

[issue44898] Path.read_bytes() failed when path contains chinese character

2021-08-12 Thread russiavk
New submission from russiavk : Path.read_bytes() failed when this path contains chinese character -- components: IO messages: 399435 nosy: russiavk priority: normal severity: normal status: open title: Path.read_bytes() failed when path contains chinese character type: behavior ___

[issue44895] refleak test failure in test_exceptions

2021-08-12 Thread Dong-hee Na
Change by Dong-hee Na : -- nosy: +corona10 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho