Re: the secret life of zombies

2007-10-12 Thread jsnx
I fixed it myself -- I had to install a signal handler and use nested 'try-expect' stuff. The link points to the new version. -- http://mail.python.org/mailman/listinfo/python-list

Re: Observer implementation question ('Patterns in Python')

2007-10-12 Thread Stargaming
On Fri, 12 Oct 2007 16:55:05 -0700, James Stroud wrote: [snip] > The use of __iadd__ & __isub__ as described in the article allows a neat > shorthand, but does not function correctly in the context of new style > classes. > > James But still, this call on a descriptor:: obj.descr += val is

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Kay Schluehr
On Oct 13, 4:23 am, Massimo Di Pierro <[EMAIL PROTECTED]> wrote: > Hello everybody, > > I just joined this mailing list. Thanks for your comments about gluon. > > I have posted a short video about it and I am planning to make more > over the week-end. > > http://www.youtube.com/watch?v=VBjja6N6IYk

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Michele Simionato
On Oct 12, 10:23 pm, Massimo Di Pierro <[EMAIL PROTECTED]> wrote: > > P.S. Michele Simionato. I have heard your name before? Is it possible > we have met in Pisa in 1990-1996? I am also a Quantum Field Theorist > and there is not many of us. That is definitely possible, even if I don't remember yo

Re: Cross-platform GUI development

2007-10-12 Thread Michael L Torrie
Alexandre Badez wrote: > Personnaly, I use PyQt simply because I prefere Qt to Gtk, witch is > much more integrated with all desktop than Gtk. > In fact, your application in Qt on Mac, Win or Linux look like a > native app. Qt doesn't look very native on my desktop. In fact, Qt apps have always l

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Fernando Perez
Massimo Di Pierro wrote: > happy to hear that. > you may want take a loot at http://mdp.cti.depaul.edu/vqcd > It is mostly python stuff and will post the code soon. Ah, memories :) I'm not working on QCD anymore, but I did write a bunch of code a while back to script Mayavi (the old one, not the

Re: Creating a custom python python distribution

2007-10-12 Thread shailesh
Thanx a lot for all the pointers. I will certainly check into them. I actually wanted to know how do people create their own Python distribution like ASPN's Python or Enthought's Python. With regards, - Shailesh On Oct 2, 12:33 pm, azrael <[EMAIL PROTECTED]> wrote: > Maybe you should check the

Re: ElementTree find with xmlns

2007-10-12 Thread cakebread
On Oct 12, 8:35 pm, Rajarshi <[EMAIL PROTECTED]> wrote: > > You have to prefix the element name with its namespace. The following > will work > > >>> tree.find('{http://www.w3.org/1999/xhtml}body') > > http://www.w3.org/1999/xhtml}body at 779d28> > Pefect, thank you, Rajarshi! -- http://mail.py

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Massimo Di Pierro
happy to hear that. you may want take a loot at http://mdp.cti.depaul.edu/vqcd It is mostly python stuff and will post the code soon. Massimo On Oct 12, 2007, at 10:47 PM, Fernando Perez wrote: > Massimo Di Pierro wrote: > >> P.S. Michele Simionato. I have heard your name before? Is it possible

Re: Yet another comparison of Python Web Frameworks

2007-10-12 Thread Fernando Perez
Massimo Di Pierro wrote: > P.S. Michele Simionato. I have heard your name before? Is it possible > we have met in Pisa in 1990-1996? I am also a Quantum Field Theorist > and there is not many of us. More than you think, it seems. Some of us were even using python to process Lattice QCD computati

Re: ElementTree find with xmlns

2007-10-12 Thread Rajarshi
On Oct 12, 11:19 pm, cakebread <[EMAIL PROTECTED]> wrote: > I'm having problems parsing a file: > > >>> tree = ElementTree.fromstring(""" >>> xmlns="http://www.w3.org/1999/xhtml"; > >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; > >>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema

ElementTree find with xmlns

2007-10-12 Thread cakebread
I'm having problems parsing a file: >>> tree = ElementTree.fromstring("""http://www.w3.org/1999/xhtml"; >>> xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"; >>> xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"; >>> xmlns:dc="http://purl.org/dc/elements/1.1/"; >>> xmlns:foaf="http://x

Re: The fundamental concept of continuations

