ANN: cssutils 0.9.6b3

2009-08-02 Thread Christof Hoeke
what is it -- A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!) about this release -- 0.9.6b3 adds a few features and fixes quite a few bugs. main changes + **FEATURE**: Added parsing support and new profile for

ANN: Pyspread 0.0.12

2009-08-02 Thread Martin Manns
Pyspread 0.0.12 released I am pleased to announce the new release 0.0.12 of pyspread. About: -- Pyspread is a cross-platform Python spreadsheet application. It is based on and written in the programming language Python. Instead of spreadsheet formulas, Python

cgi script

2009-08-02 Thread golu
Hi, i started learning cgi few days ago in python and everything went fine until i started getting the follwing error The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a

Re: Python processors? : WAS Re: Does python have the capability for driver development ?

2009-08-02 Thread Steven D'Aprano
On Sun, 02 Aug 2009 14:19:45 +1200, greg wrote: That's what killed things like the Lisp machine. Their developers couldn't keep up with the huge resources that people like Intel and Motorola had to throw at CPU development, so eventually a general-purpose CPU could run Lisp faster than a Lisp

Re: Get Cliet IP Address

2009-08-02 Thread eliasf
Fred Atkinson wrote: What is the function to obtain the client browser's IP address? Do you mean the external public IP to the Internet? When I wanted to log the dynamic IP that my ADSL connection gets, I used whatismyip.com like this: import urllib2 QUERY_URL =

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
Dave Angel da...@ieee.org wrote in message news:mailman.4120.1249172970.8015.python-l...@python.org... Michael M Mason wrote: div class=moz-text-flowed style=font-family: -moz-fixedI'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. Thanks to

Re: cgi script

2009-08-02 Thread Carl Banks
On Aug 1, 11:11 pm, golu bhardwajjaye...@gmail.com wrote: Hi, i started learning cgi few days ago in python and everything went fine  until i started getting the follwing error The server encountered an internal error and was unable to complete your request. Either the server is overloaded

Re: Custom namespaces

2009-08-02 Thread Steven D'Aprano
On Sat, 01 Aug 2009 21:46:35 -0700, Chris Rebert wrote: Is there any way to install a custom type as a namespace? For classes/objects, yes, using metaclasses. See the __prepare__() method in PEP 3115: http://www.python.org/dev/peps/pep-3115/ Looks good, but that's Python 3 only, yes? At

Re: Custom namespaces

2009-08-02 Thread Chris Rebert
On Sun, Aug 2, 2009 at 12:18 AM, Steven D'Apranost...@remove-this-cybersource.com.au wrote: On Sat, 01 Aug 2009 21:46:35 -0700, Chris Rebert wrote: Is there any way to install a custom type as a namespace? For classes/objects, yes, using metaclasses. See the __prepare__() method in PEP 3115:

Generate a new object each time a name is imported

2009-08-02 Thread Steven D'Aprano
I would like to generate a new object each time I import a name from a module, rather than getting the same object each time. For example, currently I might do something like this: # Module count = 0 def factory(): # Generate a unique object each time this is called global count

Re: Generate a new object each time a name is imported

2009-08-02 Thread Jonathan Gardner
On Aug 2, 12:35 am, Steven D'Aprano st...@remove-this- cybersource.com.au wrote: I'm looking for a way to hide the generation of objects from the caller, so I could do something like this: from Module import factory() as a  # a == Object #1 from Module import factory() as b  # b == Object #2

RE: Run pyc file without specifying python path ?

2009-08-02 Thread Barak, Ron
-Original Message- From: Dave Angel [mailto:da...@dejaviewphoto.com] Sent: Thursday, July 30, 2009 20:08 To: Barak, Ron Cc: 'python-list@python.org' Subject: Re: Run pyc file without specifying python path ? Barak, Ron wrote: Hi Dave, On second thoughts, I may have a

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Mark Lawrence
Michael M Mason wrote: Dave Angel da...@ieee.org wrote in message news:mailman.4120.1249172970.8015.python-l...@python.org... Michael M Mason wrote: div class=moz-text-flowed style=font-family: -moz-fixedI'm running Python 3.1 on Vista and I can't figure out how to add my own directory to

Re: Generate a new object each time a name is imported

