Re: [ANN] bzr 2.4.1 released (errata)

2011-09-14 Thread Vincent Ladeuil
Vincent Ladeuil typo'ed: Bazaar is now available for download from https://launchpad.net/bzr/2.4/2.4b4/ as a source tarball. Errata, this should read: https://launchpad.net/bzr/2.4/2.4.1 of course, Vincent -- http://mail.python.org/mailman/listinfo/python-announce-list

New project | quicli: write command line interfaces quickly

2011-09-14 Thread Kyle Alan Hale
Quicli is a wrapper around Python's built in argparse module. While argparse focuses on a comprehensive set of features, quicli emphasizes a simple, easy-to-use interface, driven by function metadata and decorators, with integrated data validation. This isn't meant to replace argparse (it

A documents editor in Firefox with Python Sphinx tool

2011-09-14 Thread 文山 杜
Baow is a tool that makes it easy to organize your internet resources and create intelligent and beautiful web pages within Firefox web browser. Highlights : * Tree based outline, help you organize internet resources and documents. * Save or bookmark web images, files or pages. *

Problem with Dos command by python script

2011-09-14 Thread Jonatas Emidio
Here i come!! I have the following problem... I need run by python script a string with some DOS commands - Windows prompt!! For exemple: print 'cd temp' print 'mkdir temp_app' How can i run this string in the python, but as a DOS interpreter? --

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Vincent Vande Vyvre
Le 13/09/11 22:20, Arnaud Delobelle a crit: Hi all, Unpyc3 can recreate Python3 source code from code objects, function source code from function objects, and module source code from .pyc files. The current version is able to decompile itself successfully :). It has been

memory error

2011-09-14 Thread questions anon
Hello All, I keep coming across a memory error when processing many netcdf files. I assume it has something to do with how I loop things and maybe need to close things off properly. In the code below I am looping through a bunch of netcdf files (each file is hourly data for one month) and within

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Arnaud Delobelle
On 14 September 2011 06:53, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Hi, trying your code, I have had numbers of errors: Hi Vincent, thanks for trying it.   File unpyc3.py, line 55, in module     SETUP_WITH, NameError: name 'SETUP_WITH' is not defined commented it   File

Re: stackoverflow and c.l.py

2011-09-14 Thread Ethan Furman
Steven D'Aprano wrote: On Wed, 14 Sep 2011 02:12 pm Stefan Behnel wrote: Matt Joiner, 14.09.2011 04:23: i'm curious as to what can be done with (and handled better) by adjusting sys.setswitchinterval i've opened a question on SO for this, that people might find of interest:

Re: The Usenet newsgroup news:comp.lang.python ...

2011-09-14 Thread Dave Angel
On 01/-10/-28163 02:59 PM, mano mano wrote: Mikael Lyngvig accurately summarizes comp.lang.python discussion of the technical merits of Tkinter, wxPython, and Python-bound JPI. Malcolm Tredinnick ... http://12..89/ SPAM ALERT --

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Vincent Vande Vyvre
Le 14/09/11 08:20, Arnaud Delobelle a écrit : On 14 September 2011 06:53, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Hi, trying your code, I have had numbers of errors: Hi Vincent, thanks for trying it.   File

Re: stackoverflow and c.l.py (was: GIL switch interval)

2011-09-14 Thread Duncan Booth
Stefan Behnel stefan...@behnel.de wrote: Matt Joiner, 14.09.2011 04:23: i'm curious as to what can be done with (and handled better) by adjusting sys.setswitchinterval i've opened a question on SO for this, that people might find of interest: http://stackoverflow.com[...] I wonder why

Re: Connection reset by peer

2011-09-14 Thread Thomas Jollans
On 14/09/11 04:39, 守株待兔 wrote: i want to know, my computer(client) reset it ,or the yahoo (server) reset it ,what is the peer?? This refers to your program's peer, as in the entity it's communicating with. When you're the client, the other party (which, once the connection is

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Vincent Vande Vyvre
Le 14/09/11 10:13, Vincent Vande Vyvre a écrit : Le 14/09/11 08:20, Arnaud Delobelle a écrit : On 14 September 2011 06:53, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Hi, trying your code, I have had numbers of errors:

www.brunningonline.net/simon/blog/archives/001919.html

2011-09-14 Thread Selvi Arul
http://123maza.com/65/orange458/ -- http://mail.python.org/mailman/listinfo/python-list