2007-10-12 Thread Paul Rubin
David Kastrup <[EMAIL PROTECTED]> writes: > There is a Scheme implementation (I keep forgetting the name) which > actually does both: it actually uses the call stack but never returns, > and the garbage collection includes the stack. That would be Chicken Scheme. http://en.wikipedia.org/wiki/Chic

Re: The fundamental concept of continuations

2007-10-12 Thread Rob Warnock
David Kastrup <[EMAIL PROTECTED]> wrote: +--- | George Neuner writes: | > Upward continuations can be stack implemented. On many CPU's, using | > the hardware stack (where possible) is faster than using heap | > allocated structures. For performance, some Scheme compilers go to | >

Yet another comparison of Python Web Frameworks

2007-10-12 Thread Massimo Di Pierro
Hello everybody, I just joined this mailing list. Thanks for your comments about gluon. I have posted a short video about it and I am planning to make more over the week-end. http://www.youtube.com/watch?v=VBjja6N6IYk About some of your comments: - the most complex modules (like html and sql

Re: raw_input() and utf-8 formatted chars

2007-10-12 Thread 7stud
On Oct 12, 2:43 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: > You mean literally!? Then of course I get A\xcc\x88 because that's what I > entered. In string literals in source code the backslash has a special > meaning but `raw_input()` does not "interpret" the input in any way. > Th

Re: test if email

2007-10-12 Thread Ben Finney
Florian Lindner <[EMAIL PROTECTED]> writes: > is there a function in the Python stdlib to test if a string is a > valid email address? Not to my knowledge. Florian Lindner <[EMAIL PROTECTED]> writes: > I was just asking for the correct syntax of the mail address. Well, you weren't actually (I

Re: Cross-platform GUI development

