Re: why is bytearray treated so inefficiently by pickle?

2011-12-07 Thread Irmen de Jong
On 6-12-2011 23:24, Terry Reedy wrote: On Nov 30, Irmen de Jong opened a tracker issue with a patch improve bytearray pickling. http://bugs.python.org/issue13503 Yesterday, Dec 5, Antoine Pitrou applied a revised fix. http://hg.python.org/cpython/rev/e2959a6a1440/ The commit message:

Re: Hints for writing bit-twiddling code in Python

2011-12-07 Thread Peter Otten
Steven D'Aprano wrote: I have some bit-twiddling code written in Java which I am trying to port to Python. I'm not getting the same results though, and I think the problem is due to differences between Java's signed byte/int/long types, and Python's unified long integer type. E.g. Java's is

Losing com pointer

2011-12-07 Thread Matteo Boscolo
Hi all, I need some help to a com problem.. I got this class: class foo(object): def setComObject(comObject): self.comO=comObject #This is a com object from a cad application def showForm(self) # use the self.comO to read some information from the cad application

Re: Hints for writing bit-twiddling code in Python

2011-12-07 Thread Serhiy Storchaka
07.12.11 06:03, Steven D'Aprano написав(ла): long newSeed = (seed 0xL) * 0x41A7L; while (newSeed= 0x8000L) { newSeed = (newSeed 0x7FFFL) + (newSeed 31L); } seed = (newSeed == 0x7FFFL) ? 0 : (int)newSeed; seed = (seed 0x) * 0x41A7 % 0x7FFF --

Re: Questions about LISP and Python.

2011-12-07 Thread Andrea Crotti
On 12/06/2011 04:36 AM, Xah Lee wrote: i don't like python, and i prefer emacs lisp. The primary reason is that python is not functional, especially with python 3. The python community is full of fanatics with their drivels. In that respect, it's not unlike Common Lisp community and Scheme lisp

Re: Questions about LISP and Python.

2011-12-07 Thread Terry Reedy
On 12/7/2011 5:14 AM, Andrea Crotti wrote: On 12/06/2011 04:36 AM, Xah Lee wrote: i don't like python, and i prefer emacs lisp. The primary reason is that python is not functional, especially with python 3. The python community is full of fanatics with their drivels. In that respect, it's not

Re: How to build 64-bit Python on Solaris with GCC?

2011-12-07 Thread Skip Montanaro
Does anyone have a recipe for the subject build? I know Solaris is a minority platform these days, but surely someone has tackled this problem, haven't they? Thx, Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: How to build 64-bit Python on Solaris with GCC?

2011-12-07 Thread Karim
Le 07/12/2011 12:30, Skip Montanaro a écrit : Does anyone have a recipe for the subject build? I know Solaris is a minority platform these days, but surely someone has tackled this problem, haven't they? Thx, Skip ./configure make make install Karim --

Re: Questions about LISP and Python.

2011-12-07 Thread Neil Cerutti
On 2011-12-07, Terry Reedy tjre...@udel.edu wrote: It does not pretend that surrounding statements with parentheses turns them into expressions. ;-) I like being in a sexpression. Aww YEH! -- (Neil Cerutti) -- http://mail.python.org/mailman/listinfo/python-list

Re: order independent hash?

2011-12-07 Thread Hrvoje Niksic
Chris Angelico ros...@gmail.com writes: 2011/12/5 Hrvoje Niksic hnik...@xemacs.org: If a Python implementation tried to implement dict as a tree, instances of classes that define only __eq__ and __hash__ would not be correctly inserted in such a dict. Couldn't you just make a tree of hash

Dynamic variable creation from string

2011-12-07 Thread Massi
Hi everyone, in my script I have a dictionary whose items are couples in the form (string, integer values), say D = {'a':1, 'b':2, 'c':3} This dictionary is passed to a function as a parameter, e.g. : def Sum(D) : return D['a']+D['b']+D['c'] Is there a way to create three variables

Re: Dynamic variable creation from string

2011-12-07 Thread Waldek M.
On Wed, 7 Dec 2011 09:09:16 -0800 (PST), Massi wrote: def Sum(D) : return D['a']+D['b']+D['c'] Is there a way to create three variables dynamically inside Sum in order to re write the function like this? def Sum(D) : # Here some magic to create a,b,c from D return a+b+c

Re: Dynamic variable creation from string

