[issue34280] METH_NOARGS: no longer require that second arg is NULL

2018-07-31 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: OK, I closed this without applying the change. It means one extra special case in PEP 580, but it's not a big deal. -- ___ Python tracker __

[issue34287] bufferedio.c uses unused argument of METH_NOARGS functions

2018-07-31 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : A METH_NOARGS function has a second unused argument which is always NULL (this is guaranteed by the documentation). However, some functions in Modules/_io/bufferedio.c actually that second NULL argument. This is technically not a bug, but it looks more cle

[issue34287] bufferedio.c uses unused argument of METH_NOARGS functions

2018-07-31 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- keywords: +patch pull_requests: +8091 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-l

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-31 Thread Chris Jerdonek
Chris Jerdonek added the comment: > The RFC treats empty authority and no authority as different cases. I'm not well-versed on this. But I guess this means urllib.parse doesn't support this distinction. For example: >>> urllib.parse.urlsplit('file:/foo') SplitResult(scheme='file', netloc

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 47957dab94a4efa2fee61c9a8193f78300950769 by Serhiy Storchaka in branch '3.7': [3.7] bpo-33729: Fix issues with arguments parsing in hashlib. (GH-8346) (GH-8581) https://github.com/python/cpython/commit/47957dab94a4efa2fee61c9a8193f78300950769

[issue33871] Possible integer overflow in iov_setup()

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 9d5727326af53ddd91016d98e16ae7cf829caa95 by Serhiy Storchaka in branch 'master': bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) https://github.com/python/cpython/commit/9d5727326af53ddd91016d98e16ae7cf829caa95

[issue33871] Possible integer overflow in iov_setup()

2018-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +8092 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Christian Heimes
Christian Heimes added the comment: Your PR changed way to many aspects of the code in one commit. I also don't like the fact, that you pushed such a big change without waiting for my feedback. For the past two weeks I have been travelling to conferences and had no time to review your PR. Th

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Christian Heimes
Christian Heimes added the comment: The backport to 3.6 and 3.7 are breaking backwards compatibility and compatibility with PEP 247. -- ___ Python tracker ___ ___

[issue34288] Declare sethostname in socketmodule.c for SOLARIS

2018-07-31 Thread Roy Belio
New submission from Roy Belio : Following issue 18259 which was solved by extern sethostname I managed to build python 3.7 on solaris only after patching away the ifdef for _AIX. We need to add SOLARIS flag and check for that also in the same line of #ifdef _AIX. This error only appears in 3.

[issue27671] FAQ: len() is still function for good reason.

2018-07-31 Thread INADA Naoki
Change by INADA Naoki : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ P

[issue33871] Possible integer overflow in iov_setup()

2018-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- pull_requests: +8093 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: New changeset 9c18b1ae527346bc178250ad1ca07bffdacde5dd by Raymond Hettinger in branch 'master': bpo-33089: Add math.dist() for computing the Euclidean distance between two points (GH-8561) https://github.com/python/cpython/commit/9c18b1ae527346bc178250ad1

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-31 Thread Piotr Dobrogost
Change by Piotr Dobrogost : -- nosy: +piotr.dobrogost ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue33089] Add multi-dimensional Euclidean distance function to the math module

2018-07-31 Thread Raymond Hettinger
Change by Raymond Hettinger : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry. Do you prefer to revert the whole changes or just some parts? -- ___ Python tracker ___

[issue34284] Nonsensical exception message when calling `__new__` on non-instaniable objects

2018-07-31 Thread Vadim Pushtaev
Vadim Pushtaev added the comment: > See also issue31506 Okay, I admit, reporting `tuple.__new__` instead of `sys.flags` is misleading. But what about this? > `tuple.__new__(NamedTuple)` works, and produces a namedtuple object, so > tuple.__new__ is what the error should point to. Isn't it

[issue14266] pyunit script as shorthand for python -m unittest

2018-07-31 Thread Michael Foord
Change by Michael Foord : -- resolution: -> rejected ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue14266] pyunit script as shorthand for python -m unittest

2018-07-31 Thread Berker Peksag
Change by Berker Peksag : -- stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue33871] Possible integer overflow in iov_setup()