2007-10-12 Thread David Boddie
On Fri Oct 12 12:30:13 CEST 2007, Nick Craig-Wood wrote: > I'd recommend wxPython over those becase > > 1) native look and feel on all platforms > 2) doesn't require expensive licensing for non-commercial apps (QT) "Expensive" licensing is not required if you use the GNU General Public License (

Re: Observer implementation question ('Patterns in Python')

2007-10-12 Thread James Stroud
Anders Dahnielson wrote: > Sorry if this is a somewhat silly question... > > I'm using the Observer implementation found in 'Patterns in > Python' [1] and find it really neat. But, I have not yet fully groked > the new-style class, classic class and property differences involved. > So can somebody

Re: matching a street address with regular expressions

2007-10-12 Thread John Machin
On Oct 13, 4:32 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Oct 12, 8:19 am, John Machin <[EMAIL PROTECTED]> wrote: > > > "... most of the developed world" was the [very optimistic] request. > > How does it go with "JAPAN 112-0001 TOKYO Bunkyo-Ku Hakusan 4-Chome 3- > > 2" and will it give the

Re: Cantankerous trolliness ad infinitum, was: Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-12 Thread bbound
On Oct 10, 4:11 am, Matthias Buelow <[EMAIL PROTECTED]> wrote: > > Is this some sport of yours to constantly create new gmail accounts and > spam Usenet? I am not a spammer. You, however, *are* a liar. [snip remaining insults] [correct newsgroups: header after attempted hijacking to make my respo

Re: The Modernization of Emacs: terminology buffer and keybinding

2007-10-12 Thread bbound
On Oct 11, 5:40 pm, "John W. Kennedy" <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Do not bluntly contradict me in public. > > [insult deleted] > > [death threat deleted] Insults and other such falsehoods will be deleted rather than repeated and death threats will be reported to your

Re: decorating container types (Python 2.4)

2007-10-12 Thread James Stroud
I was thinking that only one longmeta is really needed and its not necessary to make a new metaclass at each go: from types import MethodType class longmeta(type): def __new__(cls, *args, **kwargs): if len(args) == 2: newcls = type.__new__(cls, args[1], (), {}) len_func = a

ANN: M2Crypto 0.18.2

2007-10-12 Thread Heikki Toivonen
M2Crypto is the most complete Python wrapper for OpenSSL featuring RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES); SSL functionality to implement clients and servers; HTTPS extensions to Python's httplib, urllib, and xmlrpclib; unforgeable HMAC'ing AuthCookies for web sessi

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, George Sakkis <[EMAIL PROTECTED]> wrote: > On Oct 12, 4:59 pm, brad <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> >> Hello, >> >> is there a function in the Python stdlib to test if a string is a valid >>

Observer implementation question ('Patterns in Python')

2007-10-12 Thread Anders Dahnielson
Sorry if this is a somewhat silly question... I'm using the Observer implementation found in 'Patterns in Python' [1] and find it really neat. But, I have not yet fully groked the new-style class, classic class and property differences involved. So can somebody please explain to me why this works

Re: test if email

2007-10-12 Thread Martin Marcher
2007/10/12, Grant Edwards <[EMAIL PROTECTED]>: > On 2007-10-12, Florian Lindner <[EMAIL PROTECTED]> wrote: > > > I was just asking for the correct syntax of the mail address. I know about > > the various problems actually impossibility to test for a live and valid > > address. > > Don't forget to a

Re: test if email

2007-10-12 Thread George Sakkis
On Oct 12, 4:59 pm, brad <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > >> Hello, > >> is there a function in the Python stdlib to test if a string is a valid > >> email address? > > here's a Perl re example... I don't know

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, Florian Lindner <[EMAIL PROTECTED]> wrote: > I was just asking for the correct syntax of the mail address. I know about > the various problems actually impossibility to test for a live and valid > address. Don't forget to allow uucp style "bang" addresses. :) -- Grant Edwards

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, brad <[EMAIL PROTECTED]> wrote: > Grant Edwards wrote: > >> If you send an e-mail to an address and you get a response, >> then it's valid. > > No response could be valid too. Right. A->B doesn't mean that !A -> !B -- Grant Edwards grante Yow! Did I

Re: test if email

2007-10-12 Thread Florian Lindner
[EMAIL PROTECTED] wrote: > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? >> >> Thanks, >> >> florian > > What do you mean? If you're just testing the construction of the email

Re: Problem with global

2007-10-12 Thread Florian Lindner
Larry Bates wrote: > Florian Lindner wrote: >> Hello, >> I have a little problem with the global statement. >> >> def executeSQL(sql, *args): >> try: >> import pdb; pdb.set_trace() >> cursor = db.cursor() # db is . >> [...] >> except: >> print "Problem con

Re: test if email

2007-10-12 Thread brad
[EMAIL PROTECTED] wrote: > On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? here's a Perl re example... I don't know whether to laugh or cry... don't try to replicate this in Pytho

Re: test if email

2007-10-12 Thread brad
Grant Edwards wrote: > If you send an e-mail to an address and you get a response, > then it's valid. No response could be valid too. The user may not respond. For automated tasks, I go with the no bounce method. When things start bouncing, do domething, but so long as they don't bounce do some

Re: Problem with global

2007-10-12 Thread Larry Bates
Florian Lindner wrote: > Hello, > I have a little problem with the global statement. > > def executeSQL(sql, *args): > try: > import pdb; pdb.set_trace() > cursor = db.cursor() # db is . > [...] > except: > print "Problem contacting MySQL database. Please c

Re: test if email

2007-10-12 Thread Grant Edwards
On 2007-10-12, brad <[EMAIL PROTECTED]> wrote: > Florian Lindner wrote: >> Hello, >> is there a function in the Python stdlib to test if a string is a valid >> email address? > > Nope, most any string with an @ in it could be a valid email addy. Send > a message to the addy, if it doesn't bounce,

Re: test if email

2007-10-12 Thread Tim Williams
On 12/10/2007, brad <[EMAIL PROTECTED]> wrote: > Florian Lindner wrote: > > Hello, > > is there a function in the Python stdlib to test if a string is a valid > > email address? > > Nope, most any string with an @ in it could be a valid email addy. Send > a message to the addy, if it doesn't bounce

Re: test if email

2007-10-12 Thread Tim Williams
On 12/10/2007, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? > You mean a valid SMTP email address? In reality, there isn't a way of doing this. But a good rule of thumb is if it hasn't got at least

Re: raw_input() and utf-8 formatted chars

2007-10-12 Thread Marc 'BlackJack' Rintsch
On Fri, 12 Oct 2007 13:18:35 -0700, 7stud wrote: > On Oct 12, 1:18 pm, [EMAIL PROTECTED] wrote: >> On Oct 12, 1:53 pm, 7stud <[EMAIL PROTECTED]> wrote: >> >> > s = 'A\xcc\x88' #capital A with umlaut >> > print s #displays capital A with umlaut >> >> > s = raw_input('Enter: ') #A\xcc\

Re: test if email

2007-10-12 Thread brad
Florian Lindner wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? Nope, most any string with an @ in it could be a valid email addy. Send a message to the addy, if it doesn't bounce, then it's valid. -- http://mail.python.org/mailman/listi

stderr is a lame hack?

2007-10-12 Thread Erik Jones
So, I was just taking a look at doctest.py and saw this: Then running the module as a script will cause the examples in the docstrings to get executed and verified: python M.py This won't display anything unless an example fails, in which case the failing example(s) and the cause(s) of the failu

Re: problem with wxPanel derivation class ~ thanks

2007-10-12 Thread Chris Mellon
On 10/12/07, <"@bag.python.org <"none> wrote: > none wrote: > > wxGlade created a simple Frame with a panel a sizer and 3 wxControls , > Thanks All, > I didn't make the super() call (java terminology) > to the base class. > > this is the only python group (en) on giganews, my first search > no

[Pyro] ConnectionClosedError

2007-10-12 Thread George Sakkis
Didn't have much luck with this in the Pyro mailing list so I am trying here, just in case. I have a Pyro server running as a daemon process and occasionally (typically after several hours or days of uptime) a ConnectionClosedError is raised when a client calls a remote method. Both client and serv

Re: Declarative properties

2007-10-12 Thread Chris Mellon
On 10/12/07, Dan Stromberg <[EMAIL PROTECTED]> wrote: > On Fri, 12 Oct 2007 09:42:28 +0200, Bruno Desthuilliers wrote: > > >>> So what? Otherwise you carry *always* the baggage of a public > >>> property and a private attribute whether you need this or not. At > >>> least for me it would be unnec

Re: Moving objects in Tkinter

2007-10-12 Thread Matt McCredie
On 10/12/07, Evjen Halverson <[EMAIL PROTECTED]> wrote: > I have tried to make a Tkinter program make a rectangle move down the > window, but did not succeed. All it does is make a rectangle trail. >What am I doing wrong? > > from Tkinter import* > root = Tk() > RectangleColor='orange' >

Re: raw_input() and utf-8 formatted chars

2007-10-12 Thread 7stud
On Oct 12, 1:18 pm, [EMAIL PROTECTED] wrote: > On Oct 12, 1:53 pm, 7stud <[EMAIL PROTECTED]> wrote: > > > s = 'A\xcc\x88' #capital A with umlaut > > print s #displays capital A with umlaut > > > s = raw_input('Enter: ') #A\xcc\x88 > > print s#displays A\xcc\x88 > >

Re: Declarative properties

2007-10-12 Thread Dan Stromberg
On Thu, 11 Oct 2007 18:42:16 +, Marc 'BlackJack' Rintsch wrote: >> The "baggage" of possibly fixing (AKA "generalizing") how your attributes >> are accessed is something you lug around while your deadline looms. > > Sorry I don't get it. If I want to customize the access to a "normal" > att

Re: test if email

2007-10-12 Thread kyosohma
On Oct 12, 2:55 pm, Florian Lindner <[EMAIL PROTECTED]> wrote: > Hello, > is there a function in the Python stdlib to test if a string is a valid > email address? > > Thanks, > > florian What do you mean? If you're just testing the construction of the email address string, then it's pretty easy. I

Re: Declarative properties

2007-10-12 Thread George Sakkis
On Oct 12, 2:55 pm, Dan Stromberg <[EMAIL PROTECTED]> wrote: > If you have a program that needs to perform well, you're much better off > coding your classes the best way you know how from a Software Engineering > perspective, and using pysco or shedskin or pypy or similar to > improve performance

test if email

2007-10-12 Thread Florian Lindner
Hello, is there a function in the Python stdlib to test if a string is a valid email address? Thanks, florian -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread jeremito
On Oct 12, 10:37 am, TYR <[EMAIL PROTECTED]> wrote: > On Oct 11, 4:17 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > > > jeremito wrote: > > > On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > >> jeremito wrote: > > >>> My Python script makes a bunch of images that I want to u

Moving objects in Tkinter

2007-10-12 Thread Evjen Halverson
I have tried to make a Tkinter program make a rectangle move down the window, but did not succeed. All it does is make a rectangle trail. What am I doing wrong? from Tkinter import* root = Tk() RectangleColor='orange' Background=tk_rgb = "#%02x%02x%02x" % (100, 255, 100) root.geometr

Re: matching a street address with regular expressions

2007-10-12 Thread Grant Edwards
On 2007-10-12, Grant Edwards <[EMAIL PROTECTED]> wrote: > On 2007-10-12, Paul McGuire <[EMAIL PROTECTED]> wrote: > >> If you've got an re that can handle everything from "123 Main" to >> "221B Baker Street" to "Hollywood and Vine" to "Lot 123, Hundred of >> Foughbarre", now THAT would be something.

Re: matching a street address with regular expressions

2007-10-12 Thread Grant Edwards
On 2007-10-12, Paul McGuire <[EMAIL PROTECTED]> wrote: > I've been to Japan and Europe too, and I can't even figure out > how many digits a phone number is supposed to have! I was shocked at utterly foreign and lost I felt looking at phone numbers in various places overseas. I could deal with ph

Re: matching a street address with regular expressions

2007-10-12 Thread Grant Edwards
On 2007-10-12, Paul McGuire <[EMAIL PROTECTED]> wrote: > If you've got an re that can handle everything from "123 Main" to > "221B Baker Street" to "Hollywood and Vine" to "Lot 123, Hundred of > Foughbarre", now THAT would be something. Don't forget street addresses like: The Low Cowsheds G

Re: raw_input() and utf-8 formatted chars

2007-10-12 Thread kyosohma
On Oct 12, 1:53 pm, 7stud <[EMAIL PROTECTED]> wrote: > s = 'A\xcc\x88' #capital A with umlaut > print s #displays capital A with umlaut > > s = raw_input('Enter: ') #A\xcc\x88 > print s#displays A\xcc\x88 > > print len(input) #9 > > It looks like every ch

Re: The fundamental concept of continuations

2007-10-12 Thread David Kastrup
George Neuner writes: > Yes and no. General continuations, as you describe, are not the > only form continuations take. Nor are they the most common form > used. The most common continuations are function calls and returns. > Upward one-shot continuations (exceptions or non-local returns) are

Re: problem with wxPanel derivation class ~ thanks

2007-10-12 Thread none
none wrote: > wxGlade created a simple Frame with a panel a sizer and 3 wxControls , > saticText, TextCtrl, and a Button. > > The resulting code works fine. > > Now the problem. > I wish to make a separate class derrived from wxPanel that has the sized > and controls as above. It jusst won't wor

Re: matching a street address with regular expressions

2007-10-12 Thread Paul McGuire
On Oct 12, 8:19 am, John Machin <[EMAIL PROTECTED]> wrote: > "... most of the developed world" was the [very optimistic] request. > How does it go with "JAPAN 112-0001 TOKYO Bunkyo-Ku Hakusan 4-Chome 3- > 2" and will it give the same result for "4-3-2 HAKUSAN BUNKYO-KU TOKYO > 112-1 JAPAN"? OK,

Re: Declarative properties

2007-10-12 Thread Dan Stromberg
On Fri, 12 Oct 2007 09:42:28 +0200, Bruno Desthuilliers wrote: >>> So what? Otherwise you carry *always* the baggage of a public >>> property and a private attribute whether you need this or not. At >>> least for me it would be unnecessary in most cases. >> >> That "baggage" of carrying around

raw_input() and utf-8 formatted chars

2007-10-12 Thread 7stud
s = 'A\xcc\x88' #capital A with umlaut print s #displays capital A with umlaut s = raw_input('Enter: ') #A\xcc\x88 print s#displays A\xcc\x88 print len(input) #9 It looks like every character of the string I enter in utf-8 is being interpreted literal

Problem with global

2007-10-12 Thread Florian Lindner
Hello, I have a little problem with the global statement. def executeSQL(sql, *args): try: import pdb; pdb.set_trace() cursor = db.cursor() # db is . [...] except: print "Problem contacting MySQL database. Please contact root." sys.exit(-1) db =

Re: Problem with MySQL cursor

2007-10-12 Thread Florian Lindner
Carsten Haese wrote: > On Fri, 2007-10-12 at 13:12 +0200, Florian Lindner wrote: >> Carsten Haese wrote: >> > sql = "INSERT INTO "+DOMAIN_TABLE+"("+DOMAIN_FIELD+") VALUES (%s)" >> > executeSQL(sql, domainname) >> >> Ok, I understand it and now it works, but why is limitation? Why can't I >> just

Re: How to set proxy in Python for flickr api

2007-10-12 Thread honestguy1999
On Oct 12, 2:40 pm, [EMAIL PROTECTED] wrote: > Hi, everyone, I am using beej's flickr api in Python. For some reason > I have to bypass the firewall using a proxy. I read the urllib > reference and set http_proxy="my proxy". But it didn't work. I can't > even get authenticated. Is there anyway that

How to set proxy in Python for flickr api

2007-10-12 Thread honestguy1999
Hi, everyone, I am using beej's flickr api in Python. For some reason I have to bypass the firewall using a proxy. I read the urllib reference and set http_proxy="my proxy". But it didn't work. I can't even get authenticated. Is there anyway that we can set the proxy? -- http://mail.python.org/ma

Re: Simple question about python logic.

2007-10-12 Thread Colin J. Williams
Tim Chase wrote: >> I have a file containing following data. But the dimension can be >> different. >> >> A B C D E F G >> 3 4 1 5 6 2 4 >> 7 2 4 1 6 9 3 >> 3 4 1 5 6 2 4 >> 7 2 4 1 6 9 3 >> . >> . >> . >> . >> >> What is the best approach to make a column vector with the name such >> as A B, etc?

Re: matching a street address with regular expressions

2007-10-12 Thread Paul McGuire
On Oct 12, 8:19 am, John Machin <[EMAIL PROTECTED]> wrote: > "... most of the developed world" was the [very optimistic] request. > How does it go with "JAPAN 112-0001 TOKYO Bunkyo-Ku Hakusan 4-Chome 3- > 2" and will it give the same result for "4-3-2 HAKUSAN BUNKYO-KU TOKYO > 112-1 JAPAN"? OK,

Re: PEP idea: Instrumented Python

2007-10-12 Thread Erik Jones
On Oct 12, 2007, at 12:10 PM, Jean-Paul Calderone wrote: > On Fri, 12 Oct 2007 11:33:11 -0500, Erik Jones <[EMAIL PROTECTED]> > wrote: >> [snip] >> >> This got me thinking about building a module that could be included >> by projects that creates a socket and responds to messages on that >> sock

Announcement: Project to get some CPython C extensions running under IronPython

2007-10-12 Thread Giles Thomas
The great thing about CPython is that it comes with the batteries included. The problem with IronPython is that some of these batteries just don't fit - in particular, most of the the C extensions don't work. We'd like to help fix at least some of this problem, to help people who use IronPyth

Re: Cross-platform GUI development

2007-10-12 Thread Dan Stromberg
On Fri, 12 Oct 2007 05:30:13 -0500, Nick Craig-Wood wrote: > 3) Isn't a pain to install on windows (GTK) pygtk is easy to install on windows if you use cygwin. I started developing a little ssh GUI frontend on a windows laptop using cygwin pygtk and cygwin openssh. When I moved it over to a Li

