[issue35924] curses segfault resizing window

2019-05-17 Thread Josiah Ulfers
Josiah Ulfers added the comment: Yes, thanks Toshio and Lisa and sorry for the slow response. I just now built a Python 3.7.3 against ncurses-6.1-20190511 and can confirm it resolved the issue. -- status: -> closed ___ Python tracker

[issue36954] test_recursive_repr breaks tracing in test_xml_etree

2019-05-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36953] Remove collections ABCs?

2019-05-17 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Relevant PR and discussion : https://github.com/python/cpython/pull/10596 . pip is incompatible due to the vendored copy of html5lib that needs a new release . -- nosy: +xtreak ___ Python tracker

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 410759fba80aded5247b693c60745aa16906f3bb by Victor Stinner in branch 'master': bpo-36763: Remove _PyCoreConfig.dll_path (GH-13402) https://github.com/python/cpython/commit/410759fba80aded5247b693c60745aa16906f3bb --

[issue36953] Remove collections ABCs?

2019-05-17 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- nosy: +mbussonn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31677] email.header uses re.IGNORECASE without re.ASCII

2019-05-17 Thread Haw Loeung
Change by Haw Loeung : -- pull_requests: +13314 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13313 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2180] tokenize: mishandles line joining

2019-05-17 Thread Anthony Sottile
Change by Anthony Sottile : -- keywords: +patch pull_requests: +13312 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue23012] RuntimeError: settrace/setprofile function gets lost

2019-05-17 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- nosy: +gphemsley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36474] RecursionError resets trace function set via sys.settrace

2019-05-17 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- nosy: +gphemsley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10933] Tracing disabled when a recursion error is triggered (even if properly handled)

2019-05-17 Thread Gordon P. Hemsley
Change by Gordon P. Hemsley : -- nosy: +gphemsley ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36953] Remove collections ABCs?

2019-05-17 Thread Emmanuel Arias
Change by Emmanuel Arias : -- nosy: +eamanu ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36954] test_recursive_repr breaks tracing in test_xml_etree

2019-05-17 Thread Gordon P. Hemsley
New submission from Gordon P. Hemsley : When running test_xml_etree with tracing, e.g. when running test coverage, tracing breaks after the execution of test_recursive_repr. -- components: Tests messages: 342783 nosy: blueyed, gphemsley, serhiy.storchaka priority: normal

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset bab0db6076900cd828588be8595b3cdfade7e7e9 by Victor Stinner in branch 'master': bpo-36763: Use _PyCoreConfig_InitPythonConfig() (GH-13398) https://github.com/python/cpython/commit/bab0db6076900cd828588be8595b3cdfade7e7e9 --

[issue17774] unable to disable -r in run_tests.py

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Since -r doesn't usually take a value, what would be the best way to implement this? The current implementation always adds -r, so not including '-r' would need to retain the current behavior of randomization. Would something like '--no-random' be a good

[issue36721] Add pkg-config python-3.8-embed