2009-08-02 Thread Hrvoje Niksic
Steven D'Aprano st...@remove-this-cybersource.com.au writes: I'm looking for a way to hide the generation of objects from the caller, so I could do something like this: from Module import factory() as a # a == Object #1 from Module import factory() as b # b == Object #2 except of course

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Michael M Mason
Mark Lawrence breamore...@yahoo.co.uk wrote in message news:mailman.4130.1249203322.8015.python-l...@python.org... Be careful, I'm screwed things up on several occasions by placing a file on PYTHONPATH that overrides a file in the standard library, test.py being my favourite! Thanks. Sure

Re: Run pyc file without specifying python path ?

2009-08-02 Thread Dave Angel
Barak, Ron wrote: Hi Dave, It seems like I don't understand your solution. I use the (appatched) soapAPI.py as the wrapper to parsing.pyc. However, if I do (for instance): $ python -u parsing.pyc -U aaa The last line of the output is (as expected): return_code: 12 ; params: {'username':

Re: Newbie Question regarding __init__()

2009-08-02 Thread Dave Angel
Simon wrote: Okay I will fix my code and include self and see what happens. I know I tried that before and got another error which I suspect was another newbie error. The idea behind the init_Pre is that I can put custom code here to customize the __init__ instead of creating a new subclass.

Re: Help understanding the decisions *behind* python?

2009-08-02 Thread Dave Angel
sturlamolden wrote: On 20 Jul, 18:27, Phillip B Oldham phillip.old...@gmail.com wrote: We're not looking to start any arguments or religious wars and we're not asking that python be changed into something its not. We'd simply like to understand the decision behind the lists and tuple

Re: Generate a new object each time a name is imported

2009-08-02 Thread Peter Otten
Steven D'Aprano wrote: I would like to generate a new object each time I import a name from a module, rather than getting the same object each time. For example, currently I might do something like this: # Module count = 0 def factory(): # Generate a unique object each time this is

Re: Generate a new object each time a name is imported

2009-08-02 Thread Steven D'Aprano
On Sun, 02 Aug 2009 12:33:03 +0200, Peter Otten wrote: How about [snip] import sys sys.modules[yadda] = A() Perfect! That's exactly the sort of thing I'm looking for. Thanks for everyone who answered. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Mark Lawrence
Michael M Mason wrote: Mark Lawrence breamore...@yahoo.co.uk wrote in message news:mailman.4130.1249203322.8015.python-l...@python.org... Be careful, I'm screwed things up on several occasions by placing a file on PYTHONPATH that overrides a file in the standard library, test.py being my

Re: Generate a new object each time a name is imported

2009-08-02 Thread Paul Rubin
Peter Otten __pete...@web.de writes: import sys sys.modules[yadda] = A() OMG wow. I bow to you. But I'm not sure whether that's bowing in awe or in terror. -- http://mail.python.org/mailman/listinfo/python-list

Re: Help understanding the decisions *behind* python?

2009-08-02 Thread Marcus Wanner
On 8/1/2009 9:31 PM, sturlamolden wrote: - Python and C programmers use lists and arrays similarly. I'm guessing that's because of the brackets... Marcus -- http://mail.python.org/mailman/listinfo/python-list

Re: Generate a new object each time a name is imported

2009-08-02 Thread Peter Otten
wrote: KNode cannot parse your From-string correctly. Strange. Peter Otten __pete...@web.de writes: import sys sys.modules[yadda] = A() OMG wow. I bow to you. But I'm not sure whether that's bowing in awe or in terror. I don't know who invented it, but it's an old trick. It even

Skipping a superclass

2009-08-02 Thread Steven D'Aprano
I have a series of subclasses like this: class A(object): def method(self, *args): print Lots of work gets done here in the base class class B(A): def method(self, *args): print A little bit of work gets done in B super(B, self).method(*args) class C(B): def

Seeding the rand() Generator

2009-08-02 Thread Fred Atkinson
How does one seed the rand() generator when retrieving random recordings in MySQL? Regards, Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Skipping a superclass

2009-08-02 Thread Chris Rebert
On Sun, Aug 2, 2009 at 5:36 AM, Steven D'Apranost...@remove-this-cybersource.com.au wrote: I have a series of subclasses like this: class A(object):    def method(self, *args):        print Lots of work gets done here in the base class class B(A):    def method(self, *args):        print

Re: Newbie thwarted by sys.path on Vista

2009-08-02 Thread Christian Heimes
Michael M Mason wrote: I'm running Python 3.1 on Vista and I can't figure out how to add my own directory to sys.path. The docs suggest that I can either add it to the PYTHONPATH environment variable or to the PythonPath key in the registry. However, PYTHONPATH doesn't exist, and updating