Re: Web Ontology Language (OWL) parsing

2007-10-12 Thread Tim Churches
Sean Davis wrote: > I would like to parse some OWL files, but I haven't dealt with OWL in > python or any other language for that matter. Some quick google > searches do not turn up much in the way of possibilities for doing so > in python. Any suggestions of available code or using existing > li

Re: Convert obejct string repr to actual object

2007-10-12 Thread Carsten Haese
On Fri, 2007-10-12 at 17:41 +0100, English, Mark wrote: > > From: Tor Erik Sønvisen > > Date: October 8th 2007 > > I've tried locating some code that can recreate an object from > > it's string representation... > On a related note I've wondered about this: > >>> class Foo(object): pass > >>> f =

Re: PEP idea: Instrumented Python

2007-10-12 Thread Jean-Paul Calderone
On Fri, 12 Oct 2007 11:33:11 -0500, Erik Jones <[EMAIL PROTECTED]> wrote: > [snip] > >This got me thinking about building a module that could be included >by projects that creates a socket and responds to messages on that >socket in a separate thread from the main app so that you can connect >to th

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread Daniel Fetchinson
> My Python script makes a bunch of images that I want to use as frames > in a movie. I've tried searching for a module that will take these > images and put them together in a Quicktime or mpeg movie, but haven't > found anything. My images are currently pdfs, but I could make them > into just a

