[Ann] chain.py 1.0 released( a jQuery like list wrapper)

2012-09-04 Thread denghao8888
Hello: I've release the first version of chain.py to http://pypi.python.org/pypi/chain/1.0 Document is at: http://packages.python.org/chain/ Comments and suggestions are welcomed. Regards. -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software

ANN: WorQ 1.0.0

2012-09-04 Thread Daniel Miller
Introducing WorQ 1.0.0, a Python task queue === WorQ is a Python task queue that can execute tasks in parallel in a worker pool. Workers can run in a single process, multiple processes on a single machine, or many processes on many machines. It ships with

Re: tornado.web ioloop add_timeout eats CPU

2012-09-04 Thread Laszlo Nagy
What's wrong is the 1,135,775 calls to method 'poll' of 'select.epoll' objects. I was affraid you are going to say that. :-) With five browsers waiting for messages over 845 seconds, that works out to each waiting browser inducing 269 epolls per second. Almost equally important is what the

Re: Comparing strings from the back?

2012-09-04 Thread Mark Lawrence
On 04/09/2012 05:56, Dan Sommers wrote: That said, if I really wanted bloodshed, I would propose = for the third string-equality operator! ;-) Dan Dan agent provocateur Sommers? :) -- Cheers. Mark Lawrence. -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-04 Thread Mark Lawrence
On 04/09/2012 02:54, Roy Smith wrote: There's been a bunch of threads lately about string implementations, and that got me thinking (which is often a dangerous thing). Let's assume you're testing two strings for equality. You've already done the obvious quick tests (i.e they're the same

Re: tornado.web ioloop add_timeout eats CPU

2012-09-04 Thread Paul Rubin
Laszlo Nagy gand...@shopzeus.com writes: but a threaded server cannot handle 100+ simultaneous (long running) requests, because that would require 100+ threads to be running. On a reasonable server these days, 100 threads seems to be no big deal. I've run several times that many. I think

focus on jtextfield

2012-09-04 Thread Paolo
how do I know if a JTextField has the focus? thank to all -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-04 Thread Alain Ketterlin
Roy Smith r...@panix.com writes: There's been a bunch of threads lately about string implementations, and that got me thinking (which is often a dangerous thing). Let's assume you're testing two strings for equality. You've already done the obvious quick tests (i.e they're the same

Re: calling loaded DLL function expecting POINT * argument

2012-09-04 Thread Tim Williams
On Sunday, August 26, 2012 9:23:49 PM UTC-4, Tim Roberts wrote: Tim Williams tjand...@cox.net wrote: Hello all, I'm trying to use the ctypes module to call functions in a DLL. I've figured out how to modify my path so the library is found, and I can call LoadLibrary on it,

Re: The opener parameter of Python 3 open() built-in

2012-09-04 Thread Serhiy Storchaka
On 04.09.12 04:13, Steven D'Aprano wrote: Why does the open builtin need this added complexity? Why not just call os.open directly? Or for more complex openers, just call the opener directly? What is the rationale for complicating open instead of telling people to just call their opener

Re: The opener parameter of Python 3 open() built-in

2012-09-04 Thread Serhiy Storchaka
On 03.09.12 15:32, Marco wrote: Does anyone have an example of utilisation? http://bugs.python.org/issue13424 -- http://mail.python.org/mailman/listinfo/python-list

Re: calling loaded DLL function expecting POINT * argument

2012-09-04 Thread Tim Williams
On Tuesday, September 4, 2012 8:16:33 AM UTC-4, Tim Williams wrote: On Sunday, August 26, 2012 9:23:49 PM UTC-4, Tim Roberts wrote: Tim Williams tjand...@cox.net wrote: Hello all, I'm trying to use the ctypes module to call functions in a DLL. I've

Re: simple client data base

2012-09-04 Thread Wolfgang Keller
Personally, I wouldn't bother with SQLAlchemy for this. I'd just use Python as the front end, PostgreSQL for the database, and psycopg2 for the interface. Then you have to implement the entire logic, event binding etc. yourself. If you use e.g. Pypapi (the latest version), implementing an

CFP: Computing, Networking and Digital Technologies

2012-09-04 Thread sdiwc conferences
We invite participation and submissions to The International Conference on Computing, Networking and Digital Technologies (ICCNDT 2012) that will be held at Gulf University, Sanad, Bahrain from Nov. 11-13, 2012. More details can be found at the conference's official web site, visit

sockets,threads and interupts

2012-09-04 Thread loial
I have threaded python script that uses sockets to monitor network ports. I want to ensure that the socket is closed cleanly in all circumstances. This includes if the script is killed or interupted in some other way. As I understand it signal only works in the main thread, so how can I trap

Why derivated exception can not be pickled ?

2012-09-04 Thread Mathieu Courtois
Here is my example : import cPickle ParentClass = object # works ParentClass = Exception # does not class MyError(ParentClass): def __init__(self, arg): self.arg = arg def __getstate__(self): print '#DBG pass in getstate' odict = self.__dict__.copy()

Re: Comparing strings from the back?

2012-09-04 Thread Johannes Bauer
On 04.09.2012 04:17, Steven D'Aprano wrote: On average, string equality needs to check half the characters in the string. How do you arrive at that conclusion? When comparing two random strings, I just derived n = (256 / 255) * (1 - 256 ^ (-c)) where n is the average number of character

Re: sockets,threads and interupts

2012-09-04 Thread MRAB
On 04/09/2012 16:26, loial wrote: I have threaded python script that uses sockets to monitor network ports. I want to ensure that the socket is closed cleanly in all circumstances. This includes if the script is killed or interupted in some other way. As I understand it signal only works in

Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Sreenath k
Error: Exception in thread Thread-1: Traceback (most recent call last): File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner self.run() File /usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py, line 575, in run already_pickled=True) File

Re: Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Laszlo Nagy
2012.09.04. 19:08 keltezéssel, Sreenath k írta: Error: Exception in thread Thread-1: Traceback (most recent call last): File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner self.run() File /usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py,

Re: Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Emile van Sebille
On 9/4/2012 10:08 AM Sreenath k said... Error: Exception in thread Thread-1: Traceback (most recent call last): File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner self.run() File /usr/lib/python2.7/dist-packages/spyderlib/widgets/externalshell/monitor.py, line

python docs search for 'print'

2012-09-04 Thread David Hoese
A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as I can tell. Is there something that can be done about this to make it

Re: Comparing strings from the back?

2012-09-04 Thread Steven D'Aprano
On Tue, 04 Sep 2012 18:32:57 +0200, Johannes Bauer wrote: On 04.09.2012 04:17, Steven D'Aprano wrote: On average, string equality needs to check half the characters in the string. How do you arrive at that conclusion? Take two non-empty strings of the same length, N. If the strings are

Re: sockets,threads and interupts

2012-09-04 Thread Grant Edwards
On 2012-09-04, MRAB pyt...@mrabarnett.plus.com wrote: On 04/09/2012 16:26, loial wrote: I have threaded python script that uses sockets to monitor network ports. I want to ensure that the socket is closed cleanly in all circumstances. This includes if the script is killed or interupted in

Re: python docs search for 'print'

2012-09-04 Thread Joel Goldstick
On Tue, Sep 4, 2012 at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. -Dave --

Re: python docs search for 'print'

2012-09-04 Thread Thomas 'PointedEars' Lahn
David Hoese wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as I can tell. Is there something that can be done about

Re: python docs search for 'print'

2012-09-04 Thread Steven D'Aprano
On Tue, 04 Sep 2012 13:58:43 -0400, David Hoese wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as I can tell. Is

Re: python docs search for 'print'

2012-09-04 Thread William R. Wing (Bill Wing)
On Sep 4, 2012, at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as I can

Re: python docs search for 'print'

2012-09-04 Thread Steven D'Aprano
On Tue, 04 Sep 2012 20:27:38 +0200, Thomas 'PointedEars' Lahn wrote: ¹ The other mess they created (or allowed to be created) is this mashup of newsgroup and mailing list, neither of which works properly, In what way do they not work properly? because the underlying protocols

Re: focus on jtextfield

2012-09-04 Thread Andreas Perstinger
On 04.09.2012 11:34, Paolo wrote: how do I know if a JTextField has the focus? thank to all Look there: http://www.catb.org/esr/faqs/smart-questions.html#forum Bye, Andreas -- http://mail.python.org/mailman/listinfo/python-list

Re: Comparing strings from the back?

2012-09-04 Thread Oscar Benjamin
On 4 September 2012 19:07, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Tue, 04 Sep 2012 18:32:57 +0200, Johannes Bauer wrote: On 04.09.2012 04:17, Steven D'Aprano wrote: On average, string equality needs to check half the characters in the string. How do you

Re: python docs search for 'print'

2012-09-04 Thread Grant Edwards
On 2012-09-04, Joel Goldstick joel.goldst...@gmail.com wrote: On Tue, Sep 4, 2012 at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20

Re: The opener parameter of Python 3 open() built-in

2012-09-04 Thread Terry Reedy
On 9/4/2012 8:58 AM, Serhiy Storchaka wrote: On 04.09.12 04:13, Steven D'Aprano wrote: Why does the open builtin need this added complexity? Why not just call os.open directly? Or for more complex openers, just call the opener directly? What is the rationale for complicating open instead of

Import Problem on WIndows py3

2012-09-04 Thread jimmyli1528
I have a main program and a 3rd party module. Trying to import colorama, where colorama is a folder with files in it, returns an ImportError: No module named colorama. How should I import folders? -- http://mail.python.org/mailman/listinfo/python-list

C Python: Running Python code within function scope

2012-09-04 Thread channel727272
The Python C API function PyEval_EvalCode let's you execute compiled Python code. I want to execute a block of Python code as if it were executing within the scope of a function, so that it has its own dictionary of local variables which don't affect the global state. This seems easy enough to

Re: Import Problem on WIndows py3

2012-09-04 Thread Werner Thie
On 9/4/12 9:49 AM, jimmyli1...@gmail.com wrote: I have a main program and a 3rd party module. Trying to import colorama, where colorama is a folder with files in it, returns an ImportError: No module named colorama. How should I import folders? Do you have a (empty) __init__.py file

Re: Import Problem on WIndows py3

2012-09-04 Thread Jimbo Jim
On Tuesday, September 4, 2012 1:45:55 PM UTC-7, Werner Thie wrote: On 9/4/12 9:49 AM, jimmyli1528 wrote: I have a main program and a 3rd party module. Trying to import colorama, where colorama is a folder with files in it, returns an ImportError: No module named colorama. How should I

Re: python docs search for 'print'

2012-09-04 Thread Mark Lawrence
On 04/09/2012 19:38, William R. Wing (Bill Wing) wrote: On Sep 4, 2012, at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The

Re: Comparing strings from the back?

2012-09-04 Thread Chris Angelico
On Wed, Sep 5, 2012 at 2:32 AM, Johannes Bauer dfnsonfsdu...@gmx.de wrote: How do you arrive at that conclusion? When comparing two random strings, I just derived n = (256 / 255) * (1 - 256 ^ (-c)) where n is the average number of character comparisons and c. The rationale as follows: The

Re: The opener parameter of Python 3 open() built-in

2012-09-04 Thread Chris Angelico
On Wed, Sep 5, 2012 at 5:16 AM, Terry Reedy tjre...@udel.edu wrote: io.open depends on a function the returns an open file descriptor. opener exposes that dependency so it can be replaced. I skimmed the bug report comments but didn't find an answer to this: Why not just monkey-patch? When a

Re: C Python: Running Python code within function scope

2012-09-04 Thread Terry Reedy
On 9/4/2012 4:28 PM, channel727...@gmail.com wrote: The Python C API function PyEval_EvalCode let's you execute compiled Python code. I want to execute a block of Python code as if it were executing within the scope of a function, so that it has its own dictionary of local variables which don't

Re: python docs search for 'print'

2012-09-04 Thread Terry Reedy
On Tue, Sep 4, 2012 at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. In the Windows Help version of the docs, enter print in

Re: python docs search for 'print'

2012-09-04 Thread Terry Reedy
On 9/4/2012 6:32 PM, Terry Reedy wrote: On Tue, Sep 4, 2012 at 1:58 PM, David Hoese dho...@gmail.com wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. In the Windows

How to tell people to ask questions the smart way (was: focus on jtextfield)

2012-09-04 Thread Ben Finney
Andreas Perstinger andiper...@gmail.com writes: On 04.09.2012 11:34, Paolo wrote: how do I know if a JTextField has the focus? thank to all Look there: http://www.catb.org/esr/faqs/smart-questions.html#forum That is an unhelpful response. You aren't giving anything to help the original

Re: The opener parameter of Python 3 open() built-in

2012-09-04 Thread Terry Reedy
On 9/4/2012 6:18 PM, Chris Angelico wrote: On Wed, Sep 5, 2012 at 5:16 AM, Terry Reedy tjre...@udel.edu wrote: io.open depends on a function the returns an open file descriptor. opener exposes that dependency so it can be replaced. I skimmed the bug report comments but didn't find an answer

Re: How to tell people to ask questions the smart way

2012-09-04 Thread Mark Lawrence
On 05/09/2012 00:05, Ben Finney wrote: Andreas Perstinger andiper...@gmail.com writes: On 04.09.2012 11:34, Paolo wrote: how do I know if a JTextField has the focus? thank to all Look there: http://www.catb.org/esr/faqs/smart-questions.html#forum That is an unhelpful response. You aren't

Re: How to tell people to ask questions the smart way

2012-09-04 Thread Chris Angelico
On Wed, Sep 5, 2012 at 9:28 AM, Mark Lawrence breamore...@yahoo.co.uk wrote: On 05/09/2012 00:05, Ben Finney wrote: Look there: http://www.catb.org/esr/faqs/smart-questions.html#forum The “how to ask question the smart way” essay is not a blunt instrument for beating people over the head

Re: Comparing strings from the back?

2012-09-04 Thread Oscar Benjamin
On 4 September 2012 22:59, Chris Angelico ros...@gmail.com wrote: On Wed, Sep 5, 2012 at 2:32 AM, Johannes Bauer dfnsonfsdu...@gmx.de wrote: How do you arrive at that conclusion? When comparing two random strings, I just derived n = (256 / 255) * (1 - 256 ^ (-c)) where n is the

Re: How to tell people to ask questions the smart way

2012-09-04 Thread Dwight Hutto
Just to play advocatus diaboli, what if some seemingly simple questions are asked just to jump in and start talking python? In other words, they just wanna talk shop, no matter what it is. An OT(off topic) so to speak, and have an enlightened, and evolutionary(via brain structured acceptance of

Re: python docs search for 'print'

2012-09-04 Thread Steven D'Aprano
On Tue, 04 Sep 2012 18:28:31 +, Steven D'Aprano wrote: https://www.google.com.au/search?q=python+print http://duckduckgo.com/html/?q=python+print In this case, google hits the right Python documentation on the first link. Duckduckgo doesn't do nearly so well, but it comes up with a

Re: Why derivated exception can not be pickled ?

2012-09-04 Thread Steven D'Aprano
On Tue, 04 Sep 2012 08:57:00 -0700, Mathieu Courtois wrote: Here is my example : import cPickle ParentClass = object # works ParentClass = Exception # does not [...] 1. With ParentClass=object, it works as expected. 2. With ParentClass=Exception, __getstate__/__setstate__ are

Re: python docs search for 'print'

2012-09-04 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Gah! Brain meltdown! DDG does better on searches for Python terms with fewer extraneous meanings, e.g. python print finds many links about fashion, but https://duckduckgo.com/html/?q=python+tuple is all about Python tuples :)

Re: Comparing strings from the back?

2012-09-04 Thread Neil Hodgson
Roy Smith: I'm wondering if it might be faster to start at the ends of the strings instead of at the beginning? If the strings are indeed equal, it's the same amount of work starting from either end. Most people write loops that go forwards. This leads to the processor designers

Re: Comparing strings from the back?

2012-09-04 Thread MRAB
On 05/09/2012 03:18, Neil Hodgson wrote: Roy Smith: I'm wondering if it might be faster to start at the ends of the strings instead of at the beginning? If the strings are indeed equal, it's the same amount of work starting from either end. Most people write loops that go forwards.

Re: Comparing strings from the back?

2012-09-04 Thread Roy Smith
In article -9cdnaqjtk6nktvnnz2dnuvz_gedn...@westnet.com.au, Neil Hodgson nhodg...@iinet.net.au wrote: The memcpy patch was controversial as it broke Adobe Flash An added benefit! -- http://mail.python.org/mailman/listinfo/python-list

Re: python docs search for 'print'

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 23:29:26 UTC+5:30, David Hoese wrote: A friend made me aware of this: When a python beginner (2.x) quick searches for print on docs.python.org, the print function doesn't even come up in the top 20 results. The print statement isn't even listed as far as

Re: sockets,threads and interupts

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 23:41:13 UTC+5:30, Grant Edwards wrote: On 2012-09-04, MRAB pyt...@mrabarnett.plus.com wrote: On 04/09/2012 16:26, loial wrote: I have threaded python script that uses sockets to monitor network ports. I want to ensure that the socket is closed

Re: Error 32 - Broken Pipe . Please Help!!

2012-09-04 Thread Ramchandra Apte
On Tuesday, 4 September 2012 22:38:03 UTC+5:30, Sreenath k wrote: Error: Exception in thread Thread-1: Traceback (most recent call last): File /usr/lib/python2.7/threading.py, line 551, in __bootstrap_inner self.run() File

Re: python docs search for 'print'

2012-09-04 Thread Dwight Hutto
The generated code can be run without Python installed and does not embed Python. For example: print(Hello World to py2c!) would be translated to #include iostream using namespace std; //If you want you can make py2c not add this and use std::cout instead of cout int main() { coutHello

Zooming and Editing TkInter Images

2012-09-04 Thread jimbo1qaz
How do I zoom in on a tkinter image? And how do I change the selected pixel to a changeable color when the user clicks or drags? -- http://mail.python.org/mailman/listinfo/python-list

Re: python docs search for 'print'

2012-09-04 Thread Terry Reedy
On 9/4/2012 11:22 PM, Ramchandra Apte wrote: I was actually planning to write a bug on this. If you do, find the right place to submit it. bugs.python.org is for issues relating to the cpython repository.' I fairly sure that the website search code is not there. If you do find the right

Re: How to tell people to ask questions the smart way

2012-09-04 Thread rusi
On Sep 5, 4:27 am, Mark Lawrence breamore...@yahoo.co.uk wrote: On 05/09/2012 00:05, Ben Finney wrote: Andreas Perstinger andiper...@gmail.com writes: On 04.09.2012 11:34, Paolo wrote: how do I know if a JTextField has the focus? thank to all Look there:

Re: python docs search for 'print'

2012-09-04 Thread Ramchandra Apte
On Wednesday, 5 September 2012 09:35:43 UTC+5:30, Terry Reedy wrote: On 9/4/2012 11:22 PM, Ramchandra Apte wrote: I was actually planning to write a bug on this. If you do, find the right place to submit it. bugs.python.org is for issues relating to the cpython repository.'

Re: sockets,threads and interupts

2012-09-04 Thread Dieter Maurer
loial jldunn2...@gmail.com writes: I have threaded python script that uses sockets to monitor network ports. I want to ensure that the socket is closed cleanly in all circumstances. This includes if the script is killed or interupted in some other way. The operating system should close all

[issue15340] OSError with import random when /dev/urandom doesn't exist (regression from 2.6)

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15340 ___

[issue14774] _sysconfigdata.py doesn't support multiple build configurations

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14774 ___

[issue15298] _sysconfigdata is generated in srcdir, not builddir

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15298 ___

[issue15819] Unable to build Python out-of-tree when source tree is readonly.

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15819 ___

[issue15833] most failures to write byte-compiled file no longer suppressed

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15833 ___

[issue15838] make install tries to create lib2to3 grammar pickles in source directory

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15838 ___

[issue15857] memoryview: complete support for struct packing/unpacking

2012-09-04 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15857 ___

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: Is it really possible that the pickle is created after calculation of the wildcard expansion? The GNU make manual says that make will run multiple recipes in parallel when the -j option is used (that is, multiple targets are build at the same time), not that

[issue15838] make install tries to create lib2to3 grammar pickles in source directory

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: FWIW the patch is issue15645 was a patch that fixed the issue with minimal changes, as it was created close to the first 3.3 release candidate I didn't want to change code when that could be avoided. A fix that writes the generated file into the build tree

[issue2771] Test issue

2012-09-04 Thread Ezio Melotti
Ezio Melotti added the comment: test issue linking: issue1528167 issue 1528167 #1528167 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Andrew Svetlov
Andrew Svetlov added the comment: I believe it's trick for Tru64 platform. I've asked to support of this in python-dev. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15533 ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: For future reference, here is the beginning of the e-mail thread on python-dev: http://mail.python.org/pipermail/python-dev/2012-September/121584.html We also need to know whether the Tru64 trick needs to be used in 2.7, since this documentation issue also

[issue15858] tarfile missing entries due to omitted uid/gid fields

2012-09-04 Thread Tom Lynn
Tom Lynn added the comment: I think the default has to be 0 for consistency with how other empty numeric fields are handled. In theory spaces and NULs are supposed to be equivalent terminators in numeric fields, but I've just noticed that plexus-archiver is also using leading spaces rather

[issue15859] PyUnicode_EncodeFSDefault win32 inconsistancy.

2012-09-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +haypo type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15859 ___ ___

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-09-04 Thread Ezio Melotti
Ezio Melotti added the comment: Would using assertRaises to test assertRaises in the tests be to meta? -- assignee: - michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15836 ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Andrew, I seem to be getting a test failure for test_executable_with_cwd() with your updated patch (the child process is outputting an absolute path rather than ''). I will update the patch to fix. There are also some stylistic changes I would like to make

[issue11664] Add patch method to unittest.TestCase

2012-09-04 Thread Julian Berman
Changes by Julian Berman julian+python@grayvines.com: -- nosy: +Julian ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11664 ___ ___

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Here is an updated patch. The changes I made are: (1) Update code comments in _call_popen_and_assert(). (2) Fix test failure. (3) Rename _call_popen_and_assert() to _assert_cwd() since it is a simpler name and the old name did not reflect that the method

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-09-04 Thread R. David Murray
R. David Murray added the comment: Ezio: I don't really care whether or not it would be too meta, if you look at the two versions, it is a *lot* clearer what is being tested in the try/except version than it is in the assertRaises version. -- ___

[issue15831] comma after leading optional argument is after bracket in docs

2012-09-04 Thread Ezio Melotti
Ezio Melotti added the comment: Do we like how these look? Is the bare star notation too obscure? inspect.Signature.replace(*[, parameters][, return_annotation]) inspect.Parameter.replace(*[, name][, kind][, default][, annotation]) Note that if possible, it's better to avoid using the []

[issue15836] unittest assertRaises should verify excClass is actually a BaseException class

2012-09-04 Thread Ezio Melotti
Ezio Melotti added the comment: I missed the initial patch. What I was thinking about was to use simply with self.assertRaises(TypeError): self.assertRaises(1) instead of: +ctx = self.assertRaises(TypeError) +with ctx: +self.assertRaises(1) +

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Updating the patch again to tweak the original documentation change. I was concerned that the previous language could be construed to mean that Popen will look in *two* places for the executable (both relative to the current directory and relative to the cwd

[issue15860] Use TestCase assertion methods in unittest.mock.assert* to make them easier to read

2012-09-04 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15860 ___ ___

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-09-04 Thread Ronald Oussoren
Ronald Oussoren added the comment: The configure script for python 3.3 detects llvm-gcc and automatically selects clang when it is found. That seems to be the best feasible solution for this issue. I therefore propose to close this issue. -- ___

[issue15831] comma after leading optional argument is after bracket in docs

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks for responding to all of those questions, Ezio. I will update the patch based on your responses. (Likely most of it will remain the same.) Note that if possible, it's better to avoid using the [] and put the default values. However, in these cases

[issue13241] llvm-gcc-4.2 miscompiles Python (XCode 4.1 on Mac OS 10.7)

2012-09-04 Thread Lucas Sinclair
Lucas Sinclair added the comment: I agree to close the issue. I tried following the steps proposed here: http://docs.python.org/devguide/ And typed these two commands on a OS X 10.8.1 with XCode and command line tools installed. $ hg clone http://hg.python.org/cpython. $ run ./configure

[issue15859] PyUnicode_EncodeFSDefault win32 inconsistancy.

2012-09-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sounds reasonable to me. -- nosy: +pitrou stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15859 ___

[issue15831] comma after leading optional argument is after bracket in docs

2012-09-04 Thread Ezio Melotti
Ezio Melotti added the comment: So I wasn't sure if this notation was preferred or discouraged. We are moving toward using the same signatures that we have in the Python code, but that doesn't always work (e.g. when the meaning of values changes depending on the number of args, when there's

[issue15841] Some StringIO and BytesIO methods can succeed after close

2012-09-04 Thread Alessandro Moura
Alessandro Moura added the comment: Thanks. Here is the amended patch with your suggestions implemented. -- Added file: http://bugs.python.org/file27117/memoryio.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15841

[issue15533] subprocess.Popen(cwd) documentation

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Updating the doc portion of the patch one more time. -- Added file: http://bugs.python.org/file27118/issue-15533-7-default.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15533

[issue15861] ttk.Treeview unmatched open brace in list

2012-09-04 Thread Bryan Oakley
New submission from Bryan Oakley: If you try to insert an item into the treeview, give it a tuple of values for the values attribute, and one of those values has unbalanced braces, you'll get an error unmatched open brace in list To reproduce: import Tkinter as tk import ttk root = tk.Tk()

[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2012-09-04 Thread Cemal Duman
New submission from Cemal Duman: Hi Unfortunately i'm using Vista on my corparate laptop I can open my Python CLI without any problem but IDLE is not responding. When i started idle.py by issuing following command: C:\Python27python.exe Lib\idlelib\idle.py I see following output:

[issue15863] Fine-grained info about Python versions which support changes introduced in micro releases

2012-09-04 Thread Alexander Konovalenko
New submission from Alexander Konovalenko: Some security fixes and bug fixes that are simultaneously issued for multiple Python versions require changes to the documentation. I'm now looking at the hash randomization vulnerability that was fixed in 2.6.8 and 2.7.3. The docs always mention the

[issue15864] Package cache doesn't cache packages with overlapping sys.path entries

2012-09-04 Thread Daniel Wagner-Hall
New submission from Daniel Wagner-Hall: Importing the same module twice should only execute its code once, and should only lead to one copy of the classes defined in the module's file. If a subdirectory of $PWD is on $PYTHONPATH, and a package is imported both relative to $PWD and relative to

[issue15862] IDLE not working when due to wrong Hard Drive point of os.path.expanduser

2012-09-04 Thread Roger Serwy
Roger Serwy added the comment: IDLE not responding is likely due to Issue13582, since the warning message would cause IDLE to terminate abruptly when launched with pythonw.exe. What does os.path.expanduser(~) evaluate to when executed from the IDLE shell? -- nosy: +serwy

[issue15831] comma after leading optional argument is after bracket in docs

2012-09-04 Thread Chris Jerdonek
Chris Jerdonek added the comment: Attaching an updated patch after doing another pass at the code and in light of Ezio's comments. Let me know if and when you'd like me to prepare separate patches for 2.7 and 3.2. -- Added file: http://bugs.python.org/file27120/issue-15831-2.patch

  1   2   >