[issue35333] Rename private structs to use names closer to types

2018-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I don't know reasons against using the same name for the structure and the type. This can break extensions written before exposing the current Python C API in Python 1.5, but they should be already broken several times. This is a cosmetic but large change.

[issue34589] Py_Initialize() and Py_Main() should not enable C locale coercion

2018-11-28 Thread Kubilay Kocak
Change by Kubilay Kocak : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

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

2018-11-28 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: It is hard to get a noticeable difference in macrobenchmarks. I want to see results of microbenchmarks. For tuples, the trashcan mechanism is the main culprit of the performance hit when use short-living tuples for passing arguments. For bound method objec

[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: @xtreak I didn't checked the source of the assignment of the instance of *Retry* to *self.total*. For me it was important to get the display of the actual source of the failure, which is the failed access to PyPI. Thus my proposal, just to intercept th

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

2018-11-28 Thread Christian Heimes
Christian Heimes added the comment: This is the wrong bug tracker for urllib3. The urllib3 package is not part of Python's standard library. As xtreak pointed out, it's not even a bug in urllib3 or pip. Debian ships a modified and patched version of pip that uses an incompatible version of

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

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: Well, it's up to you. I will review your PR ;-) -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2018-11-28 Thread Leonard de Ruijter
Leonard de Ruijter added the comment: I'm still able to reproduce this issue with ctypes under Python 3.7.0 -- nosy: +Leonard de Ruijter ___ Python tracker ___ ___

[issue35240] Travis CI: xvfb-run: error: Xvfb failed to start

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset a22df4896f6b83c8741203118790ae281716bca5 by Victor Stinner in branch 'master': bpo-35240: Add "doctest" job to Travis CI (GH-10753) https://github.com/python/cpython/commit/a22df4896f6b83c8741203118790ae281716bca5 -- _

[issue35322] test_datetime leaks memory on Windows

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6 by Victor Stinner in branch 'master': bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) https://github.com/python/cpython/commit/bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6 -- _

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6 by Victor Stinner in branch 'master': bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) https://github.com/python/cpython/commit/bde9d6bbb46ca59bcee5d5060adaa33c3ffee3a6 -- _

[issue35240] Travis CI: xvfb-run: error: Xvfb failed to start

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: I created a new job to no longer run xvfb-run twice. Let's see if it works around the issue. At least, it should make Travis CI a little bit faster. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed _

[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: @christian.heimes , @xtreak Thanks, just for documentation, hope this is the right place - putting one to debian later: See: issue - 1486: https://github.com/urllib3/urllib3/issues/1486 for file: https://github.com/urllib3/urllib3/blob/master/src/url

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

2018-11-28 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

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

2018-11-28 Thread INADA Naoki
Change by INADA Naoki : -- pull_requests: +10008 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10009 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35322] test_datetime leaks memory on Windows

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10010 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue35322] test_datetime leaks memory on Windows

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: bpo-34482 added the test in test_datetime which triggered the bug. -- ___ Python tracker ___ ___

[issue35336] Bug in C locale coercion with PYTHONCOERCECLOCALE=1

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : PYTHONCOERCECLOCALE=1 should not force C locale coercion, Python should still check if the LC_CTYPE locale is "C". Bug: $ ./python -c 'import locale; print(locale.setlocale(locale.LC_CTYPE, None))' fr_FR.UTF-8 $ PYTHONCOERCECLOCALE=1 ./python -c 'import lo

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

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10011 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35322] test_datetime leaks memory on Windows

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85ab974f78c0ebcfa611639864640d0273eb5466 by Victor Stinner in branch '3.7': bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) (GH-10761) https://github.com/python/cpython/commit/85ab974f78c0ebcfa611639864640d0273eb5466 -- _

[issue34523] Choose the filesystem encoding before Python initialization (add _PyCoreConfig.filesystem_encoding)

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 85ab974f78c0ebcfa611639864640d0273eb5466 by Victor Stinner in branch '3.7': bpo-34523, bpo-35322: Fix unicode_encode_locale() (GH-10759) (GH-10761) https://github.com/python/cpython/commit/85ab974f78c0ebcfa611639864640d0273eb5466 -- _

[issue35322] test_datetime leaks memory on Windows

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: I tested manually that "python -m test test_datetime -R 3:3" pass on 3.7 and master branches. Note: PyUnicode_DecodeLocale() is still untested, only _Py_DecodeLocaleEx() and _Py_EncodeLocaleEx() are tested. -- resolution: -> fixed stage: patch revi

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-28 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +10012 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue35134] Add a new Include/cpython/ subdirectory for the "CPython API" with implementation details

2018-11-28 Thread STINNER Victor
STINNER Victor added the comment: New changeset 54ba556c6c7d8fd5504dc142c2e773890c55a774 by Victor Stinner in branch 'master': bpo-35134: Create Include/cpython/tupleobject.h (GH-10764) https://github.com/python/cpython/commit/54ba556c6c7d8fd5504dc142c2e773890c55a774 -- ___

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2018-11-28 Thread Mark Lawrence
Change by Mark Lawrence : -- nosy: -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[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: I did some debugging with docstring for wraps. > `wraps`: Item for the mock object to wrap. If `wraps` is not None then > calling the Mock will pass the call through to the wrapped object > (returning the real result). Attribute access on the mock

[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: A little more discussion over side_effect and return_value precedence : issue22541 -- ___ Python tracker ___ _

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

2018-11-28 Thread STINNER Victor
New submission from STINNER Victor : I propose to add assertions to PyTuple_GET_ITEM/PyTuple_SET_ITEM in debug mode to check the index when Python is compiled in debug mode (./configure --with-pydebug). This change is backward incompatible when PyTuple_GET_ITEM/PyTuple_SET_ITEM is used on a

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2018-11-28 Thread Josh Rosenberg
Change by Josh Rosenberg : -- keywords: +3.2regression versions: +Python 3.6, Python 3.7, Python 3.8 ___ Python tracker ___ ___ Pyth

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

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

[issue19865] create_unicode_buffer() fails on non-BMP strings on Windows

2018-11-28 Thread Josh Rosenberg
Change by Josh Rosenberg : -- keywords: -3.2regression ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https

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

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

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

[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

[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: https://m

[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

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

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

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

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

[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: https://mail

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

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

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

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

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

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

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

[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: https://m

[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: https://mai

[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: https://m

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

[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

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

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

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

[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: https://m

[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: https://m

[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) https://github.com/python/cpython/commit/f71a5922916abd6cc7bf7d99ed4715b6e96e59

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

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

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

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

[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

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

[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) https://github.com/python/cpython/commit/24b51b1a4919e310d338629cc60371387f475

[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) https://github.com/python/cpython/commit/24b51b1a4919e310d338629cc60371387f475

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

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

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

[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

[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: -> email.utils.parsedate_to_d

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

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

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

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

[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: https://mail.p

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

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

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

[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 PyObject_GC_UnTrack(voi

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

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

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

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

[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": https://docs.python.org/dev/library/platf

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

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

[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: https://m

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

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

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

[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&api-version=5.0-preview.5&%24format=zip";

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

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

[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

  1   2   >