[issue34073] asyncio and ProcessPoolExecutor: OSError on loop.close()

2018-07-08 Thread Julien Palard
Julien Palard added the comment: Can reproduce with 3.7.0 on Linux. -- nosy: +mdk ___ Python tracker ___ ___ Python-bugs-list

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2018-07-08 Thread Larry Hastings
Larry Hastings added the comment: I'll accept this into 3.4 and 3.5, if someone produces a PR and someone else reviews it. Given that the issue has already celebrated its fifth birthday I can't say I feel a lot of urgency about it. -- ___ Python

[issue34073] asyncio and ProcessPoolExecutor: OSError on loop.close()

2018-07-08 Thread Jon Banafato
New submission from Jon Banafato : Calling loop.close() on an eventloop configured to use a ProcessPoolExecutor can result in an OSError. Expected behavior: no exception raised. Actual behavior: an OSError is raised, and following this call, quit() fails to terminate the process gracefully.

[issue28778] wsgiref HTTP Response Header Injection: CRLF Injection

2018-07-08 Thread Terry J. Reedy
Change by Terry J. Reedy : -- versions: -Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17180] shutil copy* unsafe on POSIX - they preserve setuid/setgit bits

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: Should the patch be turned into a PR or should this be closed? -- nosy: +terry.reedy versions: -Python 3.2, Python 3.3 ___ Python tracker

Re: Invalid error in python program

2018-07-08 Thread Chris Angelico
On Mon, Jul 9, 2018 at 10:02 AM, Steven D'Aprano wrote: > On Sun, 08 Jul 2018 22:13:59 +0530, Prafull Ks wrote: > >> I miss studying in class 11 cbse.College as introduced us python. I >> installed it in my laptop but when I save and runed in idle mod. The >> 3.7.0 the 7 is highlighted and syntax

Re: Invalid error in python program

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 22:13:59 +0530, Prafull Ks wrote: > I miss studying in class 11 cbse.College as introduced us python. I > installed it in my laptop but when I save and runed in idle mod. The > 3.7.0 the 7 is highlighted and syntax error is showen. As showen in the > screen shot below. Unless

Re: Invalid error in python program

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 13:02:35 -0400, Etienne Robillard wrote: > I'm guessing you may need some help in english writing too! Now that's not fair. Not everyone is fluent in English and so long as they make a genuine attempt we should be kind enough to ignore minor spelling and grammatical errors.

[issue31623] Build MSI installer for 3.4 security releases on Windows

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: If we cannot test this and will not merge without testing*, then perhaps we should close it rather than pretend it still has a chance. *Which I think would be a bad idea. In any case, I made the title specific enough so that this issue and patch might

[issue34072] 3.7.0 Windows embeddable zip vcruntime140.dll