2011-12-07 Thread John Gordon
In b078a04b-024b-48dc-b24a-8f4ce75fa...@13g2000vbu.googlegroups.com Massi massi_...@msn.com writes: in my script I have a dictionary whose items are couples in the form (string, integer values), say D = {'a':1, 'b':2, 'c':3} This dictionary is passed to a function as a parameter, e.g. :

Re: order independent hash?

2011-12-07 Thread 88888 Dihedral
On Wednesday, December 7, 2011 9:28:40 PM UTC+8, Hrvoje Niksic wrote: Chris Angelico ros...@gmail.com writes: 2011/12/5 Hrvoje Niksic hni...@xemacs.org: If a Python implementation tried to implement dict as a tree, instances of classes that define only __eq__ and __hash__ would not be

Re: Dynamic variable creation from string

2011-12-07 Thread Chris Angelico
On Thu, Dec 8, 2011 at 4:09 AM, Massi massi_...@msn.com wrote: def Sum(D) : # Here some magic to create a,b,c from D return a+b+c Welcome to TMTOWTDI land! We do magic here... several different ways. You _may_ be able to do this, which is roughly equivalent to the extract() function in

Re: Dynamic variable creation from string

2011-12-07 Thread MRAB
On 07/12/2011 17:45, John Gordon wrote: Inb078a04b-024b-48dc-b24a-8f4ce75fa...@13g2000vbu.googlegroups.com Massimassi_...@msn.com writes: in my script I have a dictionary whose items are couples in the form (string, integer values), say D = {'a':1, 'b':2, 'c':3} This dictionary is

Re: Multiprocessing: killing children when parent dies

2011-12-07 Thread Mihai Badoiu
ok, so the code is something like #process A p = Process(...) p.daemon = 1 p.start() # starts process B ... If process A dies (say error, or ctrl-c), or finishes, then process B also dies. But if process A is killed with the kill command, then process B soldiers on... Any idea on how to

Insert trusted timestamp to PDF

2011-12-07 Thread Hegedüs , Ervin
Hello Everyone, I'm looking for a tool, which can add a trusted timestamp to an existing PDF file (and can sign - but currently only have to add TS). Could anybody help? Thanks: a. -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiprocessing: killing children when parent dies

2011-12-07 Thread Dan Stromberg
On 12/7/11, Mihai Badoiu mbad...@gmail.com wrote: ok, so the code is something like #process A p = Process(...) p.daemon = 1 p.start() # starts process B ... If process A dies (say error, or ctrl-c), or finishes, then process B also dies. But if process A is killed with the kill

Re: Multiprocessing: killing children when parent dies

2011-12-07 Thread Mihai Badoiu
I like 2) the most. I do have access to the child. The child is a process started with multiprocessing.Process(function). How do I _not_ set an SID? thanks, --mihai On Wed, Dec 7, 2011 at 2:50 PM, Dan Stromberg drsali...@gmail.com wrote: On 12/7/11, Mihai Badoiu mbad...@gmail.com wrote:

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Irmen de Jong
On 07-12-11 20:41, Hegedüs, Ervin wrote: Hello Everyone, I'm looking for a tool, which can add a trusted timestamp to an existing PDF file (and can sign - but currently only have to add TS). Note sure what a 'trusted timestamp' is, but pdftk can manipulate pdf files. See

A HOME OF TOLERANCE !!!!!!!!!!!!!

2011-12-07 Thread bv
A HOME OF TOLERANCE A Home Of Tolerance Media speculation since the horrific terrorist attacks on America has pointed the finger at Muslims and the Arab world, and that has meant ordinary citizens of the US and other Western countries becoming easy prey for anti-faith hooligans. Shame. Sadly,

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Matteo Boscolo
have a look at: http://www.boscolini.eu/Boscolini/index.php?option=com_contentview=articleid=64%3Anumbering-pdf-file-in-pythoncatid=38%3AprogrammingItemid=55lang=en

Re: Dynamic variable creation from string

2011-12-07 Thread Terry Reedy
On 12/7/2011 12:09 PM, Massi wrote: in my script I have a dictionary whose items are couples in the form (string, integer values), say D = {'a':1, 'b':2, 'c':3} This dictionary is passed to a function as a parameter, e.g. : def Sum(D) : return D['a']+D['b']+D['c'] Is there a way to

Re: Dynamic variable creation from string

2011-12-07 Thread Steven D'Aprano
On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote: Is there a way to create three variables dynamically inside Sum in order to re write the function like this? def Sum(D) : # Here some magic to create a,b,c from D return a+b+c No magic is needed. a, b, c = D['a'], D['b'], D['c']

