PyCon 2009 Tutorial Days

2009-02-07 Thread gslindstrom
Registration for PyCon 2009 http://us.pycon.org/2009/registration/ (US) is open. Because of the popularity of the tutorials in years past, this year features 2 days of tutorials http://us.pycon.org/2009/tutorials (32 total class on Wednesday, March 25 and Thursday, March 26) including: - 2

python-graph-1.4.0 released

2009-02-07 Thread Pedro Matiello
python-graph release 1.4.0 http://code.google.com/p/python-graph/ python-graph is a library for working with graphs in Python. This software provides a suitable data structure for representing graphs and a whole set

ANN: cssutils 0.9.6a1

2009-02-07 Thread Christof Hoeke
what is it -- A Python package to parse and build CSS Cascading Style Sheets. (Not a renderer though!) main changes 0.9.6a1 090207 - refactored validation - added Profiles. See the docs and source of the cssutils.profiles module for details. - should work

Re: WebError documentation?

2009-02-07 Thread Ron Garret
In article mailman.9037.1233981452.3487.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: On Thu, Feb 5, 2009 at 12:52 PM, Ron Garret rnospa...@flownet.com wrote: Is there any? Where is it? Extensive Googling has proven fruitless. It's not a standard Python exception. A

Re: Is c.l.py becoming less friendly?

2009-02-07 Thread James Stroud
Tim Chase wrote: Is this where we tell you to shut up? gdr ;-) Don't you mean STFU? -- James Stroud UCLA-DOE Institute for Genomics and Proteomics Box 951570 Los Angeles, CA 90095 http://www.jamesstroud.com -- http://mail.python.org/mailman/listinfo/python-list

Re: Flattening lists

2009-02-07 Thread Rhamphoryncus
On Feb 6, 10:21 pm, rdmur...@bitdance.com wrote: Quoth Mensanator mensana...@aol.com: def flatten(listOfLists):     return list(chain.from_iterable(listOfLists))     Python 2.6.1 (r261:67515, Jan  7 2009, 17:09:13)     [GCC 4.3.2] on linux2     Type help, copyright, credits or license for

Re: urllib2 performance on windows, usb connection

2009-02-07 Thread dq
MRAB wrote: dq wrote: MRAB wrote: dq wrote: dq wrote: MRAB wrote: dq wrote: Martin v. Löwis wrote: So does anyone know what the deal is with this? Why is the same code so much slower on Windows? Hope someone can tell me before a holy war erupts :-) Only the holy war can give an

Re: subprocess returncode windows

2009-02-07 Thread Duncan Booth
Andrew andrew.replo...@gmail.com wrote: As well as not using that and removing endlocal which I admit I have no clue what that does. Python isn't the only system in the world to include a help command. C:\help endlocal Ends localization of environment changes in a batch file. Environment

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already account for that increase. It would be interesting to see what specific files have

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Diez B. Roggisch
Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already account for that increase. It would be interesting to see what specific

Trouble with regular expressions

2009-02-07 Thread LaundroMat
Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally look like this: Update: New item (Household) into a group. This expression works ok: '^(Update:)?(.*)(\(.*\))$' - it returns (Update, New item, (Household)) Some

Re: Running all unit tests

2009-02-07 Thread Jason Voegele
Ben Finney wrote: Jason Voegele ja...@jvoegele.com writes: What's the recommended approach for Python programs? I'm sure I could write a shell script (or a Python script even) that scans my test directory for test cases and runs them, but I'm wondering if there's something already built in

PyCon 2009 Tutorial Days

2009-02-07 Thread gslindstrom
Registration for PyCon 2009 http://us.pycon.org/2009/registration/ (US) is open. Because of the popularity of the tutorials in years past, this year features 2 days of tutorials http://us.pycon.org/2009/tutorials (32 total class on Wednesday, March 25 and Thursday, March 26) including: - 2

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Terry schrieb: On 2月7日, 下午3时36分, Martin v. Löwis mar...@v.loewis.de wrote: Does that say something about the code quality of Python3.0? Not necessarily. IIUC, copying a single file with 2000 lines completely could already

urllib2: problem of handling space in parameter