2018-07-08 Thread hyu
New submission from hyu : 3.7.0 Windows embeddable zip is missing vcruntime140.dll(?) Running python would display error about VCRUNTIME140.DLL. Copying vcruntime140.dll from earlier 3.6.x release is a work around. -- components: Windows messages: 321294 nosy: hyu, paul.moore,

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
Jim DeLaHunt added the comment: This is what I observe when I run my original program with Python 3.7.0. Notice that the Task object instantiation fails with a clear error message: % python -c 'import sys; print(sys.version)' 3.7.0 (default, Jun 28 2018, 06:01:52) [Clang 8.0.0

[issue34071] repr(task) raises AssertionError for coros which loop.create_task accepts; complications ensue

2018-07-08 Thread Jim DeLaHunt
New submission from Jim DeLaHunt : In Python 3.6.5, Task.__repr__() with raise an AssertionError for certain, arguably incorrect, coroutines which the instantiation of Task() accepts. repr(task) thus fails with an AssertionError, instead of returning a string which describes the task object

[issue24665] CJK support for textwrap

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think that this issue should be closed, as it is based on some confusions and errors. Textwrap works in terms of characters. The wrap method "wraps the single paragraph in text (a string) so every line is at most width characters long." When the module

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-07-08 Thread Guido van Rossum
Change by Guido van Rossum : -- nosy: -gvanrossum ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

Re: Generate a static back-of-a-book style index?

2018-07-08 Thread Cameron Simpson
On 08Jul2018 06:47, Tim Chase wrote: On 2018-07-08 13:34, Cameron Simpson wrote: On 07Jul2018 21:57, Tim Chase wrote: >On 2018-07-08 12:12, Cameron Simpson wrote: >> On 07Jul2018 20:11, Skip Montanaro >> wrote: >> >> Have you looked at the ptx command? Might be called "gptx" It's associated

[issue32782] ctypes: memoryview gives incorrect PEP3118 itemsize for array of length zero

2018-07-08 Thread Eric Wieser
Eric Wieser added the comment: Pinging, as recommended by https://devguide.python.org/pullrequest/#reviewing. Ideally this and https://bugs.python.org/issue32780 would make the same patch release. -- ___ Python tracker

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Jul 9, 2018 at 5:18 AM, Marko Rauhamaa wrote: >> Chris Angelico : >>> Are you assuming that Python's semantics are defined by the semantics >>> of one possible implementation language? >> >> What are Python's semantics defined by? I've been using these: >> >>

[issue25711] Rewrite zipimport from scratch

2018-07-08 Thread Brett Cannon
Brett Cannon added the comment: I'm planning to review the PR at some point. On Sun, Jul 8, 2018, 00:42 Serhiy Storchaka, wrote: > > Serhiy Storchaka added the comment: > > Could anybody please make a review? This is just a first step, we need to > do it before making other steps:

[issue34066] Possible resource warning in "with open()"

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Maybe it is worth to disable interrupting before more opcodes. For example for fixing a problem with the contextlib.nullcontext example (issue34067) we need to disable interrupting before STORE_FAST, LOAD_FAST and JUMP_FORWARD. --

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Chris Angelico
On Mon, Jul 9, 2018 at 5:18 AM, Marko Rauhamaa wrote: > Chris Angelico : >> Are you assuming that Python's semantics are defined by the semantics >> of one possible implementation language? > > What are Python's semantics defined by? I've been using these: > >

[issue33387] Simplify bytecodes for try-finally, try-except and with blocks.

2018-07-08 Thread Gregory P. Smith
Change by Gregory P. Smith : -- nosy: +gregory.p.smith, ncoghlan, serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list

[issue32949] Simplify "with"-related opcodes

2018-07-08 Thread Gregory P. Smith
Gregory P. Smith added the comment: Additional related PR: https://github.com/python/cpython/pull/6641 tied to issue33387 which proposes replacing the existing with and try related bytecodes with two simpler ones: RERAISE and WITH_EXCEPT_FINISH. -- nosy: +gregory.p.smith

[issue32498] urllib.parse.unquote raises incorrect errormessage when string parameter is bytes

2018-07-08 Thread stein-k
stein-k added the comment: I have made the News Entry and created the Pull request as described here: https://devguide.python.org/pullrequest/. Should I update the Status and Resolution of the issue here, or wait for some kind of confirmation? --

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Chris Angelico : > Are you assuming that Python's semantics are defined by the semantics > of one possible implementation language? What are Python's semantics defined by? I've been using these: https://docs.python.org/3/reference/> https://docs.python.org/3/library/> Unfortunately,

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Chris Angelico
On Mon, Jul 9, 2018 at 4:57 AM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Mon, Jul 9, 2018 at 2:11 AM, Marko Rauhamaa wrote: >>> MRAB : In C you'd declare 'quit' as 'volatile' to tell the compiler that it could change unexpectedly, so don't make that assumption. >>> >>> C is an

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Chris Angelico : > On Mon, Jul 9, 2018 at 2:11 AM, Marko Rauhamaa wrote: >> MRAB : >>> In C you'd declare 'quit' as 'volatile' to tell the compiler that it >>> could change unexpectedly, so don't make that assumption. >> >> C is an even tougher case. Even if the compiler kept on checking a >>

[issue33346] Syntax error with async generator inside dictionary comprehension

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: PR 6766 adds numerous examples of nesting async generator expressions and comprehensions as tests. -- ___ Python tracker ___

[issue24665] Use unicodedata.east_asian_width in textwrap

2018-07-08 Thread Julien Palard
Julien Palard added the comment: Hi Inada, you're right and that's more or less why I not used CJK in the implementation: mainly I don't want to close the door to future enhancements on this topic (char width) of non-CJK languages (like those "invisible hyphens" here only to tell

[issue24665] Use unicodedata.east_asian_width in textwrap

2018-07-08 Thread INADA Naoki
Change by INADA Naoki : -- title: CJK support for textwrap -> Use unicodedata.east_asian_width in textwrap versions: +Python 3.8 -Python 3.7 ___ Python tracker ___

[issue24665] CJK support for textwrap

2018-07-08 Thread INADA Naoki
INADA Naoki added the comment: I'm not expert of this area, but Korean support is still totally broken: >>> import unicodedata >>> s = "\u1100\u1161\u11a8" >>> unicodedata.east_asian_width(s[0]) 'W' >>> unicodedata.east_asian_width(s[1]) 'N' >>> unicodedata.east_asian_width(s[2]) 'N' >>> s

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 16:37:11 +0100, MRAB wrote: > On 2018-07-08 14:38, Steven D'Aprano wrote: >> On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: >> > [snip] >>> More importantly, this loop may never finish: >>> >>> # Initially >>> quit = False >>> >>> # Thread 1 >>>

[issue34070] Superfluous call to isatty in open() when buffering >= 0

2018-07-08 Thread David Herberth
Change by David Herberth : -- keywords: +patch pull_requests: +7742 stage: -> patch review ___ Python tracker ___ ___

[issue34070] Superfluous call to isatty in open() when buffering >= 0

2018-07-08 Thread David Herberth
New submission from David Herberth : _iomodule.c:_io_open_impl checks for isatty even if not necessary (when buffering >= 0). Code: https://github.com/python/cpython/blob/c0ee341b29bd7d978b49272a2c0e2dcfa77404d5/Modules/_io/_iomodule.c#L392 { PyObject *res =

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Alexander Belopolsky
Change by Alexander Belopolsky : -- assignee: -> belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Unfortunately, the PEP authors did very little in terms of implementing the PEP and neither CPython nor numpy has a fully compliant implementation. -- nosy: +aerojockey, teoliphant ___ Python tracker

[issue32780] ctypes: memoryview gives incorrect PEP3118 format strings for both packed and unpacked structs

2018-07-08 Thread Eric Wieser
Eric Wieser added the comment: Pinging, as recommended by https://devguide.python.org/pullrequest/#reviewing. PEP3118 as a protocol is far less useful if the canonical implementation is non-compliant. -- ___ Python tracker

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 19:35:55 +0300, Marko Rauhamaa wrote: > Steven D'Aprano : >> On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: >>> PS My example with "impossible" being the result of a racy integer >>> operation is of course unlikely but could be the outcome if the Python >>> runtime

Re: Invalid error in python program

2018-07-08 Thread Etienne Robillard
I'm guessing you may need some help in english writing too! Anyways, I don't think anyone here may want to make your homeworks for you... Regards, Etienne Le 2018-07-08 à 12:43, Prafull Ks a écrit : I miss studying in class 11 cbse.College as introduced us python. I installed it in my

Re: Invalid error in python program

2018-07-08 Thread Abdur-Rahmaan Janhangeer
screenshots are not sent in this list, can you please copy paste th error or use paste bin? thanks ! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- https://mail.python.org/mailman/listinfo/python-list

Invalid error in python program

2018-07-08 Thread Prafull Ks
I miss studying in class 11 cbse.College as introduced us python. I installed it in my laptop but when I save and runed in idle mod. The 3.7.0 the 7 is highlighted and syntax error is showen. As showen in the screen shot below. Plz help me resolve this problem Ur faithful user Prafull. Thank you

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Chris Angelico
On Mon, Jul 9, 2018 at 2:11 AM, Marko Rauhamaa wrote: > MRAB : >> On 2018-07-08 14:38, Steven D'Aprano wrote: >>> On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: >>> >> [snip] More importantly, this loop may never finish: # Initially quit = False

[issue30400] Race condition in shutil.copyfile()

2018-07-08 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: All copy* functions and move() are subjects to race conditions (the only exception is rmtree()). You may solve the race condition in copyfile() but then you'd have the same problem in copystat() and copymode() which are used by copy() and copy2(). The

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Steven D'Aprano : > On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: >> PS My example with "impossible" being the result of a racy integer >> operation is of course unlikely but could be the outcome if the Python >> runtime reorganized its object cache on the fly (in a hypothetical >>

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
MRAB : > On 2018-07-08 14:38, Steven D'Aprano wrote: >> On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: >> > [snip] >>> More importantly, this loop may never finish: >>> >>> # Initially >>> quit = False >>> >>> # Thread 1 >>> global quit >>> while not quit: >>>

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread MRAB
On 2018-07-08 14:38, Steven D'Aprano wrote: On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: [snip] More importantly, this loop may never finish: # Initially quit = False # Thread 1 global quit while not quit: time.sleep(1) # Thread 2 global

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: Thanks, Marcin. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0b63759651b366ddb4c1c1dece12ef776053d5ee by Berker Peksag (Marcin Niemira) in branch '3.7': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/0b63759651b366ddb4c1c1dece12ef776053d5ee --

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 404156534893461165bb5b99a42cabe261dddb78 by Berker Peksag (Marcin Niemira) in branch '3.6': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/404156534893461165bb5b99a42cabe261dddb78 --

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 14:11:58 +0300, Marko Rauhamaa wrote: > Steven D'Aprano : >> Changing implementations from one which is thread safe to one which is >> not can break people's code, and shouldn't be done on a whim. >> Especially since such breakage could be subtle, hard to notice, harder >> to

[issue4963] mimetypes.guess_extension result changes after mimetypes.init()

2018-07-08 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue1043134] Add preferred extensions for MIME types