2019-05-17 Thread Scott Talbert
Change by Scott Talbert : -- nosy: +swt2c ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Ah, you're right on __call__; I've never bothered to override it on a metaclass, but yes, since a class using a metaclass is an instance of the metaclass, like all instances, calling it invokes the __call__ of its type (it's just that the default metaclass,

[issue36953] Remove collections ABCs?

2019-05-17 Thread Paul Ganssle
New submission from Paul Ganssle : In PR 5640 (https://github.com/python/cpython/pull/5460), a warning was added that importing ABCs from collections directly is deprecated and will be removed in Python 3.8, but they have not yet been removed and the warning is still active. If they are

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-17 Thread Matthias Bussonnier
Change by Matthias Bussonnier : -- keywords: +patch pull_requests: +13310 stage: -> patch review ___ Python tracker ___ ___

[issue29847] Path takes and ignores **kwargs

2019-05-17 Thread Jason Saporta
Change by Jason Saporta : -- keywords: +patch pull_requests: +13309 stage: -> patch review ___ Python tracker ___ ___

[issue31961] subprocess._execute_child doesn't accept a single PathLike argument for args

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: gregory.p.smith, I believe Serhiy was looking for a review on PR5914. Maybe it's not too late for this to get into 3.8? Thanks! -- nosy: +cheryl.sabella ___ Python tracker

[issue33829] C API: provide new object protocol helper

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: It seems that this issue is languishing without any additional comments from the OP. Should it be closed as rejected? Thanks! -- nosy: +cheryl.sabella ___ Python tracker

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13308 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35924] curses segfault resizing window

2019-05-17 Thread Lisa Roach
Lisa Roach added the comment: Thank you for all the work you did on this Toshio! I think we are good to close this issue. -- stage: patch review -> resolved ___ Python tracker

[issue22490] Using realpath for __PYVENV_LAUNCHER__ makes Homebrew installs fragile

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like @ronaldoussoren's pull request was ready to go pending a test with Brew. The PR itself needs a rebase, but is anyone able to finish the testing on this for it to be merged? Thanks! -- nosy: +cheryl.sabella versions: +Python 3.7,

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b594784272d4907b1c40d3c40d17cb081aa9cf9b by Victor Stinner in branch 'master': bpo-36763: _Py_InitializeFromArgs() argc becomes Py_ssize_t (GH-13396) https://github.com/python/cpython/commit/b594784272d4907b1c40d3c40d17cb081aa9cf9b --

[issue35805] email package folds msg-id identifiers using RFC2047 encoded words where it must not

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: I have created https://github.com/python/cpython/pull/13397 for this. For now, it only parses Message-ID header. I do plan to add support for other Identification headers soon, perhaps in a 2nd PR. -- nosy: +maxking stage: patch review -> needs

[issue27268] Incorrect error message on float('')

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: @Drekin, thank you for the report, @Pedro Lacerda, thank you for the pull request, and @Nofar Schnider, thank you for the review. -- resolution: works for me -> fixed stage: patch review -> resolved status: open -> closed

[issue27268] Incorrect error message on float('')

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: New changeset 4fa7504ee3184cff064e23fe6799e717ed0f9357 by Cheryl Sabella (Pedro Lacerda) in branch 'master': bpo-27268: Fix incorrect error message on float('') (GH-2745) https://github.com/python/cpython/commit/4fa7504ee3184cff064e23fe6799e717ed0f9357

[issue35805] email package folds msg-id identifiers using RFC2047 encoded words where it must not

2019-05-17 Thread Abhilash Raj
Change by Abhilash Raj : -- keywords: +patch pull_requests: +13307 stage: needs patch -> patch review ___ Python tracker ___ ___

[issue30509] Optimize calling type slots

2019-05-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- versions: +Python 3.8 -Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue29847] Path takes and ignores **kwargs

2019-05-17 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34700] typing.get_type_hints doesn't know about typeshed

2019-05-17 Thread Jakub Stasiak
Change by Jakub Stasiak : -- nosy: +jstasiak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13306 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 871ff77c1cd334a141d52b0d003c080a1928731e by Victor Stinner in branch 'master': bpo-36763: Add _PyInitError functions (GH-13395) https://github.com/python/cpython/commit/871ff77c1cd334a141d52b0d003c080a1928731e --

[issue36952] fileinput input's and Fileinput's bufsize=0 marked for removal in 3.8

2019-05-17 Thread Matthias Bussonnier
New submission from Matthias Bussonnier : Can likely thus be removed now. See also https://bugs.python.org/issue33563 that was tracking better deprecation warnings. If not removed documentation should bump removal to 3.9 -- components: Library (Lib) messages: 342769 nosy: mbussonn

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36908] "This module is always available" is confusing

2019-05-17 Thread Mariatta Wijaya
Mariatta Wijaya added the comment: Thanks all. I've backported the change to 3.7. I think this is good to be closed. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.7, Python 3.8, Python 3.9 ___