Re: Convert obejct string repr to actual object

2007-10-12 Thread English, Mark
> From: Tor Erik Sønvisen > Date: October 8th 2007 > I've tried locating some code that can recreate an object from > it's string representation... On a related note I've wondered about this: >>> class Foo(object): pass >>> f = Foo() >>> s = repr(f) >>> s '<__main__.Foo object at 0x007CBAB0>' So

Re: RMI with Pyro et al

2007-10-12 Thread Diez B. Roggisch
Irmen de Jong schrieb: > Diez B. Roggisch wrote: > >> Go install cygwin (but not it's included python-interpreter, or at least >> make sure you have your python path properly under control) and then >> simply >> start the script from the command-line. And hit C-c if you need it to >> stop, >> an

Re: PEP idea: Instrumented Python

2007-10-12 Thread Erik Jones
On Oct 12, 2007, at 10:09 AM, Christopher Nelson wrote: > I was looking at adding dtrace-like dynamic tracing to Python. > Note that this isn't dtrace itself. The basic rationale: > > 1. A lot of enterprise-level software is written in Python. It is > difficult to impossible to reproduce th

Re: Cross-platform GUI development

2007-10-12 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: > > My question is if Tix is old hat, what is the GUI toolkit I *should* > be using for quick-n-dirty cross platform GUI development? I guess > this is tangentially related to: What widgets are you using in Tix? They may be available in BWidgets, Tablelist, or other scr

Re: Simple question about python logic.

2007-10-12 Thread Tim Chase
> I have a file containing following data. But the dimension can be > different. > > A B C D E F G > 3 4 1 5 6 2 4 > 7 2 4 1 6 9 3 > 3 4 1 5 6 2 4 > 7 2 4 1 6 9 3 > . > . > . > . > > What is the best approach to make a column vector with the name such > as A B, etc? There are a couple different

Re: Top 10 Caribbean island destinations

2007-10-12 Thread John McWilliams
[EMAIL PROTECTED] wrote: > lol :) another one on baseball : 90% of the game is physical, the > other half is mental. > > GS > [EMAIL PROTECTED] > > On Oct 11, 7:32 pm, willshak <[EMAIL PROTECTED]> wrote: >> on 10/11/2007 10:14 PM Audio expert said the following: >> >>> Now I know where NOT to go.