2018-07-31 Thread miss-islington
miss-islington added the comment: New changeset 3e4b68875917a4605b45918f9e3232730fed9399 by Miss Islington (bot) in branch '3.7': bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) https://github.com/python/cpython/commit/3e4b68875917a4605b45918f9e3232730fed9399 -

[issue29259] Add tp_fastcall to PyTypeObject: support FASTCALL calling convention for all callable objects

2018-07-31 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > For compatibility with extensions built with older Pythons you should define > new type flag and read tp_fastcall only if the flag is set. Can you comment on https://github.com/python/cpython/pull/4944 why you think that such compatibility should be guaran

[issue34289] System can't find the path of Python

2018-07-31 Thread Aleksa Bulatovic
New submission from Aleksa Bulatovic : Before you say,yes,i have python path but the system can't find it.Is it because of the installation folder (because i didn't install in the default location) or maybe other? -- components: Windows messages: 322748 nosy: Cross!Alex21, paul.moore,

[issue33871] Possible integer overflow in iov_setup()

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset ada5d99306dc8af21c32cefb3d86891e8553dbc6 by Serhiy Storchaka in branch '3.6': [3.6] bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) (GH-8584) https://github.com/python/cpython/commit/ada5d99306dc8af21c32cefb3d86891e8553d

[issue33083] math.factorial accepts non-integral Decimal instances

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I looked at Pablo's PR 6149 and I'm surprised by the size of the code just to convert a Python object to a C long! --- if (PyFloat_Check(arg)) { PyObject *lx; double dx = PyFloat_AS_DOUBLE((PyFloatObject *)arg); if (!(Py_IS_FINITE(d

[issue34289] System can't find the path of Python

2018-07-31 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: and about $PATH? -- nosy: +matrixise ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue34289] System can't find the path of Python

2018-07-31 Thread Aleksa Bulatovic
Aleksa Bulatovic added the comment: No,when i type 'cd Python37',the system can't find the path,but i have the path set. (English is not my first language and i started python about 5 or 6 days ago) -- ___ Python tracker

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think I have found the bug. When we call setLevel then to clear the cache value of Logger objects `logging.Logger.manager.loggerDict.values()` (https://github.com/python/cpython/blob/9c18b1ae527346bc178250ad1ca07bffdacde5dd/Lib/logging/__init__.py

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- versions: +Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34290] _ctypes PyCField_new doesn't do anything

2018-07-31 Thread Dan Snider
New submission from Dan Snider : The function is essentially nothing more than a prototype at the moment: static PyObject * PyCField_new(PyTypeObject *type, PyObject *args, PyObject *kwds) { CFieldObject *obj; obj = (CFieldObject *)type->tp_alloc(type, 0); return (PyObject *)obj; }

[issue34291] UnboundLocalError raised on call to global

2018-07-31 Thread Camille
New submission from Camille : In the following code : def g(): return 0 def f(): g = g() f() The call to g in f fails due to an UnboundLocalError, while I expected the assignment to hide the global definition of g. Note that if it is done in two subsequent calls, i.e. with : def f(

[issue34276] urllib.parse doesn't round-trip file URI's with multiple leading slashes

2018-07-31 Thread Martin Panter
Martin Panter added the comment: Yes urllib doesn’t distinguish a missing authority/netloc from an empty string. The same for the ?query and #fragment parts. There is Issue 22852 open about that. -- ___ Python tracker

[issue34289] System can't find the path of Python

2018-07-31 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: So in this case, it's not an issue with the Python interpreter, but I am going to close this issue. Please for the help about Python, you can subscribe this mailing list https://mail.python.org/mailman/listinfo/python-list Have a nice day, -- resol

[issue34291] UnboundLocalError raised on call to global

2018-07-31 Thread Eric V. Smith
Eric V. Smith added the comment: Python thinks that `g` inside `f()` is a local variable. See https://stackoverflow.com/questions/9264763/unboundlocalerror-in-python#9264845 for an explanation. This is working as intended. -- nosy: +eric.smith resolution: -> not a bug stage: -> re

[issue34285] regrtest: in case of test failure, add "always look on the bright side of life"

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I was just searching for the line and came to know it's a Monty Python reference :) There seems to be a similar example here with reference to this : https://docs.python.org/3.8/library/tarfile.html#command-line-interface python -m tarfile -c monty

[issue31506] Improve the error message logic for object_new & object_init

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

[issue27494] 2to3 parser failure caused by a comma after a generator expression

2018-07-31 Thread Jakub Stasiak
Jakub Stasiak added the comment: Apologies for only responding now, I've not received any notifications after my original pull request had been merged. I only learned about the change being reverted from https://github.com/python/cpython/pull/8580, so let me leave my two cents here: I don't

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Jens Troeger
Jens Troeger added the comment: I was about to open an issue when I found this one. Consider an email message with the following: message = EmailMessage() message["From"] = Address(addr_spec="b...@foo.com", display_name="Jens Troeger") message["To"] = Address(addr_spec="f...@bar.com", display_

[issue34047] IDLE: on macOS, scroll slider 'sticks' at bottom of file

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: Not able to reproduce this issue using a recent build of Tk 8.6.8 plus (it's been a little while since I pulled the latest updates from core-8-6-branch, but is recent enough). Similar behavior was reported on Tk a couple of years ago but has been fixed; I clos

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: Please provide a short working Python script that reproduces the problem. Also, please point me to the internal implementation of tooltips in idlelib. Tooltips work just fine on Tk on the Mac, but there are many different ways to implement them and I suspect P

[issue34120] IDLE: Freeze when closing Settings (& About) dialog on MacOS

2018-07-31 Thread Kevin Walzer
Kevin Walzer added the comment: I've observed this behavior myself, and wonder if you are hitting some edge case in Tk-Mac event processing (there used to be a lot of issues with this and we thought we had addressed them). I don't want to code-dive into Python's implementation of these dialo

[issue34275] Problems with tkinter and tk8.6 on MacOS

2018-07-31 Thread Ronald Oussoren
Ronald Oussoren added the comment: @terry.reed: Kevin Walzer is a maintainer for Tk on macOS. I know too little of IDLE to answer his questions. -- ___ Python tracker ___ ___

[issue34292] test_compile is hanging im AMD Ubuntu buildbots

2018-07-31 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Test compile is hanging or failing in AMD(64) Ubuntu buildbots. For example: https://buildbot.python.org/all/#/builders/157/builds/77 https://buildbot.python.org/all/#/builders/154/builds/90 Example errors: running: test_tools (3 min 49 sec), test_c

[issue34292] test_compile hangs in AMD Ubuntu buildbots

2018-07-31 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- title: test_compile is hanging im AMD Ubuntu buildbots -> test_compile hangs in AMD Ubuntu buildbots ___ Python tracker ___ __

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Jens Troeger
Jens Troeger added the comment: (continuing the previous message msg322761) …unless the addresses should be checked separately from the display names, in which case the BytesGenerator’s flatten() function should be fixed. Without reading the RFC, please let me know how to continue from here.

[issue27494] 2to3 parser failure caused by a comma after a generator expression

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Sorry, I missed that you didn't receive a notification about creating of the reverting PR. I should announce this explicitly. 2to3 handles the old syntax, but a comma after a generator expression was not a valid old syntax. With your patch it accepted this

[issue33398] From, To, Cc lines break when calling send_message()

2018-07-31 Thread Jens Troeger
Jens Troeger added the comment: See also this issue comment: https://bugs.python.org/issue24218#msg322761 -- ___ Python tracker ___ ___

[issue34293] DOC: Makefile inherits a Sphinx 1.5 bug regarding PAPER envvar

2018-07-31 Thread jfbu
New submission from jfbu : There has been a bug at Sphinx since release 1.5 https://github.com/sphinx-doc/sphinx/issues/5234 about wrong handling of PAPER environment variable. The Makefile in Doc/ reproduces the error. As a result the "A4 latex" and "letter latex" sub targets of "dist" mis-b

[issue34294] re.finditer and lookahead bug

2018-07-31 Thread beardypig
New submission from beardypig : I am experiencing and issue with the following regex when using finditer. (?=<(?P\w+)/?>(?:(?P.+?))?)", " (I know it's not the best method of dealing with HTML, and this is a simplified version) For example: [m.groupdict() for m in re.finditer(r"(?=

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread R. David Murray
R. David Murray added the comment: Well, posting on a closed issue is generally not the best way :) The current behavior with regards to the SMTPUTF8 flag is correct (it only matters for *addresses*, display names can already be transmitted if they contain non-ascii using non SMTPUTF8 method

[issue34294] re.finditer and lookahead bug

2018-07-31 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- assignee: -> serhiy.storchaka nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list m

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Hi David, What is the related issue with the new lines? > On 31 Jul 2018, at 15:18, R. David Murray wrote: > > > R. David Murray added the comment: > > Well, posting on a closed issue is generally not the best way :) > > The current behavior with regard

[issue34293] DOC: Makefile inherits a Sphinx 1.5 bug regarding PAPER envvar

2018-07-31 Thread jfbu
Change by jfbu : -- keywords: +patch pull_requests: +8094 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailin

[issue34293] DOC: Makefile inherits a Sphinx 1.5 bug regarding PAPER envvar

2018-07-31 Thread jfbu
jfbu added the comment: https://github.com/python/cpython/pull/8585 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue1764286] inspect.getsource does not work with decorated functions

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: > Should `getsourcefile` be changed to match? I'd say yes. There's no point in getsourcefile returning the file location of the topmost decorator. Feel free to open a new issue and submit a PR to fix this! -- ___

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 944451cd8d3e897138f4b43569de13cd081ee251 by Yury Selivanov (MartinAltmayer) in branch 'master': bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) https://github.com/python/cpython/commit/944451cd8d3e897138f4b43569de13cd0

[issue34274] Python launcher behavior with "#!/usr/bin/env python" shebang

2018-07-31 Thread Eryk Sun
Eryk Sun added the comment: See the discussion in issue 28686 regarding the use of version detection and/or versioned executable names with env shebangs. I think the launcher should at least support searching PATH for pythonX.exe and pythonX.Y.exe, so users can at least manually copy or syml

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +8095 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread miss-islington
Change by miss-islington : -- pull_requests: +8096 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue22852] urllib.parse wrongly strips empty #fragment, ?query, //netloc

2018-07-31 Thread Chris Jerdonek
Chris Jerdonek added the comment: I just learned of this issue. Rather than adding has_netloc, etc. attributes, why not use None to distinguish missing values as is preferred above, but add a new boolean keyword argument to urlparse(), etc. to get the new behavior (e.g. "allow_none" to paral

[issue34291] UnboundLocalError raised on call to global

2018-07-31 Thread Tim Peters
Tim Peters added the comment: Yes, the assignment does "hide the global definition of g". But this determination is made at compile time, not at run time: an assignment to `g` _anywhere_ inside `f()` makes _every_ appearance of `g` within `f()` local to `f`. -- nosy: +tim.peters

[issue27494] 2to3 parser failure caused by a comma after a generator expression

2018-07-31 Thread Jakub Stasiak
Jakub Stasiak added the comment: I appreciate the example, but I'd claim that's a "missing fixer" issue, not a "parser accepts too much" issue. Considering the syntax wasn't ambiguous (I think) and had been accepted before 3.7 I'll remain not totally convinced here. -- _

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I have no opinion on the change in the master branch, but I agree with Christian that the 3.7 change should be reverted since it breaks the backward compatibility. Serhiy modified int() in Python 3.7 to convert its first parameter to positional only paramet

[issue24809] Add getprotobynumber to socket module

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I concur with Yury that there is not enough users and use cases needing this feature, so it doesn't deserve to pay the maintenance burden in the standard library. Start with a project on PyPI. -- resolution: -> rejected stage: -> resolved status: o

[issue34279] RFC: issue a warning in regrtest when no test have been executed?

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: > I would prefer shorter and totally different from the normal output in case > of no tests ran. That's basically the whole purpose of the issue, yep ;-) -- ___ Python tracker

[issue34125] Profiling depends on whether **kwargs is given

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: I opened a wider discussion: bpo-29502. The discussion didn't go anywhere yet. -- nosy: +vstinner ___ Python tracker ___

[issue34035] Several AttributeError in zipfile seek() methods

2018-07-31 Thread STINNER Victor
STINNER Victor added the comment: Note: the seek() method has been added by bpo-22908 (commit 066df4fd454d6ff9be66e80b2a65995b10af174f), and Python 3.6 is not affected. -- nosy: +vstinner ___ Python tracker ___

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 172a81e42bc30da1bd4027db9cd3b6172469f7fe by Yury Selivanov (Miss Islington (bot)) in branch '3.7': [3.7] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8586) https://github.com/python/cpython/commit/172a81e42bc30

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6f16ffc1879fc934eba297b3e81bd940e32a7e03 by Yury Selivanov (Miss Islington (bot)) in branch '3.6': [3.6] bpo-34263 Cap timeout submitted to epoll/select etc. to one day. (GH-8532) (GH-8587) https://github.com/python/cpython/commit/6f16ffc1879fc

[issue34263] asyncio: "relative *delay* or absolute *when* should not exceed one day"

2018-07-31 Thread Yury Selivanov
Yury Selivanov added the comment: Merged. Thank you, hope that you'll keep contributing! :) -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue24218] Also support SMTPUTF8 in smtplib's send_message method.

2018-07-31 Thread Jens Troeger
Jens Troeger added the comment: > Well, posting on a closed issue is generally not the best way :) Fair enough ;) > The multiple carriage returns is a bug, and there is an open issue for it, > though I'm not finding it at the moment. Oh good, yes that should be fixed! My current workaroun

[issue34244] Add support of check logger

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: What is your use case? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: Well, loggerDict is an internal implementation detail which shouldn't be directly called by the code in borgbackup. Hence I'm not sure you can call it a bug. When messing around with internals of objects, caveats apply. Note that loggerDict isn't mentioned in t

[issue29036] logging module: Add `full_module_name` to LogRecord details

2018-07-31 Thread Vinay Sajip
Vinay Sajip added the comment: If you use the recommended approach of using logger = logging.getLogger(__name__), then the logger's name (the name field in the LogRecord) will be the full module path. -- ___ Python tracker

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-31 Thread Emily Morehouse
Emily Morehouse added the comment: This issue was brought to my attention -- I'm helping build the PEP 572 implementation. I'll make sure the docs get updated (and Jonathan, I didn't actually know that assignment expressions were mentioned in the FAQ, so this was still helpful!) --

[issue34237] faq/design: PEP 572 adds assignment expressions

2018-07-31 Thread Chris Angelico
Chris Angelico added the comment: BTW, sorry for sounding a bit snippy in my comment. Jonathan, in future, rather than dropping someone an email, it'd be more normal to just ping the person on the issue itself. -- ___ Python tracker

[issue32947] Support OpenSSL 1.1.1

2018-07-31 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Yes test_poplib and test_ftplib on fedora rawhide when run against openssl 1.1.1 pre8. Haven't tried the pr7, but assuming that the tests were fine before here is the list of changes between pre7 and pre8: https://github.com/openssl/openssl/compare/Op

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-31 Thread Wolfgang Maier
Change by Wolfgang Maier : Added file: https://bugs.python.org/file47723/Python 3.7.0 (64-bit)_20180731180657.log ___ Python tracker ___ __

[issue34232] Python3.7.0 exe installers (32 and 64 bit) failing on Windows7

2018-07-31 Thread Wolfgang Maier
Wolfgang Maier added the comment: Oh, sorry, I didn't realize there was another file and it seems I did not keep it so I just ran the installer again to reproduce. Attached is the new pair of log files. -- Added file: https://bugs.python.org/file47722/Python 3.7.0 (64-bit)_2018073118

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Okay, I did some code search on GitHub for `logging.Logger.manager.loggerDict.clear()` (https://github.com/search?q=logging.Logger.manager.loggerDict.clear%28%29&type=Code) and there was some code in the test_logging where it was used in tearDown a

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread STINNER Victor
Change by STINNER Victor : -- nosy: -vstinner ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34294] re.finditer and lookahead bug

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

[issue33729] Hashlib/blake2* missing 'data' keyword argument

2018-07-31 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In case of int() the name of it's first argument was documented, in both the module documentation, and in interactive help. But the documented name of the first blake2b() argument was "data", and it never worked. Since help() was not worked for blake2b, th

[issue34294] re.finditer and lookahead bug

2018-07-31 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: ➜ cpython git:(70d56fb525) ✗ ./python.exe Python 3.7.0a2+ (tags/v3.7.0a2-341-g70d56fb525:70d56fb525, Jul 31 2018, 21:58:10) [Clang 7.0.2 (clang-700.1.81)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> ➜ cpython

[issue34295] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: ctypes nosy: hacksg priority: normal severity: normal status: open title: Avoid inefficient way to find start point in deque.index type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 _

[issue34295] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- keywords: +patch pull_requests: +8097 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34295] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: +Extension Modules -ctypes ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue34296] Speed up python startup by pre-warming the vm

2018-07-31 Thread Cyker Way
New submission from Cyker Way : I'm currently writing some shell tools with python3. While python can definitely do the job succinctly, there is one problem which made me feel I might have to switch to other languages or even pure bash scripts: python startup time. Shell tools are used very

[issue34295] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Raymond Hettinger
New submission from Raymond Hettinger : Can you run some timings to show the difference. Also, you need to sign a CLA. -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___

[issue34297] Windows py.exe launcher fail to handle quote correctly

2018-07-31 Thread Francois Godin
New submission from Francois Godin : Using double quote around the version argument will cause a failure. Ex (failure): "py.exe" "-3" "test.py" => run_child: about to run '3" "...\python.exe" "test.py"' => ...\python.exe: can't open file '3 test.py': [Errno 22] Invalid argument Removing the d

[issue34297] Windows py.exe launcher fail to handle quote correctly

2018-07-31 Thread Francois Godin
Change by Francois Godin : -- type: -> behavior versions: +Python 2.7, Python 3.4, Python 3.5 ___ Python tracker ___ ___ Python-bug

[issue34295] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: OP closed the PR. -- resolution: -> rejected stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 ___ Python tracker

[issue34298] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- components: Extension Modules nosy: hacksg priority: normal severity: normal status: open title: Avoid inefficient way to find start point in deque.index type: enhancement versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 __

[issue34298] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Seonggi Kim
Change by Seonggi Kim : -- keywords: +patch pull_requests: +8098 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34298] Avoid inefficient way to find start point in deque.index

2018-07-31 Thread Raymond Hettinger
New submission from Raymond Hettinger : Please run some timings to show whether the improvement is significant. Also, please sign a CLA. -- components: +Library (Lib) -Extension Modules nosy: +rhettinger versions: -Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7 _

[issue34203] documentation: recommend Python 3 over 2 in faq

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

[issue34007] test_gdb fails in s390x SLES buildbots

2018-07-31 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: New failure on s390x SLES 3.7: https://buildbot.python.org/all/#/builders/122/builds/540 -- ___ Python tracker ___ _

[issue34269] logging in 3.7 behaves different due to caching

2018-07-31 Thread Thomas Waldmann
Thomas Waldmann added the comment: I agree that we should not dig that deep into logging internals and clear that dict from borg code. But, seems like one has no public api to reinitialize logging to a like-fresh state, right? So maybe THAT is the real problem. Add some .reset() method to d

[issue34286] lib2to3 tests fail on the 3.7 branch (used to work with 3.7.0)

2018-07-31 Thread Brett Cannon
Brett Cannon added the comment: Could be related to https://bugs.python.org/issue21446 . -- nosy: +berker.peksag ___ Python tracker ___ ___

[issue34299] argparse description formatting

2018-07-31 Thread Phillip M. Feldman
New submission from Phillip M. Feldman : With `argparse`, I'm providing a triple-quoted string via the `description` argument of the constructor. When I invoke the script with the -h or --help argument, all formatting in the triple-quoted string is lost, i.e., all paragraphs are run together

[issue34300] gcc 7.3 causes a warning when compiling getpath.c in python 2.7

2018-07-31 Thread tzickel
New submission from tzickel : When compiling on ubuntu 18.04 the 2.7 branch, I get this warning: gcc -pthread -c -fno-strict-aliasing -g -O2 -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -IInclude -I./Include -DPy_BUILD_CORE -DPYTHONPATH='":plat-linux2:lib-tk:lib-old"' \ -D

  1   2   >