Advanced Python Training at EuroPython

2014-06-25 Thread Mike Müller
Note: The training is open to all, not only EuroPython attendees. Advanced Python Training A EuroPython Satellite Event If your attending EuroPython and would like get deeper into advanced Python topics, you should consider this training:

Re: Off-Topic: The Machine

2014-06-25 Thread Chris Angelico
On Wed, Jun 25, 2014 at 3:52 PM, Steven D'Aprano st...@pearwood.info wrote: Taking it with a generous grain of salt is one thing, but outright rejecting it is a bit harsh. I understand that HP has actually demonstrated the Machine, so unless they faked the demo, the basic facts are probably

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Christian Gollwitzer
Hi Peter, Am 24.06.14 20:11, schrieb Peter Tomcsanyi: I use the Python 3.4.1 installer from https://www.python.org/downloads/release/python-341/ The Windows installation comes with Tcl/Tk version 8.6 which has some new features (compared to 8.5) that are very important to me. may I ask which

Re: Off-Topic: The Machine

2014-06-25 Thread Gregory Ewing
Steven D'Aprano wrote: Heh, yes, it's a puff-piece, based on HP's publicity, not an in-depth review. Considering that The Machine isn't publicly available yet, that's hardly surprising. There's a talk here that goes into a bit more detail, although still not much:

Re: Off-Topic: The Machine

2014-06-25 Thread Chris Angelico
On Wed, Jun 25, 2014 at 5:31 PM, Gregory Ewing greg.ew...@canterbury.ac.nz wrote: That's nice, but the question that comes to my mind is: What happens when a zillion cores are all competing for high-speed access to that memory? And what happens if some of those cores are corrupt? Can you

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Ned Deily
In article locv7v$8hi$1...@ger.gmane.org, Peter Tomcsanyi tomcsa...@slovanet.sk wrote: Many thanks for the quick reply. I will try the MacPorts version, but I am quite Windows-based (I do the Mac installation for somebody else), so I am not sure how to install all the other packages that we

How to connect Python3.4.1 to Mysql 5.1 ?

2014-06-25 Thread Raja Sekhar
Can any body tell how to access data from mysql using python. I am using python version 3.4.1 and Mysql version 5.1 -- https://mail.python.org/mailman/listinfo/python-list

Re: DHCP query script not work.

2014-06-25 Thread 不坏阿峰
anyone can help ? 在 2014年6月19日星期四UTC+7下午8时56分06秒,不坏阿峰写道: On Thursday, June 19, 2014 8:49:21 PM UTC+7, Anssi Saari wrote: 不坏阿峰 onlydeb...@gmail.com writes: Dear all i got code recipes from here. and i want to run it on win 7.

subprocess can not kill when app exit()

2014-06-25 Thread 不坏阿峰
Dear all code in below, when close the app window. the two ping process can not kill auto and keep in the windows 7 task list. During running, ping process under Python.exe as two thread. When app exit, this two process move the system process and keep running there. could someone help to

Re: Qt and progressBar - how to update

2014-06-25 Thread 不坏阿峰
在 2010年5月17日星期一UTC+7上午2时38分04秒,OMS写道: On 16 Maj, 20:52, Robert Kern robert.k...@gmail.com wrote: On 2010-05-16 13:28 , OMS wrote: I am quite new to Python and Qt and need very urgently advice on how to update Qt progressBar while executing a process. I have went thrugh number of

How to get Timezone from latitude/longitude ?