[issue36908] "This module is always available" is confusing

2019-05-17 Thread miss-islington
miss-islington added the comment: New changeset 740a7cde9c0af5a237a7f6525b38d65a83f4fbf1 by Miss Islington (bot) in branch '3.7': bpo-36908: 'This module is always available' isn't helpful. (GH-13297) https://github.com/python/cpython/commit/740a7cde9c0af5a237a7f6525b38d65a83f4fbf1

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 12083284c54be25abadd85781d36b63731dc1f0c by Victor Stinner in branch 'master': bpo-36763: _Py_RunMain() doesn't call Py_Exit() anymore (GH-13390) https://github.com/python/cpython/commit/12083284c54be25abadd85781d36b63731dc1f0c --

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13305 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: Thank you, @licht-t for the original patch and @maxking for the rebase. Also, thank you, @r.david.murray for the review and merge. -- nosy: +cheryl.sabella ___ Python tracker

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread Cheryl Sabella
Change by Cheryl Sabella : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue36908] "This module is always available" is confusing

2019-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +13304 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35926] Need openssl 1.1.1 support on Windows for ARM and ARM64

2019-05-17 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue36596] tarfile module considers anything starting with 512 bytes of zero bytes to be a valid tar file

2019-05-17 Thread Jeffrey Kintscher
Jeffrey Kintscher added the comment: I did some testing with BSD and GNU tar to compare with Python's behavior. jfoo:~ jeff$ tar --version bsdtar 2.8.3 - libarchive 2.8.3 jeff@albarino:~$ tar --version tar (GNU tar) 1.28 Both BSD tar and GNU tar can create an empty tar file that consists of

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread miss-islington
miss-islington added the comment: New changeset 5386aaf07835889e90fb33e95b6d37197f8cfea0 by Miss Islington (bot) in branch '3.7': bpo-33524: Fix the folding of email header when max_line_length is 0 or None (GH-13391)

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset bcfbbd704646622e919c1306a91fba61d603483d by Victor Stinner in branch 'master': bpo-36945: Add _PyPreConfig.configure_locale (GH-13368) https://github.com/python/cpython/commit/bcfbbd704646622e919c1306a91fba61d603483d --

