[issue34732] uuid returns version more than 5

2018-09-20 Thread jophine antony
jophine antony added the comment: I had raised a PR in github when i have created this ticket but forgot to add it here: https://github.com/python/cpython/pull/9413 -- ___ Python tracker ___

[issue34747] SSLSocket.context cannot be changed on non-connected sockets

2018-09-20 Thread Vincent Pelletier
New submission from Vincent Pelletier : >From ssl.py, both on 2.7.15 and 3.6.6: class SSLSocket(...): ... @context.setter def context(self, ctx): self._context = ctx self._sslobj.context = ctx _sslobj is only set when socket is connected. While this is not a big issue fo

[issue34659] Inconsistency between functools.reduce & itertools.accumulate

2018-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > As for pickling/copying, this task is technically difficult, > it but I don't see principal problems. I've added the pickle/copy support to the PR. > is it worth to add it? Tim was persuasive, so I've agreed to add the feature. It may be little used

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-20 Thread Gabriel Marko
Gabriel Marko added the comment: @Larry and Terry: I want to stay out of this discussion or participation on Python development for the future as I've expressed it elsewhere (https://bugs.python.org/issue34660#msg325515). However, I want to address the unfair treatment of my person and what

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2018-09-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

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

2018-09-20 Thread Jeroen Demeyer
Change by Jeroen Demeyer : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ __

[issue34742] Add optional argument for exit status in argparse.ArgumentParser.error

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

[issue34542] [TLS] Update test certs to future proof settings

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 49d65958e13db03b9a4240d8bdaff1a4be69a1d7 by Miss Islington (bot) (Christian Heimes) in branch '2.7': [2.7] bpo-34542: Update test certs and keys (GH-8997) (GH-9397) https://github.com/python/cpython/commit/49d65958e13db03b9a4240d8bdaff1a4be69a1d

[issue34542] [TLS] Update test certs to future proof settings

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 11485102cb7b3c57a1bc6d04c4ff4b1e25c53530 by Miss Islington (bot) (Christian Heimes) in branch '3.6': [3.6] bpo-34542: Update test certs and keys (GH-8997) (GH-9396) https://github.com/python/cpython/commit/11485102cb7b3c57a1bc6d04c4ff4b1e25c5353

[issue34742] Add optional argument for exit status in argparse.ArgumentParser.error

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Seems like a reasonable addition (Customization of writing to sys.stderr too) . It seems to have been inherited from optparse which has pretty much the same code with hardcoded exit code. The solution suggested is to catch SystemExit and provide cu

[issue34737] Python upgrade with SYSTEM account uninstalls python

2018-09-20 Thread Jatin Goel
Jatin Goel added the comment: Hi Steve, It's not actually an issue with the Tcl/Tk package. This is happening for all the packages. Even with the installAllUsers flag set, the installation for all users fail, and then it tries to do justForMe installation, and that too is failing. Again el

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-20 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- resolution: -> rejected stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34559] multiprocessing AuthenticationError when nesting with non-default authkey

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

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 8d1e190fc507a9e304f6817e761e9f628a23cbd8 by Berker Peksag in branch 'master': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/8d1e190fc507a9e304f6817e761e9f628a23cbd8 -- _

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8856 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8857 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset b10a64d117de6121ea3e79c467c4107f8f399f3d by Berker Peksag in branch 'master': bpo-34743: Fix test_database_source_name under SQLite 3.7.9 (GH-9426) https://github.com/python/cpython/commit/b10a64d117de6121ea3e79c467c4107f8f399f3d -- __

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8858 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34748] Incorrect HTML link in functools.partial

2018-09-20 Thread xitop
New submission from xitop : There is a minor issue regarding the page https://docs.python.org/3/library/functools.html The description of functools.partial starts with text "Return a new partial object" which contains a link. This link does not point to the partial object (#partial-objects a

[issue34344] Fix the docstring for AbstractEventLoopPolicy.get_event_loop

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

