[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-02-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is just the bug I reported in msg236951. Text streams are buffered, thus setting bufsize=0 does not help if universal_newlines=True. Added comments on Rietveld. -- nosy: +serhiy.storchaka ___ Python tracker

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If the problem is that the window is too small to contain the close icon, this is not Python issue. May be this is Tk issue or end application issue. -- ___ Python tracker

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Marko Rauhamaa
Steven D'Aprano : > On Tue, 23 Feb 2016 05:54 pm, Marko Rauhamaa wrote: >> However, when you are generating signing or encryption keys, you >> should use /dev/random. > > And that is where you repeat something which is rank superstition. Can you find info to back that up.

[issue26388] Disabling changing sys.argv[0] with runpy.run_module(...alter_sys=True)

2016-02-23 Thread Mike Kaplinskiy
Mike Kaplinskiy added the comment: So how might I get this patch committed? :) -- ___ Python tracker ___ ___

[issue5824] SocketServer.DatagramRequestHandler Broken under Linux

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 92ae4a305858 by Martin Panter in branch '2.7': Issue #5824: Fix DatagramRequestHandler tests by binding the client socket https://hg.python.org/cpython/rev/92ae4a305858 New changeset 0d9d8fdd9736 by Martin Panter in branch '3.5': Issue #5824: Fix

Re: How may I change values in tuples of list of lists?

2016-02-23 Thread Ben Finney
subhabangal...@gmail.com writes: > Now if I want to change the values of tags like 'AT', 'NP-TL', > 'NN-TL', etc. to some arbitrary ones like XX,YY,ZZ and yet preserve > total structure of tuples in list of lists, please suggest how may I > do it. Changing items in lists is done by assigning to

How may I change values in tuples of list of lists?