[issue36782] Add tests for the datetime C API

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset 98ff4d5fb6a9d01b0176b7786db61346952e5295 by Victor Stinner (Edison A) in branch 'master': bpo-36782: Created C API wrappers and added missing tests for functions in the PyDateTimeAPI. (#13088)

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-17 Thread Kevin Shweh
Kevin Shweh added the comment: Looks like I accidentally doubled the PyMemberDef for __weakrefoffset__ while editing. There's no double definition in the actual file. -- ___ Python tracker

[issue36951] Wrong types for PyMemberDefs in Objects/typeobject.c

2019-05-17 Thread Kevin Shweh
New submission from Kevin Shweh : In Objects/typeobject.c, the PyMemberDefs for __flags__, __weakrefoffset__, and __dictoffset__ all use T_LONG: {"__flags__", T_LONG, offsetof(PyTypeObject, tp_flags), READONLY}, {"__weakrefoffset__", T_LONG, offsetof(PyTypeObject,

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread miss-islington
Change by miss-islington : -- pull_requests: +13303 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread R. David Murray
R. David Murray added the comment: New changeset feac6cd7753425fba006e97e2d9b74a0c0c75894 by R. David Murray (Abhilash Raj) in branch 'master': bpo-33524: Fix the folding of email header when max_line_length is 0 or None (#13391)

[issue32972] unittest.TestCase coroutine support

2019-05-17 Thread Andrew Svetlov
Andrew Svetlov added the comment: https://github.com/python/cpython/pull/13386 is a new attempt to solve the feature request -- ___ Python tracker ___

[issue36929] Other Python _io implementations may not expose _io in their type names

2019-05-17 Thread Maxwell Bernstein
Change by Maxwell Bernstein : -- pull_requests: +13302 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32972] unittest.TestCase coroutine support

2019-05-17 Thread Andrew Svetlov
Change by Andrew Svetlov : -- pull_requests: +13301 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: Ah, I wrongly assumed the patch had the same thing. Sorry about that. -- ___ Python tracker ___

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-17 Thread R. David Murray
R. David Murray added the comment: I don't see that line of code in unstructured_ew_without_whitespace.diff. Oh, you are referring to his monkey patch. Yes, that is not a suitable solution for anyone but him, and I don't think he meant to imply otherwise :) --

[issue33524] non-ascii characters in headers causes TypeError on email.policy.Policy.fold

2019-05-17 Thread Abhilash Raj
Change by Abhilash Raj : -- pull_requests: +13300 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34881] unnecessary encoded-words usage breaks DKIM signatures

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: Just for reference DKIM-Signature header is defined in RFC 6376 and the BNF description for the header is mentioned here (https://tools.ietf.org/html/rfc6376#section-3.5). It is a bit long so I am not copy-pasting it here. I might take a stab at writing a

[issue36755] [2.7] test_httplib leaked [8, 8, 8] references with OpenSSL 1.1.1

2019-05-17 Thread Benjamin Peterson
Benjamin Peterson added the comment: New changeset 951af2d7f140be7beb9cda2bcdd54f820c905e45 by Benjamin Peterson in branch '2.7': closes bpo-36755: Suppress noisy error output in test HTTPS server by default. (GH-13370)

[issue36867] Make semaphore_tracker track other system resources

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: It seems like all known bugs are fixed, I close again the issue. Thanks! -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue36950] test.support: add an helper to wait for an event with a timeout

2019-05-17 Thread STINNER Victor
New submission from STINNER Victor : The commit cbe72d842646ded2454784679231e3d1e6252e72 is a good example: deadline = time.monotonic() + 60 t = 0.1 while time.monotonic() < deadline: time.sleep(t) t = min(t*2, 5)

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: The solution replaces RFC 20147 chrome for utf-8 and q to make sure there is a space before ew, it wouldn't replace in case of any other charset/cte pair. value = value.replace("=?UTF-8?Q?=20", " =?UTF-8?Q?") Isn't that correct? --

[issue36867] Make semaphore_tracker track other system resources

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset cbe72d842646ded2454784679231e3d1e6252e72 by Victor Stinner (Pierre Glaser) in branch 'master': bpo-36867: _test_multiprocessing: avoid weak sync primitive (GH-13292)

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread Steve Dower
Steve Dower added the comment: > I suggest to move this discussion on the WIP PR of 4th version of my PEP I prefer to keep it on the issue tracker where it doesn't disappear when merged and I get proper notifications. (I want to make the most of getting good notifications of new comments

[issue34215] streams.py:IncompleteReadError is message is unclear when expected is None

2019-05-17 Thread Tyler Bell
Tyler Bell added the comment: I've updated my PR to reflect a better message for the IncompleteReadError exception. When expected is None, the error reads, "IncompleteReadError: 1 bytes read on a total of None expected bytes" which is confusing. My PR changes this to "IncompleteReadError: 1

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-17 Thread R. David Murray
R. David Murray added the comment: A cleaner/safer solution here would be: tok, *remainder = _wsp_splitter(value, 1) if _rfc2047_matcher(tok): tok, *remainder = value.partition('=?') where _rfc2047_matcher would be a regex that matches a correctly formatted encoded word.

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: I asked on Twitter: "If you embed Python in your application, would you prefer Python to leave your locale unchanged?" Mai Giménez replied: "I would like to." https://twitter.com/maidotgimenez/status/1129357352774393856 Steve Dower wrote: "I think this

[issue35947] Update libffi_msvc to current version of libffi

2019-05-17 Thread Paul Monson
Paul Monson added the comment: Would you like me to submit a PR to the What's New doc? -- ___ Python tracker ___ ___

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13298 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: > Nice, these will be helpful. Probably a good thing to try out with some > embedders too, to see whether they're intuitive enough. I suggest to move this discussion on the WIP PR of 4th version of my PEP: https://github.com/python/peps/pull/1056 I will

[issue36942] Windows code changes for Windows ARM64

2019-05-17 Thread Steve Dower
Steve Dower added the comment: New changeset 3ea702eca17c4ab5209d823fac2463307dde0633 by Steve Dower (Paul Monson) in branch 'master': bpo-36942 Windows build changes for Windows ARM64 (GH-13366) https://github.com/python/cpython/commit/3ea702eca17c4ab5209d823fac2463307dde0633 --

[issue36941] Windows build changes for Windows ARM64

2019-05-17 Thread Steve Dower
Steve Dower added the comment: New changeset f96e7fd9240c1ce13f52bd3ba81f58b2511d89c3 by Steve Dower (Paul Monson) in branch 'master': bpo-36941: Windows build changes for Windows ARM64 (GH-13365) https://github.com/python/cpython/commit/f96e7fd9240c1ce13f52bd3ba81f58b2511d89c3 --

[issue21315] email._header_value_parser does not recognise in-line encoding changes

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: According to RFC 2047 5(1) > However, an 'encoded-word' that appears in a header field defined as '*text' MUST be separated from any adjacent 'encoded-word' or 'text' by 'linear-white-space'. So, it seems like splitting on whitespace is the right thing to

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset cab5d0741ee6adf2ae9ff5aaafe06b75b4b5bca3 by Victor Stinner in branch 'master': bpo-36763: Add _PyCoreConfig_InitPythonConfig() (GH-13388) https://github.com/python/cpython/commit/cab5d0741ee6adf2ae9ff5aaafe06b75b4b5bca3 --

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread Steve Dower
Steve Dower added the comment: > * customized Python interpreter: behaves as the "regular Python" For this, why wouldn't we say "start by copying all the code in Programs/python.c"? Is there any reason why that file needs to only be one single call into Py_Main? Maybe there's some reason

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread Steve Dower
Steve Dower added the comment: > I have a very good news for you :-) Slowly but steadily, we converge on a > agreement ;-) Yay! :) > I added 2 functions … Nice, these will be helpful. Probably a good thing to try out with some embedders too, to see whether they're intuitive enough. (I

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: Steve: > Imagine you're an existing application and you want to embed Python. Why > would you ever want it to suddenly change your global settings like this? I have a very good news for you :-) Slowly but steadily, we converge on a agreement ;-) The more