Re: Dynamic variable creation from string

2011-12-07 Thread Terry Reedy
On 12/7/2011 7:03 PM, Steven D'Aprano wrote: On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote: Is there a way to create three variables dynamically inside Sum in order to re write the function like this? I should have mentioned in my earlier response that 'variable' is a bit vague and

Re: Dynamic variable creation from string

2011-12-07 Thread Steven D'Aprano
On Wed, 07 Dec 2011 19:27:43 -0500, Terry Reedy wrote: On 12/7/2011 7:03 PM, Steven D'Aprano wrote: On Wed, 07 Dec 2011 09:09:16 -0800, Massi wrote: Is there a way to create three variables dynamically inside Sum in order to re write the function like this? I should have mentioned in my

How to get Python make to detect /usr/local/ssl

2011-12-07 Thread B.A.S.
Any Python developers out there that help me? I would like to configure/make Python so it uses my local OpenSSL-1.0.0e install in /usr/local/ssl. I have tried uncommenting the promising section of ./Python 2.7.2/Modules/Setup.dist below without success. How to do it! Would like to upgrade

Re: Dynamic variable creation from string

2011-12-07 Thread Chris Angelico
On Thu, Dec 8, 2011 at 11:03 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: It is really important that the scope of a,b,c is limited to the Sum function, they must not exisit outside it or inside any other nested functions. The second part is impossible, because that is not

Re: Questions about LISP and Python.

2011-12-07 Thread Rick Johnson
On Dec 6, 10:58 am, Ian Kelly ian.g.ke...@gmail.com wrote: (snip... beautiful retort) Ian you make some damn good points and i could not help but laugh hysterically at your dissection of Xah's tutorial. I don't 100% agree with everything Mr. Lee rants about, like for instance, documents needing

Re: Questions about LISP and Python.

2011-12-07 Thread Rick Johnson
On Dec 6, 9:52 pm, alex23 wuwe...@gmail.com wrote: (snip rambling nonsense) Alex, i hope you are being theatrical with all this. If not, i fear you may be putting too much stress on your heart. Please calm down. The months in which you don't post are an absolute goddamn _delight_ I am

Re: Losing com pointer

2011-12-07 Thread Mark Hammond
On 7/12/2011 7:22 PM, Matteo Boscolo wrote: Hi all, I need some help to a com problem.. I got this class: class foo(object): def setComObject(comObject): self.comO=comObject #This is a com object from a cad application def showForm(self) # use the self.comO to read some information from the

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Hegedüs , Ervin
Hello Irmen, On Wed, Dec 07, 2011 at 08:59:11PM +0100, Irmen de Jong wrote: On 07-12-11 20:41, Hegedüs, Ervin wrote: Hello Everyone, I'm looking for a tool, which can add a trusted timestamp to an existing PDF file (and can sign - but currently only have to add TS). Note sure what a

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Alec Taylor
Just digitally sign the document using python-gnupg /problem-solved! On Thu, Dec 8, 2011 at 4:09 PM, Hegedüs, airw...@gmail.com wrote: Hello Irmen, On Wed, Dec 07, 2011 at 08:59:11PM +0100, Irmen de Jong wrote: On 07-12-11 20:41, Hegedüs, Ervin wrote: Hello Everyone, I'm looking for a

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Hegedüs , Ervin
Hello, On Thu, Dec 08, 2011 at 04:28:01PM +1100, Alec Taylor wrote: Just digitally sign the document using python-gnupg /problem-solved! using gnupg to sign a document != add a timestamp to a pdf. May be this doc helps to clear what's the different, and what I want:

I love the decorator in Python!!!

2011-12-07 Thread 88888 Dihedral
I use the @ decorator to behave exactly like a c macro that does have fewer side effects. I am wondering is there other interesting methods to do the jobs in Python? A lot people complained that no macro in Python. Cheers to the rule of Python : If there's none then just go ahead and build

Re: Insert trusted timestamp to PDF

2011-12-07 Thread marco . rucci
Hi, take a look at this online tool: http://easytimestamping.com It is able to apply RFC3161 compliant trusted timestamps, issued by accredited Certification Authorities. The timestamp is applied to the pdf in detached mode (i.e. as a separate .tsr file) If you need to integrate the

Re: Insert trusted timestamp to PDF

