Re: Path / Listing and os.walk problem.

2010-08-26 Thread Peter Otten
Alban Nona wrote: Hi So here is my problem: I have my render files that are into a directory like this: c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0001.exr c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0002.exr c:\log\renderfiles\HPO7_SEQ004_031_VDM_DIF_V001.0003.exr

Re: Iterative vs. Recursive coding

2010-08-26 Thread Bruno Desthuilliers
BartC a écrit : Steven D'Aprano st...@remove-this-cybersource.com.au wrote in message news:4c6f8edd$0$28653$c3e8...@news.astraweb.com... On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote: I onced worked in a shop (Win32 desktop / accouting applications mainly) where I was the

Python Editor or IDE ActiveX control

2010-08-26 Thread Sathish S
Hi Ppl, Is there any python IDE or editor that has an ActiveX control which could be embed in other Windows applications. I'm basically looking to write a application that can show the indentations of python, change the color of keywords etc on a application, which will save this python script

Webcam support

2010-08-26 Thread Navkirat Singh
Hi Guys, I am programming a web centric app in python for customer, which needs to click a snap of the customer and forward the pic to the server via POST. I am not very familiar with how I can achieve this. Any direction would be much appreciated. Regards, Nav --

Re: Webcam support

2010-08-26 Thread Chris Rebert
On Thu, Aug 26, 2010 at 1:35 AM, Navkirat Singh navkir...@gmail.com wrote: Hi Guys, I am programming a web centric app in python for customer, which needs to click a snap of the customer and forward the pic to the server via POST. I am not very familiar with how I can achieve this. Any

Re: seach for pattern based on string