2018-07-08 Thread Sascha Silbe
Change by Sascha Silbe : -- nosy: +sascha_silbe ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Marcin Niemira
Change by Marcin Niemira : -- pull_requests: +7741 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Marcin Niemira
Change by Marcin Niemira : -- pull_requests: +7740 stage: backport needed -> patch review ___ Python tracker ___ ___

Re: testing code

2018-07-08 Thread Sharan Basappa
On Sunday, 8 July 2018 12:42:07 UTC+5:30, Christian Gollwitzer wrote: > Am 08.07.18 um 06:21 schrieb Sharan Basappa: > > sorry. there was a copy paste error when i posted. I pasted test_2.py for > > both the files: > > > > here are the files again. The issue remains. > > > output: > > %run

[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: This is a duplicate of bpo-32689. > It should use `os.fspath(path)` to get the path as a string. PR 5393 already does that. -- nosy: +berker.peksag resolution: -> duplicate stage: needs patch -> resolved status: open -> closed superseder: ->

Re: Generate a static back-of-a-book style index?

2018-07-08 Thread Tim Chase
On 2018-07-08 13:34, Cameron Simpson wrote: > On 07Jul2018 21:57, Tim Chase wrote: > >On 2018-07-08 12:12, Cameron Simpson wrote: > >> On 07Jul2018 20:11, Skip Montanaro > >> wrote: > >> >> Have you looked at the ptx command? Might be called "gptx" > > It's associated with the troff stuff

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Change by Berker Peksag : -- stage: patch review -> backport needed ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue34061] Document sqlite3.NotSupportedError exception

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset bc9aa813a34474e517af8999565ff6151559d42f by Berker Peksag (Marcin Niemira) in branch 'master': bpo-34061: Document sqlite3.NotSupportedError (GH-8172) https://github.com/python/cpython/commit/bc9aa813a34474e517af8999565ff6151559d42f --