Re: A Bug By Any Other Name ...

2009-08-02 Thread Albert van der Horst
In article mailman.3309.1247861321.8015.python-l...@python.org, J. Cliff Dyer j...@sdf.lonestar.org wrote: On Fri, 2009-07-17 at 20:53 +, Albert van der Horst wrote: Because unlike in algol 68 in python whitespace is relevant, we could get by with requiring whitespace: x= -q

Re: Colour of output text

2009-08-02 Thread Albert van der Horst
In article mailman.3163.1247670223.8015.python-l...@python.org, Jean-Michel Pichavant jeanmic...@sequans.com wrote: Nobody wrote: On Fri, 10 Jul 2009 09:23:54 +, garabik-news-2005-05 wrote: I would like to learn a way of changing the colour of a particular part of the output text. I've

IFL 2009: Call for Papers and Participation

2009-08-02 Thread IFL 2009
Call for Papers and ParticipationIFL 2009Seton Hall UniversitySOUTH ORANGE, NJ, USAhttp://tltc.shu.edu/blogs/projects/IFL2009/Register at: http://tltc.shu.edu/blogs/projects/IFL2009/registration.html* NEW *Registration and talk submission extended to August 23, 2009! ***The

Is python buffer overflow proof?

2009-08-02 Thread Jizzai
Is a _pure_ python program buffer overflow proof? For example in C++ you can declare a char[9] to hold user input. If the user inputs 10+ chars a buffer overflow occurs. In python, I cannot seem to find a way to define/restrict a string length. This is probably by design and raises the topic in

PAK WEB PAK WEB TV PAK WEBSITES PAK WEB DIRECTORY PAK WEB HOSTING PAK WEB HOST PAK WEB HOSTING PAK WEB PAK WEB PAK WEB PAK WEB PAK WEB PAK WEB PAK WEB on www.pak-web-page

2009-08-02 Thread Kamal Kamal
PAK WEB www.pak-web-pages.blogspot.com PAK WEB TV www.pak-web-pages.blogspot.com PAK WEBSITES www.pak-web-pages.blogspot.com PAK WEB DIRECTORY www.pak-web-pages.blogspot.com PAK WEB HOSTING www.pak-web-pages.blogspot.com PAK WEB HOST www.pak-web-pages.blogspot.com PAK WEB HOSTING

Re: Is python buffer overflow proof?

2009-08-02 Thread Marcus Wanner
On 8/2/2009 9:50 AM, Jizzai wrote: Is a _pure_ python program buffer overflow proof? For example in C++ you can declare a char[9] to hold user input. If the user inputs 10+ chars a buffer overflow occurs. In python, I cannot seem to find a way to define/restrict a string length. This is

Re: Seeding the rand() Generator

2009-08-02 Thread Marcus Wanner
On 8/2/2009 9:42 AM, Fred Atkinson wrote: How does one seed the rand() generator when retrieving random recordings in MySQL? Regards, Fred something like: import random, time random.seed(time.time()) #not actual record access code: sqlite3.recordaccessfuction(recordid =

Re: Is python buffer overflow proof?

2009-08-02 Thread Christian Heimes
Marcus Wanner wrote: I believe that python is buffer overflow proof. In fact, I think that even ctypes is overflow proof... No, ctypes isn't buffer overflow proof. ctypes can break and crash a Python interpreter easily. Christian -- http://mail.python.org/mailman/listinfo/python-list

Re: Processes not exiting

2009-08-02 Thread ma3mju
On 31 July, 11:27, Piet van Oostrum p...@cs.uu.nl wrote: ma3mju matt.u...@googlemail.com (m) wrote: m Hi all, m I'm having trouble with multiprocessing I'm using it to speed up some m simulations, I find for large queues when the process reaches the m poison pill it does not exit whereas for

Re: Processes not exiting

2009-08-02 Thread ma3mju
On 31 July, 11:34, MRAB pyt...@mrabarnett.plus.com wrote: ma3mju wrote: Hi all, I'm having trouble with multiprocessing I'm using it to speed up some simulations, I find for large queues when the process reaches the poison pill it does not exit whereas for smaller queues it works

Re: Predefined Variables