Replace pip installed package with latest git version?

2011-09-14 Thread Alec Taylor
Good evening, I've installed a version of python-creole from pip. How do I upgrade it to the latest git version? (Windows 7 x64 SP1) Thanks for all suggestions, Alec Taylor -- http://mail.python.org/mailman/listinfo/python-list

Python Shutdown hook comp.lang.python. My comp.lang.python post.....

2011-09-14 Thread Selvi Arul
http://123maza.com/65/orange458/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Arnaud Delobelle
On 14 September 2011 09:44, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote:   File unpyc3.py, line 211, in __init__     for v in code_obj.co_cellvars + code_obj.co_freevars] AttributeError: 'NoneType' object has no attribute 'co_cellvars' Could you show me what you do to get this error?

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Vincent Vande Vyvre
Le 14/09/11 11:31, Arnaud Delobelle a écrit : On 14 September 2011 09:44, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote:   File "unpyc3.py", line 211, in __init__     for v in code_obj.co_cellvars + code_obj.co_freevars] AttributeError: 'NoneType'

Re: stackoverflow and c.l.py

2011-09-14 Thread memilanuk
On 09/13/2011 09:12 PM, Stefan Behnel wrote: Matt Joiner, 14.09.2011 04:23: i'm curious as to what can be done with (and handled better) by adjusting sys.setswitchinterval i've opened a question on SO for this, that people might find of interest: http://stackoverflow.com[...] I wonder why

Re: stackoverflow and c.l.py

2011-09-14 Thread Chris Angelico
On Wed, Sep 14, 2011 at 10:33 PM, memilanuk memila...@gmail.com wrote: Not saying one is necessarily better than the other, but just subscribing to the feed for the [python] tag on SO has a pretty good SNR... The SNR here isn't bad either. Most of the spam gets filtered out, and even stuff like

Re: stackoverflow and c.l.py

2011-09-14 Thread memilanuk
On 09/14/2011 05:47 AM, Chris Angelico wrote: The SNR here isn't bad either. Most of the spam gets filtered out, and even stuff like Ranting Rick posts can be of some amusement when it's a slow day... I subscribe to the list via Gmane, and if 'most of the spam' gets filtered out, I'd hate to

Re: stackoverflow and c.l.py

2011-09-14 Thread Laszlo Nagy
On 2011-09-14 15:05, memilanuk wrote: Rick Xang Li are two examples of what you *don't* see (or at least I don't) @ SO I knew Xang's name would come up. :-) Epic. -- http://mail.python.org/mailman/listinfo/python-list

Twisted Perspective Broker: get client ip

2011-09-14 Thread Andrea Di Mario
Hi, i'm writing a perspective broker server. Now, i should get the client IP, that perspective broker writes well in the log. I've tried to get it from MyRealm with: mind.broker.transport.getPeer(), without success. I've tried self.transport.getPeer() to, with this result:

Re: stackoverflow and c.l.py (was: GIL switch interval)

2011-09-14 Thread Roy Smith
In article Xns9F605E618E6B1duncanbooth@127.0.0.1, Duncan Booth duncan.booth@invalid.invalid wrote: If you want an answer to how to get a specific bit of code to work then Stackoverflow is better if only because people can see who has already answered so don't need to waste time re-answering

Re: Replace pip installed package with latest git version?

2011-09-14 Thread Alec Taylor
--editable=git+https://github.com/jedie/python-creole.git is not the right forma t; it must have #egg=Package On Wed, Sep 14, 2011 at 10:54 PM, One Murithi o0muri...@gmail.com wrote: pip install -e PATH_GIT_CHECKOUT On Wed, Sep 14, 2011 at 11:44 AM, Alec Taylor alec.tayl...@gmail.com wrote:

Re: ImportError: cannot import name dns

2011-09-14 Thread Jack Bates
It is a circular dependency. Dns will try to import udp which will in turn import dns (again) in an endless cycle; instead an ImportError is raised. Circular dependency is a Bad Thing. According to this documentation:

Re: Replace pip installed package with latest git version?

2011-09-14 Thread Micky Hulse
Hello, On Wed, Sep 14, 2011 at 1:44 AM, Alec Taylor alec.tayl...@gmail.com wrote: I've installed a version of python-creole from pip. How do I upgrade it to the latest git version? Not sure if you got an answer yet, but this is how I would do it: sudo pip install --upgrade

Re: Replace pip installed package with latest git version?

