[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 2e869a8f8280b5c786b3fde1f990e13927625e7a by Benjamin Peterson in branch '2.7': closes bpo-35340: Add freegrammar to pgenheaders.h. (GH-10788) https://github.com/python/cpython/commit/2e869a8f8280b5c786b3fde1f990e13927625e7a --

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Benjamin Peterson
Change by Benjamin Peterson : -- keywords: +patch pull_requests: +10034 stage: -> patch review ___ Python tracker ___ ___

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It was added in issue27780. -- nosy: +benjamin.peterson, serhiy.storchaka ___ Python tracker ___

[issue35334] urllib3 fails with type error exception, when cannot reach PyPI - urllib3.util.retry

2018-11-28 Thread Arno-Can Uestuensoez
Arno-Can Uestuensoez added the comment: In order to avoid further confusion (github: #1486): > This is the wrong bug tracker for urllib3. The urllib3 package is not part of > Python's standard library. => OK. # As xtreak pointed out, it's not even a bug in urllib3 or pip. Debian ships a

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Steven D'Aprano
Steven D'Aprano added the comment: What "freegrammar" symbol are you referring to? Why should it be made static or renamed? 2.7 is something like a decade old now, why do you describe this as a new symbol? -- nosy: +steven.daprano ___ Python

[issue35339] Populating instances of class automatically

2018-11-28 Thread Steven D'Aprano
Change by Steven D'Aprano : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___ ___

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2018-11-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I guess this can be closed as out of date since the function was removed with https://github.com/python/cpython/pull/10787/. cc: Victor -- nosy: +vstinner resolution: -> out of date stage: -> resolved status: open -> closed

[issue16086] tp_flags: Undefined behaviour with 32 bits long

2018-11-28 Thread Eddie Elizondo
Change by Eddie Elizondo : -- pull_requests: +10032 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35341] Add generic version of OrderedDict to typing module

2018-11-28 Thread Guido van Rossum
Guido van Rossum added the comment: Given that this is in collections, I don't object. Ivan, what do you say? -- ___ Python tracker ___

[issue35341] Add generic version of OrderedDict to typing module

2018-11-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +gvanrossum, levkivskyi ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue28167] remove platform.linux_distribution()

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 7cc1fa40b76de34a0fe86162667c87ce7a18f33d by Victor Stinner in branch 'master': bpo-28167: Remove platform._dist_try_harder() (GH-10787) https://github.com/python/cpython/commit/7cc1fa40b76de34a0fe86162667c87ce7a18f33d --

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > I’m not against changing this, but would like an implementation that returns > consistent information: either return “macOS” and the macOS version, or > “Darwin” and the kernel version. See my PR 10780. It returns "macOS-10.13.6-x86_64" (macOS + macOS

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: I should have been clearer in my previous post. I’m not against changing this, but would like an implementation that returns consistent information: either return “macOS” and the macOS version, or “Darwin” and the kernel version. IIRC there is, or used to

[issue28167] remove platform.linux_distribution()

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10031 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35346] Modernize Lib/platform.py code

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10030 stage: -> patch review ___ Python tracker ___ ___