[issue34069] shutil.move fails with AttributeError

2018-07-08 Thread Eryk Sun
Eryk Sun added the comment: This issue isn't specific to Windows. It's a bug in shutil._basename: def _basename(path): # A basename() variant which first strips the trailing slash, if present. # Thus we always get the last component of the path, even for directories.

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Steven D'Aprano : > Changing implementations from one which is thread safe to one which is > not can break people's code, and shouldn't be done on a whim. > Especially since such breakage could be subtle, hard to notice, harder > to track down, and even harder still to fix. Java's HotSpot does it

[issue34064] subprocess functions with shell=1 pass wrong command to win32 shell

2018-07-08 Thread Eryk Sun
Eryk Sun added the comment: This PR works around a bug in CMD, so I'm inclined to close it as a third-party issue. CMD is supposed to implement the following behavior: 1. If all of the following conditions are met, then quote characters on the command line are preserved:

[issue34069] Fail to move file in Windows (AttributeError)

2018-07-08 Thread Joshua Avalon
New submission from Joshua Avalon : from shutil import move from pathlib import Path a = Path("s") b = Path("a.txt") move(b, a) This will throw AttributeError: 'WindowsPath' object has no attribute 'rstrip' >From the document, it should able to move: If the destination is an existing

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Steven D'Aprano
On Sun, 08 Jul 2018 10:52:15 +0300, Marko Rauhamaa wrote: > You are on the right track, Chris, but you are still deducing behavior > from a particular implementation. For example Java's definition is > approximately the one I give above: > >Without correct synchronization, very strange,