2011-09-14 Thread Micky Hulse
On Wed, Sep 14, 2011 at 9:58 AM, Micky Hulse mickyhulse.li...@gmail.com wrote: Not sure if you got an answer yet, but this is how I would do it: sudo pip install --upgrade git+git://github.com/jedie/python-creole.git#egg=python-creole Having read your message more closely, it sounds like you

Re: Replace pip installed package with latest git version?

2011-09-14 Thread Alec Taylor
Thanks, uninstalling first worked. :D On Thu, Sep 15, 2011 at 3:06 AM, Micky Hulse mickyhulse.li...@gmail.com wrote: On Wed, Sep 14, 2011 at 9:58 AM, Micky Hulse mickyhulse.li...@gmail.com wrote: Not sure if you got an answer yet, but this is how I would do it: sudo pip install --upgrade

Re: ANN: PyGUI 2.5

2011-09-14 Thread Bill Janssen
Gregory Ewing greg.ew...@canterbury.ac.nz wrote: Terry Reedy wrote: Greg left out the most important to me: Now works with Python 3 on MacOSX and Windows! I'm not making too much of that at the moment, because it *doesn't* work on Linux yet, and I've no idea how long it will be before

Re: stackoverflow and c.l.py (was: GIL switch interval)

2011-09-14 Thread Duncan Booth
Roy Smith r...@panix.com wrote: In article Xns9F605E618E6B1duncanbooth@127.0.0.1, Duncan Booth duncan.booth@invalid.invalid wrote: If you want an answer to how to get a specific bit of code to work then Stackoverflow is better if only because people can see who has already answered so

Re: stackoverflow and c.l.py

2011-09-14 Thread Thomas Jollans
On 14/09/11 21:00, Duncan Booth wrote: Roy Smith r...@panix.com wrote: In article Xns9F605E618E6B1duncanbooth@127.0.0.1, Duncan Booth duncan.booth@invalid.invalid wrote: If you want an answer to how to get a specific bit of code to work then Stackoverflow is better if only because people

Re: ANN: unpyc3 - a python bytecode decompiler for Python3

2011-09-14 Thread Arnaud Delobelle
On 14 September 2011 11:03, Vincent Vande Vyvre vincent.vandevy...@swing.be wrote: Le 14/09/11 11:31, Arnaud Delobelle a écrit : [...] Could you show me what you do to get this error? Thank you, [vincent@myhost unpyc3]$ python Python 3.2.1 (default, Jul 11 2011, 12:37:47) [GCC 4.6.1] on

Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-14 Thread Tim Johnson
I have written a class that uses ftplib.FTP as the parent. I need to reconcile the modified time of a workstation file with that same filename on a remote server. Let's say we have a file called '400.shtml'. I get the mtime on my workstation by os.path.getmtime('400.shtml') 1311648420.0 And I use

libxml2dom quesiton

2011-09-14 Thread bruce
Hi. Test question. Trying to see how to insert a test node into an existing dom tree. For the test, it has a TR/TD with a td[@class=foo] that has an associated TR.. Trying to figure out how out how to insert a DIV/DIV around the tr/td in question... Curious as to how to accomplish this.

Accessing matplotlib-users discussion group?

2011-09-14 Thread John Ladasky
Hi folks, Apologies if this is a bit off-topic, but there must be another Pythoneer out there who can help me navigate my current problem. I'm working with matplotlib, the Python graphing package. I need to ask some questions about it, and the place to ask those questions would appear to be the

Re: stackoverflow and c.l.py

2011-09-14 Thread Westley Martínez
On Wed, Sep 14, 2011 at 10:47:15PM +1000, Chris Angelico wrote: On Wed, Sep 14, 2011 at 10:33 PM, memilanuk memila...@gmail.com wrote: Not saying one is necessarily better than the other, but just subscribing to the feed for the [python] tag on SO has a pretty good SNR... The SNR here

Re: stackoverflow and c.l.py

2011-09-14 Thread Westley Martínez
On Wed, Sep 14, 2011 at 06:05:23AM -0700, memilanuk wrote: On 09/14/2011 05:47 AM, Chris Angelico wrote: The SNR here isn't bad either. Most of the spam gets filtered out, and even stuff like Ranting Rick posts can be of some amusement when it's a slow day... I subscribe to the list via

Re: stackoverflow and c.l.py

