[ANN] guiqwt v2.1.0

2011-04-06 Thread Pierre.RAYBAUT
Hi all, I am pleased to announce that `guiqwt` v2.1.0 has been released. Note that the project has recently been moved to GoogleCode: http://guiqwt.googlecode.com This version of `guiqwt` includes a demo software, Sift (for Signal and Image Filtering Tool), based on `guidata` and `guiqwt`:

[ANN] guidata v1.3.0

2011-04-06 Thread Pierre.RAYBAUT
Hi all, I am pleased to announce that `guidata` v1.3.0 has been released. Note that the project has recently been moved to GoogleCode: http://guidata.googlecode.com The `guidata` documentation with examples, API reference, etc. is available here: http://packages.python.org/guidata/ Based on

Re: is python 3 better than python 2?

2011-04-06 Thread Dan Stromberg
On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu wrote: On 4/5/2011 4:42 PM, John Nagle wrote: Well, actually Unicode support went in back around Python 2.4. Even earlier, I think, but there were and still are problems with unicode in 2.x. Some were and will only be fixed in

Re: Suggest some exercises on Python

2011-04-06 Thread harrismh777
neil harper wrote: I'm a new bie. I have just started learning Python (3.0), finished with official tutorial. I would like to have your opinion on some Opinions around here are pretty much like elbows and knee caps... everybody has them, and yours are really the only ones that matter to

Re: How to program in Python to run system commands in 1000s of servers

2011-04-06 Thread bruce bushby
Hi Roy Two things you can look at: func https://fedorahosted.org/func/ mcollective http://docs.puppetlabs.com/mcollective/ On Wed, Apr 6, 2011 at 2:24 AM, Roy Smith r...@panix.com wrote: In article mailman.52.1302022780.9059.python-l...@python.org, geremy condra debat...@gmail.com

Re: Fun python 3.2 one-liner

2011-04-06 Thread Chris Angelico
On the right hand side of my gmail window, Google posited that I might be interested in One-liner jokes. And I have to confess, the first thing I thought of was So I was writing a one-liner in assembly and... ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-06 Thread Adriaan Renting
On 4/1/2011 at 07:33 AM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: On Fri, Apr 1, 2011 at 4:31 AM, Adriaan Renting rent...@astron.nl wrote: L.S. I have a problem that a background process that I'm trying to start with subprocess.Popen gets interrupted and starts waiting for

Re: Python benefits over Cobra

2011-04-06 Thread harrismh777
Brendan Simon wrote: Any other arguments where Python has benefits over Cobra ?? Python is built from C, Cobra is built from Cobra... Python does not require Microsoft .NET, nor MONO framework, Python has better community support, has a larger install base and developer community,

Re: Python benefits over Cobra

2011-04-06 Thread Chris Angelico
On Wed, Apr 6, 2011 at 6:03 PM, harrismh777 harrismh...@charter.net wrote: Having said all of that, I must admit my bias against Microsoft .NET and the Mono frameworks. I personally cannot support a language that requires either one. Microsoft has made such a mess out of almost everything it

Re: a better way to invert a list?

2011-04-06 Thread Glazner
def invert(p):     inverse = [None] * len(p)     for (i, j) in enumerate(p):         inverse[j] = i     return inverse Elegant. This seems like the best solution, although it isn't as much fun to write as a one-liner. Thanks invert([1, 2, 3, 1]) [None, 3, 1, 2] #blah --

Trapping the segfault of a subprocess.Popen

