[issue32750] lib2to3 log_error method behavior is inconsitent with documentation

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Nick for the details. I think 2to3 uses StdoutRefactoringTool [1] which inherits from RefactoringTool in the chain and implements log_error [2] that logs the error. StdoutRefactoringTool inherits from MultiprocessRefactoringTool [3] which

[issue34789] Make xml.sax.make_parser accept iterables

2018-09-25 Thread Andrés Delfino
Change by Andrés Delfino : -- components: +Library (Lib) -Documentation title: doc xml.sax.make_parser expects a list not just any sequence -> Make xml.sax.make_parser accept iterables ___ Python tracker

[issue34789] Make xml.sax.make_parser accept iterables

2018-09-25 Thread Andrés Delfino
Change by Andrés Delfino : -- components: +XML -Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [OT] master/slave debate in Python

2018-09-25 Thread Jon Ribbens
On 2018-09-25, Chris Angelico wrote: > On Wed, Sep 26, 2018 at 1:56 AM Jon Ribbens wrote: >> Those things might be on topic on python-dev - although I am sure >> no-one would thank you for continuing this discussion there - but >> this is comp.lang.python/python-list and here this is off-topic.

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-25 Thread Gefn
New submission from Gefn : The documentation states that "This method is different from inspect.iscoroutine() because it returns True for generator-based coroutines decorated with @coroutine." It seems to be wrong, a method written as follow: def test(): yield 1 will be evaluated as a

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Tomáš Bouda
Tomáš Bouda added the comment: It's very difficult to reproduce. In this example to get stuck on 3.6/OSX I need to attach debugger. However, the freeze happens regardless of print/logging, even def f(): pass can get stuck. os.write() made no difference and frozen, as well, as I've just

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8979 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue27934] json float encoding incorrect for dbus.Double

2018-09-25 Thread Mark Dickinson
Mark Dickinson added the comment: [Serhiy] > I have doubts about breaking it in a bugfix release of 2.7. Yes, possibly we shouldn't have changed this (though it's a fairly horrible trick, IMO). I don't think it would be a good idea to revert the change at this point, though. --

[issue27934] json float encoding incorrect for dbus.Double

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Agreed. It is too late. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: Actually, since Andrew also agrees that we need to deprecate passing coroutines to wait(), I'll keep this issue open until we add an actual DeprecationWarning in 3.8. -- resolution: fixed -> stage: resolved -> status: closed -> open

Re: [OT] master/slave debate in Python

2018-09-25 Thread Chris Angelico
On Wed, Sep 26, 2018 at 1:56 AM Jon Ribbens wrote: > > On 2018-09-25, Chris Angelico wrote: > > On Tue, Sep 25, 2018 at 11:01 PM Calvin Spealman > > wrote: > >> This entire conversation is inappropriate for this mailing list. Please > >> leave this free for people who need to ask and give help

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Nicolas Hug
Nicolas Hug added the comment: Thanks for the link, But I don't see any justification for this behavior*? Why should lists be compacted but not dicts (even when explicitly asked)? At the very least it should be made clear in the documentation that dicts are not compacted. * Maybe there's

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread R. David Murray
R. David Murray added the comment: An unlimited line length would certainly satisfy the required minimum. As silane indicates, if max_line_length is 0 or None, the serializer is not supposed to wrap lines. (In fact one would like to have the option to control this separately for the

[issue10694] zipfile.py end of central directory detection not robust

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change significantly increased the probability of false positive detection in is_zipfile(). It was around 1/2**32, now it is around 1/2**16. It looks small, but not enough small if you test hundreds of thousands files. See issue28494. --

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
silane added the comment: I've made a pull request. Please look at it. And this is my first pull request, so please let me know if something wrong. https://github.com/python/cpython/pull/9578 -- ___ Python tracker

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: PendingDeprecationWarning -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5950] Make zipimport work with zipfile containing comments

