[issue30237] Access violation due to CancelSynchronousIo of console read

2019-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: PR 7911 was merged and backported. Should this issue be closed? -- nosy: +ZackerySpytz ___ Python tracker ___

[issue36568] Typo in socket.CAN_RAW_FD_FRAMES library documentation

2019-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that this was fixed in 1b05aa219041eb1c9dbcb4ec6c1fa5b20f060bf5. -- nosy: +ZackerySpytz ___ Python tracker ___

[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-07-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: grip and docopt are not a part of standard library. I assume this issue is related to Mac OS installer and tagging it as Mac OS issue for confirmation to close it as third party issue. -- components: +macOS nosy: +ned.deily,

[issue37655] Set subset operator docs

2019-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: The docs look fine to me as well. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Raymond Hettinger
Raymond Hettinger added the comment: Try deleting bisect.py from the Python37-32 directory. I suspect there is a spurious bisect file there that in shadowing the intended standard library version which would be in Python37-32/lib. -- nosy: +rhettinger

[issue36595] IDLE: Add search to textview.ViewWindow

2019-07-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: If a ViewWindow has more that 24 lines, then it has a button bar at the bottom that currently has one button -- [Close]. 1. Make the bar permanent, regardless of size. The next steps are to adapt the editor code for Find. 2. Add another button [Search] or

[issue37657] ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed.

2019-07-22 Thread Dima Tisnek
New submission from Dima Tisnek : I have Python-3.7.2 installed. I've just installed Python3.8.0b2 on macOS, and ran "Install Certificates.command". The terminal output contained: ERROR: grip 4.5.2 requires docopt>=0.4.0, which is not installed. (certifi-2019.6.16 got installed correctly)

[issue36595] IDLE: Add search to Squeezed Output text viewer.

2019-07-22 Thread Farhaan Bukhsh
Farhaan Bukhsh added the comment: Hey, this looks like an interesting feature. I want to take a stab at it. Terry can you help me understand the requirement better and may be mentor me to write it. -- nosy: +fhackdroid ___ Python tracker

Re: Namespaces: memory vs 'pollution'

2019-07-22 Thread DL Neil
On 22/07/19 9:40 PM, Thomas Jollans wrote: On 22/07/2019 07.06, DL Neil wrote: Current thoughts: import environment_module as em - so, even more of an abbreviation than suggested!? - I rarely need to write a long list of import statements, so there won't be many. - not normally using

Nesting Custom Errors in Classes

2019-07-22 Thread DL Neil
Do you use nested classes? [following-on from the earlier, "Namespaces: memory vs 'pollution'" discussion thread, wherein a certain 'someone' remembered to from ... import ... as ... an 'action' class but forgot to also import the related custom error class! The original quest was for a

[issue37655] Set subset operator docs

2019-07-22 Thread Aldwin Pollefeyt
Aldwin Pollefeyt added the comment: For 'set < other' it says sub-set ... for 'set > other' is says super-set. Subset vs superset. So I think it's correct in the documentation. -- nosy: +aldwinaldwin ___ Python tracker

Re: Namespaces: memory vs 'pollution'

2019-07-22 Thread DL Neil
On 23/07/19 11:00 AM, Ethan Furman wrote: On 07/20/2019 05:02 PM, DL Neil wrote: Upon closer inspection, I realised it didn't just fail; it failed badly! Some silly, little, boy had imported the PythonEnvironment class but failed to ALSO import PythonVersionError. So, the reported error was

Re: Namespaces: memory vs 'pollution'

2019-07-22 Thread Thomas Jollans
On 22/07/2019 07.06, DL Neil wrote: > > Current thoughts: > > import environment_module as em > > - so, even more of an abbreviation than suggested!? > - I rarely need to write a long list of import statements, so there > won't be many. > - not normally using such abbreviations in my code,

[issue37655] Set subset operator docs

2019-07-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37646] eval() in a list comprehension

2019-07-22 Thread Steven D'Aprano
Steven D'Aprano added the comment: I'm not sure we should be so quick to close this. At the very least, I think the documentation could be improved. It does seem desirable to have the invariant: `expression` == `eval("expression")` apply in any environment. Was the change in behaviour

[issue28869] __module__ attribute is not set correctly for a class created by direct metaclass call

2019-07-22 Thread Alejandro Gonzalez
Alejandro Gonzalez added the comment: I see, that’s an interesting point. In that case, Serhiy’s approach is indeed better. PR 14166 seems stalled. I’d like to help if there’s anything left to do, if possible :) -- ___ Python tracker