[issue36949] WeakSet.__repr__ and __str__ do not show contents of the set

2019-05-17 Thread Steve Dower
New submission from Steve Dower : This spoils the output of our test suite when there are dangling threads, as the basic "print" doesn't show anything useful. -- messages: 342734 nosy: steve.dower priority: normal severity: normal stage: needs patch status: open title:

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-17 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- keywords: +patch pull_requests: +13297 stage: -> patch review ___ Python tracker ___ ___

[issue36948] NameError in urllib.request.URLopener.retrieve

2019-05-17 Thread Karthikeyan Singaravelan
New submission from Karthikeyan Singaravelan : In issue27485 the deprecated functions were replaced with underscore prefixed ones due to which imports where modified. Some of the places where not changed causing NameError in using urllib.request.URLopener.retrieve for local files and

[issue36945] Add _PyPreConfig.configure_locale: allow to leave LC_CTYPE unchanged when embedding Python

2019-05-17 Thread Steve Dower
Steve Dower added the comment: I think this should be opt-in, not opt-out. Imagine you're an existing application and you want to embed Python. Why would you ever want it to suddenly change your global settings like this? As a general rule, an embedded Python runtime should deal with all

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Nicholas Matthews
Nicholas Matthews added the comment: Thanks for the clarification. For the first point on the correctness of the original text, that makes sense, could you link me to any relevant documentation for further reading? On the second point "Meta modifies the creation of the classes themselves,

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Josh Rosenberg
Josh Rosenberg added the comment: Clarification is fine, but "MyClass and MySubclass are instances of Meta:" is 100% true. Declaring a class to have a metaclass (or inheriting from a class with a metaclass) means that the class itself is an instance of the metaclass. New instances of the

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-05-17 Thread R. David Murray
R. David Murray added the comment: Right, one of the fundamental principles of the email library is that when parsing input we do not ever raise an error. We may note defects, but whatever we get we *must* parse and turn in to *something*. --

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Nicholas Matthews
Nicholas Matthews added the comment: Ok, I will create a PR soon and update the issue. -- ___ Python tracker ___ ___

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: If you want to modify the text, please create a PR for this file: https://github.com/python/cpython/blob/master/Doc/reference/datamodel.rst#metaclasses Don't forget to sign the CLA, Thank you -- ___ Python

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Found here: https://docs.python.org/3/reference/datamodel.html#metaclasses Thank you -- status: pending -> open ___ Python tracker ___

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: just one question, I don't find the paragraph with this text in the code. Could you share the link of this paragraph? Thank you -- status: open -> pending ___ Python tracker