2018-09-25 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: New changeset 5a5ce064b3baadcb79605c5a42ee3d0aee57cdfc by Barry Warsaw (Zackery Spytz) in branch 'master': bpo-5950: Support reading zips with comments in zipimport (#9548) https://github.com/python/cpython/commit/5a5ce064b3baadcb79605c5a42ee3d0aee57cdfc

[issue5950] Make zipimport work with zipfile containing comments

2018-09-25 Thread Barry A. Warsaw
Change by Barry A. Warsaw : -- components: +Library (Lib) -Interpreter Core resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34800] email.contentmanager raises error when policy.max_line_length==None or 0

2018-09-25 Thread silane
Change by silane : -- keywords: +patch pull_requests: +8980 stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Change by Yury Selivanov : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30964] Mention ensurepip in package installation docs

2018-09-25 Thread Brett Cannon
Change by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: I couldn't reproduce with Python 3.6.5 on Ubuntu 18.04. Does it happen if you reduce logging? Or if you replace f() with: def f(i): os.write(1, "{}\n".format(i).encode()) -- ___ Python tracker

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 996859a90df51f84eab47351702cb59c6db4428a by Yury Selivanov in branch 'master': bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543) https://github.com/python/cpython/commit/996859a90df51f84eab47351702cb59c6db4428a

[issue34798] pprint ignores the compact parameter for dicts

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks much Serhiy for the details! -- ___ Python tracker ___ ___ Python-bugs-list

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 3cc9557d9f03086fa3b0ea166f8506087e6950e3 by Miss Islington (bot) in branch '3.7': bpo-34790: [docs] Passing coroutines to asyncio.wait() can be confusing. (GH-9543)

[issue34751] Hash collisions for tuples

2018-09-25 Thread Tim Peters
Tim Peters added the comment: >> j is even implies (j ^ -3) == -(j ^ 3) > This follows from what I posted before: if j is even, then > j ^ 3 is odd, so we can apply the rule x ^ -2 = -x to x = j ^ 3 > ... Thanks! That helps a lot. I had a blind spot there. This kind of thing would have

[issue34790] Deprecate passing coroutine objects to asyncio.wait()

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK there is no a plan for 4.0. But seems many core developers (including me) think that changing the major number should reflect some major changes like removing GIL. And Guido preferred 3.10 after 3.9. --

Re: [OT] master/slave debate in Python

2018-09-25 Thread Chris Angelico
On Wed, Sep 26, 2018 at 5:56 AM Jon Ribbens wrote: > > On 2018-09-25, Chris Angelico wrote: > > On Wed, Sep 26, 2018 at 1:56 AM Jon Ribbens > > wrote: > >> Those things might be on topic on python-dev - although I am sure > >> no-one would thank you for continuing this discussion there - but >

[issue34781] infinite waiting in multiprocessing.Pool

2018-09-25 Thread Tomáš Bouda
Tomáš Bouda added the comment: Oh, I should add that by decreasing number of workers to 4 or 8 the problem disappeared, at least to the extent when I wasn't able to reproduce it on any environment. -- ___ Python tracker

[issue32956] python 3 round bug

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: See the discussion on the Python-Dev mailing list: https://mail.python.org/pipermail/python-dev/2008-January/075863.html. For C look at the rint() function. It is a common knowledge that rounding half-to-even is what users want in most cases, but it is a

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

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. The relevant regex to is at https://github.com/python/cpython/blob/f6c8007a29b95b3ea3ca687a9b4924769a696328/Lib/html/__init__.py#L118 added with the commit 4a9ee26750aa8cb37b5072b2bb4dd328819febb4 . As far as I can see from

[issue34794] memory leak in TkApp:_createbytearray

2018-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +8961 stage: -> patch review ___ Python tracker ___ ___

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
Change by STINNER Victor : -- keywords: +patch pull_requests: +8960 stage: -> patch review ___ Python tracker ___ ___

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: I wrote PR 9557 to fix the issue. test_socket fails frequently on Travis CI, on the three Python 3.x branches. -- ___ Python tracker ___