Re: about main()

2018-07-08 Thread Abdur-Rahmaan Janhangeer
non native speakers try to do their best as for ... who can't be bothered to use correct grammar in English, and probably are comparably sloppy in their code. ... maybe but check INADA NAOKI Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ or the practicality of killfiling people

Re: about main()

2018-07-08 Thread Abdur-Rahmaan Janhangeer
i appreciate every suggestions though ^^_ Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Ahh, yes. The elegant purity of reading every email that goes through > this mailing list, or the practicality of killfiling people who can't > be bothered to use correct grammar in English, and

[issue32788] Better error handling in sqlite3

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-08 Thread Dong-hee Na
Change by Dong-hee Na : -- keywords: +patch pull_requests: +7739 stage: -> patch review ___ Python tracker ___ ___

[issue30416] constant folding opens compiler to quadratic time hashing

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Okay, this issue is fixed in 3.6. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue30416] constant folding opens compiler to quadratic time hashing

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- priority: deferred blocker -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.6 ___ Python tracker ___

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread miss-islington
miss-islington added the comment: New changeset a410f9f614b62cd7df220186d081ffd73786be91 by Miss Islington (bot) in branch '3.7': bpo-31014: Fix the webbrowser module. (GH-7267) https://github.com/python/cpython/commit/a410f9f614b62cd7df220186d081ffd73786be91 -- nosy:

Re: Thread-safe way to add a key to a dict only if it isn't already there?

2018-07-08 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Jul 8, 2018 at 11:04 AM, Steven D'Aprano > wrote: >>> The only thing Python should guarantee is that the data structures stay >>> "coherent" under race conditions. In other words, there cannot be a >>> segmentation fault. For example, if two threads executed this code

[issue25711] Rewrite zipimport from scratch

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could anybody please make a review? This is just a first step, we need to do it before making other steps: implementing more modern import API, supporting large ZIP files and ZIP files with comments, implementing loading binary extensions from ZIP files,

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread miss-islington
Change by miss-islington : -- pull_requests: +7738 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue31014] webbrowser._synthesize uses outdated calling signature for webbrowser.register