[issue30864] Compile failure for linux socket CAN support

2019-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: It seems that the AF_CAN issue was fixed in bpo-31927 / d3187158c09cf899e9849f335bdff10594209167. -- nosy: +ZackerySpytz ___ Python tracker

[issue22491] Support Unicode line boundaries in regular expression

2019-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: > To meet Unicode standard requirement RL1.6 [1] all Unicode line separators > should be supported: It seems that large portions of Modules/_sre.c would have to be rewritten in order to do this. -- nosy: +ZackerySpytz

[issue37534] In minidom module ability to add Standalone Document Declaraion is missing while generating XML documents

2019-07-22 Thread Henry Harutyunyan
Change by Henry Harutyunyan : -- keywords: +patch pull_requests: +14687 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14912 ___ Python tracker

[issue26695] pickle and _pickle accelerator have different behavior when unpickling an object with falsy __getstate__ return

2019-07-22 Thread Zackery Spytz
Zackery Spytz added the comment: Josh, would you consider creating a pull request for this issue? -- nosy: +ZackerySpytz ___ Python tracker ___

Re: Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread Gregory Ewing
rkartun...@yahoo.com wrote: This code does successfully read in the bytes until there are around 2000-3000 bytes left to be read and then it seems to freeze on the int bytes_read = in.read(msg_buff, 0, msg_buff.length) line. This happens because you're trying to read more bytes than the sender

Re: Proper shebang for python3

2019-07-22 Thread Cameron Simpson
On 23Jul2019 00:19, אורי wrote: We are using `#!/usr/bin/env python`, for example on https://github.com/speedy-net/speedy-net/blob/master/speedy/core/manage.py For bash we are using `#!/usr/bin/env bash`. I don't know if those are the best but they work. Worthwhile. Plenty of platforms do

Re: Proper shebang for python3

2019-07-22 Thread Cameron Simpson
On 22Jul2019 21:14, Eli the Bearded <*@eli.users.panix.com> wrote: In comp.lang.python, Tim Daneliuk wrote: On 7/20/19 1:20 PM, Chris Angelico wrote: > On Sun, Jul 21, 2019 at 4:13 AM Michael Speer wrote: >> You may want to use `#!/usr/bin/env python3` instead. I no longer have one to

Re: Namespaces: memory vs 'pollution'

2019-07-22 Thread Ethan Furman
On 07/20/2019 05:02 PM, DL Neil wrote: Upon closer inspection, I realised it didn't just fail; it failed badly! Some silly, little, boy had imported the PythonEnvironment class but failed to ALSO import PythonVersionError. So, the reported error was not the expected exception! I don't

Re: List comprehension strangeness

2019-07-22 Thread Gregory Ewing
Nicholas Cole wrote: [x.id for x in some_function()] According to the profiler, some_function was being called 52,000 times Is some_function recursive, by any chance? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating time stamps

2019-07-22 Thread Michael F. Stemper
On 22/07/2019 16.00, Stefan Ram wrote: > "Michael F. Stemper" writes: >> The first seems a little clunky with its accessing of multiple >> attributes, but the second has an additional import. Is there >> any reason to prefer one over the other? > > |>>> import datetime > |>>>

[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Peter Farrell
Change by Peter Farrell : -- versions: +Python 3.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37656] Can't pip install because of bisect_left

2019-07-22 Thread Peter Farrell
New submission from Peter Farrell : Not able to start up Anaconda because of an error including "cannot import bisect_left" whatever that means. I uninstalled and tried to reinstall. No luck. Finally uninstalled and can't pip install anything because of this exact error. Here's my

Re: Creating time stamps

2019-07-22 Thread MRAB
On 2019-07-22 22:41, Grant Edwards wrote: On 2019-07-22, Michael F. Stemper wrote: from datetime import datetime from time import strftime timestamp = datetime.now().strftime( "%Y-%m-%d %H:%M" ) [...] Apparently, the strftime() in that last line is not the one that I explicitly

[issue37653] make install fails

2019-07-22 Thread Erlend Egeberg Aasland
Change by Erlend Egeberg Aasland : -- pull_requests: +14686 pull_request: https://github.com/python/cpython/pull/14911 ___ Python tracker ___

Re: Creating time stamps