[issue34751] Hash collisions for tuples

2018-09-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > When testing what, specifically? And the standard 32-bit FNV multiplier, or > the standard 64-bit FNV multiplier? FNV-1a with the t ^= 2 * t mangling running my new testsuite on either PR 9471 or PR 9534 using the 64-bit FNV multiplier to produce 64-bit

[issue31636] test_locale failure on OpenBSD

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Related issue on OpenBSD that proposes a patch catching the exception and skipping the test : https://bugs.python.org/issue25191 . I propose closing either of these as duplicate. It seems the PR 9178 was added to the issue by mistake and is not

[issue34751] Hash collisions for tuples

2018-09-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > I want to leave low-order hash bits alone. That's deliberate. Since I didn't understand the rationale for this and since shifting << 1 also seems to work well, I edited PR 9471 to use DJBX33A with t ^= t << 1. Since you insisted on adding 97531 at the

[issue34679] asyncio.add_signal_handler call fails if not on main thread

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

Re: [OT] master/slave debate in Python

2018-09-25 Thread Robin Becker
On 24/09/2018 17:30, Dan Purgert wrote: Robin Becker wrote: [...] just thought control of the wrong sort.. Is there "thought control of the right sort"? yes python is good python is good -- Robin Becker -- https://mail.python.org/mailman/listinfo/python-list

[issue31628] test_emails failure on FreeBSD

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: I just searched for the error and a very similar or in fact the same issue that fails with the same test was reported. It was closed as outdated since there were no errors on buildbots I hope. Adding it here the issue here that might be helpful in

Re: [OT] master/slave debate in Python

2018-09-25 Thread Robin Becker
On 24/09/2018 21:40, Kirill Balunov wrote: ... It seems to me that the word "black" has immunity in the next two Python releases ;) So do not worry so much! apparently whitelist/blacklist is an issue so presumably white should also get immunity :) But honestly, it's not pleasant to see how

[issue34751] Hash collisions for tuples

2018-09-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > j is even implies (j ^ -3) == -(j ^ 3) This follows from what I posted before: if j is even, then j ^ 3 is odd, so we can apply the rule x ^ -2 = -x to x = j ^ 3: (j ^ 3) ^ -2 = -(j ^ 3) which implies j ^ (3 ^ -2) = -(j ^ 3) or equivalently j ^ -3 =

[issue27903] Avoid ResourceWarnings from platform._dist_try_harder

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report and patch Ville. CPython development now uses GitHub PR instead of patches. It seems usages of this function was removed in 8b94b41ab7b12f745dea744e8940631318816935 during removal of platform.linux_distribution. This

[issue34777] urllib.request accepts anything as a header parameter for some URLs

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I tried similar requests and it works this way for other tools like curl since Akcept could be a custom header in some use cases though it could be a typo in this context. There is no predefined set of media types that we

[issue34794] memory leak in TkApp:_createbytearray

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report David. Feel free to attach reproducible script if any that might trigger this. I am adding Serhiy who might have a better understanding of this. Relevant issue where _createbytearray was added : issue21580 . -- nosy:

[issue34751] Hash collisions for tuples

2018-09-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > And one more: x = (x * mult) ^ t; also appears to work equally well. The order of operations does not really matter: you can write the loop as x *= mult # Appears only in FNV-1 x ^= t[0] x *= mult x ^= t[1] x *= mult x ^= t[2] x *= mult x ^=

[issue33940] datetime.strptime have no directive to convert date values with Era and Time Zone name

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

[issue34763] Python lacks 0x4E17

2018-09-25 Thread Xiang Zhang
Change by Xiang Zhang : -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33643] Mock functions with autospec STILL don't support assert_called_once, assert_called, assert_not_called

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. Can you please add a sample script that reproduces the error and the version of Python you are using? The fix was not merged to Python 3.5 as per msg278214 and I am little confused that this issue has Python 3.6 as affected