2014-06-25 Thread codetarsier
Hi, I'm looking for a python-library which can help me to get Timezone and Timezone-offset(UTC) from latitude/longitude. I'm not able to find an easy way to do it. Thanks in advance. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Larry Martell
On Wed, Jun 25, 2014 at 8:53 AM, codetars...@gmail.com wrote: Hi, I'm looking for a python-library which can help me to get Timezone and Timezone-offset(UTC) from latitude/longitude. I'm not able to find an easy way to do it. Thanks in advance. It took me 30 seconds on google to find

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Bernd Nawothnig
On 2014-06-25, codetars...@gmail.com wrote: I'm looking for a python-library which can help me to get Timezone and Timezone-offset(UTC) from latitude/longitude. I'm not able to find an easy way to do it. You can find the data as a zipped shapefile here: http://efele.net/maps/tz/world/

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Chris Angelico
On Wed, Jun 25, 2014 at 10:53 PM, codetars...@gmail.com wrote: I'm looking for a python-library which can help me to get Timezone and Timezone-offset(UTC) from latitude/longitude. I'm not able to find an easy way to do it. There isn't an easy way to do it. At best, you would have to do a

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Are you trying to use a user's IP geolocation data to pick a timezone? Because that's doomed to failure. Some years back my employer switched ISPs in Southern California. The following morning Google displayed everything in Hebrew. It took a week or two to be

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Grant Edwards
On 2014-06-25, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: Are you trying to use a user's IP geolocation data to pick a timezone? Because that's doomed to failure. Some years back my employer switched ISPs in Southern California. The following morning Google

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Kevin Walzer
On 6/25/14, 1:49 AM, wxjmfa...@gmail.com wrote: I can also add, tcl or tk or tkinter (8.6) is on Windows quite buggy. In fact, simply*unusable*. How so? Please report bugs at http://core.tcl.tk/tcl/reportlist or http://core.tcl.tk/tk/reportlist, as needed. --Kevin -- Kevin Walzer Code by

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Ethan Furman
On 06/25/2014 07:24 AM, Grant Edwards wrote: On 2014-06-25, Marko Rauhamaa wrote: Some years back my employer switched ISPs in Southern California. The following morning Google displayed everything in Hebrew. It took a week or two to be corrected. Learning Hebrew in a week or two is a pretty

Single underscore in interactive mode

2014-06-25 Thread candide
According to the official documentation (The Python Language Reference, Release 3.2): --- The special identifier _ is used in the interactive interpreter to store the result of the last evaluation; --- This description is not

Re: Single underscore in interactive mode

2014-06-25 Thread Robert Kern
On 2014-06-25 16:20, candide wrote: According to the official documentation (The Python Language Reference, Release 3.2): --- The special identifier _ is used in the interactive interpreter to store the result of the last evaluation;

[RELEASE] fastcache

2014-06-25 Thread ptb
Hello all, I am pleased to announce the release of fastcache v0.1. It is intended to be a drop in replacement for functools.lru_cache but it's written in C so it's 5-10x faster. Currently Python = 3.3 is supported. It is available on pip via: pip install fastcache Or on github:

Re: Single underscore in interactive mode

2014-06-25 Thread Terry Reedy
On 6/25/2014 11:20 AM, candide wrote: According to the official documentation (The Python Language Reference, Release 3.2): --- The special identifier _ is used in the interactive interpreter to store the result of the last evaluation;

asyncio: wrapping a subprocess in a server

2014-06-25 Thread David Farler
Hi all, I'm trying to vend some kind of server that spawns a client-unique subprocess when a client connects. The server acts as a middleman, receiving structure messages from the client, sending input to the subprocess, and packaging up subprocess data before sending back to the client. The

Re: Single underscore in interactive mode