2009-02-07 Thread Muddy Coder
Hi Folks, I encrountered a problem of using urllib2: the space handling. Look at the code below: import urllib2 url = r'http://somedomain.com/a.cgi?name=muddy coderpassword=foobar cgi_back = urllib2.urlopen(url).read() In this cgi_back, I saw field password worked fine, but field name not, only

typedef (type alias) and ctypes

2009-02-07 Thread Yosifov Pavel
I try to create type aliases, like typedef in C (a specially aliases to ctypes objects). This case: some_type = c_ulong oth_type = c_ulong works in all cases but not with type qualification: t1 = c_ulong # reference to c_ulong, nothing else :( t2 = c_ulong x = t1() y = t2()

urllib2: problem of handling space in parameter

2009-02-07 Thread rdmurray
Quoth Muddy Coder cosmo_gene...@yahoo.com: Hi Folks, I encrountered a problem of using urllib2: the space handling. Look at the code below: import urllib2 url = r'http://somedomain.com/a.cgi?name=muddy coderpassword=foobar cgi_back = urllib2.urlopen(url).read() In this cgi_back, I saw

Re: Trouble with regular expressions

2009-02-07 Thread John Machin
On Feb 7, 11:18 pm, LaundroMat laun...@gmail.com wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally look like this: Update: New item (Household) into a group. This expression works ok:

Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Andreas Waldenburger
I've found something in the spirit of the following (in the epydoc sources, if you care): if True: print outer if for t in range(2): if True: print for if else: print phantom else For the life of me I can't place the else. Which if clause does it belong

Re: Flattening lists