2011-09-14 Thread Rhodri James
On Wed, 14 Sep 2011 14:05:23 +0100, memilanuk memila...@gmail.com wrote: Rick Xang Li are two examples of what you *don't* see (or at least I don't) @ SO Then you haven't been looking hard enough ;-) -- Rhodri James *-* Wildebeest Herder to the Masses --

Re: stackoverflow and c.l.py

2011-09-14 Thread Steven D'Aprano
memilanuk wrote: On 09/14/2011 05:47 AM, Chris Angelico wrote: The SNR here isn't bad either. Most of the spam gets filtered out, and even stuff like Ranting Rick posts can be of some amusement when it's a slow day... I subscribe to the list via Gmane, and if 'most of the spam' gets

Re: Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-14 Thread Chris Rebert
On Wed, Sep 14, 2011 at 12:50 PM, Tim Johnson t...@akwebsoft.com wrote: I have written a class that uses ftplib.FTP as the parent. I need to reconcile the modified time of a workstation file with that same filename on a remote server. Let's say we have a file called '400.shtml'. I get the

A documents editor in Firefox with Python Sphinx tool

2011-09-14 Thread 文山 杜
Baow is a tool that makes it easy to organize your internet resources and create intelligent and beautiful web pages within Firefox web browser. Highlights : * Tree based outline, help you organize internet resources and documents. * Save or bookmark web images, files or pages. *

help regarding re.search

2011-09-14 Thread Sagar Neve
Hi, I have a small program where I want to do just a small regex operation. I want to see if value of a variable 'A' is present in an another variable 'B'. The below code works fine but as soon as the variable 'A' has some string including a dot it fails. for example say: B=dpkg.ipaz

help regarding re.search

2011-09-14 Thread Sagar Neve
Hi, I have a small program where I want to do just a small regex operation. I want to see if value of a variable 'A' is present in an another variable 'B'. The below code works fine but as soon as the variable 'A' has some string including a dot it fails. for example say: B=dpkg.ipaz

Re: help regarding re.search

2011-09-14 Thread Chris Rebert
On Wed, Sep 14, 2011 at 6:41 PM, Sagar Neve nevesa...@gmail.com wrote: Hi, I have a small program where I want to do just a small regex operation. I want to see if value of a variable 'A' is present in an another variable 'B'.  The below code works fine but as soon as the variable 'A' has some

Re: Problem with Dos command by python script

2011-09-14 Thread Chris Rebert
On Wed, Sep 14, 2011 at 1:13 PM, Jonatas Emidio jonatasemi...@gmail.com wrote: Here i come!! I have the following problem... I need run by python script a string with some DOS commands - Windows prompt!! For exemple: print 'cd temp' print 'mkdir temp_app' How can i run this string in the

Re: Reconciling os.path.getmtime vs ftp.sendcmd('MDTM filename')

2011-09-14 Thread Tim Johnson
* Chris Rebert c...@rebertia.com [110914 16:46]: On Wed, Sep 14, 2011 at 12:50 PM, Tim Johnson t...@akwebsoft.com wrote: I have written a class that uses ftplib.FTP as the parent. I need to reconcile the modified time of a workstation file with that same filename on a remote server. Let's

Offer Red Bull Hats superior in quality and price is favourable on http://www.mlbhatshop.com/

2011-09-14 Thread zhenzhen zhang
MLBHatShop with Original Red Bull Hats, New Era Hats, Monster Energy Hats, Red Bull Beanies, DC Hats, Red Bull New Era Hats, Monster Beanies Sales Promotion. Door to Door Free Shipping. http://www.mlbhatshop.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: help regarding re.search

2011-09-14 Thread Sagar Neve
If A in B: does nt seem to be working. Am I missing something here. -$agar On Sep 15, 2011 7:25 AM, Chris Rebert c...@rebertia.com wrote: On Wed, Sep 14, 2011 at 6:41 PM, Sagar Neve nevesa...@gmail.com wrote: Hi, I have a small program where I want to do just a small regex operation. I want

Re: help regarding re.search

2011-09-14 Thread Chris Rebert
On Wed, Sep 14, 2011 at 8:33 PM, Sagar Neve nevesa...@gmail.com wrote: If A in B: does nt seem to be working. Am I missing something here. Please provide a snippet of the code in question, and be specific about how it's not working. Cheers, Chris -- http://rebertia.com --

Re: ANN: PyGUI 2.5