2009-08-02 Thread Scott David Daniels
Piet van Oostrum wrote: Scott David Daniels scott.dani...@acm.org (SDD) wrote: SDD Stephen Cuppett (should have written in this order): Fred Atkinson fatkin...@mishmash.com wrote ... Is there a pre-defined variable that returns the GET line... os.environment('QUERY_STRING') SDD Maybe you

Re: Is python buffer overflow proof?

2009-08-02 Thread Steven D'Aprano
On Sun, 02 Aug 2009 13:50:14 +, Jizzai wrote: Is a _pure_ python program buffer overflow proof? It's supposed to be. For example in C++ you can declare a char[9] to hold user input. If the user inputs 10+ chars a buffer overflow occurs. In python, I cannot seem to find a way to

Re: Seeding the rand() Generator

2009-08-02 Thread Scott David Daniels
Fred Atkinson wrote: How does one seed the rand() generator when retrieving random recordings in MySQL? It is not entirely clear what you are asking. If you are talking about MySQL's random number generator, you are talking in the wrong newsgroup. If you are talking about Python's,

Re: Processes not exiting

2009-08-02 Thread ma3mju
On 2 Aug, 15:48, ma3mju matt.u...@googlemail.com wrote: On 31 July, 11:34, MRAB pyt...@mrabarnett.plus.com wrote: ma3mju wrote: Hi all, I'm having trouble with multiprocessing I'm using it to speed up some simulations, I find for large queues when the process reaches the poison

Re: Generate a new object each time a name is imported

2009-08-02 Thread Terry Reedy
Peter Otten wrote: Steven D'Aprano wrote: I'm looking for a way to hide the generation of objects from the caller, so I could do something like this: from Module import factory() as a # a == Object #1 from Module import factory() as b # b == Object #2 except of course that syntax is

Re: How to read webpage