[issue35346] Modernize Lib/platform.py code

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : Lib/platform.py still contains code to support Python 2.3. It's maybe time to modernize it. platform imports subprocess since commit fc990e942fb55be78e8352f4913749e91cac381d. The two calls to os.popen() can now be replaced with subprocess.Popen.

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-11-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I did not backport this still because the code is very different and it required more time to understand how it works on 2.7. I do not have access currently to koobs buildbot (the IP has changed) so I cannot check if that works :( --

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > I will investigate with MacOS Mojave this week. Ok, so I leave the issue open. -- ___ Python tracker ___

[issue34521] Multiple tests (test_socket, test_multiprocessing_*) fail due to incorrect recvmsg(2) buffer lengths, causing failures on FreeBSD CURRENT

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > Is test_socket of Python 2.7 affected by the issue? If not, I suggest to > remove 2.7 from this issue and close it. Some "FD transfer" tests of test_multiprocessing still fail on AMD64 FreeBSD CURRENT Shared 2.7:

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 833a7067a4d5621d024511d9166db7331c4650c9 by Miss Islington (bot) in branch '3.6': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/833a7067a4d5621d024511d9166db7331c4650c9 --

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 833a7067a4d5621d024511d9166db7331c4650c9 by Miss Islington (bot) in branch '3.6': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/833a7067a4d5621d024511d9166db7331c4650c9 --

[issue35136] test_ssl fails in AMD64 FreeBSD CURRENT Shared 3.6 buildbot

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > I'm trying to figure out the exact OpenSSL version. It used to be part of > pythoninfo step. Did you click on "view all 165 lines"? I like to click on [download] to open the output in my text editor (gvim). ssl info from pythoninfo: ssl.HAS_SNI: True

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 2fa5b2ac4485c5c9083b4b0459dd9b691daaea28 by Miss Islington (bot) in branch '3.7': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/2fa5b2ac4485c5c9083b4b0459dd9b691daaea28 -- nosy:

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 2fa5b2ac4485c5c9083b4b0459dd9b691daaea28 by Miss Islington (bot) in branch '3.7': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/2fa5b2ac4485c5c9083b4b0459dd9b691daaea28 -- nosy:

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2018-11-28 Thread Tim Bell
Tim Bell added the comment: I've addressed the points in the last few comments and created a new PR (10783). -- ___ Python tracker ___

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > I’ve filed an issue in the past to change the platform name to “macosx”, but > there were good arguments to not change the behavior at the time. The > existence of iOS might change that though. I'm not sure that we are talking about the same thing. I'm

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10027 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10029 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2956bffbc00127af65f69e04d7979021a21d1288 by Victor Stinner in branch 'master': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/2956bffbc00127af65f69e04d7979021a21d1288 --

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10026 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10028 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > Why do you want to change this? I created this issue after I read this comment: > https://bugs.python.org/issue35316#msg330633 > I will investigate with MacOS Mojave this week. "Mojave" seems to be the new thing, but I don't recall if my macbook is running

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 2956bffbc00127af65f69e04d7979021a21d1288 by Victor Stinner in branch 'master': bpo-35189, bpo-35316: Make test_eintr less strict (GH-10782) https://github.com/python/cpython/commit/2956bffbc00127af65f69e04d7979021a21d1288 --

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2018-11-28 Thread Tim Bell
Change by Tim Bell : -- keywords: +patch pull_requests: +10025 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34977] Release Windows Store app containing Python

2018-11-28 Thread Steve Dower
Steve Dower added the comment: Updated testing instructions - this one should work with just sideloading permissions I think. iwr "https://dev.azure.com/Python/8e426817-76c0-4b99-ba9e-a48a1e4bd5db/_apis/build/builds/34760/artifacts?artifactName=appx=5.0-preview.5&%24format=zip; -outfile

[issue14614] PyTuple_SET_ITEM could check bounds in debug mode

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: Oh, I didn't know this old issue (6 years old). I wrote an implementation of this issue for PyTuple_GET_ITEM/SET_ITEM: bpo-35337. Would you mind to have a look? It seems to be backward incompatible when these macros are misused on structseq. --

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread Ronald Oussoren
Ronald Oussoren added the comment: Why do you want to change this? The current behavior is consistent with the platform name (Darwin). I’ve filed an issue in the past to change the platform name to “macosx”, but there were good arguments to not change the behavior at the time. The existence

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10024 stage: -> patch review ___ Python tracker ___ ___

[issue35189] PEP 475: fnctl functions are not retried if interrupted by a signal (EINTR)

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10023 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: > New changeset 24b51b1a4919e310d338629cc60371387f475a32 by Miss Islington > (bot) in branch '3.7': With this change, only 3 tests fail on 3.7, and all these 3 fail because of zipimport: test_cmd_line_script, test_multiprocessing_main_handling and

[issue35345] Remove platform.popen(), deprecated since Python 3.3

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10022 stage: -> patch review ___ Python tracker ___ ___

[issue35345] Remove platform.popen(), deprecated since Python 3.3

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : platform.popen() is deprecated since Python 3.3: bpo-11377. Calling the function emits a DeprecationWarning and the function is documented as being deprecated. The function is documented in the "Win95/98 specific":

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +10021 stage: -> patch review ___ Python tracker ___ ___

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-11-28 Thread Zackery Spytz
Zackery Spytz added the comment: See also #14614. -- nosy: +ZackerySpytz ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: It seems like platform.mac_ver() can return None if plistlist is not available. platform.platform() can maybe try mac_ver(), but fallback on uname() if it's not available/working? -- It seems like getting the macOS version without plistlib is not easy:

[issue35344] platform: get macOS version rather than darwin version?

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : Would it be possible to get the macOS version (platform.mac_ver()) rather than the darwin version (uname()) for platform.platform()? As an user, I prefer the OS (macOS) version rather than the kernel (darwin) version. Current output $ ./python.exe -m

[issue33930] Segfault with deep recursion into object().__dir__

2018-11-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: > Can someone please explain me why this change has any impact? Does it mean > that _PyObject_GC_UNTRACK() macro has a bug? Interestingly, this lonely and perplexing comment is left in PyObject_GC_UnTrack (the function): void

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: I'm unable to reproduce the issue using "./python.exe Lib/test/eintrdata/eintr_tester.py -v SelectEINTRTest.test_select" on macOS 10.13.6. -- ___ Python tracker

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- assignee: -> pablogsal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: I will investigate with MacOS Mojave this week. -- ___ Python tracker ___ ___

[issue35316] test_eintr fails randomly on macOS

2018-11-28 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: Some buildbots failing with this problem: https://buildbot.python.org/all/#/builders/145/builds/849 -- ___ Python tracker ___

[issue35343] Importlib.reload has different behaviour in script and interactive mode

2018-11-28 Thread Owen Pembery
Change by Owen Pembery : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35343] Importlib.reload has different behaviour in script and interactive mode

2018-11-28 Thread Owen Pembery
New submission from Owen Pembery : This may be a bug, or may be a hole in my understanding of how importlib.reload works. In short, when running importlib.reload in a script, it seems that a module is not reloaded before it is used, whereas running the same script a line at a time in

[issue35339] Populating instances of class automatically

2018-11-28 Thread Daugeras
Daugeras added the comment: Hi Geoffrey, Indeed you where right, this is not a bug. The link you provided did solve my problem. I declared classes with attributes as strings, lists, etc... and indeed it was the reason for the issue. I changed it to instantiate the attributes in the __init__

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: I removed the "busy loop" tests from 3.7 and master. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue30681] email.utils.parsedate_to_datetime() should return None when date cannot be parsed

2018-11-28 Thread R. David Murray
R. David Murray added the comment: Reported again in issue #35342. The existing PR is close to complete, but needs adjusted for the fact that we want (and want to document) that the utility raises errors (ie: catch the error in the header parser rather than having the utility return None).

[issue35342] email "default" policy raises exception iterating over unparseable date headers

2018-11-28 Thread R. David Murray
R. David Murray added the comment: This is effectively a duplicate of #30681, which has a solution, although it is not yet in final form per the last couple of comments on the issue and the PR. -- resolution: -> duplicate stage: -> resolved superseder: ->

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-11-28 Thread Pierre Quentel
Pierre Quentel added the comment: I have submitted another Pull Request (10771) that seems to fix the bug while passing all the tests in test_cgi.py -- nosy: +quentel ___ Python tracker

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset d46d753d152a5d01f9c454d18b1ae660509d9b16 by Miss Islington (bot) in branch '3.7': bpo-33723: Remove busy loop from test_time (GH-10773) https://github.com/python/cpython/commit/d46d753d152a5d01f9c454d18b1ae660509d9b16 --

[issue24412] setUpClass equivalent for addCleanup

2018-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: /home/serhiy/py/cpython/Lib/unittest/test/test_runner.py:259: DeprecationWarning: Please use assertEqual instead. self.assertEquals(e, 'cleanup1') -- ___ Python tracker

[issue35342] email "default" policy raises exception iterating over unparseable date headers

2018-11-28 Thread Richard Brooksby
Change by Richard Brooksby : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 24b51b1a4919e310d338629cc60371387f475a32 by Miss Islington (bot) in branch '3.7': bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)

[issue29708] support reproducible Python builds

2018-11-28 Thread miss-islington
miss-islington added the comment: New changeset 24b51b1a4919e310d338629cc60371387f475a32 by Miss Islington (bot) in branch '3.7': bpo-34022: Stop forcing of hash-based invalidation with SOURCE_DATE_EPOCH (GH-9607)

[issue35342] email "default" policy raises exception iterating over unparseable date headers