2010-08-26 Thread richie05 bal
On Aug 24, 11:05 pm, Alex Willmer a...@moreati.org.uk wrote: On Aug 24, 5:33 pm, richie05 bal richie8...@gmail.com wrote: i am starting to learn python and I am stuck with query I want to generate with python File looks something like this TRACE: AddNewBookD {bookId 20, noofBooks 6576,

pil and reportlab: image compression

2010-08-26 Thread steph
Hi group, I've written a small application that puts images into a pdf document. It works ok, but my problem is that the pdf-files become quite huge, bigger than the original jpegs. The problem seems to arise because I use PIL to resize the pictures - and the images seem to get uncompressed in

bug? pkgutil.walk_packages returns packages that result in an ImportError

2010-08-26 Thread Chris Withers
Hi All, From the docs of pkgutils.walk_packages: 'onerror' is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a package. If no onerror function is supplied, ImportErrors are caught

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
On Aug 26, 1:52 am, Dennis Lee Bieber wlfr...@ix.netcom.com wrote: On Wed, 25 Aug 2010 14:57:33 -0700 (PDT), becky_s rda.se...@gmail.com declaimed the following in gmane.comp.python.general: px,py = p(mesolon, mesolat)         For my elucidation, what does that      p(x,y)  actually do?

Re: bug? pkgutil.walk_packages returns packages that result in an ImportError

2010-08-26 Thread Peter Otten
Chris Withers wrote: From the docs of pkgutils.walk_packages: 'onerror' is a function which gets called with one argument (the name of the package which was being imported) if any exception occurs while trying to import a package. If no onerror function is supplied,

Re: Iterative vs. Recursive coding

2010-08-26 Thread John Bokma
Bruno Desthuilliers bruno.42.desthuilli...@websiteburo.invalid writes: BartC a écrit : Steven D'Aprano st...@remove-this-cybersource.com.au wrote in message news:4c6f8edd$0$28653$c3e8...@news.astraweb.com... On Fri, 20 Aug 2010 17:23:23 +0200, Bruno Desthuilliers wrote: I onced worked in a

Re: Path / Listing and os.walk problem.

2010-08-26 Thread Alban Nona
Hey ! Thank you guys ! It help me a lot ! @Dennis (Gomes): Thanks ! I tried it it worked well but list me the whole files :P (and finally crashed python...lol) I looked at the Peter method and, Im really dumb to didnt tough about defining a pattern like *_v001.0001.exr * like this, it sort me

Re: Webcam support

2010-08-26 Thread garabik-news-2005-05
Navkirat Singh navkir...@gmail.com wrote: Hi Guys, I am programming a web centric app in python for customer, which needs to click a snap of the customer and forward the pic to the server via POST. I am not very familiar with how I can achieve this. Any direction would be much appreciated.

Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to know how i could write the file (now a string) as a jpeg image on disk. When I try to encode the same string to a

Re: Webcam support

2010-08-26 Thread Navkirat Singh
On 26-Aug-2010, at 9:49 PM, garabik-news-2005...@kassiopeia.juls.savba.sk wrote: Navkirat Singh navkir...@gmail.com wrote: Hi Guys, I am programming a web centric app in python for customer, which needs to click a snap of the customer and forward the pic to the server via POST. I am not

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
Navkirat Singh navkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. Why? -- John Bokma

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 26-Aug-2010, at 11:01 PM, John Bokma wrote: Navkirat Singh navkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. Why? -- John Bokma

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Grant Edwards
On 2010-08-26, Navkirat Singh navkir...@gmail.com wrote: On 26-Aug-2010, at 11:01 PM, John Bokma wrote: Navkirat Singh navkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Stefan Schwarzer
Hi Navkirat, On 2010-08-26 19:22, Navkirat Singh wrote: I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to know how i could write the file (now a string) as a jpeg image on

Re: Path / Listing and os.walk problem.

2010-08-26 Thread Alban Nona
So I found a way to do it, maybe some people could be interested: listNames = [] for n in names: listNames.append('_'.join(n.split('_')[:-1])) #It will cut the last part of the file name convention listNames = list(set(listNames)) #we Delete duplicates from the list, like this we only have

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
I am sorry, maybe I was not elaborate in what I was having trouble with. I am using a jpegcam library, which on my web page captures a webcam image and sends it to the server via the POST method. On the Server side (python 3), I receive this image as a part of header content in bytes (I know

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread MRAB
On 26/08/2010 19:57, Navkirat Singh wrote: I am sorry, maybe I was not elaborate in what I was having trouble with. I am using a jpegcam library, which on my web page captures a webcam image and sends it to the server via the POST method. On the Server side (python 3), I receive this image as a

Re: Overload print

2010-08-26 Thread John Roth
On Aug 25, 3:42 pm, Alexander Kapps alex.ka...@web.de wrote: Ross Williamson wrote: Hi All Is there anyway in a class to overload the print function? In Python = 2.x print is a statement and thus can't be overloaded. That's exactly the reason, why Python 3 has turned print into a

Re: CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria Lauterbach and KILL THEM - CIA/Mossad/Jew did 911 - Wikileaks for ever CRIMES of YANQUI Bustards

2010-08-26 Thread Simon Brooke
On Wed, 25 Aug 2010 07:31:03 -0700, Standish P wrote: ... so you want to render this in TeX ... ? It was very thoughtful of you to repost the whole spammer text for the benefit of those of us who have the spammer killfiled, and consequently would not otherwise have been able to read it. --

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 1:25 PM, Navkirat Singh wrote: On 26-Aug-2010, at 11:01 PM, John Bokma wrote: Navkirat Singhnavkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 1:10 AM, Robert Kern wrote: On 8/26/10 1:25 PM, Navkirat Singh wrote: On 26-Aug-2010, at 11:01 PM, John Bokma wrote: Navkirat Singhnavkir...@gmail.com writes: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 12:45 AM, MRAB wrote: On 26/08/2010 19:57, Navkirat Singh wrote: I am sorry, maybe I was not elaborate in what I was having trouble with. I am using a jpegcam library, which on my web page captures a webcam image and sends it to the server via the POST method. On the

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Dave Angel
Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to know how i could write the file (now a string) as a jpeg image on disk. When I try to

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to know how i could write the file (now a

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to know how i could write the file (now a

Re: matplotlib pyplot contourf with 1-D array (vector)

2010-08-26 Thread becky_s
I was able to figure this out on my own. First, to eliminate the masked arrays, I used a combination of the where and compress functions to remove any missing data from my 1-D arrays. Then, I used the griddata function as described above. This did the trick. --

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread MRAB
On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the bytes by decoding them to a string. I wanted to

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Dave Angel
Navkirat Singh wrote: O snip I am using Python3 and I receive a byte stream with a jpeg attached sent by the web browser over a socket, which looks like this: b': image/jpeg\r\nAccept: text/*\r\nReferer: http://127.0.0.1:8001/\r\nAccept-Language: en-us\r\nAccept-Encoding: gzip,

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-26 Thread Brad
On Aug 25, 4:05 am, Alex McDonald b...@rivadpm.com wrote: Your example of writing code with memory leaks *and not caring because it's a waste of your time* makes me think that you've never been a programmer of any sort. Windows applications are immune from memory leaks since programmers can

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 2:14 AM, Brad wrote: On Aug 25, 4:05 am, Alex McDonald b...@rivadpm.com wrote: Your example of writing code with memory leaks *and not caring because it's a waste of your time* makes me think that you've never been a programmer of any sort. Windows applications are

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread John Bokma
Navkirat Singh navkir...@gmail.com writes: I am using Python3 and I receive a byte stream with a jpeg attached sent by the web browser over a socket, which looks like this: b': image/jpeg\r\nAccept: text/*\r\nReferer: http://127.0.0.1:8001/\r\nAccept-Language: en-us\r\nAccept-Encoding:

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 3:47 PM, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file (.jpeg) is encoded in bytes, I parse the

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread MRAB
On 26/08/2010 21:47, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I receive a jpeg file with the POST method.The file

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 2:40 AM, Robert Kern wrote: On 8/26/10 3:47 PM, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver,

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 2:48 AM, MRAB wrote: On 26/08/2010 21:47, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey guys, I am programming a webserver, I

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 4:17 PM, Navkirat Singh wrote: Here is what I needed to do: a) Separate image content from header content of the byte stream received from the web browser. b) Save the image content to disk for further use. Here is what I did. Following is just a snippet:

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 4:25 PM, Navkirat Singh wrote: @Robert - Thanks a lot for your time :-) , I did know that the body starts after the occurrence two CRLF sequences, but I was following RFC2616 as a guide, which specifically mentions: The presence of a message-body in a request is signaled by the

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 2:58 AM, Navkirat Singh wrote: On 27-Aug-2010, at 2:48 AM, MRAB wrote: On 26/08/2010 21:47, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 4:28 PM, Navkirat Singh wrote: On 27-Aug-2010, at 2:48 AM, MRAB wrote: On 26/08/2010 21:47, Navkirat Singh wrote: On 27-Aug-2010, at 1:57 AM, MRAB wrote: On 26/08/2010 21:14, Navkirat Singh wrote: On 27-Aug-2010, at 1:32 AM, Dave Angel wrote: Navkirat Singh wrote: Hey

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 3:02 AM, Robert Kern wrote: On 8/26/10 4:17 PM, Navkirat Singh wrote: Here is what I needed to do: a) Separate image content from header content of the byte stream received from the web browser. b) Save the image content to disk for further use. Here is what I

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Robert Kern
On 8/26/10 4:17 PM, Navkirat Singh wrote: #-HERE IS WHERE I RECEIVE THE DATA while True: buff = socket.recv(8192) byteStr +=buff if not buff: break Also, you probably shouldn't bother writing an HTTP server using raw

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 3:04 AM, Robert Kern wrote: On 8/26/10 4:25 PM, Navkirat Singh wrote: @Robert - Thanks a lot for your time :-) , I did know that the body starts after the occurrence two CRLF sequences, but I was following RFC2616 as a guide, which specifically mentions: The

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 3:15 AM, Robert Kern wrote: On 8/26/10 4:17 PM, Navkirat Singh wrote: #-HERE IS WHERE I RECEIVE THE DATA while True: buff = socket.recv(8192) byteStr +=buff if not buff: break Also, you probably shouldn't