2014-06-25 Thread Lie Ryan
On 25/06/14 16:20, candide wrote: As explained by the docs, an assignment statement_evaluates_ the expression on the right hand side. So we can deduce that at the very beginning of the 2nd prompt, the result of the last evaluation is 43. Nevertheless, calling _ raises a NameError exception!

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Peter Tomcsanyi
Christian Gollwitzer aurio...@gmx.de wrote in message news:lodruv$k45$1...@dont-email.me... Hi Peter, may I ask which features of 8.6 you need in particular? Hi Christian, I need two of them: - Angled text - PNG image support with alpha channel (even if it seems a bit limited, particularly I

Re: Single underscore in interactive mode

2014-06-25 Thread candide
Please say either in a tracker issue or here where you found this statement. https://docs.python.org/3.4/reference/lexical_analysis.html#reserved-classes-of-identifiers -- https://mail.python.org/mailman/listinfo/python-list

Re: asyncio: wrapping a subprocess in a server

2014-06-25 Thread Akira Li
David Farler accumula...@icloud.com writes: Hi all, I'm trying to vend some kind of server that spawns a client-unique subprocess when a client connects. The server acts as a middleman, receiving structure messages from the client, sending input to the subprocess, and packaging up

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Akira Li
Larry Martell larry.mart...@gmail.com writes: On Wed, Jun 25, 2014 at 8:53 AM, codetars...@gmail.com wrote: Hi, I'm looking for a python-library which can help me to get Timezone and Timezone-offset(UTC) from latitude/longitude. I'm not able to find an easy way to do it. Thanks in

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Christian Gollwitzer
Am 25.06.14 21:26, schrieb Peter Tomcsanyi: Christian Gollwitzer aurio...@gmx.de wrote in message news:lodruv$k45$1...@dont-email.me... may I ask which features of 8.6 you need in particular? I need two of them: - Angled text - PNG image support with alpha channel (even if it seems a bit

Re: Passing a frame to pdb.Pdb.set_trace

2014-06-25 Thread Rotwang
On 24/06/2014 20:10, Rotwang wrote: Hi all, I've found something weird with pdb and I don't understand it. I want to define a function mydebugger() which starts the debugger in the caller's frame. The following is copied from IDLE with Python 2.7.3 (I've since tried it with 3.3.0 and the same

Re: python 3.44 float addition bug?

2014-06-25 Thread Maciej Dziardziel
On Saturday, June 21, 2014 1:57:19 AM UTC+1, FraserL wrote: I'm not hugely accustomed to Python, but this seems crazy to me. Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only approximations. This is limitation of

Re: Single underscore in interactive mode

2014-06-25 Thread Dave Angel
Terry Reedy tjre...@udel.edu Wrote in message: On 6/25/2014 11:20 AM, candide wrote: According to the official documentation (The Python Language Reference, Release 3.2): --- The special identifier _ is used in the interactive interpreter to store the

protect psycopg script from sql injection?

2014-06-25 Thread celati Laurent
Hello, I coded this following python script via psycopg; web_service_test.py http://python.6.x6.nabble.com/file/n5062113/web_service_test.py 1/ When i execute it, the result is 'bad resquest'. Could you tell me why? 2/ Could you tell me how to protect this script from SQL injections please?

protect psycopg script from sql injection?

2014-06-25 Thread dandrigo
Hello, I coded this following python script via psycopg; web_service_test.py http://python.6.x6.nabble.com/file/n5062113/web_service_test.py 1/ When i execute it, the result is 'bad resquest'. Could you tell me why? 2/ Could you tell me how to protect this script from SQL injections please?

Re: protect psycopg script from sql injection?

2014-06-25 Thread MRAB
On 2014-06-25 22:58, celati Laurent wrote: Hello, I coded this following python script via psycopg; web_service_test.py http://python.6.x6.nabble.com/file/n5062113/web_service_test.py 1/ When i execute it, the result is 'bad resquest'. Could you tell me why? 2/ Could you tell me how to

Re: How to get Timezone from latitude/longitude ?

2014-06-25 Thread Gregory Ewing
Ethan Furman wrote: On 06/25/2014 07:24 AM, Grant Edwards wrote: On 2014-06-25, Marko Rauhamaa wrote: Some years back my employer switched ISPs in Southern California. The following morning Google displayed everything in Hebrew. It took a week or two to be corrected. Learning Hebrew in a

Re: subprocess can not kill when app exit()

2014-06-25 Thread Jason Friedman
code in below, when close the app window. the two ping process can not kill auto and keep in the windows 7 task list. During running, ping process under Python.exe as two thread. When app exit, this two process move the system process and keep running there. could someone help to

Re: subprocess can not kill when app exit()

2014-06-25 Thread Michael Torrie
On 06/25/2014 06:07 PM, Jason Friedman wrote: code in below, when close the app window. the two ping process can not kill auto and keep in the windows 7 task list. During running, ping process under Python.exe as two thread. When app exit, this two process move the system process and

Re: py2app dependency determination?

2014-06-25 Thread john
Steven D'Aprano wrote: On Sat, 21 Jun 2014 16:50:22 -0800, john wrote: Hi, trying to get py2app to work. It keeps saying that we need Pillow-PIL, which is wrong. And, anyways, Pillow-PIL fails to install. The program works fine as a normal python script, and it doesn't use Pillow- PIL.

Re: python 3.44 float addition bug?

2014-06-25 Thread Steven D'Aprano
On Wed, 25 Jun 2014 14:12:31 -0700, Maciej Dziardziel wrote: Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only approximations. This is limitation of float type and applies to any languages that uses types supported

Re: python 3.44 float addition bug?

2014-06-25 Thread Chris Angelico
On Thu, Jun 26, 2014 at 12:56 PM, Steven D'Aprano st...@pearwood.info wrote: That's a myth. decimal.Decimal *is* a floating point value, and is subject to *exactly* the same surprises as binary floats, except for one: which Decimal, you can guarantee that any decimal string you enter will

Re: python 3.44 float addition bug?

2014-06-25 Thread Ben Finney
Steven D'Aprano st...@pearwood.info writes: On Wed, 25 Jun 2014 14:12:31 -0700, Maciej Dziardziel wrote: Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only approximations. This is limitation of float type and

State of speeding up Python for full applications

2014-06-25 Thread CM
I occasionally hear about performance improvements for Python by various projects like psyco (now old), ShedSkin, Cython, PyPy, Nuitka, Numba, and probably many others. The benchmarks are out there, and they do make a difference, and sometimes a difference on par with C, from what I've heard.

Re: python 3.44 float addition bug?

2014-06-25 Thread Steven D'Aprano
On Thu, 26 Jun 2014 13:13:45 +1000, Chris Angelico wrote: On Thu, Jun 26, 2014 at 12:56 PM, Steven D'Aprano st...@pearwood.info wrote: That's a myth. decimal.Decimal *is* a floating point value, and is subject to *exactly* the same surprises as binary floats, except for one: which Decimal,

Re: python 3.44 float addition bug?

2014-06-25 Thread Chris Angelico
On Thu, Jun 26, 2014 at 2:17 PM, Steven D'Aprano st...@pearwood.info wrote: I'm not sure if you're agreeing with me or disagreeing with me. Repeats is a property of a number *in a specific base*, not of the number itself. So 1/3 does not repeat in base 3, where it would be written as the

Re: python 3.44 float addition bug?

2014-06-25 Thread Stefan Behnel
Steven D'Aprano, 26.06.2014 04:56: On Wed, 25 Jun 2014 14:12:31 -0700, Maciej Dziardziel wrote: Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only approximations. This is limitation of float type and applies to any

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-25 Thread Larry Hastings
Larry Hastings added the comment: The main thing for me isn't that the function and its documentation-pseudocode are in sync (though in the long run this is desirable). What's important to me is that the function have a sensible, relevant signature in Python. There was simply no way to

[issue21848] Fix logging in unicodeless build

2014-06-25 Thread Vinay Sajip
Vinay Sajip added the comment: Tests fail with the patch applied, as requires_unicode appears not to be defined. Has it been added to test_support.py? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21848

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-25 Thread Raymond Hettinger
Raymond Hettinger added the comment: there's still no way to represent repeat's signature in Python There is a way using *args and **kwds but that isn't any fun (just like range() or min() in that regard). Right now, repeat() does what it is supposed to do. It may currently be inconvenient

[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho
Changes by Lita Cho lita@gmail.com: -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21867 ___ ___ Python-bugs-list mailing

[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho
New submission from Lita Cho: Turtle currently has a bug where it will return a TypeError when undobuffer is set to less than or equal to 0 (aka undo is not allowed). turtle.setundobuffer(0) turtle.undo() If an exception must be thrown, it should be a Turtle exception and not a TypeError.

[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho
New submission from Lita Cho: Currently, you can set the undobuffer size to negative numbers. Aka, the Tbuffer can be set to negative. s = turtle.Screen() raw = turtle.RawTurtle(s) raw.setundobuffer(-10) raw.undobuffer.bufsize == -10 -- returns True This should not be possible. Tbuffer should

[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho
Changes by Lita Cho lita@gmail.com: -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21868 ___ ___ Python-bugs-list mailing

[issue19145] Inconsistent behaviour in itertools.repeat when using negative times

2014-06-25 Thread Larry Hastings
Larry Hastings added the comment: There is a way using *args and **kwds but that isn't any fun That's why, earlier, I said a sensible signature. Every function *could* get the signature (*args, **kwargs) but this imparts no useful semantic information. What I would like to see in the

[issue5235] distutils seems to only work with VC++ 2008 (9.0)

2014-06-25 Thread Martin v . Löwis
Martin v. Löwis added the comment: The issue was never really valid (except perhaps for the desire to document this more clearly), so closing. Anybody who would like to see the documentation improved, please suggest a specific change. -- resolution: - not a bug status: open - closed

[issue18669] curses.chgat() moves cursor, documentation says it shouldn't

2014-06-25 Thread IronGrid
IronGrid added the comment: I get this error with 3.2.3, running Debian Stable. It's annoying because this error prevents curses apps from being able to highlight the current line. -- nosy: +IronGrid versions: +Python 3.2 ___ Python tracker

[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset b4130b2f7748 by Senthil Kumaran in branch 'default': merge from 3.4 http://hg.python.org/cpython/rev/b4130b2f7748 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org

[issue15588] quopri: encodestring and decodestring handle bytes, not strings

2014-06-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: Thanks for the review, Mark. Addressed that and committed the changes in changeset 606a18938476 (3.4) changeset b4130b2f7748 (3.5) -- nosy: +orsenthil resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5

[issue21825] Embedding-Python example code from documentation crashes

2014-06-25 Thread Pat Le Cat
Pat Le Cat added the comment: I zipped the whole Lib directory into pyLib34.zip (into same dir as EXE) and copied all the .pyd files from the DLLs dir into the same dir as the EXE. -- ___ Python tracker rep...@bugs.python.org

[issue21869] Clean up quopri, correct method names encodestring and decodestring

2014-06-25 Thread Senthil Kumaran
New submission from Senthil Kumaran: issue15588 brought the topic that quopri has ancient methods like encodestring, decodestring, which a user might expect that will send a string, but instead has to send bytes. This needs to be cleaned up. a) function name should be accurate and represent

[issue20753] disable test_robotparser test that uses an invalid URL

2014-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset 16d8240ff841 by Senthil Kumaran in branch '3.4': issue20753 - robotparser tests should not rely upon external resource when not required. http://hg.python.org/cpython/rev/16d8240ff841 New changeset 74cd8abcc302 by Senthil Kumaran in branch

[issue20753] disable test_robotparser test that uses an invalid URL

2014-06-25 Thread Senthil Kumaran
Senthil Kumaran added the comment: The patch was good and captured what was required. I made some minor modifications and committed it in 3.4 and 3.5 Thanks for the patch, Vajrasky Kok. -- assignee: - orsenthil nosy: +orsenthil resolution: - fixed stage: needs patch - resolved

[issue18853] Got ResourceWarning unclosed file when running Lib/shlex.py demo

2014-06-25 Thread Claudiu Popa
Claudiu Popa added the comment: It seems commit ready. -- nosy: +Claudiu.Popa stage: patch review - commit review versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18853

[issue21476] Inconsistent behaviour between BytesParser.parse and Parser.parse

2014-06-25 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- stage: - commit review title: Inconsitent behaviour between BytesParser.parse and Parser.parse - Inconsistent behaviour between BytesParser.parse and Parser.parse ___ Python tracker

[issue20872] dbm/gdbm/ndbm close methods are not document

2014-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset de44bc26a00a by Jesus Cea in branch '2.7': Closes #20872: dbm/gdbm/ndbm close methods are not documented http://hg.python.org/cpython/rev/de44bc26a00a New changeset cf156cfb12e7 by Jesus Cea in branch '3.3': Closes #20872: dbm/gdbm/ndbm close

[issue20872] dbm/gdbm/ndbm close methods are not document

2014-06-25 Thread Jesús Cea Avión
Jesús Cea Avión added the comment: Thanks, David and Berker. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20872 ___ ___

[issue21778] PyBuffer_FillInfo() from 3.3

2014-06-25 Thread Stefan Krah
Changes by Stefan Krah stefan-use...@bytereef.org: -- assignee: docs@python - skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21778 ___ ___

[issue21866] zipfile.ZipFile.close() doesn't respect allowZip64

2014-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Do you want to provide a patch? -- assignee: - serhiy.storchaka nosy: +serhiy.storchaka stage: - needs patch versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org

[issue21848] Fix logging in unicodeless build

2014-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: requires_unicode() and u() are added in issue21833. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21848 ___

[issue21869] Clean up quopri, correct method names encodestring and decodestring

2014-06-25 Thread R. David Murray
R. David Murray added the comment: Well, it's not actually obvious that this should be done. Or, at least, it is not obvious the old methods should be dropped. I think we had this same discussion about a similar method in ElementTree. I don't remember the outcome except that I'm pretty

[issue21862] cProfile command-line should accept -m module_name as an alternative to script path

2014-06-25 Thread Antoine Pitrou
Antoine Pitrou added the comment: That's not how -m should work. It should use the runpy facilities (see the runpy module). Otherwise it probably won't work properly with qualified module names (-m pkg.subpkg.mod). -- ___ Python tracker

[issue20295] imghdr add openexr support

2014-06-25 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20295 ___ ___

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-25 Thread Claudiu Popa
Changes by Claudiu Popa pcmantic...@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17442 ___ ___

[issue21848] Fix logging in unicodeless build

2014-06-25 Thread Vinay Sajip
Vinay Sajip added the comment: requires_unicode() and u() are added in #21833 Okay, but it seems like there is some contention there. I suppose this patch can wait until that is resolved and if the relevant changes are merged into the 2.7 branch. --

[issue19821] pydoc.ispackage() could be more accurate

2014-06-25 Thread Claudiu Popa
Claudiu Popa added the comment: I would go on the deprecation route with this and removing it in 3.6, just like the formatter module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19821

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-06-25 Thread Markus Unterwaditzer
Markus Unterwaditzer added the comment: Can this issue or #9205 be reopened as this particular instance of the problem doesn't seem to be resolved? I still seem to need the workaround from http://stackoverflow.com/a/1408476 -- nosy: +untitaker ___

[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex
New submission from Alex: This infinite loop: def f(): a=b=0 while 1: if ab: pass f() doesn't respond to a Ctrl-C interrupt. If you modify the loop in various ways, like removing the function wrapper, then Ctrl-C works fine. It can be interrupted with Ctrl-\. This occurs if the

[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex
Changes by Alex python...@archduke.org: -- components: -Interpreter Core ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21870 ___ ___

[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread Alex
Changes by Alex python...@archduke.org: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21870 ___ ___ Python-bugs-list mailing

[issue17442] code.InteractiveInterpreter doesn't display the exception cause

2014-06-25 Thread R. David Murray
R. David Murray added the comment: I would lean toward bug fix. I'm sure this was just overlooked when exception chaining was added, and as Claudiu says, the contract of code is to emulate the interactive interpreter, so not doing so in this instance looks like a bug to me. It is certainly

[issue21870] Ctrl-C doesn't interrupt simple loop

2014-06-25 Thread R. David Murray
R. David Murray added the comment: I can duplicate this. ctl-c works fine in 3.5, however. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21870 ___

[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread agolde
New submission from agolde: Python 2.7.7 seems to contain a regression of issue #10162 as compared with 2.7.6, re-introduced by the fix of issue #9291. import mimetypes mimetypes.init() Traceback (most recent call last): File stdin, line 1, in module File C:\Program Files\INRO\Emme\Emme

[issue21849] Fix multiprocessing for non-ascii data

2014-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Actually there is a bug in the multiprocessing module which makes it fail for non-ascii str and unicode values even in unicode-enabled build. Updated patch fixes it and adds missed tests. -- title: Fix multiprocessing in unicodeless build - Fix

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-25 Thread Stefan Behnel
Stefan Behnel added the comment: Your code adds a lot of new code. Why is that necessary? Can't the new feature be integrated into the existing code? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20928

[issue21868] Tbuffer in turtle allows negative size

2014-06-25 Thread Lita Cho
Lita Cho added the comment: Here is a patch for this bug. Basically, when a user gives 0 and below, it doesn't create a TBuffer. Then undo does the right thing. -- keywords: +patch Added file: http://bugs.python.org/file35778/undobuffer_fix.patch

[issue21867] Turtle returns TypeError when undobuffer is set to 0 (aka no undo is allowed)

2014-06-25 Thread Lita Cho
Lita Cho added the comment: The patch in issue21868 will fix this issue if it gets approved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21867 ___

[issue21684] inspect.signature bind doesn't include defaults or empty tuple/dicts

2014-06-25 Thread Yury Selivanov
Yury Selivanov added the comment: But I can't think of any use case when it would be undesirable to include the extra parameters One use case is that you are actually loosing information what arguments Signature.bind() was called with, when defaults are included. In some cases this

[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ah, month ago I wrote large patch which use 'with' in various places in stdlib for opening and closing files. But then I dropped it because afraid that it can be considered as code churn. -- stage: patch review - commit review versions: +Python 2.7,

[issue12851] ctypes: getbuffer() never provides strides

2014-06-25 Thread Mark Lawrence
Mark Lawrence added the comment: @Stefan do you want to follow this up? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12851

[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Roundup Robot
Roundup Robot added the comment: New changeset fdbcb11e0323 by Serhiy Storchaka in branch '3.4': Issue #21729: Used the with statement in the dbm.dumb module to ensure http://hg.python.org/cpython/rev/fdbcb11e0323 New changeset e41b4e8c0c1d by Serhiy Storchaka in branch 'default': Issue #21729:

[issue12872] --with-tsc crashes on ppc64

2014-06-25 Thread Mark Lawrence
Mark Lawrence added the comment: This refers to a crash so can we have a code review please, I'm certainly not qualified to do one on ceval.c. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python

[issue21729] Use `with` statement in dbm.dumb

2014-06-25 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thanks Claudiu. Committed with yet one with. -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21729

[issue20928] xml.etree.ElementInclude does not include nested xincludes

2014-06-25 Thread R. David Murray
R. David Murray added the comment: Yeah, include should now be a very simple wrapper around a call to _include, include shouldn't have the original include code (which is moved to _include) in it. -- ___ Python tracker rep...@bugs.python.org

[issue13369] timeout with exit code 0 while re-running failed tests

2014-06-25 Thread Mark Lawrence
Mark Lawrence added the comment: Can this be reproduced, has it been fixed already, what? -- nosy: +BreamoreBoy versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13369

[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- nosy: +Vladimir.Iofik, benjamin.peterson, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21871 ___

[issue21871] Python 2.7.7 regression in mimetypes read_windows_registry

2014-06-25 Thread Benjamin Peterson
Changes by Benjamin Peterson benja...@python.org: -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21871 ___

[issue21872] LZMA library sometimes fails to decompress a file

2014-06-25 Thread Ville Nummela
New submission from Ville Nummela: Python lzma library sometimes fails to decompress a file, even though the file does not appear to be corrupt. Originally discovered with OS X 10.9 / Python 2.7.7 / bacports.lzma Now also reproduced on OS X / Python 3.4 / lzma, please see

[issue10740] sqlite3 module breaks transactions and potentially corrupts data

2014-06-25 Thread Torsten Landschoff
Torsten Landschoff added the comment: Just a heads up that I am still interested in this issue. I started to write up my expectations to the sqlite module wrt. exception handling. It's not finished yet but I attached what I got so far. I hope everybody agrees that those doctests should all

[issue12860] http client attempts to send a readable object twice

2014-06-25 Thread Mark Lawrence
Mark Lawrence added the comment: This looks identical to the problem fixed on #16658. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12860 ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2014-06-25 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8296 ___ ___ Python-bugs-list mailing list

  1   2   >