[issue36947] [Good first issue] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Stéphane Wirtel
Change by Stéphane Wirtel : -- keywords: +easy title: Fix 3.3.3.1 Metaclasses Documentation -> [Good first issue] Fix 3.3.3.1 Metaclasses Documentation ___ Python tracker ___

[issue36947] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Thank you for your report -- assignee: -> docs@python components: +Documentation nosy: +docs@python, matrixise ___ Python tracker ___

[issue36947] Fix 3.3.3.1 Metaclasses Documentation

2019-05-17 Thread Nicholas Matthews
New submission from Nicholas Matthews : Currently the final sentence of the second paragraph reads: "In the following example, both MyClass and MySubclass are instances of Meta:" It should read something like: "In the following example, both MyClass and MySubclass have the metaclass Meta, and

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
Change by STINNER Victor : -- pull_requests: +13296 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-05-17 Thread Abhilash Raj
Abhilash Raj added the comment: I was wrong about the parsing error, it looks like length from the policy isn't used when parsing. >>> from email.policy import default >>> from email import message_from_string >>> p = default.clone(max_line_length=10) >>> msg = message_from_string("""\ ...

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-05-17 Thread R. David Murray
R. David Murray added the comment: Good point about the backward compatibility. Yes I agree, I think raising the error is probably better. A deprecation warning seems like a good path forward...I will be very surprised if anyone encounters it, though :) --

[issue29696] Use namedtuple in string.Formatter.parse iterator response

2019-05-17 Thread Cheryl Sabella
Cheryl Sabella added the comment: It looks like Pablo's patch for this was good, but then closed because the idea was rejected. Should this ticket also be closed as rejected? -- nosy: +cheryl.sabella ___ Python tracker

[issue28874] test_logging fails and freezes

2019-05-17 Thread Yury
Yury added the comment: And same happens to me when building version 3.7.3. I'm building with gcc (GCC) 4.8.5. -- ___ Python tracker ___

[issue36763] PEP 587: Rework initialization API to prepare second version of the PEP

2019-05-17 Thread STINNER Victor
STINNER Victor added the comment: New changeset b16b4e45923f4e4dfd8e970ae4e6a934faf73b79 by Victor Stinner in branch 'master': bpo-36763: Add PyMemAllocatorName (GH-13387) https://github.com/python/cpython/commit/b16b4e45923f4e4dfd8e970ae4e6a934faf73b79 --

[issue36564] Infinite loop with short maximum line lengths in EmailPolicy

2019-05-17 Thread Paul Ganssle
Paul Ganssle added the comment: Responding to a comment on the PR: > Now, that said you might want to consider the fact that in > _fold_mime_parameters I deal with this issue by bumping maxlen to 78 rather > than raising an error. I'm not sure that was the right choice, but whatever > we

  1   2   >