Re: Python Editor or IDE ActiveX control

2010-08-26 Thread Thomas Jollans
On Thursday 26 August 2010, it occurred to Sathish S to exclaim: Hi Ppl, Is there any python IDE or editor that has an ActiveX control which could be embed in other Windows applications. I'm basically looking to write a application that can show the indentations of python, change the color

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Terry Reedy
On 8/26/2010 5:28 PM, Navkirat Singh wrote: b = b'asdf' type(b) class 'bytes' s = b.split(':') You are trying to split bytes with a string, which is impossible. Split bytes with bytes, strings with strings. Traceback (most recent call last): File stdin, line 1, inmodule TypeError: Type

Re: Writing byte stream as jpeg format to disk

2010-08-26 Thread Navkirat Singh
On 27-Aug-2010, at 4:23 AM, Terry Reedy wrote: On 8/26/2010 5:28 PM, Navkirat Singh wrote: b = b'asdf' type(b) class 'bytes' s = b.split(':') You are trying to split bytes with a string, which is impossible. Split bytes with bytes, strings with strings. Traceback (most recent call

Re: Python Editor or IDE ActiveX control

2010-08-26 Thread Stef Mientki
On 27-08-2010 00:22, Thomas Jollans wrote: On Thursday 26 August 2010, it occurred to Sathish S to exclaim: Hi Ppl, Is there any python IDE or editor that has an ActiveX control which could be embed in other Windows applications. I'm basically looking to write a application that can show

Re: pyxser-1.5r --- Python Object to XML serializer/deserializer

2010-08-26 Thread Josh English
It looks nice, but it's a shame it doesn't work on Windows. This could solve a lot of the problems I'm running into in my own attempt to build a python Class implementation of an XML Validation object. -- http://mail.python.org/mailman/listinfo/python-list

Trouble importing cx_Oracle on HPUX

2010-08-26 Thread Cliff Martin
I have just gotten done building Python 3.1.2 on HPUX 11.31 Itanium (IA64) using gcc 4.4.3, and have tried building cx_Oracle to go with it. The build succeeds, but test and importing does not. I have tried building Python with threads and without. The only exotic thing I do with the configure for

Re: pyxser-1.5r --- Python Object to XML serializer/deserializer

2010-08-26 Thread Stefan Behnel
Josh English, 27.08.2010 01:30: solve a lot of the problems I'm running into in my own attempt to build a python Class implementation of an XML Validation object. How would object serialisation help here? Stefan -- http://mail.python.org/mailman/listinfo/python-list

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-26 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: I checked in a modified version of reset the retry count for respnse code !=401 in the following checkins: r84323 (py3k) r84324 (release21-maint) r84325 (release31-maint) Unfortunately, we wont be able to patch the 2.6.x release. You might

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-26 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed Added file: http://bugs.python.org/file18648/basic_auth.patch ___ Python tracker rep...@bugs.python.org

[issue9690] Cannot distinguish bstr from str in ast module.

2010-08-26 Thread Kay Hayen
Kay Hayen kayha...@gmx.de added the comment: You didn't understand. Please tell me, how to decide if this is a unicode literal or a str (2.x) literal: value=Str(s='d') It's just not possible. When I found a from __future__ import unicode_literals in the code before, it means I should convert

[issue9683] Dead code in py3k inspect module

2010-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Indeed, with 3.1: def f(x, y): pass ... inspect.formatargspec(inspect.getargspec(f)) TypeError: object of type 'map' has no len() -- nosy: +amaury.forgeotdarc type: - behavior ___ Python

[issue1487481] Could BIND_FIRST be removed on HP-UX?

2010-08-26 Thread Göran Uddeborg
Göran Uddeborg goe...@uddeborg.se added the comment: Although BIND_FIRST is still there, I could not reproduce the problem with Python 3.1.2. If it is because something changed in Python, or that HP-UX has fixed something, I don't know. I still don't see the point in specifying BIND_FIRST

[issue9572] IOError or OSError in test_multiprocessing

2010-08-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Łukasz, _closing is not necessary on FileIO instances. The class already declares an __exit__ method which takes care of closing file. import io f = io.FileIO('/tmp/test_closing', 'wb') f.closed False f.__exit__() f.closed

[issue9572] IOError or OSError in test_multiprocessing

2010-08-26 Thread Florent Xicluna
Florent Xicluna florent.xicl...@gmail.com added the comment: Patch. -- keywords: +patch Added file: http://bugs.python.org/file18649/issue9572_oserror.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9572

Re: [issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-26 Thread Senthil Kumaran
r84324 (release21-maint) That should be release27-maint. :) ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

[issue8797] urllib2 basicauth broken in 2.6.5: RuntimeError: maximum recursion depth exceeded in cmp

2010-08-26 Thread Mads Kiilerich
Mads Kiilerich m...@kiilerich.com added the comment: Senthil, can you tell us why this fix is correct - and convince us that it is the Final Fix for this issue? Not because I don't trust you, but because this issue has a bad track record. Some comments/questions to this patch: Why do 401

[issue9686] asyncore infinite loop on raise

2010-08-26 Thread Giampaolo Rodola'
Giampaolo Rodola' g.rod...@gmail.com added the comment: I agree with you that asyncore API model is far from being robust and I've personally seen infinite recursion more than once if certain asyncore methods aren't properly subclassed. What I don't understand is what changes you are

[issue7005] ConfigParser does not handle options without values

2010-08-26 Thread Dwayne Bailey
Dwayne Bailey dwayne+pythonb...@translate.org.za added the comment: This is causing a regression in our code. Previously when we write out our INI file for an entry that has a value of None we saw the following: value = None These are now stored as: value This is now causing a traceback in

[issue9691] sdist includes files that are not in MANIFEST.in

2010-08-26 Thread Ronald Oussoren
New submission from Ronald Oussoren ronaldousso...@mac.com: The attached file 'manifest-test.zip' is a small distutils project that demonstrates a problem I have with the sdist command. The archive contains a directory 'sandbox' that is not mentioned in MANIFEST.in or anywhere in setup.py.

[issue9683] Dead code in py3k inspect module

2010-08-26 Thread Andreas Stührk
Andreas Stührk andy-pyt...@hammerhartes.de added the comment: The correct call is more something like ``inspect.formatargspec(*inspect.getargspec(f))``, which should work for all (Python) functions in Python 3. In Python 2, tuple unpacking was represented using a nested list for the

[issue7005] ConfigParser does not handle options without values

2010-08-26 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. fdr...@acm.org added the comment: Re-opening for investigation. (The previous message really should have been a new issue.) -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7005

[issue7005] ConfigParser does not handle options without values

2010-08-26 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. fdr...@acm.org: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7005 ___ ___ Python-bugs-list

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-08-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: fromfd is already taken care of in 3.2. Otherwise, this looks like a good fix once updated to trunk. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1552

[issue9690] Cannot distinguish bstr from str in ast module.

2010-08-26 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I see that it's a problem, but there's nothing we can do about it now, so you'll have to determine whether it was unicode literals or not based on compile flags. -- ___ Python tracker

[issue1552] fromfd() and socketpair() should return wrapped sockets

2010-08-26 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1552 ___ ___

[issue9539] python-2.6.4: test failure in test_distutils due to linking to system libpython2.6

2010-08-26 Thread jan matejek
jan matejek jmate...@suse.cz added the comment: this affects 2.7 as well. the problem was introduced by r78136 which skips out of the directory containing newly built libpython2.7, so the linking command cannot find it in -L. and fails (unless a systemwide libpython is already present) the

[issue1553375] Add traceback.print_full_exception()

2010-08-26 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- nosy: +vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___ ___

[issue9682] socket.create_connection error message for domain subpart with invalid length is very confusing

2010-08-26 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- assignee: - loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9682 ___ ___ Python-bugs-list

[issue1553375] Add traceback.print_full_exception()

2010-08-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This functionality would be useful in format_exception(), too, so it might be better to implement in format_exception_only(). This latter function formats the exception part of a traceback, so it makes sense to implement it here. I would

[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2010-08-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This also happens on later versions. Since 2.x is essentially frozen, this feature request can't be implemented in 2.x, so recategorising as a Python 3.2 issue. Here, a change in logging will either duplicate code in traceback.py or print

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread Ich Neumon
Ich Neumon ichneumo...@gmail.com added the comment: Looks like this one needs reopening to me... I've recently had to parse out attachments with the following Content-Type lines and no Content-Disposition provided: Content-Type: application/vnd.ms-excel; name=transactions.xls It might not

[issue1553375] Add traceback.print_full_exception()

2010-08-26 Thread Vinay Sajip
Changes by Vinay Sajip vinay_sa...@yahoo.co.uk: -- Removed message: http://bugs.python.org/msg114972 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___

[issue1553375] Add traceback.print_full_exception()

2010-08-26 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: This functionality would be useful in format_exception(), too. I prefer fullstack to full as it's clearer what the 'full' pertains to. An alternative might be upperframes or allframes. -- ___

[issue9427] logging.error('...', exc_info=True) should display upper frames, too

2010-08-26 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9427 ___ ___

[issue8296] multiprocessing.Pool hangs when issuing KeyboardInterrupt

2010-08-26 Thread Andrey Vlasovskikh
Andrey Vlasovskikh andrey.vlasovsk...@gmail.com added the comment: On closer look your patch is also ignoring SystemExit. I think it's beneficial to honor SystemExit, so a user could use this as a means to replace the current process with a new one. Yes, SystemExit should cancel all the

[issue9205] Parent process hanging in multiprocessing if children terminate unexpectedly

2010-08-26 Thread Andrey Vlasovskikh
Changes by Andrey Vlasovskikh andrey.vlasovsk...@gmail.com: -- nosy: +vlasovskikh ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9205 ___ ___

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread Ich Neumon
Ich Neumon ichneumo...@gmail.com added the comment: A slight update for my workaround for the above with the following code: if not filename: ct = part.get(Content-Type) if ct: m = re.compile('name=\?(\S+)\?').search(ct, 1) if m: filename = m.group(1) I've added ? operators

[issue9689] threading.Timer poorly documented

2010-08-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r84326. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9689 ___

[issue9681] small typo in online documentation

2010-08-26 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r84327. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9681 ___

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2010-08-26 Thread Ulrich Seidl
New submission from Ulrich Seidl ulrich.se...@muneda.com: The following code leads to an UnicodeError in python 2.7 while it works fine in 2.6 2.5: # -*- coding: latin-1 -*- import xml.etree.cElementTree as ElementTree oDoc = ElementTree.fromstring( '?xml version=1.0

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2010-08-26 Thread Brian Curtin
Changes by Brian Curtin cur...@acm.org: -- nosy: +flox stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9692 ___

[issue1403349] in email can't get attachments' filenames using get_filename

2010-08-26 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Also, issue 7082 might be relevant here, since it fixed a bug in this fix. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1403349

[issue9692] UnicodeDecodeError in ElementTree.tostring()

2010-08-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: IMO the code is not correct: how does ElementTree know which encoding is used for the attribute value? Even 2.5 prints a different content when the script is saved with a different encoding. The line should look like: oDoc.set(

[issue1076515] shutil.move clobbers read-only files.

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: Brian, Tim, any comments on this wrt Windows or do you think this can be closed? Could there be an impact on any other OS? I'll close if there's no response, unless someone else feels fit to close this anyway. -- nosy:

[issue1078245] Python2.4: building '_socket' extension fails with `INET_ADD

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I don't believe that this can still be a problem. -- nosy: +BreamoreBoy resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1078919] Email.Header encodes non-ASCII content incorrectly

2010-08-26 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1078919 ___

[issue1524938] PEP MemoryError with a lot of available memory gc not called

2010-08-26 Thread Mark Matusevich
Mark Matusevich mark...@users.sourceforge.net added the comment: This is what I got on computer with 512 MB RAM: Mandriva Linux 2009.1 = Python 2.6.1 (r261:67515, Jul 14 2010, 09:23:11) [GCC 4.3.2] - Python process killed by operating system after 14 Microsoft

[issue1080387] Making IDLE Themes and Keys Config more Robust

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: I'm assuming that the attached patches are simply out of date. -- nosy: +BreamoreBoy stage: unit test needed - needs patch versions: +Python 3.2 -Python 2.7 ___ Python tracker

[issue1083299] Distutils doesn't pick up all the files it should.

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: @Éric can you please select the appropriate stage, component(s) or version(s) as you see fit, thanks. -- assignee: - tarek nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org

[issue1097797] Encoding for Code Page 273 used by EBCDIC Germany Austria

2010-08-26 Thread Mark Lawrence
Mark Lawrence breamore...@yahoo.co.uk added the comment: The consensus is that this should have gone into Python years ago. -- nosy: +BreamoreBoy stage: - patch review versions: +Python 3.2 -Python 2.7 ___ Python tracker rep...@bugs.python.org

  1   2   >