[issue34797] Convert heapq to the argument clinic

2018-09-25 Thread Pablo Galindo Salgado
Change by Pablo Galindo Salgado : -- keywords: +patch pull_requests: +8962 stage: -> patch review ___ Python tracker ___ ___

[issue33442] Python 3 doc sidebar dosnt follow page scrolling like 2.7 doc sidebar.

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report Pete. The Python documentation theme is maintained at https://github.com/python/python-docs-theme/ and this particular issue is tracked at https://github.com/python/python-docs-theme/issues/20 . Related issues : issue34378,

[issue34797] Convert heapq to the argument clinic

2018-09-25 Thread Pablo Galindo Salgado
New submission from Pablo Galindo Salgado : Convert the accelerator module `_heapqmodule.c` to the argument clinic. -- components: Argument Clinic messages: 326344 nosy: larry, pablogsal priority: normal severity: normal status: open title: Convert heapq to the argument clinic type:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8964 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8963 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2018-09-25 Thread INADA Naoki
INADA Naoki added the comment: > Perhaps another good test of the same thing would be with a metaclass that > returns an OrderedDict from __prepare__(): It is not relating to this issue: there are no conversion happened. Should I add the test in this PR? --

[issue33442] Python 3 doc sidebar dosnt follow page scrolling like 2.7 doc sidebar.

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

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Tal Einat
Tal Einat added the comment: Working on getting this in now. Just in time, it seems. -- ___ Python tracker ___ ___

[issue34797] Convert heapq to the argument clinic

2018-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32750] lib2to3 log_error method behavior is inconsitent with documentation

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

[issue31541] Mock called_with does not ensure self/cls argument is used

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

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 0b3e1208033aa1eb5452afe9387f86f299ef24e5 by Miss Islington (bot) in branch '3.6': bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) https://github.com/python/cpython/commit/0b3e1208033aa1eb5452afe9387f86f299ef24e5 --

Re: Recommended format for --log-level option

2018-09-25 Thread Peter Otten
Victor Porton wrote: > What is the recommended format for --log-level (or --loglevel?) command > line option? > > Is it a number or NOTSET|DEBUG|INFO|WARNING|ERROR|CRITICAL? Not really a recommendation, but I use choices=["DEBUG", ..., "CRITICAL"], type=str.upper It's not clear to me what it

[issue34748] Incorrect HTML link in functools.partial

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks @xitop for the report. Seems reasonable to me to link to https://docs.python.org/3.8/library/functools.html#partial-objects . Along similar lines I would suggest the below too where "partial objects" could be linked #partial-objects instead

[issue34751] Hash collisions for tuples

2018-09-25 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: > The low bits are already un-improvable in the most important cases. Maybe you misunderstood me. Suppose that there is a hash collision, say hash((3, 3)) == hash((-3, -3)) and you change the hashing algorithm to fix this collision. If that change does NOT

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: You can always do: import argparse foo = int(1e3) # Works: foo = 1000 parser = argparse.ArgumentParser() parser.add_argument( "--foo", type=lambda x: int(float(x))) parser.parse_args( ["--foo=1e3"] ) -- ___

[issue34803] argparse int type does not accept scientific notation

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

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
Jesse Hostetler added the comment: I suppose desired behavior would be to accept the argument only if it can be converted to int without loss of information. -- ___ Python tracker

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Great, thanks. I've made the other changes to the PR. -- ___ Python tracker ___ ___

Re: [OT] master/slave debate in Python

2018-09-25 Thread Thomas Jollans
On 25/09/18 20:57, Chris Angelico wrote: Is it off-topic because it's nothing to do with Python, or is it actually off-topic because it makes you afraid that people won't be bullied by the SJW brigade? I have to say I find these unspecified attacks on "SJWs" rather disturbing. Assuming for

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8982 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Vinay Sajip
Vinay Sajip added the comment: New changeset d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09 by Vinay Sajip (Cheryl Sabella) in branch 'master': bpo-34334: Don't log traceback twice in QueueHandler (GH-9537) https://github.com/python/cpython/commit/d345bb4d9b6e16c681cd8a4e1fff94ecd6b0bb09