2019-07-22 Thread Grant Edwards
On 2019-07-22, Michael F. Stemper wrote: >>> from datetime import datetime >>> from time import strftime >>> timestamp = datetime.now().strftime( "%Y-%m-%d %H:%M" ) [...] > Apparently, the strftime() in that last line is not the one that I > explicitly imported, but a method of

[issue37655] Set subset operator docs

2019-07-22 Thread Frank B
New submission from Frank B : The docs say "Test whether the set is a proper subset of other" for both set < other and set > other built-in functions. Is that a misprint? How could it be both? For the <= and >= operators it properly reverses the order so one says: Test whether every element

Re: Creating time stamps

2019-07-22 Thread Michael F. Stemper
On 22/07/2019 15.58, Chris Angelico wrote: > On Tue, Jul 23, 2019 at 6:34 AM Michael F. Stemper > wrote: >> >> I have some code that generates a time-stamp as follows: >> >> from datetime import datetime >> tt = datetime.now() >> timestamp = "%4d-%02d-%02d %02d:%02d" % \ >> (tt.year,

Re: Creating time stamps

2019-07-22 Thread Albert-Jan Roskam
On 22 Jul 2019 23:12, Skip Montanaro wrote: Assuming you're using Python 3, why not use an f-string? >>> dt = datetime.datetime.now() >>> dt.strftime("%Y-%m-%d %H:%M") '2019-07-22 16:10' >>> f"{dt:%Y-%m-%d %H:%M}" '2019-07-22 16:10' ===》》 Or if you're running < Python 3.6 (no f strings):

Re: Proper shebang for python3

2019-07-22 Thread אורי
We are using `#!/usr/bin/env python`, for example on https://github.com/speedy-net/speedy-net/blob/master/speedy/core/manage.py For bash we are using `#!/usr/bin/env bash`. I don't know if those are the best but they work. אורי u...@speedy.net On Sat, Jul 20, 2019 at 9:12 PM Michael Speer

Re: Proper shebang for python3

2019-07-22 Thread Eli the Bearded
In comp.lang.python, Tim Daneliuk wrote: > On 7/20/19 1:20 PM, Chris Angelico wrote: > > On Sun, Jul 21, 2019 at 4:13 AM Michael Speer wrote: > >> You may want to use `#!/usr/bin/env python3` instead. I no longer have one to verify, but I recall Solaris boxen used /bin/env not /usr/bin/env. >

Re: Creating time stamps

2019-07-22 Thread Skip Montanaro
Assuming you're using Python 3, why not use an f-string? >>> dt = datetime.datetime.now() >>> dt.strftime("%Y-%m-%d %H:%M") '2019-07-22 16:10' >>> f"{dt:%Y-%m-%d %H:%M}" '2019-07-22 16:10' Skip -- https://mail.python.org/mailman/listinfo/python-list

Re: Creating time stamps

2019-07-22 Thread Chris Angelico
On Tue, Jul 23, 2019 at 6:34 AM Michael F. Stemper wrote: > > I have some code that generates a time-stamp as follows: > > from datetime import datetime > tt = datetime.now() > timestamp = "%4d-%02d-%02d %02d:%02d" % \ > (tt.year, tt.month, tt.day, tt.hour, tt.minute) > > I later

Creating time stamps

2019-07-22 Thread Michael F. Stemper
I have some code that generates a time-stamp as follows: from datetime import datetime tt = datetime.now() timestamp = "%4d-%02d-%02d %02d:%02d" % \ (tt.year, tt.month, tt.day, tt.hour, tt.minute) I later realized that I could have written it as: from datetime import datetime from

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread miss-islington
miss-islington added the comment: New changeset 2406672984e4c1b18629e615edad52928a72ffcc by Miss Islington (bot) in branch '3.8': bpo-36044: Reduce number of unit tests run for PGO build (GH-14702) https://github.com/python/cpython/commit/2406672984e4c1b18629e615edad52928a72ffcc --

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14685 pull_request: https://github.com/python/cpython/pull/14910 ___ Python tracker ___

[issue36044] PROFILE_TASK for PGO build is not a good workload

2019-07-22 Thread Neil Schemenauer
Neil Schemenauer added the comment: New changeset 4e16a4a3112161a5c6981c0588142d4a4673a934 by Neil Schemenauer in branch 'master': bpo-36044: Reduce number of unit tests run for PGO build (GH-14702) https://github.com/python/cpython/commit/4e16a4a3112161a5c6981c0588142d4a4673a934

[issue37654] 2to3 no-ops on embeddable distribution

2019-07-22 Thread Bill Collins
New submission from Bill Collins : Firstly, I'd acknowledge that expecting 2to3 to work on the embeddable distribution might be the problem, but the mode of failure is silent and delayed. The problem is that 2to3 loads fix names by searching for files in a package that end in '.py'

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: No it is not fixed in Django, but I verified that adding ConnectionAbortedError on this line https://github.com/django/django/blob/c6581a40be3bb4c1e13861f0adbb3fe01f09107f/django/core/servers/basehttp.py#L55 fixes the error. --

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: Could potentially already be fixed in Django: https://github.com/django/django/commit/7785e03ba89aafbd949191f126361fb9103cb980#diff-f6d1c75ec606389da5af6558bf57f171L51 -- ___ Python tracker

[issue27682] wsgiref BaseHandler / SimpleHandler can raise additional errors when handling an error

2019-07-22 Thread Petter S
Petter S added the comment: The following message can still appear in the log when running the Django development server: Exception happened during processing of request from ('127.0.0.1', 50713) Traceback (most recent call last): File

Re: Extendable Enum like Type?

2019-07-22 Thread Ethan Furman
On 07/19/2019 01:23 AM, Antoon Pardon wrote: I don't seem to have made myself clear. The grammar with its Terminals and NonTerminals is read in from a file. The program doesn't know what they will be. For the moment what I am thinking about is something as follows: grammar =

Transfer Image from Raspberry Pi (Python) to Android app (Java)

2019-07-22 Thread rkartunova--- via Python-list
Hi everyone! I need help transferring an image via TCP from a python program on my raspberry pi to an android application. I have set up a client-server architecture such that my raspberry pi 3 records audio, performs some analysis on it, and then sends the data (via TCP) to the android app to

Re: List comprehension strangeness

2019-07-22 Thread Bob Gailer
The length of the list produced by the comprehension also give you good information. -- https://mail.python.org/mailman/listinfo/python-list

Re: Embedding Python in C

2019-07-22 Thread Jesse Ibarra
On Saturday, July 20, 2019 at 1:11:51 PM UTC-6, Stefan Behnel wrote: > Jesse Ibarra schrieb am 20.07.19 um 04:12: > > Sorry, I am not understanding. Smalltlak VW 8.3 does not support Python. > > I can only call Pyhton code through C/Python API. > > Ok, but that doesn't mean you need to write code

[issue37653] make install fails

2019-07-22 Thread SilentGhost
Change by SilentGhost : -- keywords: -3.8regression versions: -Python 3.8 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue37653] make install fails