2009-02-07 Thread rdmurray
Rhamphoryncus rha...@gmail.com wrote: On Feb 6, 10:21=A0pm, rdmur...@bitdance.com wrote: Quoth Mensanator mensana...@aol.com: def flatten(listOfLists): =A0 =A0 return list(chain.from_iterable(listOfLists)) =A0 =A0 Python 2.6.1 (r261:67515, Jan =A07 2009, 17:09:13) =A0 =A0 [GCC

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Andreas Waldenburger
On Sat, 7 Feb 2009 15:21:22 +0100 Andreas Waldenburger geekm...@usenot.de wrote: outer if For if For if Phantom else Geez, I'm a moron. This is obviously not the output from the snippet. But if you fix the capitalization, it is. Sorry for that. /W -- My real email address is constructed

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Steven D'Aprano
Andreas Waldenburger wrote: It seems that there is a for...else construct. Replacing the inner if with pass seems to confirm this. The else clause is still executed. Yes, there is a for...else construct. The else block runs if the for loop exits *without* a break. for i in range(20): if

py2exe and distutils

2009-02-07 Thread Maxim Demenko
Hi, i have installed Python 2.5.4 on WinXP, setuptools-0.6c9 and py2exe 0.6.9 Now i can't list installed modules, here is the stacktrace: help modules Please wait a moment while I gather a list of all available modules... Traceback (most recent call last): File stdin, line 1, in module

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Peter Otten
Andreas Waldenburger wrote: I've found something in the spirit of the following (in the epydoc sources, if you care): if True: print outer if for t in range(2): if True: print for if else: print phantom else For the life of me I can't place

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Andreas Waldenburger
On Sun, 08 Feb 2009 01:28:00 +1100 Steven D'Aprano st...@pearwood.info wrote: Andreas Waldenburger wrote: It seems that there is a for...else construct. Replacing the inner if with pass seems to confirm this. The else clause is still executed. Yes, there is a for...else construct.

Re: Trouble with regular expressions

2009-02-07 Thread MRAB
LaundroMat wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally look like this: Update: New item (Household) into a group. This expression works ok: '^(Update:)?(.*)(\(.*\))$' - it returns (Update, New item,

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread MRAB
Andreas Waldenburger wrote: On Sun, 08 Feb 2009 01:28:00 +1100 Steven D'Aprano st...@pearwood.info wrote: Andreas Waldenburger wrote: It seems that there is a for...else construct. Replacing the inner if with pass seems to confirm this. The else clause is still executed. Yes, there is a

Newbie SWMixer / numpy help - AssertionError

2009-02-07 Thread Peter Chant
Hello, I'm a bit of a python newby. I want to play and record sound simultaneously. SWMixer seems able to do this but the examples use WAV files. I'm trying to play a test tone. Can anyone give me a steer as to why this fails? import sys import swmixer import numpy

BaseHTTPRequestHandler freezes while writing to self.wfile after installing Python 3.0

2009-02-07 Thread mail
Hey guys, I'm starting to lose my head with this one. I have a class that extends BaseHTTPRequestHandler. It works fine on Python 2.5. And yesterday I was curious and decided to install Python 3.0 on my Mac (I followed this tutorial, to be sure I wasn't messing things up:

Re: Is c.l.py becoming less friendly?

2009-02-07 Thread floatingpeanut
On Feb 7, 2:37 am, Terry Reedy tjre...@udel.edu wrote:   So I think python-list has become more friendly since. I've experienced the same sort of thing. About a year ago (I think) there were one or more regulars here who were often somewhat rude, unfriendly, or snobbish (not naming any names).

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread Diez B. Roggisch
Peter Otten schrieb: Andreas Waldenburger wrote: I've found something in the spirit of the following (in the epydoc sources, if you care): if True: print outer if for t in range(2): if True: print for if else: print phantom else For the life of me I

Re: Tkinter w.pack()?

2009-02-07 Thread W. eWatson
MRAB wrote: W. eWatson wrote: ... I thought some months ago, I found Google commands that would operate in the browser link window. Guess not. BTW, isn't there an O'Reilly book on Google hacks of this sort? Where else does one find out about these Google tools? Google? :-)

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Benjamin Peterson
Terry terry.yinzhe at gmail.com writes: On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Do you by any chance have a few examples of these? There is a lot of idiomatic code in python to e.g. acquire and release the GIL or doing refcount-stuff. If that happens to be done with

Java to Python

2009-02-07 Thread zaheer . agadi
Hi I have a following class that is written Java and makes use of apache http client library,I am new to python can any one suggest me a python equivalent of this following class, Thanks , public class Authenticate{ private String storageUserName=null; private String storagePassword=null;

Re: Java to Python

2009-02-07 Thread Banibrata Dutta
Jython is not an option ? On Sat, Feb 7, 2009 at 9:54 PM, zaheer.ag...@gmail.com wrote: Hi I have a following class that is written Java and makes use of apache http client library,I am new to python can any one suggest me a python equivalent of this following class, Thanks , public

Beginner Python OpenGL difficulties

2009-02-07 Thread David Nuttall
Hi Mike, I am just getting into OPENGL from Python. But I am having problems. Each time I try to run some OPENGL code I get the following sort of error: Traceback (most recent call last): File C:\Documents and Settings\Owner\My Documents\My Work\Python

Re: Java to Python

2009-02-07 Thread zaheer agadi
Hi Thanks for replying .. I am actually looking for the pure Python options Are there any equivalent clasees for the following import org.apache.commons.httpclient.HttpClient; import org.apache.commons.httpclient.HttpException; import

Re: Java to Python

2009-02-07 Thread Aleksandar Radulovic
Hi, This looks like a perfect job for httplib and urllib2 modules. On Sat, Feb 7, 2009 at 4:49 PM, zaheer agadi zaheer.ag...@gmail.com wrote: Hi Thanks for replying .. I am actually looking for the pure Python options Are there any equivalent clasees for the following import

isfifo?

2009-02-07 Thread rdmurray
I've googled and looked through os.path, but I don't see a method for determining if a path points to a FIFO. Anyone know of a simple way to do so? --RDM -- http://mail.python.org/mailman/listinfo/python-list

Re: isfifo?

2009-02-07 Thread Albert Hopkins
On Sat, 2009-02-07 at 17:12 +, rdmur...@bitdance.com wrote: I've googled and looked through os.path, but I don't see a method for determining if a path points to a FIFO. Anyone know of a simple way to do so? import os import stat st_mode = os.stat(path)[0] isfifo = stat.S_ISFIFO(st_mode)

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Scott David Daniels
Terry wrote: ... I'm not saying that you can not have duplication in code. But it seems that the stable successful software releases tend to have relatively stable duplication rate. This analysis overlooks the fact that 3.0 _was_ a major change, and is likely to grow cut-and-paste solutions

Re: Weird Indentation? (Or: is there a for...else construct?)

2009-02-07 Thread andrew cooke
there's a justification for this awful mess here - http://mail.python.org/pipermail/python-3000/2006-March/000104.html i didn't know about this, and even after reading steven's broken (i assume) example, managed to get it backwards. the else is if there *isn't* a break and is for search loops

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Martin v. Löwis
And I'm not saying that you can not have duplication in code. But it seems that the stable successful software releases tend to have relatively stable duplication rate. So if some software has an instable duplication rate, it probably means that it is either not stable, or not successful. In

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Martin v. Löwis
But the duplication are always not very big, from about 100 lines (rare) to less the 5 lines. As you can see the Rate30 is much bigger than Rate60, that means there are a lot of small duplications. I don't find that important for code quality. It's the large chunks that I would like to see

Re: isfifo?

2009-02-07 Thread Martin v. Löwis
rdmur...@bitdance.com wrote: I've googled and looked through os.path, but I don't see a method for determining if a path points to a FIFO. Anyone know of a simple way to do so? def isfifo(fn): return stat.S_ISFIFO(os.stat(fn).st_mode) HTH, Martin --

Re: isfifo?

2009-02-07 Thread rdmurray
=?ISO-8859-1?Q?=22Martin_v=2E_L=F6wis=22?= mar...@v.loewis.de wrote: rdmur...@bitdance.com wrote: I've googled and looked through os.path, but I don't see a method for determining if a path points to a FIFO. Anyone know of a simple way to do so? def isfifo(fn): return

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Jeroen Ruigrok van der Werven
-On [20090207 18:25], Scott David Daniels (scott.dani...@acm.org) wrote: This analysis overlooks the fact that 3.0 _was_ a major change, and is likely to grow cut-and-paste solutions to some problems as we switch to Unicode strings from byte strings. You'd best hope the copied section

Re: Java to Python

2009-02-07 Thread Aleksandar Radulovic
Hi, On Sat, Feb 7, 2009 at 5:28 PM, zaheer agadi zaheer.ag...@gmail.com wrote: Thanks Alex, Can you provide me more details on httplib and urllib ? The details can be found in Python documentation (http://python.org/doc), on these pages: http://docs.python.org/library/httplib.html I'm sure

Re: WebError documentation?

2009-02-07 Thread Bruno Desthuilliers
Ron Garret a écrit : In article mailman.9037.1233981452.3487.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: On Thu, Feb 5, 2009 at 12:52 PM, Ron Garret rnospa...@flownet.com wrote: Is there any? Where is it? Extensive Googling has proven fruitless. It's not a standard

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Steve Holden
Jeroen Ruigrok van der Werven wrote: -On [20090207 18:25], Scott David Daniels (scott.dani...@acm.org) wrote: This analysis overlooks the fact that 3.0 _was_ a major change, and is likely to grow cut-and-paste solutions to some problems as we switch to Unicode strings from byte strings

Re: py2exe and distutils

2009-02-07 Thread Thomas Heller
Maxim Demenko schrieb: Hi, i have installed Python 2.5.4 on WinXP, setuptools-0.6c9 and py2exe 0.6.9 Now i can't list installed modules, here is the stacktrace: help modules Please wait a moment while I gather a list of all available modules... Traceback (most recent call last):

Re: py2exe and distutils

2009-02-07 Thread Thomas Heller
Maxim Demenko schrieb: Hi, i have installed Python 2.5.4 on WinXP, setuptools-0.6c9 and py2exe 0.6.9 Now i can't list installed modules, here is the stacktrace: [...] Any suggestion, how to fix this issue? Thomas Heller schrieb: Looks like a setuptools problem to me. Here's the output on

Re: Flattening lists

2009-02-07 Thread mmanns
On Sat, 7 Feb 2009 01:06:06 -0800 (PST) Rhamphoryncus rha...@gmail.com wrote: On Feb 6, 10:21 pm, rdmur...@bitdance.com wrote: Quoth Mensanator mensana...@aol.com: def flatten(listOfLists):     return list(chain.from_iterable(listOfLists))     Python 2.6.1 (r261:67515, Jan  7 2009,

Re: Trouble with regular expressions

2009-02-07 Thread John Machin
On Feb 8, 1:37 am, MRAB goo...@mrabarnett.plus.com wrote: LaundroMat wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally look like this: Update: New item (Household) into a group. This expression

Re: Where to host a (Python) project?

2009-02-07 Thread alex goretoy
If you don't mind changing dns entries. You can also use Google App Engine. It's really nice. http://code.google.com/appengine/docs/python/tools/webapp/overview.html -Alex Goretoy http://www.alexgoretoy.com On Fri, Feb 6, 2009 at 1:07 AM, alex goretoy aleksandr.gore...@gmail.comwrote: I use

Re: Flattening lists

2009-02-07 Thread Rhamphoryncus
On Feb 7, 1:39 pm, mma...@gmx.net wrote: On Sat, 7 Feb 2009 01:06:06 -0800 (PST) Rhamphoryncus rha...@gmail.com wrote: What usecase do you have for such inconsistently structured data? I have a similar use case in pyspread, which is a Python spreadsheet that employs numpy object arrays.

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Martin v. Löwis
This is probably preferable to five different developers solving the same problem five different ways and introducing three *different* bugs, no? With the examples presented, I'm not convinced that there is actually significant code duplication going on in the first place. Regards, Martin --

Re: py2exe and distutils

2009-02-07 Thread Maxim Demenko
Thomas Heller schrieb: Maxim Demenko schrieb: Hi, i have installed Python 2.5.4 on WinXP, setuptools-0.6c9 and py2exe 0.6.9 Now i can't list installed modules, here is the stacktrace: [...] Any suggestion, how to fix this issue? Thomas Heller schrieb: Looks like a setuptools problem to me.

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Jeroen Ruigrok van der Werven
-On [20090207 21:07], Steve Holden (st...@holdenweb.com) wrote: This is probably preferable to five different developers solving the same problem five different ways and introducing three *different* bugs, no? I guess the answer would be 'that depends', but in most cases you would be correct, yes

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread andrew cooke
Steve Holden wrote: You'd best hope the copied section was thoroughly reviewed otherwise you're duplicating a flaw across X other sections. And then you also best hope that whoever finds said flaw and fixes it is also smart enough to check for similar constructs around the code base. This

Re: Flattening lists

2009-02-07 Thread mmanns
On Sat, 7 Feb 2009 12:50:22 -0800 (PST) Rhamphoryncus rha...@gmail.com wrote: On Feb 7, 1:39 pm, mma...@gmx.net wrote: On Sat, 7 Feb 2009 01:06:06 -0800 (PST) Rhamphoryncus rha...@gmail.com wrote: What usecase do you have for such inconsistently structured data? I have a similar use

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Martin v. Löwis
yet the general tone of the responses has been more defensive than i would have expected. i don't really understand why. nothing really terrible, given the extremes you get on the net in general, but still a little disappointing. I think this is fairly easy to explain. The OP closes with

Re: Newbie SWMixer / numpy help - AssertionError

2009-02-07 Thread Robert Kern
On 2009-02-07 08:46, Peter Chant wrote: Hello, I'm a bit of a python newby. I want to play and record sound simultaneously. SWMixer seems able to do this but the examples use WAV files. I'm trying to play a test tone. Can anyone give me a steer as to why this fails? Looking at the SWMixer

TkInter: Problem with propagation of resize events through geometry manager hierarchy?

2009-02-07 Thread Randy Smith
Hi! I'm looking for help with a Tkinter program's handling of resize. I'm trying to do a fairly simple widget that shows a cropped part of a larger image, and let's you navigate within the larger image through a variety of methods. The widget hierarchy is: root ImageWidget (my class)

MacPython 2.5 IDLE font size

2009-02-07 Thread chohazel
Hi, Is there a way to adjust the default font size in IDLE, in MacPython 2.5? The default now is too tiny. I have to use this version of MacPython. As far as I searched, I can't find how I do this. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Trouble with regular expressions

2009-02-07 Thread MRAB
John Machin wrote: On Feb 8, 1:37 am, MRAB goo...@mrabarnett.plus.com wrote: LaundroMat wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally look like this: Update: New item (Household) into a group. This

Python on TV-centric platforms

2009-02-07 Thread Vitaliy Yermolenko
Hi, Any chance to see Python to be ready for Widget Development Kit (WDK) to third-party developers to create applications and services for viewing on TVs, or to move applications to the TV from the PC viewing environment as on

Re: Trouble with regular expressions

2009-02-07 Thread John Machin
On Feb 8, 10:15 am, MRAB goo...@mrabarnett.plus.com wrote: John Machin wrote: On Feb 8, 1:37 am, MRAB goo...@mrabarnett.plus.com wrote: LaundroMat wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings that ideally

Re: Portable way to refer to the null device?

2009-02-07 Thread nick
On Fri, Feb 06, 2009 at 07:32:20PM -0800, Roy Smith wrote: I need to run a command using subprocess.Popen() and have stdin connected to the null device. On unix, I would do: self.process = subprocess.Popen(argv, env=new_env,

Re: simple web app, where to start

2009-02-07 Thread nick
On Fri, Feb 06, 2009 at 09:16:02PM -0700, Vincent Davis wrote: I have a simple script that takes a few input values and returns a csv file and a few stats. If I wanted to host this on the web how would I. I have no idea where to begin. If someone could point me in the right direction like

Re: Portable way to refer to the null device?

2009-02-07 Thread Jean-Paul Calderone
On Sat, 7 Feb 2009 15:56:45 -0800, n...@stinemates.org wrote: On Fri, Feb 06, 2009 at 07:32:20PM -0800, Roy Smith wrote: I need to run a command using subprocess.Popen() and have stdin connected to the null device. On unix, I would do: self.process = subprocess.Popen(argv,

Re: Python on TV-centric platforms

2009-02-07 Thread Diez B. Roggisch
Vitaliy Yermolenko schrieb: Hi, Any chance to see Python to be ready for Widget Development Kit (WDK) to third-party developers to create applications and services for viewing on TVs, or to move applications to the TV from the PC viewing environment as on

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月8日, 上午12时20分, Benjamin Peterson benja...@python.org wrote: Terry terry.yinzhe at gmail.com writes: On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Do you by any chance have a few examples of these? There is a lot of idiomatic code in python to e.g. acquire and release

Re: Python3.0 has more duplication in source code than Python2.5

2009-02-07 Thread Terry
On 2月8日, 上午8时51分, Terry terry.yin...@gmail.com wrote: On 2月8日, 上午12时20分, Benjamin Peterson benja...@python.org wrote: Terry terry.yinzhe at gmail.com writes: On 2月7日, 下午7时10分, Diez B. Roggisch de...@nospam.web.de wrote: Do you by any chance have a few examples of these? There is a lot

Re: Trouble with regular expressions

2009-02-07 Thread MRAB
John Machin wrote: On Feb 8, 10:15 am, MRAB goo...@mrabarnett.plus.com wrote: John Machin wrote: On Feb 8, 1:37 am, MRAB goo...@mrabarnett.plus.com wrote: LaundroMat wrote: Hi, I'm quite new to regular expressions, and I wonder if anyone here could help me out. I'm looking to split strings

sortable table in python 3.0

2009-02-07 Thread Peter Pei
In one of my program, I used something called MultiColumnList, which is one of the sortable table widgets done in python. However 3.0 sort is different. I googled and found couple of other implementations, but all in python 3.0 -. Does anyone know any solution in 3.0? or anything that has

Re: simple web app, where to start

2009-02-07 Thread Vincent Davis
Thanks http://www.cherrypy.org/ looks like a good and simple option. Thanks Vincent Davis On Sat, Feb 7, 2009 at 5:09 PM, n...@stinemates.org wrote: On Fri, Feb 06, 2009 at 09:16:02PM -0700, Vincent Davis wrote: I have a simple script that takes a few input values and returns a csv file

Re: MacPython 2.5 IDLE font size

2009-02-07 Thread Vincent Davis
There is a option menu in idle but you may not be able to see it. Try launching idle via terminal. For me it was located /Library/Frameworks/Python/Versions/Current/bin/idle2.5 When I did this I had the option menu, I guess this is a known bug. I assume there is a font option once you get the

Re: Python on TV-centric platforms

2009-02-07 Thread alex23
On Feb 8, 9:23 am, Vitaliy Yermolenko vital...@gmail.com wrote: Any chance to see Python to be ready for Widget Development Kit (WDK) to third-party developers to create applications and services for viewing on TVs [...] The excellent XBMC[1] has had Python support for years. 1:

Re: WebError documentation?

2009-02-07 Thread Ron Garret
In article 498de947$0$24412$426a7...@news.free.fr, Bruno Desthuilliers bdesth.quelquech...@free.quelquepart.fr wrote: Ron Garret a écrit : In article mailman.9037.1233981452.3487.python-l...@python.org, Chris Rebert c...@rebertia.com wrote: On Thu, Feb 5, 2009 at 12:52 PM, Ron Garret

[issue5175] negative PyLong - C unsigned integral, TypeError or OverflowError?

2009-02-07 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - marketdickinson nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5175 ___

[issue1528074] difflib.SequenceMatcher.find_longest_match() wrong result

2009-02-07 Thread Jan
Jan pf...@yahoo.com.br added the comment: hi all, just got bitten by this, so i took the time to reiterate the issue. according to the docs: http://docs.python.org/library/difflib.html find_longest_match() should return the longest matching string: If isjunk was omitted or None,

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-07 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r69409. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5174 ___

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Jon Dee
New submission from Jon Dee j.a.t@gmail.com: Without this flag it is necessary to wait for e.g. 120s after closing down a 'BaseManager' server before restarting, due to the socket being in the TIME_WAIT state. Example error, which occurs if a server is started, data transmitted down the

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5177 ___

[issue5134] Compiler warnings in sqlite module

2009-02-07 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Here is a patch that works similar to sqlite3_warnings, but moves all sqlite3.dll settings into a separate property file. Added file: http://bugs.python.org/file12968/sqlite.patch ___ Python tracker

[issue5137] SystemError when __len__ returns a non-number

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Here's patch that raises a TypeError like 2.x. -- keywords: +needs review, patch nosy: +benjamin.peterson Added file: http://bugs.python.org/file12969/SystemError_bad_len.patch ___ Python

[issue4704] Update pybench for python 3.0

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If possible, pybench should work unchanged in both Python 2.x and 3.x. Ok, the best I can do is to make it 2.6-compatible. For versions before 2.6, stuff like except Exception as e does not make compatibility reasonably achievable.

[issue4704] Update pybench for python 3.0

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r69411, r69412. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4704 ___

[issue5177] multiprocessing: SocketListener should use SO_REUSEADDR

2009-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +jnoller ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5177 ___ ___ Python-bugs-list mailing

[issue4753] Faster opcode dispatch on gcc

2009-02-07 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Skip, removing the colon doesn't work if the macro adds code after the colon :) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4753 ___

[issue5178] Add content manager for temporary directory

2009-02-07 Thread Neil Schemenauer
New submission from Neil Schemenauer nas-pyt...@arctrix.com: I noticed that it would be nice to have a temporary directory context manager while trying to fix a broken unittest. The attached patch provides a pretty minimal implementation. There appears to be lots of unit tests that could use

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Senthil
Senthil orsent...@gmail.com added the comment: Sorry to bring this fixed-closed issue back again. I see that this was committed in a hurry. Either, shutil.destinsrc should be Documented, there currently does not exists any documentation to explain what destinsrc is supposed to do, or the

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Made private in r69415. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2047 ___ ___

[issue2047] shutil.destinsrc returns wrong result when source path matches beginning of destination path

2009-02-07 Thread Senthil
Senthil orsent...@gmail.com added the comment: Thanks for the quick action. Really nice. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2047 ___ ___

[issue5122] test_tcl and test_ttk_guionly don't like each other

2009-02-07 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com added the comment: A bit cleaner patch. Added file: http://bugs.python.org/file12971/protect_tk_loading.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5122 ___

  1   2   >