Re: [OT] master/slave debate in Python

2018-09-25 Thread Chris Angelico
On Wed, Sep 26, 2018 at 8:47 AM Thomas Jollans wrote: > > On 25/09/18 20:57, Chris Angelico wrote: > > > > Is it off-topic because it's nothing to do with Python, or is it > > actually off-topic because it makes you afraid that people won't be > > bullied by the SJW brigade? > > > I have to say I

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Jesse Hostetler
New submission from Jesse Hostetler : The 'argparse' module gives a parse error for integer arguments written in scientific notation. I would expect this to work, since integers can be constructed from literals in scientific notation. Example (also attached): import argparse foo = int(1e3)

[issue34803] argparse int type does not accept scientific notation

2018-09-25 Thread Pablo Galindo Salgado
Pablo Galindo Salgado added the comment: The conversion fails because is trying to convert a string, not a float: >>> int("1e3") *** ValueError: invalid literal for int() with base 10: '1e3' -- nosy: +pablogsal ___ Python tracker

[issue34802] asyncio.iscoroutine() documentation is wrong

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. I believe this was done as part asyncio docs overhaul and I am adding Yury here. The current docs link to #coroutine from asyncio.iscoroutine whereas the previous docs had the definition inline. I think this is clarified in

[issue9334] argparse does not accept options taking arguments beginning with dash (regression from optparse)

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

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

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8984 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34799] When function in tracing returns None, tracing continues.

2018-09-25 Thread Fabio Zadrozny
New submission from Fabio Zadrozny : https://docs.python.org/3/library/sys.html#sys.settrace explicitly states: The local trace function should return a reference to itself (or to another function for further tracing in that scope), or None to turn off tracing in that scope. Yet, it seems

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

2018-09-25 Thread Steve Dower
Change by Steve Dower : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue34687] asyncio: is it time to make ProactorEventLoop as the default event loop?

2018-09-25 Thread Yury Selivanov
Yury Selivanov added the comment: New changeset 6ea29c5e90dde6c240bd8e0815614b52ac307ea1 by Yury Selivanov (Victor Stinner) in branch 'master': bpo-34687: Make asynico use ProactorEventLoop by default (GH-9538) https://github.com/python/cpython/commit/6ea29c5e90dde6c240bd8e0815614b52ac307ea1

[issue34334] QueueHandler logs exc_info twice

2018-09-25 Thread Cheryl Sabella
Cheryl Sabella added the comment: Hi Vinay, Thanks for the explanation! I'm good with changing the PR. I do have one question though. You wrote - > but I forgot that record.exc_text should also be zapped, as it should always > reflect the contents of record.exc_info. Based on the

[issue33940] datetime.strptime have no directive to convert date values with Era and Time Zone name

2018-09-25 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report Raghunath. Regarding timezone detection there is a limitation with %Z supporting only UTC, GMT and `time.tzname` which is not documented and it's an open issue tracked at issue22377 . Regarding a directive to determine Era I

[issue33797] json int encoding incorrect for dbus.Byte

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

[issue33797] json int encoding incorrect for dbus.Byte

2018-09-25 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33563] fileinput input's and Fileinput's bufsize=0 do not remit deprecationWarnings

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

[issue27934] json float encoding incorrect for dbus.Double

2018-09-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This change broke a trick used for serializing Decimal to JSON without loss (see msg176158). It was good to break it in a new release, but I have doubts about breaking it in a bugfix release of 2.7. -- nosy: +serhiy.storchaka

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Tal Einat
Tal Einat added the comment: This seems like it would need a "What's New" entry. How does this work with IDLE re. new features being backported? -- ___ Python tracker ___

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Tal Einat
Tal Einat added the comment: New changeset 604e7b9931f9e7881a2941816e538f5f15930db8 by Tal Einat in branch 'master': bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) https://github.com/python/cpython/commit/604e7b9931f9e7881a2941816e538f5f15930db8 --