2016-02-23 Thread subhabangalore
Hi I am trying to use the following set of tuples in list of lists. I am using a Python based library named, NLTK. >>> import nltk >>> from nltk.corpus import brown as bn >>> bt=bn.tagged_sents() >>> bt_5=bt[:5] >>> print bt [[(u'The', u'AT'), (u'Fulton', u'NP-TL'), (u'County', u'NN-TL'),

Re: Network Simulator

2016-02-23 Thread Joel Goldstick
On Tue, Feb 23, 2016 at 9:54 PM, nikhil amraotkar < nikhil.amraotk...@gmail.com> wrote: > Hi...I need help to design a network simulator consisting for 5 routers in > python...Any help would be appretiated... > Thanks.. > -- > https://mail.python.org/mailman/listinfo/python-list > -- Joel

Network Simulator

2016-02-23 Thread nikhil amraotkar
Hi...I need help to design a network simulator consisting for 5 routers in python...Any help would be appretiated... Thanks.. -- https://mail.python.org/mailman/listinfo/python-list

[issue25671] Fix venv activate.fish to maintain $status

2016-02-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip versions: -Python 3.4 ___ Python tracker ___

[issue26372] Popen.communicate not ignoring BrokenPipeError

2016-02-23 Thread Ned Deily
Changes by Ned Deily : -- nosy: +gregory.p.smith ___ Python tracker ___ ___ Python-bugs-list

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Patch looks okay to me. I guess it would be good to write a What’s New entry as well. -- nosy: +martin.panter ___ Python tracker

[issue26385] the call of tempfile.NamedTemporaryFile fails and leaves a file on the disk

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Here is my proposed version for Python 2. -- Added file: http://bugs.python.org/file42015/issue26385_4_py2.diff ___ Python tracker

[issue26414] os.defpath too permissive

2016-02-23 Thread Shawn
Changes by Shawn : -- nosy: +swalker ___ Python tracker ___ ___ Python-bugs-list

[issue22088] base64 module still ignores non-alphabet characters

2016-02-23 Thread Martin Panter
Changes by Martin Panter : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___

[issue26404] socketserver context manager

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Thanks, the patch looks pretty good to me. I left some comments about minor things. Also, someone will need to write a What’s New entry. -- stage: -> patch review ___ Python tracker

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-23 Thread Frazer McLean
Changes by Frazer McLean : -- nosy: +RazerM ___ Python tracker ___ ___

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: Re: the kw-only arg, it seems weird to accommodate the implementation of one meta-path finder in the signature of importlib.invalidate_caches(). Here's an alternative: Use a different sys.path_importer_cache sentinel internally (in PathFinder) and never clear

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Steven D'Aprano
On Tue, 23 Feb 2016 05:54 pm, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Tue, 23 Feb 2016 06:32 am, Marko Rauhamaa wrote: >>> Under Linux, /dev/random is the way to go when strong security is >>> needed. Note that /dev/random is a scarce resource on ordinary >>>

[issue22088] base64 module still ignores non-alphabet characters

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset c62526580ff0 by Martin Panter in branch '2.7': Issue #22088: Clarify base-64 alphabets and which characters are discarded https://hg.python.org/cpython/rev/c62526580ff0 New changeset c8933fbc9171 by Martin Panter in branch '3.5': Issue #22088:

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Or another option is to add a keyword-only argument to importlib.invalidate_caches() to also clear the the cache of importers itself on top of the caches of the importers themselves. -- ___ Python tracker

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: Damn, good point about the backwards-compatibility issue. Then I think a doc note for importlib.invalidate_caches() saying that there is also sys.path_importer_cache would be good enough. -- assignee: -> brett.cannon components: +Documentation -Library

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-02-23 Thread Eric Snow
Eric Snow added the comment: (Note that PathFinder.invalidate_caches() loops over sys.path_importer_cache and invalidates the cache of each path entry finder therein. What you're suggesting is clearing sys.path_importer_cache after the loop finishes.) Hmm. The distinction is between

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Sam Yeager
Sam Yeager added the comment: It's almost certainly only found on OSX. I'm currently taking a Python class of approximately 150 students, and at least two of us independently found this issue on our respective Macs. IDLE and Python are the same version (v3.4.4). The info window lists Tk as

[issue26335] Make mmap.write return the number of bytes written like other write methods

2016-02-23 Thread Jakub Stasiak
Jakub Stasiak added the comment: Oops, sorry for the silliness in the C code, thanks for reviewing. I modified as suggested, please find the new patch attached. -- Added file: http://bugs.python.org/file42014/mmap_write_return_count2.patch ___

[issue26423] __len__() returns 32 bit int on windows leading to overflows

2016-02-23 Thread Dave Hibbitts
New submission from Dave Hibbitts: __len__() always returns an int which on windows machines is tied to the size of a c long and is always 32 bits even if it's compiled for 64 bit. len() however returns an int for values less than sys.maxint and a long above that. Returning an int in

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Peter Otten
Christian Gollwitzer wrote: > Am 23.02.16 um 22:39 schrieb kevind0...@gmail.com: >> from Tkinter import * >> >> def butContinue(): >> root1.destroy() >> [...] >> entryName = Entry(root1).grid(row=1, column=1, pady=5) >> [...] >> butGo = Button(root1, text=" Continue " ,

Re: [Newbie] Tkinter Question

2016-02-23 Thread Chris Kaynor
On Tue, Feb 23, 2016 at 2:19 PM, Wildman via Python-list < python-list@python.org> wrote: > I am familiar with OO programming but I am new to Python > and Tkinter. I am working on a gui program that creates > a couple of temporary files. As part of the Exit button > command they are deleted.

Re: [Newbie] Tkinter Question

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 23:19 schrieb Wildman: I am familiar with OO programming but I am new to Python and Tkinter. I am working on a gui program that creates a couple of temporary files. As part of the Exit button command they are deleted. If the program is shut down using the window close button

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 22:39 schrieb kevind0...@gmail.com: lblTop = Label(root1, text= ' Enter Values Below', font="Helvetica 14").grid(row=0, column=0, columnspan=2 , pady=5) ##lblTop.pack(side = TOP) lblDB = Label(root1,text= 'Weight').grid(row=1, column=0 ) lblPWord = Label(root1,

Re: exit from Tkinter mainloop Python 2.7

2016-02-23 Thread Christian Gollwitzer
Am 23.02.16 um 22:39 schrieb kevind0...@gmail.com: from Tkinter import * def butContinue(): root1.destroy() [...] entryName = Entry(root1).grid(row=1, column=1, pady=5) [...] butGo = Button(root1, text=" Continue " , command=butContinue ).grid(row=3, column=1, sticky=W, pady=10)

[issue26284] Fix telco benchmark

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: > Unfortunately, replacing io.BytesIO(data) with indexing does not make the > benchmark faster or more stable on my machine. Ah, I didn't check. I expected BytesIO.read() to be slower than bytes string slicing. --

[Newbie] Tkinter Question

2016-02-23 Thread Wildman via Python-list
I am familiar with OO programming but I am new to Python and Tkinter. I am working on a gui program that creates a couple of temporary files. As part of the Exit button command they are deleted. If the program is shut down using the window close button [X], the exit button code is not executed

[issue26422] printing 1e23 and up is incorrect

2016-02-23 Thread Eric V. Smith
Eric V. Smith added the comment: Please see https://docs.python.org/3.5/tutorial/floatingpoint.html for a discussion of why this is not a bug. -- nosy: +eric.smith resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Thanks for the pointer Dhiraj. I prefer the open(mode="w") version proposed here, as being more flexible. This way you could wrap the writer object in e.g. TextIOWrapper. The other patch requires passing in a file reader object. Having another look at

exit from Tkinter mainloop Python 2.7

2016-02-23 Thread kevind0718
Hello: Newbie here. Spent the a good part of the day tinkering and reading tutorials, I was able to create a sample that is very close to my requirement. When I execute the code below the Dialog displayed as expected and I can enter data into the textboxes. All good. When I click on butGo I

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: postponed -> rejected ___ Python tracker ___ ___

[issue26422] printing 1e23 and up is incorrect

2016-02-23 Thread John Taylor
New submission from John Taylor: The print statement does not display accurate results. code: print("%35d" % (1e21)) print("%35d" % (1e22)) print("%35d" % (1e23)) print("%35d" % (1e24)) print("%35d" % (1e25)) print("%35d" % (1e26)) print("%35d" % (1e27))

Re: How the heck does async/await work in Python 3.5

2016-02-23 Thread Sven R. Kunze
On 20.02.2016 07:53, Christian Gollwitzer wrote: If you have difficulties wit hthe overall concept, and if you are open to discussions in another language, take a look at this video: https://channel9.msdn.com/Shows/C9-GoingNative/GoingNative-39-await-co-routines MS has added coroutine

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: OK, so everyone says to keep what we have. -- resolution: -> postponed status: open -> closed ___ Python tracker ___

[issue26284] Fix telco benchmark

2016-02-23 Thread Brett Cannon
Brett Cannon added the comment: If you think the string conversion should go back in, Stefan, feel free to put it back (unless Victor wants to say why he took it out). -- assignee: -> skrah ___ Python tracker

[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10

2016-02-23 Thread Mark Dickinson
Changes by Mark Dickinson : -- title: Deadlock in thread.join on Python 2.7/Mac OS X 10.9 -> Deadlock in thread.join on Python 2.7/Mac OS X 10.9, 10.10 ___ Python tracker

[issue26360] Deadlock in thread.join on Python 2.7/Mac OS X 10.9

2016-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: I've found OS X 10.10 and OS X 10.11 machines to test on. I'm able to reproduce on 10.10, but not on 10.11. This adds to the plausibility of the "Apple bug" explanation. -- ___ Python tracker

Re: How the heck does async/await work in Python 3.5

2016-02-23 Thread Sven R. Kunze
On 23.02.2016 18:37, Ian Kelly wrote: It's not entirely clear to me what the C++ is actually doing. With Python we have an explicit event loop that has to be started to manage resuming the coroutines. Since it's explicit, you could easily drop in a different event loop, such as Tornado or curio,

[issue25136] Python doesn't find Xcode 7 stub libraries

2016-02-23 Thread Anthony Foglia
Changes by Anthony Foglia : -- nosy: +afoglia ___ Python tracker ___ ___ Python-bugs-list

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Marko Rauhamaa
Paul Rubin : > Marko Rauhamaa writes: >> It is also correct that /dev/urandom depletes the entropy pool as >> effectively as /dev/random. > > I think see what's confusing you: the above is a misconception that is > probably held by lots of people.

Re: nosepipe error

2016-02-23 Thread Chris Angelico
On Wed, Feb 24, 2016 at 5:11 AM, Dan Stromberg wrote: > I'm seeing, in the nosepipe code: > # we use stdout for IPC, so block all other output > self._stream = sys.__stdout__ > > I'm not sure using stdout/stdin for IPC is a great thing; a lot of > tests write

[issue26392] socketserver.BaseServer.close_server should stop serve_forever

2016-02-23 Thread Aviv Palivoda
Aviv Palivoda added the comment: I understand the problem and why this patch should be rejected. -- resolution: -> rejected status: open -> closed ___ Python tracker

Re: nosepipe error

2016-02-23 Thread Dan Stromberg
On Tue, Feb 23, 2016 at 9:43 AM, Chris Angelico wrote: > On Wed, Feb 24, 2016 at 4:36 AM, Dan Stromberg wrote: >> Message: Unhandled exception in thread started by >> sys.excepthook is missing >> lost sys.stderr >> >> That 1433299041 looks like ASCII: >

Re: nosepipe error

2016-02-23 Thread Chris Angelico
On Wed, Feb 24, 2016 at 4:36 AM, Dan Stromberg wrote: > Message: Unhandled exception in thread started by > sys.excepthook is missing > lost sys.stderr > > That 1433299041 looks like ASCII: hex(1433299041) > '0x556e6861' chr(0x55) + chr(0x6e) + chr(0x68) + chr(0x61)

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Dhiraj
Changes by Dhiraj : -- resolution: duplicate -> fixed ___ Python tracker ___ ___

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Gregory P. Smith
Gregory P. Smith added the comment: As pointed out, this is working as intended and is documented as such. That it isn't what you want is why Python 3 has html.escape() instead. -- resolution: -> duplicate status: open -> closed superseder: -> cgi.escape Can Lead To XSS

Re: How the heck does async/await work in Python 3.5

2016-02-23 Thread Ian Kelly
On Tue, Feb 23, 2016 at 9:50 AM, Sven R. Kunze wrote: > On 23.02.2016 01:48, Ian Kelly wrote: >> >> On Mon, Feb 22, 2016 at 3:16 PM, Sven R. Kunze wrote: >>> >>> Is something like shown in 12:50 ( cout << tcp_reader(1000).get() ) >>> possible >>> with asyncio?

nosepipe error

2016-02-23 Thread Dan Stromberg
Hi folks. I'm using (or trying to use) nosepipe to get nose test isolation; I'm working on an almost-big test suite, and the tests appear to be lacking test isolation. I'm encountering a bug in nosepipe: == ERROR:

Re: good python tutorial

2016-02-23 Thread Aaron Christensen
Thanks for sharing! On Tue, Feb 23, 2016 at 1:48 AM, Mike S via Python-list < python-list@python.org> wrote: > This site was recommended by a friend, it looks really well put together, > I thought it might be of interest to people considering online tutorials. > >

DIPY 0.11.0 is now available for download

2016-02-23 Thread Eleftherios Garyfallidis
Dear all, We are excited to announce a new public release of Diffusion Imaging in Python (DIPY). The 0.11 release follows closely on the heels of the 0.10 release, resolving issues that existed in that release on the Windows 64 bit platform. New features of the 0.11 and 0.10 release cycles

Re: How the heck does async/await work in Python 3.5

2016-02-23 Thread Sven R. Kunze
On 23.02.2016 01:48, Ian Kelly wrote: On Mon, Feb 22, 2016 at 3:16 PM, Sven R. Kunze wrote: Is something like shown in 12:50 ( cout << tcp_reader(1000).get() ) possible with asyncio? (tcp_reader would be async def) loop = asyncio.get_event_loop()

Re: setting the font of the root title

2016-02-23 Thread Random832
On Tue, Feb 23, 2016, at 11:30, kevind0...@gmail.com wrote: > Hello: > > Newbee here. > > I need to change the font of the title of the root. > Actually I just need it to be larger, which means I may need the > top boarder to be larger. > > I wrote the bit of code below, hoping for the desired

setting the font of the root title

2016-02-23 Thread kevind0718
Hello: Newbee here. I need to change the font of the title of the root. Actually I just need it to be larger, which means I may need the top boarder to be larger. I wrote the bit of code below, hoping for the desired effect. Also googled around regarding the toplevel widget No luck. Your kind

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Yury Selivanov
Yury Selivanov added the comment: We now have speed.python.org up, so I'd keep spectral_norm to make sure we don't accidentally harm the performance of int/floats operations. It also helped me to discover that PyLong_AsDouble was unnecessary slow, etc. --

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Grant Edwards
On 2016-02-23, Mark Lawrence wrote: > On 23/02/2016 08:22, Paul Rubin wrote: >> Mark Lawrence writes: >>> https://mail.python.org/pipermail/python-ideas/2015-September/036333.html >>> then http://www.gossamer-threads.com/lists/python/dev/1223780

[issue26421] string_richcompare invalid check Py_NotImplemented

2016-02-23 Thread yuriy_levchenko
New submission from yuriy_levchenko: i have object with flag Py_TPFLAGS_STRING_SUBCLASS stringobject.c (line 1192) in function string_richcompare we have check string PyString_Check but, #define PyString_Check(op) \ PyType_FastSubclass(Py_TYPE(op),

[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino
Tatsunori Uchino added the comment: P.S. ஷ is explained as U+20BB7 in UCS-4. And the characters that is explaind as U+1F444() and U+1F468() are both what are said emojis(explains the mouth and man) -- ___ Python tracker

[issue26420] IDEL for Python 3.5.1 for x64 Windows exits when pasted a string with non-BMP characters

2016-02-23 Thread Tatsunori Uchino
New submission from Tatsunori Uchino: On Windows Server 2012 R2 with Update(which is compatible with Windows 8.1 Update 1), I copied a character U+20BB7 and pasted it on IDLE. After that, IDLE suddenly exited with no messages, notices, or errors. Then, I tried to input some non-BMP

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Dhiraj
Dhiraj added the comment: Please ha Look on issue 11980 http://bugs.python.org/issue11980 Already have been Patched -- nosy: +DhirajMishra ___ Python tracker

[issue26039] More flexibility in zipfile interface

2016-02-23 Thread Thomas Kluyver
Thomas Kluyver added the comment: Ping! ;-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

2016-02-23 Thread Sergei Lebedev
Sergei Lebedev added the comment: Is it possible to backport this patch to 2.7? -- nosy: +superbobry ___ Python tracker ___

[issue25924] investigate if getaddrinfo(3) on OSX is thread-safe

2016-02-23 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Related to #26406, a fix for NetBSD and OpenBSD. -- ___ Python tracker ___

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread A. Jesse Jiryu Davis
A. Jesse Jiryu Davis added the comment: Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue26398] cgi.escape() Can Lead To XSS and HTML Vulnerabilities

2016-02-23 Thread Dhiraj
Dhiraj added the comment: Even the IDLE of Python is Vulnerable to CGI.ESCAPE() Please have a look on attachments , I hope this would be Patch Soon. Thank You -- nosy: +dstufft, gregory.p.smith type: -> security Added file:

EuroPython 2016: Early bird sales started

2016-02-23 Thread M.-A. Lemburg
We have opened up the early-bird sales today and tickets are selling fast. The first 100 early-bird tickets, we have available, will be gone in less than an hour. If you want to benefit from reduced ticket prices too, please register soon. Our early bird ticket sales are limited to 300 tickets.

pytest 2.9.0-rc.1

2016-02-23 Thread Bruno Oliveira
Hi all, We released pytest 2.9.0-rc.1, a release candidate to try to identify any regressions before the official 2.9.0 release. It would be really helpful if people could install this version, execute their test suites and report any regressions to pytest-...@python.org or the issues page[1].

how to notify among the def and can network communication such as zeromq for python do this?

2016-02-23 Thread Ho Yeung Lee
in the following code, node 3 and node 4 running parallel if there are 100 nodes running parallel, how can they notify each other i find this post stackoverflow, http://stackoverflow.com/questions/29324346/how-do-i-connect-asyncio-coroutines-that-continually-produce-and-consume-data if

EuroPython 2016: Early bird sales started

2016-02-23 Thread M.-A. Lemburg
We have opened up the early-bird sales today and tickets are selling fast. The first 100 early-bird tickets, we have available, will be gone in less than an hour. If you want to benefit from reduced ticket prices too, please register soon. Our early bird ticket sales are limited to 300 tickets.

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: > In the past I've rejected them because you can easily get it by asserting the > call count is non-zero and I want to avoid the proliferation of a thousand > assert methods Yeah, I understand that. IMHO having to check if a function was called is a common

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the additional patch, Jesse. Since we don't have a NetBSD buildbot and I don't have any NetBSD or OpenBSD systems at hand to do any testing, I'll take your word for the version checks. If anyone runs into any problems because of these changes, feel

[issue26406] getaddrinfo is thread-safe on NetBSD and OpenBSD

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 52a8c1965750 by Ned Deily in branch '2.7': Issue #26406: Avoid unnecessary serialization of getaddrinfo(3) calls on https://hg.python.org/cpython/rev/52a8c1965750 New changeset 419d20551d26 by Ned Deily in branch '3.5': Issue #26406: Avoid

[issue19475] Add timespec optional flag to datetime isoformat() to choose the precision

2016-02-23 Thread Martin Panter
Martin Panter added the comment: About rounding: I’m not too sure what people would expect. Obviously it is much easier to implement truncating to zero. But it is different to many other rounding cases in Python; that is why I thought to make it explicit. >>>

[issue26399] CSV Injection Vulnerability

2016-02-23 Thread Maciej Szulik
Maciej Szulik added the comment: Closing in favor of http://psf.upfronthosting.co.za/roundup/meta/issue580 -- nosy: +maciej.szulik resolution: -> wont fix status: open -> closed ___ Python tracker

[issue26375] Python 2.7.10 and 3.4.4 hang on imaplib.IMAP4_SSL()

2016-02-23 Thread Maciej Szulik
Changes by Maciej Szulik : -- nosy: +maciej.szulik ___ Python tracker ___ ___

[issue26409] Support latest Tcl/Tk on future versions of Mac installer

2016-02-23 Thread Ned Deily
Ned Deily added the comment: Thanks for the suggestion. Moving the OS X installers to using Tcl/Tk 8.6 is the subject of Issue15663. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> Investigate providing Tcl/Tk 8.6 with OS X installers

[issue26376] Tkinter root window won't close if packed.

2016-02-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was running from IDLE when I said no problem on Windows, so this is OSX specific. Are you running same version of python (splash message) and tcl/tk? (on IDLE, Help => About IDLE). Does Python on OSX have equivalent of pythonw.exe? If you start IDLE at

[issue26323] Add assert_called() and assert_called_once() methods for mock objects

2016-02-23 Thread Michael Foord
Michael Foord added the comment: There have been persistent calls for an "assert_called" method over the lifetime of mock. In the past I've rejected them because you can easily get it by asserting the call count is non-zero and I want to avoid the proliferation of a thousand assert methods.

[issue20580] IDLE should support platform-specific default config defaults

2016-02-23 Thread Ned Deily
Ned Deily added the comment: See Issue26417 for further discussion about the OS X specific tailoring of IDLE config files and changes to the 2.7 Makefiles to better match the 3.x Makefiles to reduce the risk of inadvertent platform differences. -- versions: -Python 3.4

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: > On the speed mailing list, it was also suggested to use the geometric mean > rather than the minimum or the average. This should be considered a bit more carefully. First, geometric mean is only useful when you are agregating heterogenous numbers. Here, we

[issue26275] perf.py: calibrate benchmarks using time, not using a fixed number of iterations

2016-02-23 Thread Stefan Krah
Changes by Stefan Krah : -- dependencies: +Fix telco benchmark ___ Python tracker ___

[issue26417] Default IDLE 2.7.11 configuration files are out-of-sync on OS X framework installs

2016-02-23 Thread Ned Deily
Ned Deily added the comment: For 2.7.12 I've committed changes to the Mac/IDLE Makefile so that it now edits the defaults files in place on install just like the 3.x Makefiles do. Framework installs of IDLE 2.7 on OS X no longer output startup warnings and, since the defaults are now in

[issue26414] os.defpath too permissive

2016-02-23 Thread Martin Panter
Martin Panter added the comment: Digging through the history, it has been this way since at least revision d5b67d2ec7ee (1994). Removing the colon is definitely a good idea. Maybe this might be a more proper way to get the default PATH: >>> os.confstr("CS_PATH") '/bin:/usr/bin' --

[issue26418] multiprocessing.pool.ThreadPool eats up memories

2016-02-23 Thread renlifeng
New submission from renlifeng: If func creates lots objects and appends them to a list, and runs over and over, pool.map(func...) will eventually eat up all memories. Cleaning the list at the end of func does not help. One can reproduce by running the attached file. By contrast, after

[issue26417] Default IDLE 2.7.11 configuration files are out-of-sync on OS X framework installs

2016-02-23 Thread Roundup Robot
Roundup Robot added the comment: New changeset 13826ff147e4 by Ned Deily in branch '2.7': Issue #26417: Prevent spurious errors and incorrect defaults when https://hg.python.org/cpython/rev/13826ff147e4 -- nosy: +python-dev ___ Python tracker

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread STINNER Victor
STINNER Victor added the comment: I opened the issue #26275 to try to make benchmarks more reliable. My notes to tune the Linux kernel to reduce the "noise" from the operating system: http://haypo-notes.readthedocs.org/microbenchmark.html#reliable-micro-benchmarks On the speed mailing list,

Re: Testing whether the VPN is running?

2016-02-23 Thread Gisle Vanem
Cameron Simpson: > You might also want to check that the interface is up. > > My personal hack (not for a VPN, but for "being online", which turns my ssh > tunnels on and off) is to look in the output > of "netstat -rn" for a default route. This may imply that an alternative test > for you is

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Stefan Krah
Stefan Krah added the comment: Telco is a real world workload devised by Mike Cowlishaw. Some fixes need to me made for the version in the benchmark suite; in particular, the amount of input seems insufficient for _decimal (#26284). I'm not a fan of weeding out real world benchmarks until our

[issue26407] csv.writer.writerows masks exceptions from __iter__

2016-02-23 Thread Ilja Everilä
Ilja Everilä added the comment: After doing some reading on https://docs.python.org/dev/c-api/exceptions.html it seems that this is possibly "as designed" or such, since csv_writerows explicitly calls PyErr_SetString on receiving NULL from PyObject_GetIter. Still, it feels like this could

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Mark Lawrence
On 23/02/2016 08:22, Paul Rubin wrote: Mark Lawrence writes: https://mail.python.org/pipermail/python-ideas/2015-September/036333.html then http://www.gossamer-threads.com/lists/python/dev/1223780 Thanks. It would be nice if those were gatewayed to usenet like this

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Peter Otten
Paul Rubin wrote: > Mark Lawrence writes: >> https://mail.python.org/pipermail/python-ideas/2015-September/036333.html >> then http://www.gossamer-threads.com/lists/python/dev/1223780 > > Thanks. It would be nice if those were gatewayed to usenet like this > group is.

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure what "inconsistent" means. If the results are unstable between runs, it may mean the operations being measured themselves are unstable (for example because of hashing differences or cache aliasing effects from run to run). I'd rather like

Re: Make a unique filesystem path, without creating the file

2016-02-23 Thread Paul Rubin
Mark Lawrence writes: > https://mail.python.org/pipermail/python-ideas/2015-September/036333.html > then http://www.gossamer-threads.com/lists/python/dev/1223780 Thanks. It would be nice if those were gatewayed to usenet like this group is. I can't bring myself to

Re: Testing whether the VPN is running?

2016-02-23 Thread Cameron Simpson
On 18Feb2016 10:03, Adam Funk wrote: On 2016-02-18, Ervin Hegedüs wrote: I think that the psutil modul could be better for you for this task: https://pypi.python.org/pypi/psutil/ and see the "Network" section. if 'tun0' in psutil.net_if_addrs(): # vpn is running

[issue26416] Deprecate the regex_v8, telco, and spectral_norm benchmarks

2016-02-23 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list

  1   2   >