2011-04-06 Thread Pierre GM
All, I need to run a third-party binary from a python script and retrieve its output (and its error messages). I use something like process = subprocess.Popen(options, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (info_out, info_err) = process.communicate() That works fine, except that the

Re: a better way to invert a list?

2011-04-06 Thread scattered
On Apr 6, 4:48 am, Glazner yoavglaz...@gmail.com wrote: def invert(p):     inverse = [None] * len(p)     for (i, j) in enumerate(p):         inverse[j] = i     return inverse Elegant. This seems like the best solution, although it isn't as much fun to write as a one-liner.

Re: a better way to invert a list?

2011-04-06 Thread Peter Otten
Glazner wrote: def invert(p): inverse = [None] * len(p) for (i, j) in enumerate(p): inverse[j] = i return inverse Elegant. This seems like the best solution, although it isn't as much fun to write as a one-liner. Thanks invert([1, 2, 3, 1]) [None, 3, 1, 2] #blah 1 occurs twice

Re: TypeError: iterable argument required

2011-04-06 Thread Νικόλαος Κούρας
On 5 Απρ, 05:49, eryksun () eryk...@gmail.com wrote: On Monday, April 4, 2011 9:40:33 AM UTC-4, Νικόλαος Κούρας wrote: In one of your messages you wrote the following: cursor.execute( '''INSERT INTO users(mail, comment) VALUES(%s, %s)''', (mail, comment) ) except MySQLdb.Error: print (

***************************Hai***************************

2011-04-06 Thread Ravi Prasath
http://www.workfrominter.com/ http://www.workfrominter.com/ http://girlsdailysex.blogspot.com/ http://girlsdailysex.blogspot.com/ Just See What Is this Website Are Msg For You -- http://mail.python.org/mailman/listinfo/python-list

Re: Python benefits over Cobra

2011-04-06 Thread Steven D'Aprano
On Wed, 06 Apr 2011 18:26:25 +1000, Chris Angelico wrote: Right now, I have around me two laptops running Windows XP, two running Ubuntu 10.10 64-bit, and two running Ubuntu 32-bit. (Surprisingly balanced.) With a very few exceptions, code that I write in IDLE on one box will run perfectly on

Re: Standard config file format

2011-04-06 Thread Neil Cerutti
On 2011-04-06, Chris Rebert c...@rebertia.com wrote: On Tue, Apr 5, 2011 at 7:16 PM, Vincent Davis vinc...@vincentdavis.net wrote: I am working on a program to monitor directory file changes and am would like a configuration file. This file would specify email addresses, file and directory

Re: Python benefits over Cobra

2011-04-06 Thread Chris Angelico
On Wed, Apr 6, 2011 at 10:29 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Mono is free, open source software that is compatible with .NET and is available on Linux, Mac OS, Solaris, Unix and even that little-known operating system Windows. *wink* Ah! My apologies, I stand

Re: TypeError: iterable argument required

2011-04-06 Thread eryksun ()
On Wednesday, April 6, 2011 6:06:06 AM UTC-4, Νικόλαος Κούρας wrote: The trouble was in `if @ in mail` . You can only test somthing `in` something else if the second thing is iterable and None isnt. So i made the code look like this: [code] if ( mail is not None and '@' in mail ) and

!!!!$$$$only for ladies$$$!!!!

2011-04-06 Thread aarthi priya
only for ladies$$$ Special site for ladies and women Ladies Secrets A to z of ladies ---http://www.wix.com/kumarrajlove/ammu just click -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError: iterable argument required

2011-04-06 Thread Νικόλαος Κούρας
On 6 Απρ, 16:54, eryksun () eryk...@gmail.com wrote: You can also use an empty string as the default value when getting the field value Please provide me an example. Also, a simple OR statement can eliminate the None. For example: mail = mail or ''. Since None is False, the statement

Re: TypeError: iterable argument required

2011-04-06 Thread Νικόλαος Κούρας
mail = None mail = mail or 7 mail 7 mail = None mail = 7 or mail mail 7 Here no matter the order iam writing the comparison it always return the number. why not the same here? mail = None mail = mail or '' mail '' mail = None mail = '' or mail mail Why the or operator behaves

Re: TypeError: iterable argument required

2011-04-06 Thread Blockheads Oi Oi
On 06/04/2011 16:57, Νικόλαος Κούρας wrote: mail = None mail = mail or 7 mail 7 mail = None mail = 7 or mail mail 7 Here no matter the order iam writing the comparison it always return the number. why not the same here? mail = None mail = mail or '' mail '' mail = None mail = '' or

Re: TypeError: iterable argument required

2011-04-06 Thread Eric Snow
Hi, The or expression will return the first element that evaluates to True, or the last element if they all evaluate to False. Positive integers evaluate to True. None evaluates to False. See: http://docs.python.org/library/stdtypes.html#truth-value-testing

Re: is python 3 better than python 2?

2011-04-06 Thread MRAB
On 06/04/2011 07:06, Dan Stromberg wrote: On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu mailto:tjre...@udel.edu wrote: On 4/5/2011 4:42 PM, John Nagle wrote: Well, actually Unicode support went in back around Python 2.4. Even earlier, I think, but there were

Re: TypeError: iterable argument required

2011-04-06 Thread eryksun ()
On Wednesday, April 6, 2011 11:41:24 AM UTC-4, Νικόλαος Κούρας wrote: On 6 Απρ, 16:54, eryksun () ery...@gmail.com wrote: You can also use an empty string as the default value when getting the field value Please provide me an example. import cgi form = cgi.FieldStorage() user =

Re: TypeError: iterable argument required

2011-04-06 Thread eryksun ()
On Wednesday, April 6, 2011 11:57:32 AM UTC-4, Νικόλαος Κούρας wrote: mail = None mail = mail or 7 mail 7 Quote: The expression ``x or y`` first evaluates *x*; if *x* is true, its value is returned; otherwise, *y* is evaluated and the resulting value is returned. Since 'mail is None'

Re: is python 3 better than python 2?

2011-04-06 Thread Terry Reedy
On 4/6/2011 12:31 PM, MRAB wrote: On 06/04/2011 07:06, Dan Stromberg wrote: I suspect not all string methods were kept for the bytes type: Doc says Bytes and bytearray objects, being “strings of bytes”, have all methods found on strings, with the exception of encode(), format() and

Re: TypeError: iterable argument required

2011-04-06 Thread Terry Reedy
On 4/6/2011 6:06 AM, Νικόλαος Κούρας wrote: Now it works like i wanted but i want to ask you if i wrote it correctly, especially when i check against `` and None One important note: there is one and one one None object; there can be multiple strings with value ''. So, testing against each is

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-06 Thread Dan Stromberg
On Wed, Apr 6, 2011 at 12:47 AM, Adriaan Renting rent...@astron.nl wrote: This solves the problem using stdin=open(os.devnull, 'rb') instead of stdin=None makes it run even if there is input from stdin in the foreground process. The operating system is Ubuntu 8.04 I understood what

Re: TypeError: iterable argument required

2011-04-06 Thread Νικόλαος Κούρας
On 6 Απρ, 19:58, eryksun () eryk...@gmail.com wrote: The expression ``x or y`` first evaluates *x*; if *x* is true, its value is returned; otherwise, *y* is evaluated and the resulting value is returned. I doesnt matter if *y* is True or False before its value is returned? *y*'s value

Python and DDE

2011-04-06 Thread Robert Upton
Dear Pythoners, I am attempting to get the DDE module to import into Python and am having some trouble. I have downloaded and installed the pywin32 extensions for Python 2.6, which is the version of python I am running on Windows. When I attempt to import the DDE module, as follows, import

Re: TypeError: iterable argument required

2011-04-06 Thread MRAB
On 06/04/2011 20:21, Νικόλαος Κούρας wrote: On 6 Απρ, 19:58, eryksun ()eryk...@gmail.com wrote: The expression ``x or y`` first evaluates *x*; if *x* is true, its value is returned; otherwise, *y* is evaluated and the resulting value is returned. I doesnt matter if *y* is True or False

Re: a better way to invert a list?

2011-04-06 Thread Paul Rubin
scattered tooscatte...@gmail.com writes: def invert(p): return [ j for (i,j) in sorted(zip(p,range(len(p] return [j for i,j in sorted(enumerate(p), key=itemgetter(1))] looks a little cleaner to me. In Haskell or ML, you can use patterns that contain wild cards that play

Re: a better way to invert a list?

2011-04-06 Thread Ian Kelly
On Wed, Apr 6, 2011 at 1:51 PM, Paul Rubin no.email@nospam.invalid wrote:    In Haskell or ML, you can use patterns that contain wild    cards that play a role in the pattern-matching but don't establish any    binding. Can that be done in Python? Not as much.  You could say something like  

Re: is python 3 better than python 2?

2011-04-06 Thread Dan Stromberg
On Wed, Apr 6, 2011 at 9:31 AM, MRAB pyt...@mrabarnett.plus.com wrote: On 06/04/2011 07:06, Dan Stromberg wrote: On Tue, Apr 5, 2011 at 10:04 PM, Terry Reedy tjre...@udel.edu mailto:tjre...@udel.edu wrote:    On 4/5/2011 4:42 PM, John Nagle wrote:        Well, actually Unicode support went

Re: Sandboxed Python: memory limits?

2011-04-06 Thread Martin v. Loewis
I have a vague memory of reading somewhere that it's possible to replace the Python memory allocator. This would be an option, if there's no simple way to say your maximum is now 16MB, but I now can't find it back. Was I hallucinating? You can adjust the implementations of PyMem_Malloc and

Re: TypeError: iterable argument required

2011-04-06 Thread eryksun ()
On Wednesday, April 6, 2011 3:21:42 PM UTC-4, Νικόλαος Κούρας wrote: On 6 Απρ, 19:58, eryksun () ery...@gmail.com wrote: The expression ``x or y`` first evaluates *x*; if *x* is true, its value is returned; otherwise, *y* is evaluated and the resulting value is returned. I doesnt

[OT] Free software versus software idea patents (was: Python benefits over Cobra)

2011-04-06 Thread Ben Finney
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: Mono is free, open source software that is compatible with .NET […] It's difficult to take a claim of “free” seriously for a technology (Mono) that knowingly implements techniques (the “C#” language, the “.NET” platform, etc.) covered

Sending pictures using sockets

2011-04-06 Thread craf
Hello. I'm testing the sockets in Python and I've seen the way in which works to send string. My question is if anyone knows where can find some information on how to send pictures through Sockets. I use Python 2.7 and have read the information regarding Sockets of the Python website, but I can

Re: Sending pictures using sockets

2011-04-06 Thread Littlefield, Tyler
On 4/6/2011 4:58 PM, craf wrote: Hello. I'm testing the sockets in Python and I've seen the way in which works to send string. My question is if anyone knows where can find some information on how to send pictures through Sockets. I use Python 2.7 and have read the information regarding Sockets

Is the function filter deprecated?

2011-04-06 Thread Jabba Laci
Hi, I tried Pylint today and it gave me a warning for the function filter. Is it deprecated? Is the usage of list comprehensions encouraged? The transformation is not complicated, by the way: replace filter( func, seq ) with [ x for x in seq if func(x) ] . Thanks, Laszlo --

Re: Is the function filter deprecated?

2011-04-06 Thread Emile van Sebille
On 4/6/2011 4:20 PM Jabba Laci said... Hi, I tried Pylint today and it gave me a warning for the function filter. Is it deprecated? This post from Guido written in 2005 with an undated update would seem to indicate No. http://www.artima.com/weblogs/viewpost.jsp?thread=98196 Is the

Re: Behaviour of subprocess.Popen, ssh and nohup I don't understand

2011-04-06 Thread Nobody
On Wed, 06 Apr 2011 09:47:21 +0200, Adriaan Renting wrote: This solves the problem using stdin=open(os.devnull, 'rb') instead of stdin=None makes it run even if there is input from stdin in the foreground process. The operating system is Ubuntu 8.04 I understood what Suspended (tty input)

Re: Sending pictures using sockets

2011-04-06 Thread Dan Stromberg
On Wed, Apr 6, 2011 at 4:17 PM, Littlefield, Tyler ty...@tysdomain.comwrote: On 4/6/2011 4:58 PM, craf wrote: Hello. I'm testing the sockets in Python and I've seen the way in which works to send string. My question is if anyone knows where can find some information on how to send

Re: Trapping the segfault of a subprocess.Popen

2011-04-06 Thread Nobody
On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote: I need to run a third-party binary from a python script and retrieve its output (and its error messages). I use something like process = subprocess.Popen(options, stdout=subprocess.PIPE, stderr=subprocess.PIPE) (info_out, info_err) =

Re: Sandboxed Python: memory limits?

2011-04-06 Thread Chris Angelico
On Thu, Apr 7, 2011 at 6:38 AM, Martin v. Loewis mar...@v.loewis.de wrote: You can adjust the implementations of PyMem_Malloc and PyObject_Malloc. This would catch many allocations, but not all of them. If you adjust PyMem_MALLOC instead of PyMem_Malloc, you catch even more allocations - but

Re: Sandboxed Python: memory limits?

2011-04-06 Thread Chris Angelico
On Thu, Apr 7, 2011 at 10:06 AM, Chris Angelico ros...@gmail.com wrote: I'm not too concerned about extensions, here; in any case, I lock most of them off. I just want to prevent stupid stuff like this: a='a' while True:    a+=a from bringing the entire node to its knees. Obviously that

Amazon Simple Queue Service Worker

2011-04-06 Thread Joseph Ziegler
Hi all, Little new to the python world, please excuse the Noobness. We are writing a server which will subscribe to the Amazon Simple Queue Service. I am looking for a good service container. I saw Twisted and Zope out there. It's going to be a server which polls on a queue via the Boto api.

Re: Trapping the segfault of a subprocess.Popen

2011-04-06 Thread Dan Stromberg
On Wed, Apr 6, 2011 at 2:20 AM, Pierre GM pierregmc...@gmail.com wrote: All, I need to run a third-party binary from a python script and retrieve its output (and its error messages). I use something like process = subprocess.Popen(options, stdout=subprocess.PIPE, stderr=subprocess.PIPE)

Re: Light weight IDE like pywin for os x 10.6

2011-04-06 Thread python
On Apr 5, 1:26 pm, Detlev Offenbach det...@die-offenbachs.de wrote: python wrote: I have looked a while for this answer.  Sorry if it right before me. I have move from Windows toosx.  The thing I miss most is pywin. I know you can purchase or download fullIDE'sfor python or even use

Re: Is the function filter deprecated?

2011-04-06 Thread Steven D'Aprano
On Wed, 06 Apr 2011 19:20:31 -0400, Jabba Laci wrote: Hi, I tried Pylint today and it gave me a warning for the function filter. Is it deprecated? No. Is the usage of list comprehensions encouraged? Certainly, but list comprehensions are not necessarily equivalent to filter. In

Re: Is the function filter deprecated?

2011-04-06 Thread Terry Reedy
On 4/6/2011 7:20 PM, Jabba Laci wrote: Hi, I tried Pylint today and it gave me a warning for the function filter. That is a bug in PyLint. Do not take any code checker as gospel truth. Is it deprecated? No. One can look in the source code for a deprecation warning statement or run 3.2

Re: Trapping the segfault of a subprocess.Popen

2011-04-06 Thread Terry Reedy
On 4/6/2011 7:58 PM, Nobody wrote: On Wed, 06 Apr 2011 02:20:22 -0700, Pierre GM wrote: I need to run a third-party binary from a python script and retrieve its output (and its error messages). I use something like process = subprocess.Popen(options, stdout=subprocess.PIPE,

set a breakpoint in malloc_error_break to debug?

2011-04-06 Thread Vincent Davis
Not sure what is going on here. the set wset is large I am sure but ... Is this something I am going wrong? def walked_dir(adir): wdirset = set() for dirpath, dirnames, filenames in os.walk(adir): for name in filenames: if isfile(dirpath+'/'+name):

multiprocessing

2011-04-06 Thread elsa
Hi guys, I want to try out some pooling of processors, but I'm not sure if it is possible to do what I want to do. Basically, I want to have a global object, that is updated during the execution of a function, and I want to be able to run this function several times on parallel processors. The

python 3 - instantiating class from user input

2011-04-06 Thread Brad Bailey
I dont understand why this is such a big deal. Nor do i understand why google can't find a reasonable answer. If one can't figure out from the title what I'm trying to do, then a look at code should firmly plant the intent. The general idea of the code is, in my opinion, very basic. I notice,

Re: python 3 - instantiating class from user input

2011-04-06 Thread Chris Rebert
On Wed, Apr 6, 2011 at 9:04 PM, Brad Bailey computer_b...@yahoo.com wrote: I dont understand why this is such a big deal. Nor do i understand why google can't find a reasonable answer. If one can't figure out from the title what I'm trying to do, then a look at code should firmly plant the

Re: python 3 - instantiating class from user input

2011-04-06 Thread Chris Rebert
On Wed, Apr 6, 2011 at 9:41 PM, Chris Rebert c...@rebertia.com wrote: On Wed, Apr 6, 2011 at 9:04 PM, Brad Bailey computer_b...@yahoo.com wrote: I dont understand why this is such a big deal. Nor do i understand why google can't find a reasonable answer. If one can't figure out from the

Re: [OT] Free software versus software idea patents

2011-04-06 Thread harrismh777
Ben Finney wrote: It's difficult to take a claim of “free” seriously for a technology (Mono) that knowingly implements techniques (the “C#” language, the “.NET” platform, etc.) covered by specific idea patents held by an entity that demonstrates every intention of wielding them to restrict the

Re: multiprocessing

2011-04-06 Thread Dan Stromberg
On Wed, Apr 6, 2011 at 9:06 PM, elsa kerensael...@hotmail.com wrote: Hi guys, I want to try out some pooling of processors, but I'm not sure if it is possible to do what I want to do. Basically, I want to have a global object, that is updated during the execution of a function, and I want

Re: Is the function filter deprecated?

2011-04-06 Thread Paul Rubin
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info writes: filter(func, *seqs) - [x for x in itertools.chain(*seqs) if func(x)] although I suppose functional programming purists might object :) Maybe you really want filter(func, chain.from_iterable(seqs)) --

Re: Python benefits over Cobra

2011-04-06 Thread harrismh777
Chris Angelico wrote: there's a lot of risk in tying yourself to a non-free framework, especially such a heavy one as .NET. You're completely at the mercy of the provider, in this case Microsoft, and if they make an incompatible change in the framework, you're forever stuck. Yes, lock-in is

Re: who moved reload?

2011-04-06 Thread harrismh777
You guys want one more...? ... we can't import tkconstants any longer nope. import tkinter.tkconstants (oh, and watch that first t on Tkinter, its doozy) nice. (ask me how long it took to find that... nah, wait till I'm not so grumpy... couple days from now) regards, m harris

[issue11777] Executor.map does not submit futures until iter.next() is called

2011-04-06 Thread Brian Quinlan
Brian Quinlan br...@sweetapp.com added the comment: I think that it surprising behavior, especially considering that asking for the *first* element in the iterator causes *all* of the futures to be created. -- ___ Python tracker

[issue10762] strftime('%f') segfault

2011-04-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2ca1bc677a60 by Senthil Kumaran in branch '3.1': Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya. http://hg.python.org/cpython/rev/2ca1bc677a60 -- nosy: +python-dev

[issue11778] __subclasscheck__ : class P(M): __metaclass__=M causes maximum recursion depth exceeded.

2011-04-06 Thread xBrawny
New submission from xBrawny and...@newthot.com: I wonder if this is the desired behavior. According to docs, __instancecheck__ should be called, but it never gets to it. If return True is replaced with raise Exception the result is the same. = class

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread the_isz
the_isz the_...@gmx.de added the comment: Well, the only thing I can add to this is that the json module (which I ended up using) supports unicode with no problem. So I think the argument that most of the standard library in 2.x assumes bytestrings is a bit... shaky. Other than that, I can

[issue10762] strftime('%f') segfault

2011-04-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 1320f29bcf98 by Senthil Kumaran in branch '2.7': Issue #10762: Guard against invalid/non-supported format string '%f' on Windows. Patch Santoso Wijaya. http://hg.python.org/cpython/rev/1320f29bcf98 --

[issue10762] strftime('%f') segfault

2011-04-06 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed it in relevant branches. I had to add condition around the test to verify that platform was win because this is unique to windows only. Thanks. -- nosy: +orsenthil ___ Python tracker

[issue10762] strftime('%f') segfault

2011-04-06 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10762

[issue4111] Add Systemtap/DTrace probes

2011-04-06 Thread anatoly techtonik
anatoly techtonik techto...@gmail.com added the comment: 2011/4/6 Jesús Cea Avión rep...@bugs.python.org: Jesús Cea Avión j...@jcea.es added the comment: Some more references: Read the notes under the slides: https://dgl.cx/2011/01/dtrace-and-perl https://dgl.cx/dtrace

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-06 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The creation of a file of 5.25 GB took more than 30 min on AMD64 Snow Leopard 3.x buildbot, and so regrtest exited: - [ 27/354] test_mmap Thread 0x7fff70439ca0: File

[issue11779] test_mmap timeout (30 min) on AMD64 Snow Leopard 3.x buildbot

2011-04-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The test step was interrupted after 38 mins, 45 secs (including 30 min of timeout) at the test 27, whereas the previous (success) test step took 46 mins, 55 secs to execute all (354) tests. -- nosy: +ixokai

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: As another core dev aptly said, most standard library Unicode support is probably accidental. As for `json`, this is one of the newest additions to stdlib, introduced in Python 2.6 (released at the same time as Python 3.0). Not the best example

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I think it is more a question of is this an easy fix? or would it require extensive changes to support unicode properly. First of all, the question is: who would like to develop it. You can vote for an issue, but it doesn't

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: On Tue, Apr 05, 2011 at 08:35:22PM +, R. David Murray wrote: Simple fix, but it took me a while to track down the critical piece of code. I've really tried to break it, but i can't. --

[issue11780] email.encoders are broken

2011-04-06 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: This is what one gets if using a BytesParser() generated message: encoders.encode_7or8bit(msg) AttributeError: 'list' object has no attribute 'decode' encoders.encode_base64(msg) TypeError: expected bytes, not list

[issue11780] email.encoders are broken

2011-04-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11780 ___

[issue11781] test/test_email directory does not get installed by 'make install'

2011-04-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: -- components: Installation nosy: r.david.murray, sdaoden priority: normal severity: normal status: open title: test/test_email directory does not get installed by 'make install' versions: Python 3.3

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset b807cf929e26 by R David Murray in branch '3.2': #11605: don't use set/get_payload in feedparser; they do conversions. http://hg.python.org/cpython/rev/b807cf929e26 New changeset 642c0d6799c5 by R David Murray in branch 'default':

[issue11605] EMail generator.flatten() disintegrates over non-ascii multipart/alternative

2011-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Thanks for the testing. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11605

[issue11597] Can't get ConfigParser.write to write unicode strings

2011-04-06 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Anyway, try to use Python everywhere in Python 2 is a waste of time. Oh... I mean use Unicode in Python 2 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11597

[issue11280] urllib2 http_error_302 calls undefined getheaders method

2011-04-06 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Just for the explaination (as the report already closed), getheaders of HTTPMessage object is available by subclassing all the way from rfc822.py module. If you trace it through the debugger, you will come to know. --

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2011-04-06 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: There seems to be also a problem with src/sparc/v9.S. https://bugs.gentoo.org/show_bug.cgi?id=362065 FAIL: test_ulonglong (ctypes.test.test_callbacks.Callbacks)

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2011-04-06 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- versions: +Python 2.7 -3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8314 ___

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: should is a wonderful word when it comes to external APIs. We currently have a couple of problems: 1. The concrete APIs will fail noisily if given an instance of something that isn't a list, but may fail *silently* if given a subclass that

[issue11684] Add email.parser.BytesHeaderParser

2011-04-06 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso sdao...@googlemail.com added the comment: This is a complete thing including tests. Note that the tests fail due to another error in generator.py (or wherever the real source is): TypeError: 'str' does not support the buffer interface Please do forget this mortifying

[issue11684] Add email.parser.BytesHeaderParser

2011-04-06 Thread Steffen Daode Nurpmeso
Changes by Steffen Daode Nurpmeso sdao...@googlemail.com: Removed file: http://bugs.python.org/file21409/bytes-header-parser.1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11684 ___

[issue11782] email.generator.Generator.flatten() fails

2011-04-06 Thread Steffen Daode Nurpmeso
New submission from Steffen Daode Nurpmeso sdao...@googlemail.com: This snippet (for #11684, but it's simply BytesParser with headersonly=True in the end) with openfile('msg_46.txt', 'rb') as fp: msgdata = fp.read() parser = email.parser.BytesHeaderParser()

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-04-06 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 184ddd9acd5a by R David Murray in branch 'default': #1690608: make formataddr RFC2047 aware. http://hg.python.org/cpython/rev/184ddd9acd5a -- nosy: +python-dev ___ Python tracker

[issue11684] Add email.parser.BytesHeaderParser

2011-04-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11684 ___

[issue11782] email.generator.Generator.flatten() fails

2011-04-06 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11782 ___

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: 2011/4/6 Nick Coghlan rep...@bugs.python.org: Nick Coghlan ncogh...@gmail.com added the comment: should is a wonderful word when it comes to external APIs. We currently have a couple of problems: 1. The concrete APIs will fail

[issue1690608] email.utils.formataddr() should be rfc2047 aware

2011-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Finally got around to committing this; thanks, Torsten. As a reward, I'm going to make you nosy on a new, related issue I'm about to create. It is, of course, your option whether you want to work on it :) By the way, have you

[issue10977] Concrete object C API needs abstract path for subclasses of builtin types

2011-04-06 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Why not add fast paths to the generic functions if that's what you're concerned about? It's unexpected for the user of the functions and breaks years of tradition. What if someone calls PyList_Append on a custom type that doesn't do as they

[issue11783] email parseaddr and formataddr should be IDNA aware

2011-04-06 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: The patch for issue 1690608 adds support for unicode in the realname field to formataddr. To complete the currently-workable internationalization of address specs, both parseaddr and formataddr should be made IDNA aware. It is

[issue963906] Unicode email address helper

2011-04-06 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Issue 1690608 addresses part of this issue, and issue 11783 will address the IDNA part. From my point of view those two issues solve this problem from the perspective the email package infrastructure and *current* API. In the email6

[issue11781] test/test_email directory does not get installed by 'make install'

2011-04-06 Thread R. David Murray
New submission from R. David Murray rdmur...@bitdance.com: Attached is a patch. I'm not sure that I've done everything that needs to be done on the Windows side, though. Martin? -- keywords: +patch nosy: +loewis Added file:

[issue7311] Bug on regexp of HTMLParser

2011-04-06 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think the stdlib should comply with HTML 4.01, and in the future HTML 5. (FTR, I don’t think XHTML is useful, and deny that XHTML-compatible HTML exists. See http://bugs.python.org/issue11567#msg131509 :) --

  1   2   >