Re: Simple question about python logic.

2007-10-12 Thread Carl Banks
On Oct 12, 11:32 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > I have a file containing following data. But the dimension can be > different. > > A B C D E F G > 3 4 1 5 6 2 4 > 7 2 4 1 6 9 3 > 3 4 1 5 6 2 4 > 7 2 4 1 6 9 3 > . > . > . > . > > What is the best approach to make a column vecto

Re: Cross-platform GUI development

2007-10-12 Thread Grant Edwards
On 2007-10-12, Grant Edwards <[EMAIL PROTECTED]> wrote: > I use wxPython, because it uses Gtk on Linux, and Gtk is > "native" for both me and for my Windows users. I didn't state that very well. What I meant was that wxPython uses Gtk under Linux (which is native for me) so wxPython looks nati

Re: Cross-platform GUI development

2007-10-12 Thread Grant Edwards
On 2007-10-12, BlueBird <[EMAIL PROTECTED]> wrote: >> I'd recommend wxPython over those becase >> >> 1) native look and feel on all platforms Not true for KDE or other non-Gtk desktops. > You get it with PyQt as well. Not true for Gnome or other non-Qt desktops. There is no single "native look

Re: Cross-platform GUI development

2007-10-12 Thread Grant Edwards
On 2007-10-12, Alexandre Badez <[EMAIL PROTECTED]> wrote: > Personnaly, I use PyQt simply because I prefere Qt to Gtk, > witch is much more integrated with all desktop than Gtk. So you're claiming Qt is much more integrated with Gnome than Gtk? The mind wobbles. The Gnome and XFCE desktops are _