[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

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

[issue33545] Docs for uuid don't mention that uuid1 can repeat in some circumstances

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

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- Removed message: https://bugs.python.org/msg325858 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: == ERROR: setUpClass (test.test_nntplib.NetworkedNNTPTests) -- Traceback (most recent call last): File "/home/travis/build/p

[issue33813] Update overdue 'Deprecated ... removed in 3.x' messages

2018-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See also issue27032. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mai

[issue34749] improve performance of binascii.a2b_base64()

2018-09-20 Thread Sergey Fedoseev
New submission from Sergey Fedoseev : I reworked implementation of binascii.a2b_base64() and there is significant speedup: $ python -m perf timeit --compare-to ~/tmp/cpython-master-venv/bin/python -s "from binascii import b2a_base64, a2b_base64; s = b2a_base64(1000 * b'b')" "a2b_base64(s)" /

[issue34749] improve performance of binascii.a2b_base64()

2018-09-20 Thread Sergey Fedoseev
Change by Sergey Fedoseev : -- keywords: +patch pull_requests: +8859 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: I think it would be nice if tweaked support.transient_internet() to catch EADDRNOTAVAIL. See https://github.com/python/cpython/commit/e4dcbbd7f4ac18d01c0ec85f64ae98b8281ed403#diff-7fa374913c0ecbdc621db8ea79a1212bR78 for another example. -- _

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: The "ill-defined" in Python 3.6 relates to the fact that we never actually defined or tested which environment variables were read by Py_Main and which ones were read by Py_Initialize, since the majority of our tests only covered Py_Main (by launching a full P

[issue33236] MagicMock().__iter__.return_value is different from MagicMock().__iter__()

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Can you please link to the relevant documentation that is misleading? As I can see from the source code return value is a Mock object [1] which I believe the docs state as below : https://docs.python.org/3/library/unittest.mock.html#calling > Mock

[issue31628] test_emails failure on FreeBSD

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

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-20 Thread Antony Lee
New submission from Antony Lee : A quick check suggests that enum entries can be programmatically created by assigning to locals() in the Enum body: class E(Enum): locals()["a"] = 1 E.a # -> However, using locals().update(...) doesn't, and silently does the wrong thing: class E(En

[issue33110] Adding a done callback to a concurrent.futures Future once it has already completed, may raise an exception, contrary to docs

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

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

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: https://github.com/python/cpython/pull/9257 should be complete now, although I may have gone overboard on the documentation updates (as it seems to be unclear, at least to Victor, why PYTHONCOERCECLOCALE exists in the first place) -- _

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

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: (Also, the patch is currently still written on the assumption that it won't be backported to 3.7.1. I haven't checked if it would apply cleanly to 3.7.x, but I suspect not, given the magnitude of the startup changes targeting 3.8.0 since 3.7.0 was released) -

[issue33117] asyncio example uses non-existing/documented method

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I think `asyncio.run_coroutine_threadsafe(coro, loop)` returns a concurrent.futures.Future [1] which supports timeout and not asyncio.Future which doesn't support timeout. Please add in if I am missing anything. Since asyncio docs are being rewritte

[issue19431] Document PyFrame_FastToLocals() and PyFrame_FastToLocalsWithError()

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: I closed the issue because we decided to not document the function, but I'm still interested to mark the API is private. Such change is more sensitive, so I added it my larger "New C API" project which works on finding a way to deprecate functions and provid

[issue33085] *** Error in `python': double free or corruption (out): 0x00007ff5254d50d0 ***

2018-09-20 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add a little more description on reproducing this issue along with OS details ? By "the installation of readline (6.2.4.1) [1]" are you referring to a third party package that you have installed with Python tha

[issue32995] Add a glossary entry for context variables

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

[issue32291] Value error for string shared memory in multiprocessing

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

[issue32019] Interactive shell doesn't work with readline bracketed paste

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

[issue31898] Add a `recommended-packages.txt` file

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

[issue31865] html.unescape does not work as per documentation

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

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
New submission from Jeroen Demeyer : It's not hard to come up with a hash collision for tuples: >>> hash( (1,0,0) ) 2528505496374819208 >>> hash( (1,-2,-2) ) 2528505496374819208 The underlying reason is that the hashing code mixes ^ and *. This can create collisions because, for odd x, we hav

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > Thanks for chiming in Florian, and thanks Pablo for your detailed > investigation. :) I concur, very interesting talk ;-) -- ___ Python tracker _

[issue34690] Store startup modules as C structures for 20%+ startup speed improvement

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: python-dev thread with more discussion of the patch: https://mail.python.org/pipermail/python-dev/2018-September/155188.html Note that my comment above was based on a misunderstanding of what the patch does - the module level code still gets executed at import

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > I think it would be nice if tweaked support.transient_internet() to catch > EADDRNOTAVAIL. Sure, that sounds like a reasonable change? Do you want to work on a PR? If not, maybe we should open a new issue, since this issue is tidly linked to test_nntplib,

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > The "ill-defined" in Python 3.6 relates to the fact that we never actually > defined or tested which environment variables were read by Py_Main and which > ones were read by Py_Initialize, since the majority of our tests only covered > Py_Main (by launchin

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: > Sure, that sounds like a reasonable change? Oh, typo: you should read "Sure, that sounds like a reasonable change." :-) -- ___ Python tracker ___

[issue30140] Binary arithmetic does not always call subclasses first

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: Note that we've left a similar operand precedence handling issue languishing for a long time over compatibility concerns: https://bugs.python.org/issue11477 In that case, NumPy is actually benefiting from the discrepancy with the documentation though, as the l

[issue34247] PYTHONOPTIMIZE ignored in 3.7.0 when using custom launcher

2018-09-20 Thread Nick Coghlan
Nick Coghlan added the comment: Yep, exactly - things are much improved already, thanks primarily to your work, and it seems likely they'll be even further improved by the time 3.8.0 comes around :) -- ___ Python tracker

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: Yeah, I will submit a pull request today. The reason I reopened this issue is that I didn't want to file another issue for a similar problem and wanted to use this as a meta issue for issues with test_nntplib. Also, I'd like to play Martin's patches a bit and

[issue34663] Support POSIX_SPAWN_USEVFORK flag in posix_spawn

2018-09-20 Thread Ronald Oussoren
Ronald Oussoren added the comment: Same here, even if I learned more about the implementation of posix_spawn than I should have to know ;-) -- ___ Python tracker ___

[issue34752] warnings.warn fails silently with unicode input

2018-09-20 Thread Nicholas Parslow
New submission from Nicholas Parslow : example: Python 2.7.14 |Anaconda, Inc.| (default, Dec 7 2017, 17:05:42) [GCC 7.2.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import warnings >>> warnings.warn(u'blé') >>> warnings.warn('blah') __main__:1: UserWa

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-20 Thread Ethan Furman
Ethan Furman added the comment: `locals()` returns the dictionary being used (an _EnumDict) and direct assignment uses the `__setitem__` method, which has been overridden -- and it is the only one; so `update()`, etc., still have normal dict meanings and not Enum ones. Next step: compile l

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8860 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 9445 is an implementation of this idea. For simplicity and for reducing affect on tests no deprecation warning is raised, and there is no validation of the type of argument for old classes. Num('123') will just return Constant('123') without errors and

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- pull_requests: +8861 stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mai

[issue34751] Hash collisions for tuples

2018-09-20 Thread Raymond Hettinger
Raymond Hettinger added the comment: > It's not hard to come up with a hash collision for tuples: Nor is it hard to come up with collisions for most simple hash functions. For typical use cases of tuples, what we have works out fine (it just combined the effects of the underlying hashes).

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: +1. I wanted to propose this change while I was working on FAT Python, but I waited until I "completed" this project. Sadly, I abandonned the FAT Python. And I wasn't brave enough to propose to break the AST. -- _

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8862 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8863 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 8213eaddf3ce8e87564d2949454903a1484748b5 by Berker Peksag in branch 'master': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/8213eaddf3ce8e87564d2949454903a1484748b5 --

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-20 Thread Steve Dower
Change by Steve Dower : -- nosy: -steve.dower ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue34753] Use coroutine object or coroutine function instead of coroutine

2018-09-20 Thread Windson Yang
New submission from Windson Yang : A PR https://github.com/python/cpython/pull/9408 solved an ambiguous problem about coroutine. Which led me to https://docs.python.org/3/library/asyncio-task.html#awaitables > Note that in this documentation the term “coroutine” can be used for two > closely

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 476177005e8c8d4ece3070c8c378f8b8c068e76f by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/476177005e8c8d4ece3070c8c378f8b8c068e76f

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8864 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8865 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34694] Dismiss To Avoid Slave/Master wording cause it easier for non English spoken programmers

2018-09-20 Thread Jose Angel Acosta
Jose Angel Acosta added the comment: I'm so sorry to see my proposal just derived in personal attacks. The problem here is the core who "owns" python, admited a change to the Language documentation on whats should be considered a political or cultural bias w/o considering the broad community

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 1eabe19c57938dd70b66b97239be337294e15cba by Miss Islington (bot) in branch '3.6': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/1eabe19c57938dd70b66b97239be337294e15cba -- nosy

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
New submission from Berker Peksag : == FAIL: test_flush_return_value (test.test_mmap.MmapTests) -- Traceback (most recent call last): File "/usr/home/buildbo

[issue34751] Hash collisions for tuples

2018-09-20 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > Nor is it hard to come up with collisions for most simple hash functions. The Bernstein hash algorithm is a simple algorithm for which it can be proven mathematically that collisions cannot be generated if the multiplier is unknown. That is an objective im

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
Change by Berker Peksag : -- keywords: +patch pull_requests: +8866 stage: needs patch -> patch review ___ Python tracker ___ ___ Pyt

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 015cd0f5cb17b1b208a92e549cd665dc38f2f699 by Berker Peksag (Miss Islington (bot)) in branch '3.7': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/015cd0f5cb17b1b208a92e549cd665dc38f2f699 -

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8867 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue34743] test_database_source_name fails with SQLite 3.7.9

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8868 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 170ea8ccd4235d28538ab713041502d07ad1cacd by Miss Islington (bot) in branch '2.7': bpo-19756: Prevent test failures due to EADDRNOTAVAIL (GH-9446) https://github.com/python/cpython/commit/170ea8ccd4235d28538ab713041502d07ad1cacd -- ___

[issue34750] locals().update doesn't work in Enum body, even though direct assignment to locals() does

2018-09-20 Thread Antony Lee
Antony Lee added the comment: I have a personal helper function for writing (Qt) GUIs that generates ComboBoxes from Enums; essentially something like class Choices(Enum): choice1 = "text for choice 1" choice2 = "text for choice 2" def callback(choice: Choices):

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Nathaniel Manista
Nathaniel Manista added the comment: > In 3.4, format_list() was documented to accept return values of extract_tb() > > and extract_stack() functions and they both were returned lists: > > def extract_tb(tb, limit=None): > return list(_extract_tb_iter(tb, limit=limit)) > > def

[issue19756] test_nntplib: sporadic failures, network isses? server down?

2018-09-20 Thread STINNER Victor
STINNER Victor added the comment: Thanks Berker! Do you want to do something with Martin's patches? If not, can you please close the issue? -- ___ Python tracker ___

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Eric Snow added the comment: FWIW, the PEP 520 example isn't exactly right. PEP 520 is about the class definition namespace, not the namespace object passed to type(). That always does the right thing, since the default class definition namespace is dict (which happens to be ordered in 3.6

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Change by Eric Snow : -- Removed message: https://bugs.python.org/msg325897 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34320] Creating dict from OrderedDict doesn't preserve order

2018-09-20 Thread Eric Snow
Eric Snow added the comment: FWIW, the PEP 520 example isn't exactly right. PEP 520 is about the class definition namespace, not the namespace object passed to type(). That always does the right thing, since the default class definition namespace is dict (which happens to be ordered in 3.6

[issue34011] Default preference not given to venv DLL's

2018-09-20 Thread Steve Dower
Steve Dower added the comment: This change breaks a number of tests when run on a proper installation, since we still need to copy pythonXY.dll or else python.exe refuses to start. Since I'm fixing these tests today, I'll also fix this issue. -- assignee: -> steve.dower ___

[issue16438] Numeric operator predecence confusing

2018-09-20 Thread Elliot Edmunds
Elliot Edmunds added the comment: I agree that linking to the precedence table is probably the best solution. A different option would be to add an extra column listing the "priority" and rank the priorities of the different operations. -- nosy: +Elliot Edmunds _

[issue33649] asyncio docs overhaul

2018-09-20 Thread miss-islington
Change by miss-islington : -- pull_requests: +8869 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue33649] asyncio docs overhaul

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset e247b46cba4f4d32ea96a15dbc36d73265171106 by Yury Selivanov in branch 'master': bpo-33649: More improvements (GH-9439) https://github.com/python/cpython/commit/e247b46cba4f4d32ea96a15dbc36d73265171106 -- ___

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : * Perform cheap comparison with None before expensive checks in task_step_impl(). * Use more efficient private API for getting and setting an optional attribute. * Use PyGen_Check() instead of inspect.isgenerator(). * Use faster and more idiomatic way of g

[issue34755] Few minor optimizations in _asynciomodule.c

2018-09-20 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8870 stage: -> patch review ___ Python tracker ___ ___ Python-bugs

[issue34754] test_flush_return_value fails on FreeBSD

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset bc854750589d4de0fd55693963964e0558b5c8ac by Berker Peksag in branch 'master': bpo-34754: Fix test_flush_return_value on FreeBSD (GH-9451) https://github.com/python/cpython/commit/bc854750589d4de0fd55693963964e0558b5c8ac --

[issue32892] Remove specific constant AST types in favor of ast.Constant

2018-09-20 Thread Guido van Rossum
Guido van Rossum added the comment: I don't feel confident reviewing the code, but I'm okay with the change. Can you describe what usages of the old API will continue to work, and what part will break? (It would seem that code that creates a tree using e.g. Num(42) will still work, but code

[issue26119] Windows Installer can sometimes silently fail pip stage

2018-09-20 Thread Steve Dower
Change by Steve Dower : -- resolution: -> out of date stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-

[issue33649] asyncio docs overhaul

2018-09-20 Thread miss-islington
miss-islington added the comment: New changeset 8e5ef58c10a1154f824d5875c2d89794a800eadc by Miss Islington (bot) in branch '3.7': bpo-33649: More improvements (GH-9439) https://github.com/python/cpython/commit/8e5ef58c10a1154f824d5875c2d89794a800eadc --

[issue32557] allow shutil.disk_usage to take a file path on Windows also

2018-09-20 Thread Joe Pamer
Joe Pamer added the comment: Awesome - thanks, Steve - this is all super helpful! If you're cool with it I'd like to stick to using _dirnameW for now, and then follow up with another set of PRs for the fixes you've recommended. -- ___ Python track

[issue34732] uuid returns version more than 5

2018-09-20 Thread Richard Neumann
Richard Neumann added the comment: I updated my pull request. Since "_windll_getnode()" is only returning a (random?) node for a UUID, I circumevented the value checking by introducing a new keyword-only argument "strict" defaulting to "True", there being set to "False". --

[issue34753] Use coroutine object or coroutine function instead of coroutine

2018-09-20 Thread Yury Selivanov
Yury Selivanov added the comment: > This will let people confused. IMO we should use `coroutine object` or > `coroutine function` instead of coroutine when it means an object. I'm not sure that it's a good idea to apply this change everywhere, but I think in general this is a good idea. Do

[issue34742] Add optional argument for exit status in argparse.ArgumentParser.error

2018-09-20 Thread paul j3
paul j3 added the comment: While I don't think this change will cause any backward compatibility issues, I wonder whether it does much good. https://docs.python.org/3/library/argparse.html#exiting-methods already documents the option of customizing `parser.exit` and `parser.error` parser.ex

[issue34648] Confirm the types of parameters of traceback.format_list and traceback.StackSummary.from_list post-3.5

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: > Why not support Iterable[FrameSummary]? The question that needs to be answered here is "why we should support Iterable[FrameSummary]?" and you're one the one who needs to answer it instead of saying our design decisions were "absurd" and "not wise", without

[issue30947] Update embeded copy of libexpat from 2.2.1 to 2.2.3

2018-09-20 Thread Christian Heimes
Christian Heimes added the comment: Victor, the PR for this BPO has introduced XML_POOR_ENTROPY. Neither the commit message nor the issue explains why. Which platform failed to compile without XML_POOR_ENTROPY? -- ___ Python tracker

[issue32215] sqlite3 400x-600x slower depending on formatting of an UPDATE statement in a string

2018-09-20 Thread Berker Peksag
Berker Peksag added the comment: New changeset 4fb672ff96ecbb87aaf2ecc4f04aed76aafe63b1 by Berker Peksag (Miss Islington (bot)) in branch '3.6': bpo-32215: Fix performance regression in sqlite3 (GH-8511) https://github.com/python/cpython/commit/4fb672ff96ecbb87aaf2ecc4f04aed76aafe63b1 -

  1   2   >