[issue23397] PEP 431 implementation

2015-02-05 Thread Berker Peksag
New submission from Berker Peksag: I have an outdated and WIP patch to implement PEP 431 on GitHub: https://github.com/berkerpeksag/cpython Hopefully, I will complete my work before beta 1. -- assignee: berker.peksag components: Library (Lib) messages: 235423 nosy: berker.peksag

[issue23260] Update Windows installer

2015-02-05 Thread Steve Dower
Steve Dower added the comment: Got about as many reviews as I expected, but the builds have been going fine and I want this checked in before alpha, so in it goes :) -- resolution: - fixed stage: - resolved status: open - closed ___ Python tracker

[issue23260] Update Windows installer

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7dbef447157 by Steve Dower in branch 'default': Issue #23260: Update Windows installer https://hg.python.org/cpython/rev/e7dbef447157 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue19884] Importing readline produces erroneous output

2015-02-05 Thread Vinson Lee
Changes by Vinson Lee v...@freedesktop.org: -- nosy: +vlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs-list mailing

[issue23392] Add tests for marshal FILE* API

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23392 ___

[issue20416] Marshal: performance regression with versions 3 and 4

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: What are your thoughts Victor? -- title: Marshal: special case int and float, don't use references - Marshal: performance regression with versions 3 and 4 ___ Python tracker rep...@bugs.python.org