Re: pyserial doesn't recognize virtual serial port

2007-10-12 Thread Grant Edwards
On 2007-10-12, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > I am trying to use virtual serial ports to develop/test my serial > communication program. Running in to trouble... > > I am using com0com to create the virtual ports. The virtual ports > seem to be working fine when I test it

Simple question about python logic.

2007-10-12 Thread [EMAIL PROTECTED]
I have a file containing following data. But the dimension can be different. A B C D E F G 3 4 1 5 6 2 4 7 2 4 1 6 9 3 3 4 1 5 6 2 4 7 2 4 1 6 9 3 . . . . What is the best approach to make a column vector with the name such as A B, etc? -- http://mail.python.org/mailman/listinfo/python-list

Re: sorteddict PEP proposal [started off as orderedict]

2007-10-12 Thread Mark Summerfield
On 12 Oct, 09:17, Paul Rubin wrote: > Mark Summerfield <[EMAIL PROTECTED]> writes: > > Below is a PEP proposal for a sorteddict. ... > > Is this proposal dead? I'd been meaning to post some thoughts which I > still haven't gotten around to writing up, and am wondering wh

PEP idea: Instrumented Python

2007-10-12 Thread Christopher Nelson
I was looking at adding dtrace-like dynamic tracing to Python. Note that this isn't dtrace itself. The basic rationale: 1. A lot of enterprise-level software is written in Python. It is difficult to impossible to reproduce the customer environment in a test lab. Sometimes applications hang myst