[issue31962] test_importlib double free or corruption

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

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 321f28c5f4b7361fa1b6330697b28481b4565ec8 by Miss Islington (bot) in branch '3.7': bpo-1529353: IDLE: squeeze large output in the shell (GH-7626) https://github.com/python/cpython/commit/321f28c5f4b7361fa1b6330697b28481b4565ec8 --

[issue33937] test_socket: SendmsgSCTPStreamTest.testSendmsgTimeout() failed on Travis CI with: [Errno 12] Cannot allocate memory

2018-09-25 Thread STINNER Victor
STINNER Victor added the comment: New changeset 46f40be8b907854deb81c6132b7cb038e9e5202a by Victor Stinner in branch 'master': bpo-33937: Catch ENOMEM error in test_socket (#9557) https://github.com/python/cpython/commit/46f40be8b907854deb81c6132b7cb038e9e5202a --

[issue34804] Repetition of 'for example' in documentation

2018-09-25 Thread Aydin
New submission from Aydin : In the documentation of Python 3.7.0 there is an error in the usage of the world 'for example'. -- assignee: docs@python components: Documentation files: Functional Programming HOWTO — Python 3.7.0 documentation.png messages: 326418 nosy: docs@python,

Re: [OT] master/slave debate in Python

2018-09-25 Thread Ian Kelly
On Mon, Sep 24, 2018 at 6:55 AM Robin Becker wrote: > > On 23/09/2018 15:45, Albert-Jan Roskam wrote: > > *sigh*. I'm with Hettinger on this. > > > > https://www.theregister.co.uk/2018/09/11/python_purges_master_and_slave_in_political_pogrom/ > > > I am as well. Don't fix what is not broken. The

[issue1529353] Squeezer - squeeze large output in IDLE's shell

2018-09-25 Thread Tal Einat
Tal Einat added the comment: ISTM that this issue can finally be closed! Followup on some remaining minor points brought up here, such as colors and squeezing of multiple output lines printed separately, could be done in separate issues or discussed on idle-dev. --

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

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 12e3e80241e91df79811f53ff372e28e9371bf9b by Miss Islington (bot) in branch '3.7': bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624) https://github.com/python/cpython/commit/12e3e80241e91df79811f53ff372e28e9371bf9b --

Re: [OT] master/slave debate in Python

2018-09-25 Thread Chris Angelico
On Wed, Sep 26, 2018 at 2:36 PM Ian Kelly wrote: > So, Chris, what have *you personally* done about real slavery where it > still happens? > > If, as I'm guessing, the answer is "nothing" then it seems to me that > you don't have much of a leg to stand on to level this accusation. Am I demanding

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

2018-09-25 Thread miss-islington
miss-islington added the comment: New changeset 2aaf98c16ae3070378de523a173e29644037d8bd by Miss Islington (bot) (INADA Naoki) in branch 'master': bpo-34320: Fix dict(o) didn't copy order of dict subclass (GH-8624)

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

2018-09-25 Thread miss-islington
Change by miss-islington : -- pull_requests: +8983 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: [OT] master/slave debate in Python

2018-09-25 Thread Ian Kelly
Chris Angelico wrote: > > I was neither rude, nor personally attacking anyone. Actually, the "SJW brigade" remark was quite rude, and a clear attack on anybody who supports this change. > Yes, it's an insult. It's the people who believe that they can cure > social problems by making demands,

Re: [OT] master/slave debate in Python

2018-09-25 Thread Calvin Spealman
This entire conversation is inappropriate for this mailing list. Please leave this free for people who need to ask and give help with Python, regardless of which side of this argument you are on. On Tue, Sep 25, 2018 at 4:44 AM Robin Becker wrote: > On 24/09/2018 21:40, Kirill Balunov wrote: >

  1   2   >