2018-11-28 Thread Richard Brooksby
Change by Richard Brooksby : -- versions: +Python 3.6 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35342] email "default" policy raises exception iterating over unparseable date headers

2018-11-28 Thread Richard Brooksby
New submission from Richard Brooksby : It is not possible to loop over the headers of a message with an unparseable date field using the "default" policy. This means that a poison email can break email processing. I expect to be able to process an email with an unparseable date field using

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10020 stage: resolved -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 48498dd57f79ab1d061c754ad6a2ebe1a7172b0e by Victor Stinner in branch 'master': bpo-33723: Remove busy loop from test_time (GH-10773) https://github.com/python/cpython/commit/48498dd57f79ab1d061c754ad6a2ebe1a7172b0e --

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: test_compileall, test_importlib, test_py_compile: I created https://github.com/python/cpython/pull/10775 backport. test_cmd_line_script, test_runpy and test_multiprocessing_main_handling failures are related to zipimport. They have been fixed in master by

[issue35326] ctypes cast and from_address cause crash on Windows 10

2018-11-28 Thread Mordechai Botrashvily
Mordechai Botrashvily added the comment: Eryk, thanks :). This really solved the problem. Odd how it went unnoticed. -- ___ Python tracker ___

[issue34921] NoReturn not allowed by get_type_hints when future import annotations is used

2018-11-28 Thread Ivan Levkivskyi
Ivan Levkivskyi added the comment: New changeset f71a5922916abd6cc7bf7d99ed4715b6e96e5981 by Ivan Levkivskyi (Ismo Toijala) in branch '3.7': bpo-34921: Allow escaped NoReturn in get_type_hints (GH-9750) (GH-10772)

[issue29708] support reproducible Python builds

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10019 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34022] 6 tests fail using SOURCE_DATE_EPOCH env var

2018-11-28 Thread miss-islington
Change by miss-islington : -- pull_requests: +10018 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35341] Add generic version of OrderedDict to typing module

2018-11-28 Thread Ismo Toijala
New submission from Ismo Toijala : The other collections from the collections module (namedtuple, deque, ChainMap, Counter, defaultdict) have generic versions in the typing module for use in type annotations. The problem is currently the following: from __future__ import annotations import

[issue35340] global symbol "freegrammar" should be made static ore renamed

2018-11-28 Thread Matthias Klose
New submission from Matthias Klose : seen at least on the 2.7, a new symbol polluting the symbol namespace. the global symbol "freegrammar" should be made static ore renamed -- components: Interpreter Core messages: 330615 nosy: doko priority: normal severity: normal status: open

[issue35339] Populating instances of class automatically

2018-11-28 Thread Geoffrey Spear
Geoffrey Spear added the comment: It's impossible to guess exactly what you did from your vague description instead of actual code, but it may be covered by this FAQ question: https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects (mutable objects as

[issue35339] Populating instances of class automatically

2018-11-28 Thread Daugeras
New submission from Daugeras : Hello, I am not sure it is a bug, but it is a very strange behavior of Python, which I do not understand. I created a class (mainly a structure) and instantiated an object of this class in a first function (Object 1). The function populates Object 1. In another

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: A test failed again on AppVeyor! In the 3.7 branch, on this test: def busy_wait(duration): deadline = time.monotonic() + duration while time.monotonic() < deadline: pass (...) def test_thread_time(self): (...) # bpo-33723:

[issue33723] test_time.test_thread_time() failed on AMD64 Debian root 3.x

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10017 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34921] NoReturn not allowed by get_type_hints when future import annotations is used

2018-11-28 Thread Ismo Toijala
Change by Ismo Toijala : -- pull_requests: +10016 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27777] cgi.FieldStorage can't parse simple body with Content-Length and no Content-Disposition

2018-11-28 Thread Pierre Quentel
Change by Pierre Quentel : -- pull_requests: +10015 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: The initial bug has been fixed, I close the issue. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue31900] localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-28604: localeconv() doesn't support LC_MONETARY encoding different than LC_CTYPE encoding. -- ___ Python tracker ___

[issue28604] localeconv() doesn't support LC_MONETARY encoding different than LC_CTYPE encoding

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: See also bpo-31900: localeconv() should decode numeric fields from LC_NUMERIC encoding, not from LC_CTYPE encoding. -- ___ Python tracker