Re: Error on base64.b64decode() ?!

2007-10-12 Thread Jean-Paul Calderone
On Fri, 12 Oct 2007 14:59:13 -, Christoph Krammer <[EMAIL PROTECTED]> wrote: >Hello everybody, > >I am using a python script to extract images from email messages. This >works fine for some messages, but not all attached images can be >decoded. I use the following code to decode the image and s

Error on base64.b64decode() ?!

2007-10-12 Thread Christoph Krammer
Hello everybody, I am using a python script to extract images from email messages. This works fine for some messages, but not all attached images can be decoded. I use the following code to decode the image and save it to a database: try: imagedec = base64.b64decode(imageenc) imagehash = md5.

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread TYR
On Oct 11, 4:17 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > jeremito wrote: > > On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> jeremito wrote: > >>> My Python script makes a bunch of images that I want to use as frames > >>> in a movie. I've tried searching for a module th

Re: Memory Problems in Windows 2003 Server

2007-10-12 Thread brad
amdescombes wrote: > Hi, > > I am using Python 2.5.1 > I have an application that reads a file and generates a key in a > dictionary for each line it reads. I have managed to read a 1GB file and > generate more than 8 million keys on an Windows XP machine with only 1GB > of memory and all works

Re: Memory Problems in Windows 2003 Server

2007-10-12 Thread brad
amdescombes wrote: > Hi, > > I am using Python 2.5.1 > I have an application that reads a file and generates a key in a > dictionary for each line it reads. I have managed to read a 1GB file and > generate more than 8 million keys on an Windows XP machine with only 1GB > of memory and all works

Re: decorating container types (Python 2.4)

2007-10-12 Thread George Sakkis
On Oct 11, 5:42 pm, [EMAIL PROTECTED] wrote: > Hi, > > I have a container class A and I want to add functionality to it by > using a decorator class B, as follows: > > class A(object): > def __len__(self): > return 5 > > class B(object): > def __init__(self, a): > self._a =

Subprocess Running Slowly

2007-10-12 Thread Robert Rawlins - Think Blue
Hello Guys, I'm looking for a little advice on spawning a sub process to run a command line application for transferring a file over Bluetooth. Now the spawned process runs from start to finish exactly as I would expect it too, however its very slow. Now the main reason this is so odd, is

Re: Declarative properties

2007-10-12 Thread Stargaming
On Thu, 11 Oct 2007 18:58:44 +0200, Bruno Desthuilliers wrote: [snip] Your implementation seems particularly broken. You do not return anything from `name()`, hereby removing name as an attribute (or: replacing it with its return value -- None). You should return ``property(**locals()) `` (or ``

Re: Cross-platform GUI development

2007-10-12 Thread Peter Decker
On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > My question is if Tix is old hat, what is the GUI toolkit I *should* > be using for quick-n-dirty cross platform GUI development? I would heartily recommend Dabo (http://dabodev.com). It wraps the wxPython toolkit, but eliminates 99% of

Re: Traceback (most recent call last): PROBLEM

2007-10-12 Thread Peter Otten
smarras wrote: > Hello everyone, I keep obtaining an error message whenever I execute some > very simple routines; the error that follows says that I am calling > certain functions that, in reality, I am not calling from any of the > routines that I wrote: > > error: > >> python fwrite_mat.py >

Memory Problems in Windows 2003 Server

2007-10-12 Thread amdescombes
Hi, I am using Python 2.5.1 I have an application that reads a file and generates a key in a dictionary for each line it reads. I have managed to read a 1GB file and generate more than 8 million keys on an Windows XP machine with only 1GB of memory and all works as expected. When I use the same

Re: problem with wxPanel derivation class

2007-10-12 Thread kyosohma
On Oct 11, 4:01 pm, "Chris Mellon" <[EMAIL PROTECTED]> wrote: > On 10/11/07, <"@bag.python.org <"none> wrote:> wxGlade created a simple Frame > with a panel a sizer and 3 wxControls , > > saticText, TextCtrl, and a Button. > > > > > It seems as though the complaint is that a 'wxWindow *' is expe

  1   2   >