[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6384c0cd3b2d by Benjamin Peterson in branch '3.4': fix many custom mro() edge cases and improve code quality (#22735) https://hg.python.org/cpython/rev/6384c0cd3b2d New changeset 75fd0bd89eef by Benjamin Peterson in branch 'default': merge 3.4

[issue2786] Names in traceback should have class names, if they're methods

2015-02-05 Thread Daniil Bondarev
Daniil Bondarev added the comment: As long as you think It fits into your issue, I'm ok with adding this patch to it (: it's different files, so no conflicts. Should I just add this patch to your ticket? -- ___ Python tracker rep...@bugs.python.org

Re: meaning of: line, =

2015-02-05 Thread Gregory Ewing
Chris Angelico wrote: [] = x # is equivalent to try: next(iter(x)) except StopIteration: pass else: raise ValueError(too many values to unpack (expected 0)) It's a way of asserting that an iterator is exhausted! But why disallow using () for the same thing? This is a blatant case of outright

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually this is #23381, not #23881. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22765 ___ ___

RE: [Python-Dev] Azure event hub network access

2015-02-05 Thread Steve Dower
This would be much better posted on the github page for the project. I don't have the URL handy, but if you search github for Python Azure SDK you'll find it. Cheers, Steve Sent from my Windows Phone From: syed khalidmailto:sy...@pacificloud.com Sent:

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 30e6c8caa5b9 by Serhiy Storchaka in branch '3.4': Issue #23881: Only use entry-values with gdb 7.4 in tests. https://hg.python.org/cpython/rev/30e6c8caa5b9 New changeset 981e108039f1 by Serhiy Storchaka in branch 'default': Issue #23881: Only use

[issue23392] Add tests for marshal FILE* API

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset e55f955659bc by Serhiy Storchaka in branch '2.7': Issue #23392: Added tests for marshal C API that works with FILE*. https://hg.python.org/cpython/rev/e55f955659bc New changeset 05153851d1d6 by Serhiy Storchaka in branch '3.4': Issue #23392: Added

Azure event hub network access

2015-02-05 Thread syed khalid
I am getting http error 404. I am able to access the site via telnet which eliminates network issues. Here is the code and subsequent errors user/bin/python import sys import azure import socket from azure.servicebus import ( _service_bus_error_handler ) from

[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I provided similar patch in issue22765, but your patch looks more clear. Committed in 30e6c8caa5b9, 981e108039f1, and cee39701b280. Thanks for your patch Vinson. -- resolution: - fixed stage: - resolved status: open - closed versions: +Python 3.4,

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22765 ___

[issue20289] Make cgi.FieldStorage a context manager

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: LGTM. -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20289 ___ ___

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 28a9da0842aa by Serhiy Storchaka in branch '3.4': Issue #18982: Add tests for CLI of the calendar module. https://hg.python.org/cpython/rev/28a9da0842aa New changeset e057da873673 by Serhiy Storchaka in branch 'default': Issue #18982: Add tests for

[issue22941] IPv4Interface arithmetic changes subnet mask

2015-02-05 Thread Søren Løvborg
Søren Løvborg added the comment: I take it the silence means that the patch is neither obviously good nor obviously bad. :-) It all comes down to a judgment call: is this a bug, or expected (but undocumented) behavior? In PEP 387 lingo: Is this a reasonable bug fix? Or is it a design

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: Would it be possible to push the latest patch right now It's ok for me. Please watch the buildbots :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23285

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks for your review Berker. -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18982 ___

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset f2991b52157e by Serhiy Storchaka in branch '2.7': Issue #18982: Fixed newlines in calendar CLI tests on Windows. https://hg.python.org/cpython/rev/f2991b52157e -- ___ Python tracker

Re: meaning of: line, =

2015-02-05 Thread Ian Kelly
On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote: Another alternative is to put a list

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: 2015-02-05 18:46 GMT+01:00 Giampaolo Rodola' rep...@bugs.python.org: +def modify(self, fileobj, events, data=None): +... +if events != key.events: You should update the SelectorKey in the case, no? --

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Rob Gaddi
On Thu, 05 Feb 2015 11:25:42 -0800, Paul Moore wrote: On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote: You don't need the whole scipy stack, numpy will let you do everything you want. The trick to working in numpy is to parallelize your problem; you don't do a thing a thousand

[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17189 ___

[issue17189] Add zip64 support to shutil

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- dependencies: -Use allowZip64=True by default resolution: - out of date superseder: - Use allowZip64=True by default ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17189

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread Charles-François Natali
Charles-François Natali added the comment: Antoine Pitrou added the comment: Would it be possible to push the latest patch right now It's ok for me. Please watch the buildbots :) Cool, I'll push on Friday evening or Saturday. -- ___ Python

Re: pymongo and attribute dictionaries

2015-02-05 Thread Anssi Saari
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Vito De Tullio wrote: Steven D'Aprano wrote: This just does not roll of the fingers well. Too many “reach for modifier keys” in a row. *One* modifier key in a row is too many? s o m e SHIFT D o c [ ' SHIFT _ i d ' ] I'm

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Ian Kelly
On Thu, Feb 5, 2015 at 12:25 PM, Paul Moore p.f.mo...@gmail.com wrote: On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote: You don't need the whole scipy stack, numpy will let you do everything you want. The trick to working in numpy is to parallelize your problem; you don't do a

[issue21717] Exclusive mode for ZipFile and TarFile

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21717 ___ ___ Python-bugs-list mailing list

[issue14099] ZipFile.open() should not reopen the underlying file

2015-02-05 Thread eryksun
eryksun added the comment: The changeset from 03 Dec is in the Windows 2.7.9 release. Python 2.7.9 (default, Dec 10 2014, 12:28:03) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import zipfile zipfile._SharedFile

Re: meaning of: line, =

2015-02-05 Thread ast
ast nom...@invalid.com a écrit dans le message de news:54d227ef$0$3292$426a7...@news.free.fr... thanks for the answers -- https://mail.python.org/mailman/listinfo/python-list

[issue23285] PEP 475 - EINTR handling

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Would it be possible to push the latest patch right now, and fix remaining issues (if there are known issues?), before Python 3.4 alpha 1? According to the PEP 478, the alpha 1 is scheduled for this sunday (February 8, 2015). --

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: - drop SelectSelector._modify(): calling unregister() + register() is just fine I checked with strace: PollSelector.modify() doesn't require any syscall, so I propose to also drop it (to just call unregister + register). What do you think? I would like to

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: I just posted some review comments. I also realized that it posted some older comments that I hadn't submitted before... some of them may be obsolete, sorry :-/ -- ___ Python tracker rep...@bugs.python.org

[issue17753] test_zipfile: requires write access to test and email.test

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which skips tests if there are no write access to the installed location. -- keywords: +patch stage: needs patch - patch review versions: +Python 2.7 Added file: http://bugs.python.org/file38021/issue17753.patch

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch with a less surprising _modify() method: - the default implementation simply calls unregister() + register(), as before - drop SelectSelector._modify(): calling unregister() + register() is just fine -- Added file:

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile
Changes by Anthony Sottile asott...@yelp.com: -- nosy: +asottile ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16806 ___ ___ Python-bugs-list

Re: Usage of some pastebin service proposed

2015-02-05 Thread Skip Montanaro
On Wed, Feb 4, 2015 at 10:53 PM, Abhiram R abhi.darkn...@gmail.com wrote: So is it possible to let everyone know that they need to paste their code on some site like pastebin.com and give us the link here so help can be provided better? Better would be to attach small code snippets. I agree

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: I think in this case, the fact that it's easier to decompose an exception into the corresponding triple rather than vice-versa, together with the fact that other exception state manipulation APIs like exc_info() and __exit__() methods work with triples, means it

Re: multiprocessing.Queue() and missing sem_open

2015-02-05 Thread Chris Angelico
On Fri, Feb 6, 2015 at 7:22 AM, Оlе Ѕtrеісhеr ole-usenet-s...@gmx.net wrote: I am just trying to prepare a package (astropy) for (Debian) Hurd. This os lacks a sem_open() implementation. When I now try: import multiprocessing q = multiprocessing.Queue() I get an ImportError with Python 2.7,

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: The solution of having two constructor classmethods actually seems nice and symmetric to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17911 ___

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Paul Moore
On Thursday, 5 February 2015 21:01:21 UTC, Ian wrote: Building on Rob's example: def monopoly(throws, per=2, rerolls=3, sides=6): all_dice = np.random.randint(1, sides+1, size=(throws, rerolls, per)) doubles = all_dice[...,0] == all_dice[...,1] three_doubles = doubles[:,0]

Re: meaning of: line, =

2015-02-05 Thread Gregory Ewing
Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote: [result] = f() result Huh, was not aware of that alternate syntax. Nor are most people. Nor is Python, in some places -- it

[issue23399] venv should create relative symlinks where possible

2015-02-05 Thread Barry A. Warsaw
New submission from Barry A. Warsaw: There is a subtle behavior difference between virtualenv and pyvenv. When you create a venv with virtualenv, the symbolic links files venv/bin are relative, while they are absolute with pyvenv. This means that virtual environments created with virtualenv

Monte Carlo probability calculation in Python

2015-02-05 Thread Paul Moore
I'm interested in prototyping a Monte Carlo type simulation algorithm in Python. The background is that a friend has written a similar program in C++, and I'm interested in seeing if I can achieve something comparable in a much better language :-) The basic job of the program will be to

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Joel Goldstick
On Thu, Feb 5, 2015 at 11:20 AM, Paul Moore p.f.mo...@gmail.com wrote: I'm interested in prototyping a Monte Carlo type simulation algorithm in Python. The background is that a friend has written a similar program in C++, and I'm interested in seeing if I can achieve something comparable in a

Re: meaning of: line, =

2015-02-05 Thread Skip Montanaro
Tuple packing. No longer supported in Python 3, but in available in Python = 2. Skip On Thu, Feb 5, 2015 at 10:45 AM, Rustom Mody rustompm...@gmail.com wrote: On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: Devin

Re: meaning of: line, =

2015-02-05 Thread Rustom Mody
On Thursday, February 5, 2015 at 10:15:29 PM UTC+5:30, Rustom Mody wrote: On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote: On Thu, Feb

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Paul Moore
On Thursday, 5 February 2015 16:28:07 UTC, Joel Goldstick wrote: have you googled python monte carlo? Yes. And a number of other variations. None gave anything that seemed to relate. It's quite likely though that I'm simply not understanding how things like pymc (which came up in the

Re: meaning of: line, =

2015-02-05 Thread Rustom Mody
On Thursday, February 5, 2015 at 9:39:27 PM UTC+5:30, Ian wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten wrote: Another alternative is to put a list

[issue18982] Add tests for CLI of the calendar module

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18982 ___

Re: meaning of: line, =

2015-02-05 Thread Tim Chase
On 2015-02-05 08:45, Rustom Mody wrote: def f(a, (b, c)): ... print a, b, c What the hell is that?! First I am hearing/seeing it. Whats it called? tuple parameter unpacking, removed in Py3 https://www.python.org/dev/peps/pep-3113/ -tkc --

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Rob Gaddi
On Thu, 05 Feb 2015 08:20:41 -0800, Paul Moore wrote: I'm interested in prototyping a Monte Carlo type simulation algorithm in Python. The background is that a friend has written a similar program in C++, and I'm interested in seeing if I can achieve something comparable in a much better

Re: meaning of: line, =

2015-02-05 Thread Chris Angelico
On Fri, Feb 6, 2015 at 12:12 PM, Devin Jeanpierre jeanpierr...@gmail.com wrote: Here's another example, one that still exists in Python 3: [] = '' () = '' File stdin, line 1 SyntaxError: can't assign to () The syntax explicitly blacklists (), but forgets to blacklist []. So... this is

Re: meaning of: line, =

2015-02-05 Thread Devin Jeanpierre
On Thu, Feb 5, 2015 at 8:08 AM, Ian Kelly ian.g.ke...@gmail.com wrote: On Thu, Feb 5, 2015 at 2:40 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote: [result] = f() result 42 Huh,

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-05 Thread Ben Hoyt
Ben Hoyt added the comment: Victor, I'd love to push forward with this (I doubt it's going to make alpha 1 on February 8, but hopefully alpha 2 on March 8). It seems pretty settled that we need to use the all-C version I've created, especially for Linux. Can you please review

[issue21998] asyncio: a new self-pipe should be created in the child process after fork

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: Updated patch: - drop PollSelector._at_fork(): PollSelector is not shared with the parent process - _at_fork() of BaseEventLoop and SelectorEventLoop now do nothing by default: only _UnixSelectorEventLoop._at_fork() handle the fork, nothing is needed on

Re: meaning of: line, =

2015-02-05 Thread Steven D'Aprano
Devin Jeanpierre wrote: On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote: Another alternative is to put a list literal on the lefthand side: def f(): yield 42 ... [result] = f() result 42 Huh, was

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: A workaround is to check (once) that the command set print entry-values no and set print address off are supported. Gdb provides its version in the Python API as a string: gdb.VERSION (ex: 'Fedora 7.8.2-38.fc21'). --

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is a patch which adds command 'set print entry-values no' only for gdb version = 7.4. -- Added file: http://bugs.python.org/file38020/test_gdb_entry_values.patch ___ Python tracker rep...@bugs.python.org

[issue22765] Fixes for test_gdb (first frame address, entry values)

2015-02-05 Thread STINNER Victor
STINNER Victor added the comment: New changeset 5b5a581d91c8 by Serhiy Storchaka in branch '3.4': Issue #22765: Fixed test_gdb failures. Supressed unexpected gdb output. https://hg.python.org/cpython/rev/5b5a581d91c8 Since this change, test_gdb fails on AMD64 OpenIndiana 3.x:

Re: meaning of: line, =

2015-02-05 Thread Devin Jeanpierre
On Wed, Feb 4, 2015 at 1:18 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Feb 5, 2015 at 4:36 AM, Peter Otten __pete...@web.de wrote: Another alternative is to put a list literal on the lefthand side: def f(): yield 42 ... [result] = f() result 42 Huh, was not aware of that

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Nick Coghlan
Nick Coghlan added the comment: +1 for having the base __init__ API be the exception triple and then a TracebackException.from_exception() class method as an alternate constructor. However, the redundancy between TracebackException.__init__() and TracebackException.from_exc_tuple() feels very

Re: Indentation issues with python

2015-02-05 Thread Denis McMahon
On Wed, 04 Feb 2015 19:07:53 -0800, syed khalid wrote: I downloaded this code and am attempting to run it. I keep getting indentation error. class EventHubClient(object): def sendMessage(self,body,partition):eventHubHost = pac-ns.servicebus.windows.net httpclient =

[issue23361] integer overflow in winapi_createprocess

2015-02-05 Thread paul
paul added the comment: ping -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23361 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue22079] Ensure in PyType_Ready() that base class of static type is static

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22079

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Yes, it appears so. I would suggest to come up with a patch which overrides modify() for all those selectors which can benefit from it (poll, epoll, kqueue) and refactor register() / unregister() (for select) in a separate issue / patch. Also, I suppose a

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- stage: - needs patch type: - performance ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18932 ___

[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7b74c65758ca by Ned Deily in branch '2.7': Issue #23212: Update OS X installer build OpenSSL to 1.0.1l. https://hg.python.org/cpython/rev/7b74c65758ca New changeset 1ddf68f118c7 by Ned Deily in branch '3.4': Issue #23212: Update OS X installer

[issue23212] Update Windows and OS X installer copies of OpenSSL to 1.0.1l

2015-02-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23212 ___

[issue18932] Optimize selectors.EpollSelector.modify()

2015-02-05 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: I mean something like this (for epoll), as in avoiding to call unregister() / register() at all: diff -r 017e7391ab58 Lib/selectors.py --- a/Lib/selectors.py Wed Feb 04 08:37:02 2015 -0800 +++ b/Lib/selectors.py Thu Feb 05 18:42:26 2015 +0100 @@ -412,6

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Sergiy
New submission from Sergiy: print(calendar.monthrange(2015,2)) (6, 28) February has only 5 weeks. -- components: Extension Modules messages: 235440 nosy: skarpovsky priority: normal severity: normal status: open title: calendar.monthrange for February 2015 type: behavior versions:

[issue23397] PEP 431 implementation

2015-02-05 Thread Antoine Pitrou
Antoine Pitrou added the comment: That would be great! -- nosy: +barry, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23397 ___ ___

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Geoffrey Spear
Geoffrey Spear added the comment: Returns weekday of first day of the month and number of days in month, for the specified year and month.. The 6 means February began on a Sunday, not that there are 6 weeks in the month. -- nosy: +geoffreyspear ___

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Ethan Furman
Ethan Furman added the comment: https://docs.python.org/3/library/calendar.html#calendar.monthrange -- nosy: +ethan.furman resolution: - not a bug stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue17911] traceback: add a new thin class storing a traceback without storing local variables

2015-02-05 Thread Robert Collins
Robert Collins added the comment: I can certainly do that; I was aiming to make it fair I guess, given Antoines strong feelings on this matter. As long as I'm not piggy-in-the-middle, I don't have a care in this regard :) -- ___ Python tracker

[issue22735] Fix various crashes exposed through mro() customization

2015-02-05 Thread Eldar Abusalimov
Eldar Abusalimov added the comment: I feel a bit uneasy, but... any news on this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22735 ___ ___

[issue16806] col_offset is -1 and lineno is wrong for multiline string expressions

2015-02-05 Thread Anthony Sottile
Anthony Sottile added the comment: Any updates on this? I'm running into this as well (still a problem in 3.4) ```$ python3.4 Python 3.4.2 (default, Oct 11 2014, 17:59:27) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import ast

[issue10631] ZipFile and current directory change

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Fixed in issue14099 for 3.5. Do you think that this solution should be backported Martin? An alternative solution of this issue would be to convert relative path to absolute path in ZipFile constructor. -- versions: -Python 3.2

[issue23306] Within zipfile, use of zlib.crc32 raises OverflowError at argument-parsing time on large strings

2015-02-05 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +nadeem.vawda ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23306 ___ ___

[issue11152] pb in zipfile module

2015-02-05 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this bug was fixed in issue1710703. -- nosy: +serhiy.storchaka resolution: - out of date stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org

[issue23381] Python 2.7.9+ test_gdb regression on Ubuntu 10.04

2015-02-05 Thread Vinson Lee
Changes by Vinson Lee v...@freedesktop.org: -- keywords: +patch Added file: http://bugs.python.org/file38022/0001-Issue-23881-Only-use-entry-values-with-gdb-7.4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23381

Re: Monte Carlo probability calculation in Python

2015-02-05 Thread Paul Moore
On Thursday, 5 February 2015 16:57:07 UTC, Rob Gaddi wrote: You don't need the whole scipy stack, numpy will let you do everything you want. The trick to working in numpy is to parallelize your problem; you don't do a thing a thousand times; you do it on a thousand-length array. For

Re: meaning of: line, =

2015-02-05 Thread Tim Chase
On 2015-02-05 09:08, Ian Kelly wrote: Got an example where you can use a,b but not [a,b] or (a,b)? def f(a, (b, c)): ... print a, b, c ... Interesting. I knew that at one point you could do this with lambdas but never thought to do it with regular functions. There are times this

multiprocessing.Queue() and missing sem_open

2015-02-05 Thread Оlе Ѕtrеісhеr
Hi, I am just trying to prepare a package (astropy) for (Debian) Hurd. This os lacks a sem_open() implementation. When I now try: import multiprocessing q = multiprocessing.Queue() I get an ImportError with Python 2.7, but an AttributeError with Python 3.4. In the documentation of