[issue40001] ignore errors in SimpleCookie

2020-03-18 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch nosy: +python-dev nosy_count: 1.0 -> 2.0 pull_requests: +18410 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19058 ___ Python tracker

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Bar Harel
Change by Bar Harel : -- pull_requests: +18412 pull_request: https://github.com/python/cpython/pull/19059 ___ Python tracker ___

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Bar Harel
New submission from Bar Harel : ATM loading cookies is inconsistent. If you encounter an invalid cookie, BaseCookie.load will sometimes raise CookieError and sometimes silently ignore the load: from http.cookies import SimpleCookie s = SimpleCookie() s.load("invalid\x00=cookie") # Silently

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: > I may be mistaken, but I do not think the change introduced a regression. I'm talking about this: https://bugs.python.org/issue39991#msg364435 I don't want to blame anyone. My intent here is to get more eyes on the changes that I merged in bpo-39991 to

[issue39879] Update language reference to specify that dict is insertion-ordered.

2020-03-18 Thread Lahfa Samy
Lahfa Samy added the comment: Thank you for your quick work, I have successfully merged your changes in the branch of the first PR, now awaiting review from Zachary. -- ___ Python tracker

[issue39979] Cannot tune scrypt with large enough parameters

2020-03-18 Thread Christian Heimes
Christian Heimes added the comment: PS: You are getting a different output because you are feeding a different input to hashlib.scrypt(). The first parameter is the password, not password + salt. -- ___ Python tracker

[issue17023] Subprocess does not find executable on Windows if it is PATH with quotes

2020-03-18 Thread Eryk Sun
Eryk Sun added the comment: Why are new versions getting added to an issue that was closed 5 years ago? That said, I'd like to clarify that this was not and is not a bug. It happens that the CMD shell strips quotes out, but that doesn't make it valid. PATH in Windows is delimited by

[issue40001] ignore errors in SimpleCookie

2020-03-18 Thread Aviram
New submission from Aviram : SimpleCookie (http/cookies.py) load method fails if one of the has an issue. In real life scenarios, we want to be tolerant toward faulty cookies, and just ignore those. My suggestion is to add ignore_errors keyword argument to the load method of SimpleCookie,

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Aviram
Change by Aviram : -- keywords: +patch nosy: +aviramha nosy_count: 1.0 -> 2.0 pull_requests: +18411 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19058 ___ Python tracker

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 4657a8a0d006c76699ba3d1d4d21a04860bb2586 by Dong-hee Na in branch 'master': bpo-1635741: Port _heapq module to multiphase initialization (GH19057) https://github.com/python/cpython/commit/4657a8a0d006c76699ba3d1d4d21a04860bb2586 --

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread Michael Felt
Michael Felt added the comment: I'll take a look as well. On 17/03/2020 16:14, STINNER Victor wrote: > STINNER Victor added the comment: > >> New changeset 0bcbfa43d55d9558cdcb256d8998366281322080 by Tal Einat (Michael >> Felt) in branch 'master': >> bpo-28009: Fix uuid.uuid1() and

[issue39979] Cannot tune scrypt with large enough parameters