2019-07-22 Thread SilentGhost
Change by SilentGhost : -- keywords: +3.8regression nosy: +vstinner stage: -> patch review versions: +Python 3.8 ___ Python tracker ___

Re: List comprehension strangeness

2019-07-22 Thread Chris Angelico
On Mon, Jul 22, 2019 at 11:33 PM Nicholas Cole wrote: > > I was profiling a slow function in an application last week, and came > across something that I still can’t explain. Inside a loop that was being > called 4 times, inside a for loop that ran for a few dozen times there was > a list

Re: List comprehension strangeness

2019-07-22 Thread Bob Gailer
The function IMHO must be returning a generator. I would look for a problem in the generator code. -- https://mail.python.org/mailman/listinfo/python-list

[issue37653] make install fails

2019-07-22 Thread Erlend Egeberg Aasland
New submission from Erlend Egeberg Aasland : Make install is broken in subtarget libinstall. This was introduced with commit e8692818afd731c1b7e925c626ac8200b1f1c31e. Fix in attached patch. -- components: Build files: fix.patch keywords: patch messages: 348300 nosy: Erlend Egeberg

[issue37496] Support annotations in signature strings.

2019-07-22 Thread Joannah Nanjekye
Change by Joannah Nanjekye : -- nosy: +nanjekyejoannah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +davin, pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37652] Multiprocessing shared_memory ValueError on race with ShareableList

2019-07-22 Thread Ben
New submission from Ben : When running the attached on 3.8 and 3.9 (master) I get the following: Process Process-3: Traceback (most recent call last): File

[issue37642] timezone allows no offset from range (23:59, 24:00)