2011-09-14 Thread Greg Ewing
On 15/09/11 06:47, Bill Janssen wrote: One possibility would be to develop a PyGUI branch on top of Tk, so that it would work with Python anywhere. Unfortunately, I doubt whether Tk would be up to the task of supporting PyGUI efficiently. The philosophies of model-view separation and allowing

Re: help regarding re.search

2011-09-14 Thread Sagar Neve
Here is the code url=http://xy.yz.com/us/r1000/012/Purple/b1/c6/e2/mzm.dxkjsfbl..d2.dpkg.ipa Man_Param=/us/r1000 Opt_Param1=Purple Opt_Param2=dpkg.ipa if (Opt_Param2 in url): print hello. else: print bye. It gives me: ./sample.py: line 9: syntax error near unexpected token `:'

Re: help regarding re.search

2011-09-14 Thread Chris Angelico
On Thu, Sep 15, 2011 at 2:41 PM, Sagar Neve nevesa...@gmail.com wrote: ./sample.py: line 9: syntax error near unexpected token `:' ./sample.py: line 9: `if (Opt_Param2 in url):    ' It worked for me in Python 3.2. What version of Python are you using? ChrisA --

Re: help regarding re.search

2011-09-14 Thread Sagar Neve
I figured it out with the sample program I gave you. It was my mistake; However, the same thing with same values is not working in my main program. Here is what I am trying: The program traverses with correct values upto the if condition we just discussed; but fails to quality that if

Re: help regarding re.search

2011-09-14 Thread Kushal Kumaran
On Thu, Sep 15, 2011 at 10:11 AM, Sagar Neve nevesa...@gmail.com wrote: Here is the code url=http://xy.yz.com/us/r1000/012/Purple/b1/c6/e2/mzm.dxkjsfbl..d2.dpkg.ipa; Man_Param=/us/r1000 Opt_Param1=Purple Opt_Param2=dpkg.ipa if (Opt_Param2 in url):     print hello. else:     print bye.

Re: help regarding re.search

2011-09-14 Thread Chris Angelico
On Thu, Sep 15, 2011 at 2:55 PM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: That looks like a bash error message.  Syntax errors in python show up with a stack trace.  Run your program using the python interpreter like this: python file.py OR python3 file.py whatever is

Re: help regarding re.search

2011-09-14 Thread Sagar Neve
Yes. It is been resolved now for the sample program. however, as mentioned in other post. It is not working in the main program On Thu, Sep 15, 2011 at 10:25 AM, Kushal Kumaran kushal.kumaran+pyt...@gmail.com wrote: On Thu, Sep 15, 2011 at 10:11 AM, Sagar Neve nevesa...@gmail.com wrote:

Cancel or timeout a long running regular expression

2011-09-14 Thread python
Is there a way to cancel or timeout a long running regular expression? I have a program that accepts regular expressions from users and I'm concerned about how to handle worst case regular expressions that seem to run forever. Ideally I'm looking for a way to evaluate a regular expression and

cause __init__ to return a different class?

2011-09-14 Thread Matthew Pounsett
I'm wondering if there's a way in python to cause __init__ to return a class other than the one initially specified. My use case is that I'd like to have a superclass that's capable of generating an instance of a random subclass. I've tried both returning the subclass (as I would when

Re: Problem with Dos command by python script

2011-09-14 Thread Gadget/Steve
On 14/09/2011 9:13 PM, Jonatas Emidio wrote: Here i come!! I have the following problem... I need run by python script a string with some DOS commands - Windows prompt!! For exemple: print 'cd temp' print 'mkdir temp_app' How can i run this string in the python, but as a DOS interpreter?

Re: cause __init__ to return a different class?

2011-09-14 Thread Chris Rebert
On Wed, Sep 14, 2011 at 10:20 PM, Matthew Pounsett matt.pouns...@gmail.com wrote: I'm wondering if there's a way in python to cause __init__ to return a class other than the one initially specified.  My use case is that I'd like to have a superclass that's capable of generating an instance of

Re: cause __init__ to return a different class?

2011-09-14 Thread Ryan Kelly
On 15/09/11 15:35, Chris Rebert wrote: On Wed, Sep 14, 2011 at 10:20 PM, Matthew Pounsett matt.pouns...@gmail.com wrote: I'm wondering if there's a way in python to cause __init__ to return a class other than the one initially specified. My use case is that I'd like to have a superclass

[issue12970] os.walk() consider some symlinks as dirs instead of non-dirs