2020-03-18 Thread Gle
Gle added the comment: Alright, I understand the difference in behaviour now. Thanks a lot for the clear explanation ! Would be nice to have something like: """maxmem must be greater than (n * 2 * r * 64) plus a bit of internal memory for OpenSSL book keeping. Basically, set maxmem =

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread Michael Felt
Michael Felt added the comment: I may be mistaken, but I do not think the change introduced a regression. While it is true that this case would not have appeared if there was still a count of the field-separators an IPv6 address with 5 ':' and 17 characters would have failed as well. The

[issue35691] cpython3.7.2 make test failed

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: Oops, I mean: bpo-27807 "Prevent site-packages .pth files from causing test_site failure". -- superseder: macOS 12 poll syscall returns prematurely -> Prevent site-packages .pth files from causing test_site failure

[issue27807] Prevent site-packages .pth files from causing test_site failure

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: I marked bpo-35691 as a duplicate of this issue. -- ___ Python tracker ___ ___ Python-bugs-list

[issue40000] Improve AST validation for Constant nodes

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: Congratulations Batuhan! You win with the bug number 4! A nice number ;-) To be honest, I wanted to get it, but I didn't want to cheat by opening a stupid issue. -- nosy: +vstinner ___ Python tracker

[issue40004] String comparison with dotted numerical values wrong

2020-03-18 Thread Guido van Rossum
Guido van Rossum added the comment: That's why for over a decade we've been recommending not to use string comparisons to compare versions. You have to parse the version and then compare the numeric values. -- resolution: -> not a bug stage: -> resolved status: open -> closed

[issue22858] unittest.__init__:main shadows unittest.main

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18415 stage: test needed -> patch review pull_request: https://github.com/python/cpython/pull/19061 ___ Python tracker

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18414 pull_request: https://github.com/python/cpython/pull/19061 ___ Python tracker ___

[issue39984] Move some ceval fields from _PyRuntime.ceval to PyInterpreterState.ceval

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8849e5962ba481d5d414b3467a256aba2134b4da by Victor Stinner in branch 'master': bpo-39984: trip_signal() uses PyGILState_GetThisThreadState() (GH-19061) https://github.com/python/cpython/commit/8849e5962ba481d5d414b3467a256aba2134b4da

[issue21242] Generalize configure check for working Python executable

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: `make regen-all` has probably taken care of this. -- ___ Python tracker ___ ___ Python-bugs-list

[issue21243] Auto-generate exceptions.c from a Python file

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.9 -Python 3.6 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21199] [2.7] Python on 64-bit Windows uses signed 32-bit type for read length

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: Python 3 doesn't have this issue. Python 2 no longer accepts bugfixes. I close the issue. Note: there was a similar issue specific to macOS: bpo-24658 and PR 9938 (closed since Python 2 moved to end of life). -- resolution: -> wont fix stage:

[issue20439] inspect.Signature: Add Signature.format method to match formatargspec functionality

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20341] Argument Clinic: add "nullable ints"

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20461] Argument Clinic included return converters hard code use of ``_return_value``

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21078] multiprocessing.managers.BaseManager.__init__'s "serializer" argument is not documented

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20459] No Argument Clinic documentation on how to specify a return converter

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20360] inspect.Signature could provide readable expressions for default values for builtins

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35691] cpython3.7.2 make test failed

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: It's likely a duplicate of bpo-28087. -- nosy: +vstinner resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> macOS 12 poll syscall returns prematurely ___ Python tracker

[issue39980] importlib.resources.path() may return incorrect path when using custom loader

2020-03-18 Thread Krzysztof Rusek
Krzysztof Rusek added the comment: I can confirm that this problem doesn't occur when using recent version of importlib_resources (checked importlib_resources==1.3.1). -- ___ Python tracker

[issue40004] String comparison with dotted numerical values wrong

2020-03-18 Thread Guido van Rossum
Guido van Rossum added the comment: That's a question for a user forum. There's some code in Lib/distutils/version.py. -- ___ Python tracker ___

[issue21550] Add Python implementation of the tar utility

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20125] We need a good replacement for direct use of load_module(), post-PEP 451

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: I don't think this is still needed as the importlib docs now has enough examples to show people how to get to get similar results with a few method calls. -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed

[issue20205] inspect.getsource(), P302 loader and '<..>' filenames

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20123] pydoc.synopsis fails to load binary modules

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20131] warnings module offers no documented, programmatic way to reset "seen-warning" flag

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20613] Wrong line information in bytecode generated by compiler module

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: Since 2.7 development is done there is no compiler packages anymore to worry about. :) -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue20899] Nested namespace imports do not work inside zip archives

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +18413 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19060 ___ Python tracker ___

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- title: Prevent site-packages .pth files from causing test_site failure -> Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure ___ Python tracker

[issue28087] macOS 12 poll syscall returns prematurely

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: No update since 2017, I close the issue. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker

[issue40003] test.regrtest: add an option to run test.bisect_cmd on failed tests, use it on Refleaks buildbots

2020-03-18 Thread STINNER Victor
New submission from STINNER Victor : There are some tests which fail randomly in general, but fail in a deterministic way on some specific buildbot workers. bpo-39932 is a good example: test_multiprocessing_fork fails with "test_multiprocessing_fork leaked [0, 2, 0] file descriptors". The

[issue27807] Prevent site-packages .pth files from causing test_site failure: test_site.test_startup_imports() failure

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset d18de46117d661a4acaf2380cc5ebb1cf6a000e9 by Victor Stinner in branch 'master': bpo-27807: Skip test_site.test_startup_imports() if pth file (GH-19060) https://github.com/python/cpython/commit/d18de46117d661a4acaf2380cc5ebb1cf6a000e9

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: Same bug on AMD64 FreeBSD Non-Debug 3.x: https://buildbot.python.org/all/#/builders/214/builds/472 == ERROR: test_crash (test.test_concurrent_futures.ProcessPoolSpawnExecutorDeadlockTest)

[issue20986] test_startup_imports fails in test_site when executed inside venv

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: I close the issue. This bug has no activity for 6 years and was reported on Python 3.4, whereas the development branch is now the future Python 3.9. If you can still reproduce the issue, please reopen the issue or open a new issue (add a reference to this

[issue27807] Prevent site-packages .pth files from causing test_site failure

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: Fedora and RHEL downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1814392 -- nosy: +vstinner ___ Python tracker ___

[issue21724] resetwarnings doesn't reset warnings registry

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21737] runpy.run_path() fails with frozen __main__ modules

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21736] Add __file__ attribute to frozen modules

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Bar Harel
Bar Harel added the comment: The only issue I fear is breakage if people count on it silently ignoring errors. But then again it's inconsistent, and sometimes it will throw errors either way, so I still believe this issue should be addressed. --

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread Stefan Krah
Stefan Krah added the comment: Since xlc has elementary bugs like https://github.com/openssl/openssl/issues/10624 it may be worth checking out if this is an optimizer bug with -q64. -- ___ Python tracker

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: > pending->finishing was addd in bpo-33608 by the change: commit > 842a2f07f2f08a935ef470bfdaeef40f87490cfc Since this change, Py_AddPendingCall() now requires the thread to have a Python thread state: it is used if pending->finishing is non-zero. The

[issue20506] Command to display all available Import Library

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20506] Command to display all available Import Library

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: When a replacement for pkgutil.walk_packages() is added to importlib to work appropriately with the import system then this should be doable. See https://bugs.python.org/issue19939 for work to replace pkgutil as appropriate. --

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: > I will look closely at PR19045 - not because I expect to find anything wrong, > but because I thought this is what you requested. I cannot run functional tests on AIX. I can only rely on unit tests which contains a dump of AIX commands. That's why a

[issue22543] -W option cannot use non-standard categories

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22246] add strptime(s, '%s')

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22014] Improve display of OS exception <-> errno mapping

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: Is this still important now that OSError has so many subclasses that correspond to specific error codes? -- ___ Python tracker ___

[issue40000] Improve AST validation for Constant nodes

2020-03-18 Thread Batuhan Taskaya
Batuhan Taskaya added the comment: sorry to take it Victor, maybe you can get the perfect issue number when we migrate to github? -- ___ Python tracker ___

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread Michael Felt
Michael Felt added the comment: On 18/03/2020 13:55, STINNER Victor wrote: > STINNER Victor added the comment: > >> I may be mistaken, but I do not think the change introduced a regression. I meant - I had never considered IPv6 in the Address column, just as I suspect, whoever wrote the

[issue40004] String comparison with dotted numerical values wrong

2020-03-18 Thread Boštjan Mejak
New submission from Boštjan Mejak : I stumbled upon a possible bug in the Python interpreter while doing some Python version comparisons. Look at this: "3.10.2" < "3.8.2" True # This is not true as a version number comparison Now look at this: "3.10.2" < "3.08.2" False # Adding a leading 0

[issue37207] Use PEP 590 vectorcall to speed up calls to range(), list() and dict()

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1c60567b9a4c8f77e730de9d22690d8e68d7e5f6 by Dong-hee Na in branch 'master': bpo-37207: Use PEP 590 vectorcall to speed up frozenset() (GH-19053) https://github.com/python/cpython/commit/1c60567b9a4c8f77e730de9d22690d8e68d7e5f6 --

[issue22789] Compress the marshalled data in PYC files

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21760] inspect documentation describes module type inaccurately

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21199] Python on 64-bit Windows uses signed 32-bit type for read length

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: My notes on Python finalization: https://pythondev.readthedocs.io/finalization.html -- ___ Python tracker ___

[issue21577] Help for ImportError should show a more useful signature.

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- versions: +Python 3.9 -Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue21614] Case sensitivity problem in multiprocessing.

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: trip_signal() has another problem. If pending->finishing is non-zero, _PyEval_AddPendingCall() uses the C API whereas the current thread may not hold the GIL. That's forbidden by the C API. The more I think about it, the more I think that pending->finishing

[issue37127] Handling pending calls during runtime finalization may cause problems.

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: New changeset 8849e5962ba481d5d414b3467a256aba2134b4da by Victor Stinner in branch 'master': bpo-39984: trip_signal() uses PyGILState_GetThisThreadState() (GH-19061) https://github.com/python/cpython/commit/8849e5962ba481d5d414b3467a256aba2134b4da

[issue21459] DragonFlyBSD support

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21108] Add examples for importlib in doc

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: There are now examples in the importlib docs. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___

[issue21249] removing pythonXY.zip from sys.path results in additional test failures

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- nosy: -brett.cannon ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21242] Generalize configure check for working Python executable

2020-03-18 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> out of date stage: needs patch -> resolved status: open -> closed ___ Python tracker ___

[issue40004] String comparison with dotted numerical values wrong

2020-03-18 Thread Boštjan Mejak
Boštjan Mejak added the comment: What is then the most Pythonic way of comparing two version numbers? -- ___ Python tracker ___ ___

[issue39995] test_concurrent_futures: ProcessPoolSpawnExecutorDeadlockTest.test_crash() fails with OSError: [Errno 9] Bad file descriptor

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: > Same bug on AMD64 FreeBSD Non-Debug 3.x: > https://buildbot.python.org/all/#/builders/214/builds/472 Oh, test_crash failed twice, but not on the same test case: * ERROR: test_crash (test.test_concurrent_futures.ProcessPoolSpawnExecutorDeadlockTest) [crash

[issue39980] importlib.resources.path() may return incorrect path when using custom loader

2020-03-18 Thread Jason R. Coombs
Jason R. Coombs added the comment: How's that for service ;) Glad to hear it worked. I'm going to close this as won't fix (as it was reported against 3.7 and 3.8 and changing it for them would be backward-incompatible, even if more correct). Please report back if that outcome is

[issue39980] importlib.resources.path() may return incorrect path when using custom loader

2020-03-18 Thread Jason R. Coombs
Change by Jason R. Coombs : -- resolution: -> wont fix stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue39917] new_compiler() called 2nd time causes error

2020-03-18 Thread Todd Levi
Todd Levi added the comment: In looking through the setup.py file for uvloop, I see that they purposely do not call super().initialize_options() or super().finalize_options() in their code if they've already been called once. I think that is why their code is revealing this problem - the

[issue40008] Spam

2020-03-18 Thread Zachary Ware
Change by Zachary Ware : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue22699] Module source files not found when cross-compiling

2020-03-18 Thread Steve Dower
Steve Dower added the comment: Trimmed a bit from setup.py here, but I think this is the cause: def build_extensions(self): self.srcdir = sysconfig.get_config_var('srcdir') self.srcdir = os.path.abspath(self.srcdir) [SNIP] # Fix up the autodetected

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New changeset d112c600ab3f5e2910345bcc4bfc39439917ed87 by Pablo Galindo in branch 'master': bpo-39220: Do not optimise annotation if 'from __future__ import annotations' is used (GH-17866)

[issue22699] Module source files not found when cross-compiling

2020-03-18 Thread Steve Dower
Steve Dower added the comment: Perhaps sysconfig needs an overhaul to be able to handle _PYTHON_PROJECT_BASE properly? I see so many values in there that are taken from the running interpreter (sys.prefix, for example) that ought to come from the cross-compilation target. Wouldn't surprise

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

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

[issue39220] constant folding affects annotations despite 'from __future__ import annotations'

2020-03-18 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- versions: +Python 3.9 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will try to investigate that but it think this is because without OBJECT_MODE=64 the value of decimal.MAX_PREC is much lower (42500 instead 99) so whatever is happening downstream with the higher does not happen with the lower

[issue39576] Surprising MemoryError in `decimal` with MAX_PREC

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- nosy: +vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21087] imp.frozen_init() incorrectly removes module during reload

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: No one has cared in nearly 6 years, so I'm closing as "won't fix". :) -- resolution: -> wont fix stage: test needed -> resolved status: open -> closed ___ Python tracker

[issue40002] Cookie load error inconsistency

2020-03-18 Thread Bar Harel
Bar Harel added the comment: For reference, docs already state: "On encountering an invalid cookie, CookieError is raised, so if your cookie data comes from a browser you should always prepare for invalid data and catch CookieError on parsing." --

[issue20890] Miscellaneous PEP 101 additions

2020-03-18 Thread Brett Cannon
Brett Cannon added the comment: These parts of the devguide don't seem to exist anymore, so I'm closing as outdated. -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker

[issue28009] Fix uuid.uuid1() core logic of uuid.getnode() needs refresh

2020-03-18 Thread Tal Einat
Tal Einat added the comment: Your fix LGTM, Victor. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-18 Thread STINNER Victor
STINNER Victor added the comment: This issue became a blocker issue while working on bpo-39984, when I tried to move pending calls from _PyRuntimeState to PyInterpreterState. I wrote PR 19063 to deny calling Py_FinalizeEx() from a subinterpreter. Eric: > On the other hand, if the "main"

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Eric V. Smith
Eric V. Smith added the comment: Note that 2.7 is no longer supported. If you think you found a bug in 3.7, then please: - Reformat your code so that we can understand it. - Show us what output you actually get. - Show us what output you expect, and why. -- nosy: +eric.smith

[issue40005] Getting different result in python 2.7 and 3.7.

2020-03-18 Thread Bharat Solanki
Bharat Solanki added the comment: When you run this test.py in 2.7. you will get output (10 11 20), But in 3.7, Its getting failed. Its showing below error: "Traceback (most recent call last): File "test.py", line 14, in function process_pool.map(add, l1, 1) File "C:\Users\Bharat

[issue28686] py.exe ignored PATH when using python3 shebang

2020-03-18 Thread Riccardo Polignieri
Riccardo Polignieri added the comment: Three years later, this problem seems on the way to fix itself (https://xkcd.com/1822/). Versioned shebangs (and versioned "/env" shebangs) used to be a more prominent issue when you needed a way to tell Python 2 / Python 3 scripts apart. With the

[issue38865] Can Py_Finalize() be called if the current interpreter is not the main interpreter?

2020-03-18 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +18417 stage: -> patch review pull_request: https://github.com/python/cpython/pull/19063 ___ Python tracker ___

[issue40009] Best Mac Cleaner Apps to Optimize and Speed up your Mac

2020-03-18 Thread Jack Reigns
New submission from Jack Reigns : Mac Optimizer Pro's simple drag and drop functionality makes it the best program to clean up Mac. Apart from this, you can also select an app and view its detailed information so that you know what is hogging up your device’s space. Moreover, it lets you

[issue40006] enum: Add documentation for _create_pseudo_member_ and composite members

2020-03-18 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +barry, eli.bendersky, ethan.furman ___ Python tracker ___ ___ Python-bugs-list

  1   2   >