2018-07-08 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset 25b804a9c21c735ce322877f105ebab2539ccfc1 by Serhiy Storchaka in branch 'master': bpo-31014: Fix the webbrowser module. (GH-7267) https://github.com/python/cpython/commit/25b804a9c21c735ce322877f105ebab2539ccfc1 --

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

2018-07-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: The text widget in IDLE is actually an instance of MulticallCreator(Text). For tk_scroll2.py, I added the idlelib import and the call to MulticallCreator. -- Added file: https://bugs.python.org/file47677/tk_scroll2.py

Re: testing code

2018-07-08 Thread Christian Gollwitzer
Am 08.07.18 um 06:21 schrieb Sharan Basappa: sorry. there was a copy paste error when i posted. I pasted test_2.py for both the files: here are the files again. The issue remains. output: %run "D:/Projects/Initiatives/machine learning/programs/test_2_test.py" 30 Jim spotted it... '%run'

[issue16822] execv (et al.) should invoke atexit handlers before executing new code

2018-07-08 Thread Tal Einat
Tal Einat added the comment: Seems like a decision needs to be made: Add support for `atexec` handlers, close this issue, or something else? -- ___ Python tracker ___

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-08 Thread Berker Peksag
Change by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue34068] Assertion failure in _PyType_Lookup

2018-07-08 Thread Stefan Behnel
Stefan Behnel added the comment: I added this assertion exactly for the purpose of finding this kind of bug. It means that some code tried to look up an attribute with a live exception set, which previously could swallow the exception in certain situations, and even if not, it is always the

[issue34041] add *deterministic* parameter to sqlite3.Connection.create_function()

2018-07-08 Thread Berker Peksag
Berker Peksag added the comment: New changeset 0830858aeedecc9ece60349f8c31c2690d1a99f8 by Berker Peksag (Sergey Fedoseev) in branch 'master': bpo-34041: Allow creating deterministic functions in Connection.create_function() (GH-8086)

Re: testing code

2018-07-08 Thread Sharan Basappa
On Sunday, 8 July 2018 11:52:39 UTC+5:30, Jim Lee wrote: > On 07/07/18 21:21, Sharan Basappa wrote: > > > > sorry. there was a copy paste error when i posted. I pasted test_2.py for > > both the files: > > > > here are the files again. The issue remains. > > [...] > > > > output: > > %run

[issue34068] Assertion failure in _PyType_Lookup

2018-07-08 Thread Serhiy Storchaka
New submission from Serhiy Storchaka : I got the following failure when running tests with coverage on VSTS. https://python.visualstudio.com/cpython/cpython%20Team/_build/results?buildId=14680=logs 2018-07-05T12:11:22.0719913Z 0:17:49 load avg: 0.82 [373/413] test_urllib

[issue31652] make install fails: no module _ctypes

2018-07-08 Thread Ma Lin
Ma Lin added the comment: > I expect that the root cause is missing libffi(-dev[el]) on your system Yes, on my Ubuntu 18.04, `make` failed to compile _ctypes module. After install libffi-dev, it was compiled successfully: One more word, full necessary dependencies on my Ubuntu 18.04: sudo

[issue33967] functools.singledispatch: Misleading exception when calling without arguments

2018-07-08 Thread Dong-hee Na
Dong-hee Na added the comment: @doerwalter Can I take a look this issue? -- nosy: +corona10 ___ Python tracker ___ ___

Re: testing code

2018-07-08 Thread Jim Lee
On 07/07/18 21:21, Sharan Basappa wrote: sorry. there was a copy paste error when i posted. I pasted test_2.py for both the files: here are the files again. The issue remains. [...] output: %run "D:/Projects/Initiatives/machine learning/programs/test_2_test.py" 30 [11:24 PM jlee@kerndev