2011-12-07 Thread Alec Taylor
Or the python implementation of that RFC: http://pypi.python.org/pypi/rfc3161/0.1.3 On Thu, Dec 8, 2011 at 6:39 PM, marco.ru...@gmail.com wrote: Hi, take a look at this online tool: http://easytimestamping.com It is able to apply RFC3161 compliant trusted timestamps, issued by accredited

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread Peter Frauenglass
Peter Frauenglass python@everblue.info added the comment: I should also mention that pydoc2.7 -p 1234 works without issue. It seems to be a regression. Also adding lemburg to the Nosy list as the comments on platform.py suggest. -- nosy: +lemburg

[issue13542] Memory leak in multiprocessing.pool

2011-12-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +jnoller stage: - needs patch versions: -Python 2.6, Python 3.1, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13542 ___

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ji Han
New submission from Ji Han hanji1...@gmail.com: The following code snippet will crash IDLE: import sys sys.setrecursionlimit((131)-1) The crash happens immediately and is consistently reproducible (environment: Windows 7 SP1 64-bit, Python 2.7.2 for Windows X86_64). -- components:

[issue8641] IDLE 3 doesn't highlights b, but u

2011-12-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3822c8087d70 by Ned Deily in branch '3.2': Issue #8641: Update IDLE 3 syntax coloring to recognize b.. and not u... http://hg.python.org/cpython/rev/3822c8087d70 New changeset e49220f4c31f by Ned Deily in branch

[issue8641] IDLE 3 doesn't highlights b, but u

2011-12-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the patch, Tal, and thanks for testing it, Roger. Applied to 3.2 for release in 3.2.3 and to default for 3.3.0. -- assignee: - ned.deily nosy: +ned.deily resolution: works for me - fixed stage: - committed/rejected status: open -

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Trying to set the recursion limit to a large number defeats its purpose. As documented in the Standard Library Reference: The highest possible limit is platform-dependent. A user may need to set the limit higher when she has a program that requires

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On the other hand, there is no reason for the recursion limit to be actually reached, just by setting it! Is there a hidden infinite recursion somewhere? -- nosy: +amaury.forgeotdarc ___

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: hanji, could you start IDLE from a command prompt and try again: c:\python27\python.exe -m idlelib.idle Do you see additional error messages? -- ___ Python tracker rep...@bugs.python.org

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Zbyszek Szmek
Zbyszek Szmek zbys...@in.waw.pl added the comment: f((yield)) This requirement seems unnecessary. And surprising, because f(generator-expression) or f('a' if 'a' else 'b') doesn't require parenthes. There's no room for confusion if parentheses were omitted in the single-argument case.

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: But after setting it, IDLE is going to be executing code. In the 64-bit Windows Python 2.7.2 that I have available, there were exceptions reported in the command line interpreter (not IDLE) after changing the recursion limit and then executing some

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ji Han
Ji Han hanji1...@gmail.com added the comment: @amaury.forgeotdarc It says 'python.exe has stopped working'. Details: Problem Event Name: APPCRASH Application Name: python.exe Application Version: 0.0.0.0 Application Timestamp:4df4b010 Fault Module Name:MSVCR90.dll

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This seems to be an issue with the platform module's detection of the glibc. Can you tell us more about your system? (OS, distribution...) -- nosy: +pitrou, r.david.murray versions: +Python 3.3 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23216/0001.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23570/issue11682_pep380_branch_2031.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23759/0001-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: Removed file: http://bugs.python.org/file23639/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Changes by Nick Coghlan ncogh...@gmail.com: -- hgrepos: -11 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11682 ___ ___ Python-bugs-list mailing

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: OK, I removed all the old files and repo links (they're still available in the history below if needed). (well, the link to Renaud's hg patch queue is gone, but that's also present in one of the early comments). (Ron: your comment makes me

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: As far as *why* yield expressions aren't special cased the way generator expressions are - just an oversight when yield expressions were added, no real grand master plan. It's not a big deal in practice, so nobody has ever cared enough to

[issue11610] Improved support for abstract base classes with descriptors

2011-12-07 Thread Darren Dale
Darren Dale dsdal...@gmail.com added the comment: New patch addressing comments in review. -- Added file: http://bugs.python.org/file23864/abc_descriptor.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11610

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Tested on Linux: Python 2.7.2+ (2.7:16c4137a413c+, Dec 4 2011, 22:56:38) [GCC 4.4.3] on linux2 import sys sys.setrecursionlimit((131)-1) import xx Exception RuntimeError: 'maximum recursion depth exceeded in __subclasscheck__' in

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread maniram maniram
maniram maniram maniandra...@gmail.com added the comment: On my system it works. :-) -- nosy: +maniram.maniram ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13545 ___