2019-07-22 Thread Paul Ganssle
Paul Ganssle added the comment: I have been thinking about this more and I think the two issues (`min` and `max` vs. the incompatibility between C and Python) should be considered two separate issues. My reasoning is that a change of the value of `timezone.min` and `timezone.max` is not

Re: List comprehension strangeness

2019-07-22 Thread Calvin Spealman
It is impossible to diagnose without seeing more context. Specifically, you'll need to share the code around this line. The whole function, preferably. On Mon, Jul 22, 2019 at 9:31 AM Nicholas Cole wrote: > I was profiling a slow function in an application last week, and came > across something

[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Josh Rosenberg
Change by Josh Rosenberg : -- nosy: +josh.r ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37651] Change of inheritance of asyncio.CancelledError needs documentation

2019-07-22 Thread Gary van der Merwe
New submission from Gary van der Merwe : asyncio.CancelledError inheritance was changed in 3.8. https://bugs.python.org/issue32528 https://github.com/python/cpython/commit/431b540bf79f0982559b1b0e420b1b085f667bb7 The documentation still instructs the user to perform a pattern needed before

List comprehension strangeness

2019-07-22 Thread Nicholas Cole
I was profiling a slow function in an application last week, and came across something that I still can’t explain. Inside a loop that was being called 4 times, inside a for loop that ran for a few dozen times there was a list compression of the form: [x.id for x in some_function()] According to

Google Search results pointing to Python 2 (most of the time)

2019-07-22 Thread Santiago Basulto
Hello community, this is my first email to this list. Sorry if this sounds dumb, but anytime I do a google search I notice that the first result is from Python 2 docs. I always have to remind my students about it, and sometimes I even trip myself. [image: image.png] With the deprecation of Py2

Re: Proper shebang for python3

2019-07-22 Thread Tim Daneliuk
On 7/20/19 4:28 PM, Brian Oney wrote: > Why not make a compromise? What would be a potential pitfall of the > following spitbang? > > #!python Not sure this really changes the discussion. -- https://mail.python.org/mailman/listinfo/python-list

asyncio, transports, protocols, etc.

2019-07-22 Thread Hugh Sasse
Hello, I'm trying to get my head around asyncio, and I think I'm mostly there now, (but expect to be proved wrong :-)!). It appears to be about the newest of the PEPs according to my searches, including PEP 0, so I don't expect a huge amount of supporting documentation out there yet.

Cool Mailing List For Article Writers

2019-07-22 Thread Abdur-Rahmaan Janhangeer
Greetings all, There is a really nice list for people writing about Python. Share your latest articles and get reviews ^^_ Link: https://mail.python.org/mailman/listinfo/python-authors Abdur-Rahmaan Janhangeer Mauritius -- https://mail.python.org/mailman/listinfo/python-list

[issue37631] EXTRA_CFLAGS get overrided by CFLAGS_NODIST

2019-07-22 Thread Marcel Plch
Marcel Plch added the comment: I believe you mean this downstream issue: https://bugzilla.redhat.com/show_bug.cgi?id=1712977 That issue is but only a consequence of a bad flag handling. The bad flag handling affects not only test_gdb on that specific architecture, but the entire

[issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles

2019-07-22 Thread Roundup Robot
Change by Roundup Robot : -- keywords: +patch pull_requests: +14684 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14908 ___ Python tracker ___

[issue37650] TemporaryDirectory objects should LOCK_SH to avoid being deleted by systemd-tmpfiles

2019-07-22 Thread Ryan Gonzalez
New submission from Ryan Gonzalez : If e.g. a tar archive is extracted that has dates from several months ago, if systemd-tmpfiles runs to clean up data, then it may delete that data while the directory is still being used. This can be avoided by holding a LOCK_SH on the directory while it's

[issue37630] Investigate replacing SHA3 code with OpenSSL

2019-07-22 Thread Charalampos Stratakis
Change by Charalampos Stratakis : -- nosy: +cstratak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: How to print out html tags excluding the attributes

2019-07-22 Thread Rhodri James
On 21/07/2019 02:04, sum abiut wrote: I want to use regular expression to print out the HTML tags excluding the attributes. That's a very good way of creating hard-to-read code and introducing subtle bugs and unexpected behaviours. Try using an HTML parser like BeautifulSoup instead. --

[issue37226] Asyncio Fatal Error on SSL Transport - IndexError Deque Index Out Of Range

2019-07-22 Thread Ben Brown
Ben Brown added the comment: I can fully confirm the issue is due to flow control or lack of in my code the system runs out of resources and this is when it errors, I have implemented flow control in my protocol and it now works without errors. One thing I did find is that the documentation

[issue37646] eval() in a list comprehension

2019-07-22 Thread Grzegorz Krasoń
Grzegorz Krasoń added the comment: Steven, I believed that any `` replaced by `eval('')` will not change behaviour of the code. Now I understand that my assumption was incorrect. Raymond, thanks for helping me understand this. -- resolution: -> not a bug stage: -> resolved status:

[issue37649] calculate_init fails to check that EXEC_PREFIX was decoded

2019-07-22 Thread Orivej Desh
New submission from Orivej Desh : See https://github.com/python/cpython/pull/14897 The bug was introduced in https://github.com/python/cpython/commit/0327bde9da203bb256b58218d012ca76ad0db4e4#diff-fa81ddea06129e7a2ef6b5a1c6a0af4dR925 -- components: Interpreter Core messages: 348292

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks Jack for the report. Thanks Mario and Chris for reviews. I am closing this as resolved. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Hi, Thanks for the explanation. Could you elaborate a bit on this one: >In Python 3.8 the traceback points to the start of the subexpression that >raises an exception. Just wanted to understand why I get the desired line number when I call

[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +xtreak ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- keywords: +patch pull_requests: +14682 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14904 ___ Python tracker

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers
Chris Withers added the comment: New changeset e9b187a2bfbb0586fc5d554ce745b7fe04e0b9a8 by Chris Withers (Miss Islington (bot)) in branch '3.7': bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14903)

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers
Chris Withers added the comment: New changeset 22fd679dc363bfcbda336775da16aff4d6fcb33f by Chris Withers (Miss Islington (bot)) in branch '3.8': bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688) (GH-14902)

[issue37648] Fix minor inconsistency in the order of == operands

2019-07-22 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : There is two ways to write the comparison when we search an item equal to the needle: item == needle and needle == item In most cases they get the same result. But if __eq__ of the item or the needle is not correctly implemented (returns

[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Kyle Stanley
Kyle Stanley added the comment: > I would agree with changing the tutorial. The rest doesn't need to be > changed. Fair enough, that's understandable. I'll look into creating a PR for the tutorial to attach to this issue. Thanks for the feedback Antoine and Raymond. >AFAIK there is an

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14680 pull_request: https://github.com/python/cpython/pull/14902 ___ Python tracker ___

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread Chris Withers
Chris Withers added the comment: New changeset 7397cda99795a4a8d96193d710105e77a07b7411 by Chris Withers (Xtreak) in branch 'master': bpo-21478: Record calls to parent when autospecced objects are used as child with attach_mock (GH 14688)

[issue21478] mock calls don't propagate to parent (autospec)

2019-07-22 Thread miss-islington
Change by miss-islington : -- pull_requests: +14681 pull_request: https://github.com/python/cpython/pull/14903 ___ Python tracker ___

[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Line 9 is not where the error actually happened. The exception is raised not when you call Z(), but when you implicitly call Z.__str__() when evaluate the % operator. In Python 3.8 the traceback points to the start of the subexpression that raises an

[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: AFAIK there is an open PR which sweeps through the standard library, changing seek() everywhere to use named constants. -- nosy: +serhiy.storchaka ___ Python tracker

[issue37635] Using constant for whence arg in seek()

2019-07-22 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would agree with changing the tutorial. The rest doesn't need to be changed. -- ___ Python tracker ___

[issue32912] Raise non-silent warning for invalid escape sequences

2019-07-22 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The warning in docutils was fixed in https://sourceforge.net/p/docutils/code/8255/ 1.5 months ago. It was an outliner, all other occurrences of \leavevmode were either with the double backslash or in raw string literals. The Bottle code was written 5

[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Bruno P. Kinoshita
Bruno P. Kinoshita added the comment: Hi Ammar, thanks for the quick reply and for the suggestion. Tried on the latest version on master, and looks like it's indeed different, though still looks like it is displaying the wrong line number. ```

[issue37647] Wrong lineno in traceback when formatting strings with % and multilines

2019-07-22 Thread Ammar Askar
Ammar Askar added the comment: Please try this on the latest version of Python, there was a behavior change implemented in issue12458 that might make this a non-issue. -- nosy: +ammar2, serhiy.storchaka ___ Python tracker