2009-08-02 Thread catafest
Maybe your python2.5 not working good!? But, I use python 2.6 , and i use this for your problem: import urllib html = urllib.urlopen(http://www.rediff.com/;).read() print html If you want use authenticate then... You make working urllib2 and use this auth = urllib2.Request(auth_uri, authreq_data)

Re: Processes not exiting

2009-08-02 Thread MRAB
ma3mju wrote: On 2 Aug, 15:48, ma3mju matt.u...@googlemail.com wrote: On 31 July, 11:34, MRAB pyt...@mrabarnett.plus.com wrote: ma3mju wrote: Hi all, I'm having trouble with multiprocessing I'm using it to speed up some simulations, I find for large queues when the process reaches the

Re: Get Cliet IP Address

2009-08-02 Thread Piet van Oostrum
Fred Atkinson fatkin...@mishmash.com (FA) wrote: FAWhat is the function to obtain the client browser's IP FA address? You mean in a web server? The following should work (and was posted by me not long ago): from os import getenv ip = (getenv(HTTP_CLIENT_IP) or

Re: cgi script

2009-08-02 Thread Piet van Oostrum
golu bhardwajjaye...@gmail.com (g) wrote: g Hi, g i started learning cgi few days ago in python and everything went g fine until i started getting the follwing error g g The server encountered an internal error and was unable to complete g your request. Either the server is overloaded or there

Building / making an application

2009-08-02 Thread Peter Chant
What is a good way to do this? There are instructions on making modules at: http://docs.python.org/distutils/setupscript.html however, what do you do if you don't want a module? I'm thinking of where I'd like to split the code into several files and have a build / setup script put it together

Re: socket policy flash help

2009-08-02 Thread Piet van Oostrum
NighterNet darkne...@gmail.com (N) wrote: N Here the full code. N flashpolicy.xml N [[[ N ?xml version=1.0? N cross-domain-policy Nallow-access-from domain=* to-ports=* / N /cross-domain-policy N ]]] N flashpolicytest_server3x.py N [[[ N #!/usr/local/bin/python N ''' N Still under

Re: Building / making an application

2009-08-02 Thread Krishnakant
On Sun, 2009-08-02 at 20:21 +0100, Peter Chant wrote: What is a good way to do this? There are instructions on making modules at: http://docs.python.org/distutils/setupscript.html however, what do you do if you don't want a module? I'm thinking of where I'd like to split the code into

Re: Building / making an application

2009-08-02 Thread Peter Chant
Krishnakant wrote: Have you considered creating a deb or rpm package for your application? Most of the documentation for deb or rpm will talk about make files. But even a distutil based python package (with a setup.py) can be made into a deb package. Then the your requirement will be

Re: Building / making an application

2009-08-02 Thread Diez B. Roggisch
Peter Chant schrieb: Krishnakant wrote: Have you considered creating a deb or rpm package for your application? Most of the documentation for deb or rpm will talk about make files. But even a distutil based python package (with a setup.py) can be made into a deb package. Then the your

Re: Help with Regex for domain names

2009-08-02 Thread Aahz
In article mailman.3998.1248989346.8015.python-l...@python.org, MRAB pyt...@mrabarnett.plus.com wrote: Nobody wrote: On Thu, 30 Jul 2009 10:29:09 -0700, rurpy wrote: regex = re.compile(r'[\w\-\.]+\.(?:us|au|de)') You might also want to consider that some country codes such as co for

Re: Seeding the rand() Generator

2009-08-02 Thread Fred Atkinson
On Sun, 02 Aug 2009 08:53:50 -0700, Scott David Daniels scott.dani...@acm.org wrote: Fred Atkinson wrote: How does one seed the rand() generator when retrieving random recordings in MySQL? It is not entirely clear what you are asking. If you are talking about MySQL's random number

Re: Predefined Variables

2009-08-02 Thread Fred Atkinson
On Sun, 02 Aug 2009 08:11:22 -0700, Scott David Daniels scott.dani...@acm.org wrote: Piet van Oostrum wrote: Scott David Daniels scott.dani...@acm.org (SDD) wrote: SDD Stephen Cuppett (should have written in this order): Fred Atkinson fatkin...@mishmash.com wrote ... Is there a pre-defined

Re: Processes not exiting

2009-08-02 Thread Piet van Oostrum
MRAB pyt...@mrabarnett.plus.com (M) wrote: M I wonder whether one of the workers is raising an exception, perhaps due M to lack of memory, when there are large number of jobs to process. But that wouldn't prevent the join. And you would probably get an exception traceback printed. I wonder if

Get Cliet IP Address

2009-08-02 Thread Fred Atkinson
What is the function to obtain the client browser's IP address? Fred -- http://mail.python.org/mailman/listinfo/python-list

Re: Python docs disappointing

2009-08-02 Thread kj
In 09bf4f17-40a5-4bad-81d3-1950545b7...@g6g2000vbr.googlegroups.com Carl Banks pavlovevide...@gmail.com writes: snip Thanks. Your remarks at least confirm that my impression was not simply due to my noob ignorance: the keyboard-accessible docs are indeed as poor as they look. kynn --

RE Question

2009-08-02 Thread Victor Subervi
Hi; How do I search and replace something like this: aLine = re.sub('[]?[p]?[]?font size=h' + str(x) + '[ a-zA-Z0-9\'=:]*[]?[b]?[]?', 'h' + str(x) + '', aLine) where RE *only* looks for the possibility of p at the beginning of the string; that is, not the individual components as I have it coded

Re: Is python buffer overflow proof?

2009-08-02 Thread Marcus Wanner
On 8/2/2009 10:43 AM, Christian Heimes wrote: Marcus Wanner wrote: I believe that python is buffer overflow proof. In fact, I think that even ctypes is overflow proof... No, ctypes isn't buffer overflow proof. ctypes can break and crash a Python interpreter easily. Christian I see. I

Re: Building / making an application

2009-08-02 Thread Peter Chant
Diez B. Roggisch wrote: You should consider using setuptools. Then you get an egg that people can install, and you can define console_scripts-entry-points which will be installed into /usr/local/bin or similar locations. Interesting, I think I need to have a play with that. The cross

Re: Python docs disappointing

2009-08-02 Thread Mohan Parthasarathy
I am a newbie and about a month old with Python. There is a wealth of material about Python and I am really enjoying learning Python. One thing that could have helped Python documentation is that instead of the very raw doc string, it could have used something like PythonDoc (java doc style) so

Re: Python docs disappointing

2009-08-02 Thread Chris Rebert
On Fri, Jul 31, 2009 at 1:10 PM, kj no.em...@please.post wrote: I'm pretty new to Python, and I like a lot overall, but I find the documentation for Python rather poor, overall. I'm sure that Python experts don't have this problem: they have internalized some good ways to access the

Re: Seeding the rand() Generator

2009-08-02 Thread Carl Banks
On Aug 2, 2:18 pm, Fred Atkinson fatkin...@mishmash.com wrote: On Sun, 02 Aug 2009 08:53:50 -0700, Scott David Daniels scott.dani...@acm.org wrote: Fred Atkinson wrote:        How does one seed the rand() generator when retrieving random recordings in MySQL?   It is not entirely clear

Re: Python docs disappointing

2009-08-02 Thread Christian Heimes
Mohan Parthasarathy schrieb: I am a newbie and about a month old with Python. There is a wealth of material about Python and I am really enjoying learning Python. One thing that could have helped Python documentation is that instead of the very raw doc string, it could have used something like

Registation is open for the 9th PyWeek game programming challenge!

2009-08-02 Thread Richard Jones
The ninth PyWeek challenge will run between: Sunday 30th August to Sunday 6th September (00:00UTC to 00:00UTC) The PyWeek challenge invites entrants to write a game in one week from scratch either as an individual or in a team. Entries must be developed in Python, during the challenge, and

Re: Skipping a superclass

2009-08-02 Thread Miles Kaufmann
On Aug 2, 2009, at 5:36 AM, Steven D'Aprano wrote: I have a series of subclasses like this: class A(object): def method(self, *args): print Lots of work gets done here in the base class class B(A): def method(self, *args): print A little bit of work gets done in B

Re: Generate a new object each time a name is imported

2009-08-02 Thread alex23
On Aug 3, 4:07 am, Terry Reedy tjre...@udel.edu wrote: Peter Otten wrote: Steven D'Aprano wrote: [...] Fantastic question, answer explanation, guys. Well done. -- http://mail.python.org/mailman/listinfo/python-list

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Committed to py3k in r74279, release31-maint in r74280. Leaving open for backport to 2.x. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6595

[issue6595] Make Decimal constructor accept all unicode decimal digits in input.

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Backported to trunk and release26-maint in r74281 and r74282. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6595

[issue6625] UnicodeEncodeError on pydoc's CLI

2009-08-02 Thread Christoph Burgmer
New submission from Christoph Burgmer cburg...@ira.uka.de: pydoc fails with a UnicodeEncodeError for properly specified Unicode docstrings (u...) on the command line interface. See attached patch that encodes the output with the system's encoding. -- components: Extension Modules

[issue2053] IDLE - standardize dialogs

2009-08-02 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I have reviewed the latest patch now, it is nice in general but I dislike the idea of increasing even more EditorWindow. I would really prefer to put this somewhere else, like.. idlelib/dialogs.py. Also, I'm inclined to remove this master/parent

[issue6619] Remove duplicated function in Lib/inspect.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks for the report! Fixed in r74285 (trunk), r74286 (release26-maint), r74287 (py3k) and r74288 (release31-maint). -- nosy: +marketdickinson resolution: - fixed status: open - closed ___

[issue6604] test_distutils subtest test_get_exe_bytes fails depending on execution order

2009-08-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: This was fixed in r71759 and backported in the 2.6 branch in r71765, thanks for the feedback! -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org

[issue6620] Variable may be used before first being assigned to in Lib/locale.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: So this can happen only if grouping is [0] (or an equivalent iterable). Since this is an invalid grouping, I think the appropriate response would be for _grouping_intervals([0]) to raise an exception (which is what it currently does as

[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2009-08-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The vcvarsall.bat eror is unrelated to the error James and Eric are mentioned, which is another error fixed in the revision Hagen points. Lenard, could you re-run it under the latest 2.6 version with the global option --verbose please ?

[issue6555] distutils config file should have the same name on both platforms and all scopes

2009-08-02 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com added the comment: The mac/win difference is with the starting dot because it's impossible under windows to name a file under the directory browser UI that starts with a .. You have to be a power-user to do so. (pydistutils.cfg versus .pydistutils.cfg) Now for

[issue6622] [RFC] wrong variable used in Lib/poplib.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Comparing with trunk, I agree that it seems very likely that 'password' is intended here. It's unfortunate that the test-suite doesn't expose this bug; it would be good to come up with a test that covers this. -- nosy:

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: As far as I can tell, it looks safe to just remove these two blocks. There's a third block that should be removed as well (the second if os.name == 'mac': ... in the hexbin function. -- nosy: +marketdickinson

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This should be fixed in the 3.1 maintenance branch as well. -- versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6621

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: See also issue 2715. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6621 ___ ___

[issue2715] Remove carbon-specific code from binhex

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This came up again recently in issue 6621. What's the current status of the binhex module in py3k? It looks as though the Carbon-specific code has been *partially* but not completely removed. In particular, there are references to FSSpec

[issue6621] [RFC] Remove leftover use of Carbon module from Lib/binhex.py

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Closing as a duplicate of issue 2715. -- resolution: - duplicate status: open - closed superseder: - Remove carbon-specific code from binhex ___ Python tracker rep...@bugs.python.org

[issue2715] Remove carbon-specific code from binhex

2009-08-02 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: From my understanding the mac platform is OS 9, so that code in those 'if' blocks can go. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2715

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
New submission from Jacob Rus jacobo...@gmail.com: See discussion started right at the end of the month at http://mail.python.org/pipermail/python-dev/2009-July/090928.html And continued at http://mail.python.org/pipermail/python-dev/2009-August/thread.html Basically, the mimetypes module is

[issue2053] IDLE - standardize dialogs

2009-08-02 Thread Tal Einat
Tal Einat talei...@users.sourceforge.net added the comment: The whole point of this patch is to make the EditorWindow's Text widget the default master/parent for its dialogs! IMO this makes sense, since this is a reasonable and intuitive default for such methods of the EditorWindow object. I

[issue6627] threading.local() does not work with C-created threads

2009-08-02 Thread Nikolaus Rath
New submission from Nikolaus Rath nikol...@rath.org: When threads are created by a C extension loaded with ctypes, threading.local() objects are always empty. If one uses _threading_local.local() instead of threading.local(), the problem does not occur. More information and example program

[issue6608] asctime causing python to crash

2009-08-02 Thread James Abbatiello
James Abbatiello abb...@gmail.com added the comment: Further investigation shows that MS asctime() doesn't like leap seconds and causes an assertion when passing (2008, 12, 31, 23, 59, 60, 2, 366, -1) - 'Wed Dec 31 23:59:60 2008'. Given that and since asctime() is such a simple function I think

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: This diff should leave the semantics of the module essentially unchanged (including lazy-loading of default files), and also leave the particular MIME types used unchanged, even though these are out of date and should be updated; a subsequent

[issue2715] Remove carbon-specific code from binhex

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: Thanks, Brett. I've removed those blocks in r74289 (py3k) and r74290 (release31-maint). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2715

[issue2715] Remove carbon-specific code from binhex

2009-08-02 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: It looks to me as though this issue can now be closed. Ronald, any comments? -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2715

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: Here is a version of the patch which does away with the lazy loading: these are a small handful of easy-to-parse ~40k files; if the import takes an extra eye-blink, it shouldn't be too big a deal. -- Added file:

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: A fixed version of the patch from msg91200, 2009-08-02 20:08 -- Added file: http://bugs.python.org/file14631/mimetypes2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6626

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: This version (#4) switches to expressing the default types as a list of tuples instead of as a dict, so that we can include duplicate rows so that reverse type - extension lookups will behave properly, once we start changing the actual content

[issue2053] IDLE - standardize dialogs

2009-08-02 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: I thought the main point of this issue was to define standard functions, methods, classes (or something in that sense), in order to make the creation of tk dialogs uniform across IDLE. Right now it seems reasonable to keep the parent hidden,

[issue6616] PyList_APPEND (append without incref)

2009-08-02 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I know the API well enough (with manipulating dicts/lists etc) and I still want this function for the sake of convenience. Given that your level of skill is higher than the average user, I recommend adding this to your own

[issue6626] show Python mimetypes module some love

2009-08-02 Thread Jacob Rus
Jacob Rus jacobo...@gmail.com added the comment: Here is a list I generated of all the current Apache mime.types: I would just as soon include this in the python standard library, either just the Apache file as is, or even these python object literals (maybe in a file outside of

[issue1628205] socket.readline() interface doesn't handle EINTR properly

2009-08-02 Thread Rhett Garber
Rhett Garber rhe...@gmail.com added the comment: I've hit this issue as well. Attached is an updated patch to 2.6 branch and a test case. I wrote up more details here: http://nullhole.com/2009/08/02/anatomy-of-a-regression-test/ -- nosy: +rhettg Added file:

[issue6628] IDLE freezes after encountering a syntax error

2009-08-02 Thread brian
New submission from brian omniscient.br...@gmail.com: Running Python 3.1/ IDLE, which was installed on top of a Python 2.5.4 install, Mac OSX 10.4 This seems like such an obvious bug, but I can't find it in the current list of issues - so I suspect that it may not be reproducible on other