2011-09-14 Thread Alexey Smirnov
Changes by Alexey Smirnov alexey.smir...@gmx.com: -- nosy: +alexey-smirnov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12970 ___ ___

[issue12971] os.isdir() should contain skiplinks=False in arguments

2011-09-14 Thread Alexey Smirnov
Changes by Alexey Smirnov alexey.smir...@gmx.com: -- nosy: +alexey-smirnov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12971 ___ ___

[issue12975] Invitation to connect on LinkedIn

2011-09-14 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12975 ___

[issue12975] Invitation to connect on LinkedIn

2011-09-14 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file23150/unnamed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12975 ___

[issue12975] Invitation to connect on LinkedIn

2011-09-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- Removed message: http://bugs.python.org/msg144010 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12975 ___

[issue12975] spam

2011-09-14 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - committed/rejected title: Invitation to connect on LinkedIn - spam ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12975 ___

[issue8828] Atomic function to rename a file

2011-09-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: According to the following article, a fsync is also needed on the directory after a rename. I don't understand if is it always needed for an atomic rename, or if we only need it for the atomic write pattern. It's not needed if you

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: 2**64 0 Urk! I'd call that a release blocker. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11149 ___

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Reopening and assigning to me; it would be good to fix this in intobject.c as well as adding the Clang-specific -fwrapv fix. -- assignee: - mark.dickinson nosy: +mark.dickinson status: closed - open

[issue12960] threading.Condition is not a class

2011-09-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Yes, but further down it still says: class threading.Condition([lock]) If the lock argument is given and not None, [] What do you suggest? Replace it by class threading._Condition? --

[issue12386] packaging fails in install_distinfo when writing RESOURCES

2011-09-14 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: I looked at this bug again - I was getting a little confused about it ;-) The problem is happening not when writing out a resource, but the RESOURCES file listing the resources installed. This is a text file, of course, so my suggested

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Hello. This happens with this version of IDLE too: Python 3.2.1 (default, Jul 10 2011, 21:51:15) [MSC v.1500 32 bit (Intel)] on win32. I could write a patch if I knew where to start. -- ___

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Notice that this signed overflow issue is also tracked as #1621. I don't mind keeping this issue open, though - it's unlikely that #1621 will be fixed within this decade. unless somebody does some heroic effort. -- nosy: +loewis

[issue12960] threading.Condition is not a class

2011-09-14 Thread Eli Bendersky
Eli Bendersky eli...@gmail.com added the comment: What do you suggest? Replace it by class threading._Condition? -1 on this IMHO just documenting the situation as it is would make more sense -- nosy: +eli.bendersky ___ Python tracker

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I found the culprit. I wrote b\x in IDLE and the window immediatly disappeared. Then, to traceback the problem, I started a python shell and typed the following lines. It seems that in showsyntaxerror, value is different that what was

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I've attached a patch, hope it is ok. -- keywords: +patch Added file: http://bugs.python.org/file23151/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: Removed file: http://bugs.python.org/file23151/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871 ___

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: Wrong patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871 ___ ___ Python-bugs-list

[issue9871] IDLE dies when using some regex

2011-09-14 Thread Popa Claudiu
Changes by Popa Claudiu pcmantic...@gmail.com: Added file: http://bugs.python.org/file23152/idle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9871 ___

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread Benny Siegert
New submission from Benny Siegert bsieg...@gmail.com: When building python-2.6 on MirBSD, building the select module (which uses the kqueue backend on this platform) fails. This is because EVFILT_TIMER is not available on the platform. The proposed patch is for python-2.6 but should apply to

[issue12960] threading.Condition is not a class

2011-09-14 Thread Nikolaus Rath
Nikolaus Rath nikol...@rath.org added the comment: On 09/14/2011 04:29 AM, STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: Yes, but further down it still says: class threading.Condition([lock]) If the lock argument is given and not None,

[issue12977] socket.socket.setblocking does not raise exception if no data available

2011-09-14 Thread Florian Ludwig
New submission from Florian Ludwig flor...@leijuna.de: The documentation states: In non-blocking mode, if a recv() call doesn’t find any data, [...], a error exception is raised; [0] Which is wrong. If no data is available recv() does not raise an exception but returns an empty string.

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Does the test suite catch this bug? I think all of those fail due to the bug in pow(): 20 tests failed: test_array test_builtin test_bytes test_decimal test_float test_fractions test_getargs2 test_index test_int test_itertools

