[issue41010] email.message.EmailMessage.get_body

2021-08-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: This issue was fixed by https://github.com/python/cpython/pull/26903 (I confirmed that the error no longer happens with attached file). This can be closed as fixed. -- nosy: +andrei.avk ___ Python tracker

[issue44916] Random behaviour when importing two modules with the same name but different source files

2021-08-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: The importing from multiple threads is possibly also non-deterministic, but I'm not an expert on the importlib module. It looks to me like a another plausible source of random/arbitrary behaviour could be: 1. Within a single process, you have two threads

[issue44916] Random behaviour when importing two modules with the same name but different source files

2021-08-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: "Undefined behaviour" has a particular meaning to C programmers, which is relevant to Python because the interpreter is written in C. It's probably best not to use that term here. Let me see if I understand your issue. * You have two separate Python

[issue19352] unittest loader barfs on symlinks

2021-08-14 Thread Irit Katriel
Irit Katriel added the comment: > this affects python 2.7 only; -- nosy: +iritkatriel resolution: -> out of date status: open -> closed ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-14 Thread Irit Katriel
Irit Katriel added the comment: I created issue44917 for the recursion hang because it seems like it's really another bug. -- ___ Python tracker ___

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-14 Thread Irit Katriel
Irit Katriel added the comment: Perhaps the interpreter should detect that it is about to raise a RecusionError whose context is another RecursionError, and raise a FatalError instead? -- ___ Python tracker

[issue44917] interpreter hangs on recursion in both body and handler of a try block

2021-08-14 Thread Irit Katriel
New submission from Irit Katriel : This was found while investigating issue44895. It may or may not be the cause of that issue. The script below hangs on a mac (it's an extract from test_exceptions.test_recursion_in_except_handler). --- import sys count = 0 def main(): def f():

[issue41082] Error handling and documentation of Path.home()

2021-08-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: In current dev version (3.11), _PosixFlavor doesn't have gethomedir(), and instead os.path.expanduser() is used via _NormalAccessor(). So at least for the current dev version, the docs are accurate. -- nosy: +andrei.avk

[issue44862] [docs] make "Deprecated since version {deprecated}, will be removed in version {removed}" translation available

2021-08-14 Thread Éric Araujo
Éric Araujo added the comment: I checked and the directive was indeed made translatable in #32087 So like Terry said, this should be brought to the attention of the PT translation team. The strings seem to be translated (https://github.com/python/python-docs-pt-br/blob/3.10/sphinx.po#L46),

[issue44916] Undefined/random behaviour when importing two modules with the same name but different source files

2021-08-14 Thread George
New submission from George : Warning: There's a higher probability this is "expected" undefined behaviour or not even undefined and I'm just a moron. In addtion, I couldn't actually replicate it outside of the specific context it happened. But if it sounds plausible and it's something that

[issue44915] Python keywords as string keys in TypedDict

2021-08-14 Thread Doug Hoskisson
New submission from Doug Hoskisson : I'm running into an issue with the syntax of https://www.python.org/dev/peps/pep-0589/ ``` class C(TypedDict): to: int from: int SyntaxError: invalid syntax ``` I'm not sure any change needs to be made to the specification. But the

[issue44896] AttributeError in ast.unparse

2021-08-14 Thread Batuhan Taskaya
Change by Batuhan Taskaya : -- keywords: +patch pull_requests: +26245 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27770 ___ Python tracker ___

[issue37596] Reproducible pyc: frozenset is not serialized in a deterministic order

2021-08-14 Thread Filipe Laíns
Change by Filipe Laíns : -- keywords: +patch pull_requests: +26244 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27769 ___ Python tracker ___

[issue44914] tp_version_tag is not unique when test runs with -R :

2021-08-14 Thread Ken Jin
New submission from Ken Jin : tp_version_tag is supposed to be unique for different class objects. Under normal circumstances, everything works properly: def good(): class C: def __init__(self): # Just to force `tp_version_tag` to update pass cls_id = hex(id(C))

[issue44896] AttributeError in ast.unparse

2021-08-14 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: I don't think this is really an issue considering some other functionalities that consumes AST code (e.g `compile`) will expect it to be annotated with location metadata. This is why the `ast` module already comes bundled with a utility function called

[issue40899] Document exceptions raised by importlib.import

2021-08-14 Thread meowmeowcat
meowmeowcat added the comment: So.. maybe changing ``the module cannot be imported`` to ``the module is not found``? -- ___ Python tracker ___

[issue44913] segfault in call to embedded PyModule_New

2021-08-14 Thread Madhu
New submission from Madhu : Attached zip file has a test case which illustrate the problem: A python process (`dload.py') loads up a shared library (`libfoo1.so') and makes a call to a foreign function `foo'. `foo' Initializes Python and creates makes a call to PyModule_New at which point

[issue41102] ZipFile.namelist() does not match the actual files in .zip file

2021-08-14 Thread Andrei Kulakov
Andrei Kulakov added the comment: Xiaolong: The file no longer exists on the google drive. How big was the file? -- nosy: +andrei.avk ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-14 Thread Dong-hee Na
Dong-hee Na added the comment: GH-27767 is a tooling patch for extract dump easily. See cpython-1628938551.dump.gz for msg399588. -- ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-14 Thread Dong-hee Na
Change by Dong-hee Na : -- pull_requests: +26243 pull_request: https://github.com/python/cpython/pull/27767 ___ Python tracker ___

[issue44895] refleak test failure in test_exceptions

2021-08-14 Thread Dong-hee Na
Dong-hee Na added the comment: Here is the dump I extracted. 0:00:00 load avg: 2.89 Run tests sequentially 0:00:00 load avg: 2.89 [1/1] test_exceptions beginning 6 repetitions 123456 .. test_exceptions leaked [6, 6, 6] references, sum=18 test_exceptions leaked [6, 6, 6] memory blocks,

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

2021-08-14 Thread Steven D'Aprano
Steven D'Aprano added the comment: You're still not giving a reproducible example. The PyPy people will be unable to resolve this unless you give them a reproducable example. 'D:/somepath contains chinese character' is not a path with Chinese characters in it. If you refuse to give enough

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

2021-08-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: pypy is a separate group of people and tracker. cpython 3.7 only gets security patches. -- resolution: -> third party stage: -> resolved status: open -> closed ___ Python tracker

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

2021-08-14 Thread russiavk
russiavk added the comment: Sorry.I found it only happen in pypy3 My os is win10 64,and pypy version is "PyPy 7.3.6-alpha0 with MSC v.1929 64 bit" File "C:\Program Files\pypy-c-jit-102746-9515a976b2ea-win64\lib-python\3\pathlib.py", line 1229, in read_bytes with self.open(mode='rb')

[issue40899] Document exceptions raised by importlib.import

2021-08-14 Thread meowmeowcat
Change by meowmeowcat : -- type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue44912] doc: macOS supports os.fsync(fd)

2021-08-14 Thread Ma Lin
Ma Lin added the comment: Unix includes macOS. Very sorry, close as invalid. -- stage: -> resolved status: open -> closed ___ Python tracker ___