[issue13545] Pydoc3.2: TypeError: unorderable types

2011-12-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Can you try to patch platform.py with the following patch? diff --git a/Lib/platform.py b/Lib/platform.py --- a/Lib/platform.py +++ b/Lib/platform.py @@ -186,7 +186,7 @@ def libc_ver(executable=sys.executable,l elif so:

[issue13547] Clean Lib/_sysconfigdata.py and Modules/_testembed

2011-12-07 Thread Stefan Krah
New submission from Stefan Krah stefan-use...@bytereef.org: I think that `make distclean` should remove Lib/_sysconfigdata.py and Modules/_testembed. On second thought, `make clean` should probably also remove those. -- components: Build messages: 148969 nosy: skrah priority: normal

[issue13547] Clean Lib/_sysconfigdata.py and Modules/_testembed

2011-12-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, make clean should remove them as well. -- nosy: +pitrou versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13547 ___

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-12-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I believe the commit would have needed a regression test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13500 ___

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-12-07 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: I'll verify the fix in another day or two. FWIW unless python is willing to import pexpect, or provide an equivalent, I'm not sure how items like this which require interactive input can be run via the python project testing framework.

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-12-07 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I'm not sure how items like this which require interactive input can be run via the python project testing framework. Replace sys.stdin with a custom object (a stub) and you can control input (see the Inputs class used in

[issue13548] Invalid 'line' tracer event on pass within else clause

2011-12-07 Thread Stephan R.A. Deibel
New submission from Stephan R.A. Deibel sdei...@wingware.com: The tracer set with sys.settrace() is called incorrectly with a 'line' event on a 'pass' that is at the end of an 'else' clause on the final line of a function even if the else block is not executed by the interpreter. Whew, talk

[issue13548] Invalid 'line' tracer event on pass within else clause

2011-12-07 Thread Ned Batchelder
Changes by Ned Batchelder n...@nedbatchelder.com: -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13548 ___ ___ Python-bugs-list

[issue13548] Invalid 'line' tracer event on pass within else clause

2011-12-07 Thread Stephan R.A. Deibel
Stephan R.A. Deibel sdei...@wingware.com added the comment: Sorry, the print statement in the file needs a tweak to work with Python 3.2, but the bug does occur there also. -- ___ Python tracker rep...@bugs.python.org

[issue13500] Hitting EOF gets cmd.py into a infinite EOF on return loop

2011-12-07 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Ok. I'll see if I can provide a unittest for this by the 12th. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13500 ___

[issue11682] PEP 380 reference implementation for 3.3

2011-12-07 Thread Ron Adam
Ron Adam ron3...@gmail.com added the comment: Thanks for the updated links Nick. There is a comment in the docs that recommends putting parentheses around any yield expression that returns a value. So it is in agreement with that in the function argument case. The grammar I used does keep

[issue13394] Patch to increase aifc lib test coverage with couple of minor fixes

2011-12-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think the patch includes too many changes. It would be better if you can split it in two separate patches: one with the increased coverage, the other with the bugs you found and their tests. I can easily commit the first (assuming it

[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - ezio.melotti stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13531 ___

[issue13534] test_cmath fails on ppc with glibc-2.14.90 due to buggy architecture-specific hypot

2011-12-07 Thread Dave Malcolm
Dave Malcolm dmalc...@redhat.com added the comment: I agree. I filed this here in case anyone else ran into it, but given that this is really a glibc bug (now fixed), I'm closing this out as won't fix. -- resolution: - wont fix status: open - closed

[issue13542] Memory leak in multiprocessing.pool

2011-12-07 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: It's a duplicate of #12157. -- nosy: +neologix resolution: - duplicate stage: needs patch - committed/rejected status: open - closed superseder: - join method of multiprocessing Pool object hangs if iterable argument of

[issue11051] system calls per import

2011-12-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a541bda2f5e2 by Charles-François Natali in branch 'default': Issue #11051: Reduce the number of syscalls per import. http://hg.python.org/cpython/rev/a541bda2f5e2 -- nosy: +python-dev

[issue11051] system calls per import

2011-12-07 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I would have appreciated had you considered my review before pushing that change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11051

[issue11051] system calls per import

2011-12-07 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I would have appreciated had you considered my review before pushing that change. Sorry, I didn't receive an email notification for your review, so I didn't know you had done one. I'll add a comment. --

[issue13502] Documentation for Event.wait return value is either wrong or incomplete

2011-12-07 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Here's a patch. -- keywords: +patch Added file: http://bugs.python.org/file23866/event_wait_cleared.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13502

[issue13453] Tests and network timeouts

2011-12-07 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: URLError: urlopen error [Errno 4] Non-recoverable failure in name resolution For this one, we should probably add EAI_FAIL to support.transient_internet. -- keywords: +patch nosy: +neologix Added file:

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Here is a patch, with test. -- keywords: +patch Added file: http://bugs.python.org/file23868/issue13546.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13546

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- assignee: - amaury.forgeotdarc stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13546 ___

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Ned Deily
Ned Deily n...@acm.org added the comment: LGTM -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13546 ___ ___ Python-bugs-list mailing list

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 57de1ad15c54 by Amaury Forgeot d'Arc in branch '2.7': Issue #13546: Fixed an overflow issue that could crash the intepreter when http://hg.python.org/cpython/rev/57de1ad15c54 -- nosy: +python-dev

[issue13546] sys.setrecursionlimit() crashes IDLE

2011-12-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: This will be fixed in the next 2.7 release, thanks for the report! -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker

[issue1602] windows console doesn't print or input Unicode

2011-12-07 Thread Matt Mackall
Matt Mackall m...@selenic.com added the comment: The underlying cause of Python's write exceptions with cp65001 is: The ANSI C write() function as implemented by the Windows console returns the number of _characters_ written rather than the number of _bytes_, which Python reasonably

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I got the debug output of test_3_join_in_forked_from_thread() using some hacks (threading._VERBOSE=True and don't hide subprocess output): Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0,

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Hum, it's better with the process identifiers. Oh, by the way: the output is not truncated, Python test hangs during the second run :-) Without the debug output, it needs more than 1,000 runs to reproduce the bug (hang). Testing

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg148991 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11870 ___

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: -- Removed message: http://bugs.python.org/msg148992 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11870 ___

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I removed my two previous message (msg148991 and msg148992), there were unrelated to this issue: the test hangs in debug mode in the IO module because of a deadleak in IO related to the fork... --

[issue13549] Incorrect nested list comprehension documentation

2011-12-07 Thread Matt Long
New submission from Matt Long m...@crocodoc.com: The description of nesting list comprehensions in section 5.1.5 of the main Python tutorial (http://docs.python.org/tutorial/datastructures.html#nested-list-comprehensions) is misleading at best and arguably incorrect. Where it says To avoid

[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset a8deeb549e1a by Ezio Melotti in branch '2.7': #13531: add a test for defaultdict with a non-callable arg. Patch by Mike Cheng. http://hg.python.org/cpython/rev/a8deeb549e1a New changeset 17ceebc61b65 by Ezio

[issue11870] test_3_join_in_forked_from_thread() of test_threading hangs 1 hour on x86 Ubuntu Shared 3.x

2011-12-07 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: To debug this, we should probably make use of faulthandler (but not dump_tracebacks_later, since it creates a new thread). The way to go could be to make the parent process send a fatal signal to the child process if the latter takes

[issue13531] add test for defaultdict with non-callable first argument

2011-12-07 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Committed, thanks for the report and the patch! For the record, this is related to https://bugs.pypy.org/issue953 -- resolution: - fixed stage: commit review - committed/rejected status: open - closed

[issue11051] system calls per import

2011-12-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I am a little puzzled by the patch. In logic, 'A and B' is equivalent to 'not A or not B'. But in the patch, -if (_Py_stat(filename, statbuf) == 0 /it exists */ -S_ISDIR(statbuf.st_mode)) /* it's a directory */ +

[issue11051] system calls per import

2011-12-07 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: By the way, _Py_stat() can fail because of a Python error: -1 result is not handled in import.c :-( It may leak to the XXX undetected error message. -- nosy: +haypo ___ Python tracker

[issue11051] system calls per import

2011-12-07 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: OK, I gather from the comment added in the second patch that you intentionally changed the logic to restart the loop more often. -- ___ Python tracker rep...@bugs.python.org

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The threading module uses an hack to log actions to help debugging. The log depends on 3 flags: __debug__, threading._VERBOSE and a verbose attribute (each threading class has such attribute). By default, _note() is always called

[issue13550] Rewrite logging hack of the threading module

2011-12-07 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@haypocalc.com: Added file: http://bugs.python.org/file23870/threading_note_global.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13550 ___

  1   2   >