[issue28604] localeconv() doesn't support LC_MONETARY encoding different than LC_CTYPE encoding

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- title: Exception raised by python3.5 when using en_GB locale -> localeconv() doesn't support LC_MONETARY encoding different than LC_CTYPE encoding ___ Python tracker

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-28 Thread Raymond Hettinger
Change by Raymond Hettinger : -- assignee: -> rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35311] exception unpickling error causes `multiprocessing.Pool` to hang forever

2018-11-28 Thread SilentGhost
Change by SilentGhost : -- nosy: +alexandre.vassalotti type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35331] Incorrect __module__ attribute for _struct.Struct and perhaps a few others

2018-11-28 Thread SilentGhost
Change by SilentGhost : -- nosy: +mark.dickinson, meador.inge, serhiy.storchaka type: -> behavior ___ Python tracker ___ ___

[issue35332] shutil.rmtree(..., ignore_errors=True) doesn't ignore errors from os.close()

2018-11-28 Thread SilentGhost
Change by SilentGhost : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35335] msgfmt should be able to merge more than one po file

2018-11-28 Thread SilentGhost
SilentGhost added the comment: The best way is to propose a PR via github (here are some details: https://devguide.python.org/pullrequest/) This sort of change, can only be applied against master (future 3.8), so don't spend time on legacy releases. -- nosy: +SilentGhost versions:

[issue34100] Same constants in tuples are not merged while compile()

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: Thanks INADA Naoki! Thanks a simple and cool optimization! Maybe you might want to document it at https://docs.python.org/dev/whatsnew/3.8.html#optimizations ? -- ___ Python tracker

[issue30689] len() and iter() of ChainMap don't work with unhashable keys

2018-11-28 Thread ebw
ebw added the comment: I actually have a real life use case of that problem. Using the eval() function of pandas need to use a custom resolver: class Resolver(object): def __getitem__(self, name): if name == "test": return 0.5 else: raise KeyError

[issue34100] Same constants in tuples are not merged while compile()

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset f7e4d3642fbb88f4e6243c952a0e223fb5df1c65 by Victor Stinner (INADA Naoki) in branch 'master': bpo-34100: compile: Re-enable frozenset merging (GH-10760) https://github.com/python/cpython/commit/f7e4d3642fbb88f4e6243c952a0e223fb5df1c65

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I agree with @SilentGhost to use set().union(*sequence) which is compatible with Python 2 too. -- nosy: +rhettinger, xtreak ___ Python tracker

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-28 Thread SilentGhost
SilentGhost added the comment: You can write your code like this: set().union(*sequence) as well as: a.union(b, c) if you already have a set object available. -- nosy: +SilentGhost versions: +Python 3.8 -Python 3.7 ___ Python tracker

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10014 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-11-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @mariocj89 for the explanation. I just got to the docs part about side_effect and return_value precedence. I am curious to know about the behavior as well and at least this can be added as a test as I see only around 3 tests for side_effect

[issue35338] set union/intersection/difference could accept zero arguments

2018-11-28 Thread David Miguel Susano Pinto
New submission from David Miguel Susano Pinto : set union, intersection, difference methods accept any non-zero number of sets and return a new set instance, like so: >>> a = set([1, 2]) >>> b = set([1, 3]) >>> c = set([3, 5]) >>> set.union(a, b, c) {1, 2, 3, 5} even if

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 1cdfcfc9843d35ab2cb87387d3a79b2c8a585a38 by Victor Stinner in branch 'master': bpo-35337: Fix gettmarg(): use PyStructSequence_GET_ITEM() (GH-10765) https://github.com/python/cpython/commit/1cdfcfc9843d35ab2cb87387d3a79b2c8a585a38 --

[issue35330] When using mock to wrap an existing object, side_effect requires return_value

2018-11-28 Thread Mario Corchero
Mario Corchero added the comment: I can indeed reproduce the issue. The problem seems to be here: https://github.com/python/cpython/blob/54ba556c6c7d8fd5504dc142c2e773890c55a774/Lib/unittest/mock.py#L1041 The simplified current logic in that code is: - call side_effect, save the return value

[issue35337] Check index in PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: My commit df108dc6610e41c54ed064a854e3903c143f0d77 already added assert(PyTuple_Check(op)) to these two macros. -- ___ Python tracker ___

  1   2   >