[issue11149] [PATCH] Configure should enable -fwrapv for clang

2011-09-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 0f1e8c246a7b by Stefan Krah in branch '3.2': Issue #11149: recent versions of clang require the -fwrapv flag. http://hg.python.org/cpython/rev/0f1e8c246a7b New changeset 637c67b34a1a by Stefan Krah in branch

[issue12720] Expose linux extended filesystem attributes

2011-09-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: The OS X buildbots fail to compile posixmodule.c: gcc -fno-strict-aliasing -g -O0 -Wall -Wstrict-prototypes-I. -I./Include -DPy_BUILD_CORE -c ./Modules/posixmodule.c -o Modules/posixmodule.o ./Modules/posixmodule.c: In function

[issue12978] Figure out extended attributes on BSDs

2011-09-14 Thread Benjamin Peterson
New submission from Benjamin Peterson benja...@python.org: Extended attribute support currently exists in the os module for Linux. BSD's (including OSX) have a similar (but of course incompatible) interface. They should be exposed through the same functions. For example, os.getxattr(myfile,

[issue12720] Expose linux extended filesystem attributes

2011-09-14 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset f325439d7f84 by Benjamin Peterson in branch 'default': only compile xattrs on glibc (closes #12720) http://hg.python.org/cpython/rev/f325439d7f84 -- status: open - closed

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-14 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'd prefer to disable the misbehaving functions entirely on arm. With the patch this combination of tests now works: ./python -m test -uall test_posix test_nntplib If you think the patch is good, I can run the whole test suite, too.

[issue12936] armv5tejl segfaults: sched_setaffinity() vs. pthread_setaffinity_np()

2011-09-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I'd prefer to disable the misbehaving functions entirely on arm. -10 If we start disabling features on platforms with partly bogus implementations, we might as well drop threading on OpenBSD, sendmsg() on OS-X, etc. Furthermore,

[issue7201] double Endian problem and more on arm

2011-09-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: OK, I got an OABI system setup. I am seeing the 'test_struct_return_2H' failure, which actually segfaults in my setup. The difference does, indeed, seem like an ABI mismatch. The test code that is failing has a Python side like: def

[issue7201] double Endian problem and more on arm

2011-09-14 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: The 'test_endian_double' test fails because the 'double' floating-point type for an interpreter built for OABI is unknown: float.__getformat__(float) 'IEEE, little-endian' float.__getformat__(double) 'unknown' According to [1], the double

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Here's a simple patch. Is anyone in a good position to see if this fixes the tests failures for Clang (without the fwrapv flag)? -- keywords: +patch Added file: http://bugs.python.org/file23155/issue12975.diff

[issue12978] Figure out extended attributes on BSDs

2011-09-14 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Have you looked at Bob Ippolito's xattr module which has been out for some time and wraps Linux, OS X, BSD, and Solaris extended attributes? http://pypi.python.org/pypi/xattr -- nosy: +ned.deily ___ Python

[issue12979] tkinter.font.Font object not usable as font option

2011-09-14 Thread ilikepython
New submission from ilikepython patric...@gmx.de: If a Font object is passed as a font option to a Tk widget e. g.: import tkinter import tkinter.font f = tkinter.font.Font(family='Arial', size=30) root = Tk() label = tkinter.Label(root, text=Hello, font=f) label.pack() the font does not get

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Hello, According to http://fxr.watson.org/fxr/ident?v=NETBSD;im=3;i=EVFILT_TIMER EVFILT_TIMER is defined on NetBSD. As for MirBSD, with all due respect, it really looks like a niche platform, definitely not officially supported by

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I removed -fwrapv from configure and Makefile, but I'm unable to reproduce the issue with clang 2.8 on x86_64 (Fedora 15). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue12976] select module: only use EVFILT_TIMER if available (kqueue backend)

2011-09-14 Thread Benny Siegert
Benny Siegert bsieg...@gmail.com added the comment: There are actually only two things that need to be touched for supporting MirBSD: This and the Configure script. I was planning to submit the Configure patches separately, I just started with this patch as it is so trivial. --

[issue12973] int_pow() implementation is incorrect

2011-09-14 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks Victor; I just managed to install Clang, and it looks I can reproduce the failures. I'm testing right now to see if the patch fixes them all... -- ___ Python tracker rep...@bugs.python.org

  1   2   >