Re: Error with Simplemapi.py

2007-08-26 Thread Gabriel Genellina
En Mon, 27 Aug 2007 03:05:30 -0300, Mick Duprez <[EMAIL PROTECTED]> escribi�: > Thank you very much Gabriel, changing the NULL to None did the trick > (it also helps if I reload the changed module after editing!:( ). Glad to see it worked. > Yes > that is an old script and I will look into you

Re: Error with Simplemapi.py

2007-08-26 Thread Mick Duprez
On Aug 27, 2:00 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 24 Aug 2007 04:03:05 -0300, Mick Duprez <[EMAIL PROTECTED]> > escribi?: > > > I have a small problem. I get an error I don't know how to resolve, > > any help would be much appreciated. > > I'm using Python25 on winXP pro

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you. I figured the set would probably be faster, but the lists are small, and I'm concerned that the code is going to look Byzantine if I keep swapping between lists, sets and dictionaries :~). At the moment there are no sets or dictionaries in the entire code base I am working with. I'm not

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you. Steve. "Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > bambam <[EMAIL PROTECTED]> wrote: > >> Is it safe to write >> >> A = [x for x in A if x in U] >> >> or is that undefined? I understand that the slice operation > > It's perfectly safe and well-defined

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Alex Martelli wrote: > hg <[EMAIL PROTECTED]> wrote: >... >> I am looking for a free subversion server resource to put the code ... >> if you know of any. > > Check out code.google.com -- it has a hosting service for open source > code, too, these days (and it IS subversion). > > > Alex Wil

Re: ANN: SCF released to GPL

2007-08-26 Thread hg
hg wrote: > Dear all, > > I am releasing much of my work including SCF (Cross platform Smart Card > library & Tools written in Python) to the GPL license. > > If interested, go to http://www.SnakeCard.com/Source.html > > I am moving the doc to doxygen and cleaning up the code, so what you'll see

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Paul Rubin wrote: > hg <[EMAIL PROTECTED]> writes: >> I am looking for a free subversion server resource to put the code >> ... if you know of any. > > Does it have to be SVN? I think Savannah and Sourceforge both still > use CVS. I'm not sure what Launchpad uses. I guess if necessary I > could

Re: ANN: SCF released GPL

2007-08-26 Thread Alex Martelli
hg <[EMAIL PROTECTED]> wrote: ... > I am looking for a free subversion server resource to put the code ... > if you know of any. Check out code.google.com -- it has a hosting service for open source code, too, these days (and it IS subversion). Alex -- http://mail.python.org/mailman/listinfo

Re: ANN: SCF released GPL

2007-08-26 Thread Paul Rubin
hg <[EMAIL PROTECTED]> writes: > I am looking for a free subversion server resource to put the code > ... if you know of any. Does it have to be SVN? I think Savannah and Sourceforge both still use CVS. I'm not sure what Launchpad uses. I guess if necessary I could set up a subversion repo for

Re: wxpython thread exception crash

2007-08-26 Thread [david]
class RedirectText: def __init__(self,aWxTextCtrl): self.out=aWxTextCtrl def write(self,string): wx.CallAfter(self.out.WriteText,string) #CallAfter def flush(self): pass [david] [david] wrote: > What am I doing wrong? > I'm trying to capture std

RE: Parser Generator?

2007-08-26 Thread Ryan Ginstrom
> On Behalf Of Paul McGuire > > On Aug 26, 8:05 pm, "Ryan Ginstrom" <[EMAIL PROTECTED]> wrote: > > The only caveat being that since Chinese and Japanese scripts don't > > typically delimit "words" with spaces, I think you'd have > to pass the > > text through a tokenizer (like ChaSen for Japane

ANN: SCF released to GPL

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library & Tools written in Python) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in the

ANN: SCF released GPL

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library & Tools written in Python) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in th

Re: beginner, idiomatic python

2007-08-26 Thread Paul Rubin
"bambam" <[EMAIL PROTECTED]> writes: > Is it safe to write > A = [x for x in A if x in U] > or is that undefined? I understand that the slice operation > can be used to make a temporary copy, so I could write > A=[x for x in A[:] if x in U] > but I've just copied that without any understanding. Yo

Re: how to remove number

2007-08-26 Thread Gabriel Genellina
En Tue, 21 Aug 2007 06:18:26 -0300, susanti marsol <[EMAIL PROTECTED]> escribi�: > how to remove all number in our's document? Can you be more specific? -- Gabriel Genellina -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner, idiomatic python

2007-08-26 Thread Alex Martelli
bambam <[EMAIL PROTECTED]> wrote: ... > Bags don't seem to be built in to my copy of Python, and A "bag" is a collections.defaultdict(int) [[you do have to import collections -- it's in the standard library, NOT built-in]]. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner, idomatic python 2

2007-08-26 Thread bambam
Thank you. I didn't reply earlier because I was trying to get my head around what you wrote, which was strange and foreign to me. It seems to me that the dictionary object you suggested is a direct replacement for the function code, only more efficient because the case table is internalised with a

Re: beginner, idiomatic python

2007-08-26 Thread Alex Martelli
bambam <[EMAIL PROTECTED]> wrote: > Is it safe to write > > A = [x for x in A if x in U] > > or is that undefined? I understand that the slice operation It's perfectly safe and well-defined, as the assignment rebinds the LHS name only AFTER the RHS list comprehension is done. Alex -- http://

Re: Error with Simplemapi.py

2007-08-26 Thread Gabriel Genellina
En Fri, 24 Aug 2007 04:03:05 -0300, Mick Duprez <[EMAIL PROTECTED]> escribi�: > I have a small problem. I get an error I don't know how to resolve, > any help would be much appreciated. > I'm using Python25 on winXP pro and the script from the link above. > Here's the error - > mailtest.Sen

Re: Parser Generator?

2007-08-26 Thread Steven Bethard
Paul McGuire wrote: > On Aug 26, 8:05 pm, "Ryan Ginstrom" <[EMAIL PROTECTED]> wrote: >> The only caveat being that since Chinese and Japanese scripts don't >> typically delimit "words" with spaces, I think you'd have to pass the text >> through a tokenizer (like ChaSen for Japanese) before using Py

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Is it safe to write A = [x for x in A if x in U] or is that undefined? I understand that the slice operation can be used to make a temporary copy, so I could write A=[x for x in A[:] if x in U] but I've just copied that without any understanding. Steve. "bambam" <[EMAIL PROTECTED]> wrote in

Re: Parser Generator?

2007-08-26 Thread Paul McGuire
On Aug 26, 8:05 pm, "Ryan Ginstrom" <[EMAIL PROTECTED]> wrote: > > On Behalf Of Jason Evans > > Parsers typically deal with tokens rather than individual > > characters, so the scanner that creates the tokens is the > > main thing that Unicode matters to. I have written > > Unicode-aware scanners

how setup a dll file as a module?

2007-08-26 Thread smalltalk
in arcgis , arcgisscripting is a dll file there is a script as following: import arcgisscripting gp = arcgisscripting.create() why can the script run? how can we setup a dll file as a module? -- http://mail.python.org/mailman/listinfo/python-list

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you, I have been through the tutorial several times, I guess I'm just not smart enough. Python is quite different from the languages I am familiar with. My code sample started like this: >>for i in range(self.parent.GetPageCount()): I was asked: >Does page count change? i.e. is it necessa

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Thank you, I have been through the tutorial several times, I guess I'm just not smart enough. Perhaps I have been led astray by what I read here? My code started like this: for i in range(self.parent.GetPageCount()): I was asked: >Does page count change? i.e. is it necessary to retrieve it in e

Re: beginner, idiomatic python

2007-08-26 Thread Scott David Daniels
bambam wrote: > That is, is it defined what Python does for > for i in f() > I'm sure it must be, but I haven't seen it yet. If I have > a user defined function returning a range, is it defined > that the range function is called on every loop? If I > have a function returning a range taking a

Re: beginner, idiomatic python

2007-08-26 Thread Gabriel Genellina
En Sun, 26 Aug 2007 22:58:35 -0300, bambam <[EMAIL PROTECTED]> escribi�: > Ok, many environments are capable of cached evaluation > of functions without variable parameters so > range(5) > is cached, but > range(v) is re-evaluated every time. Is this defined > behaviour? The range builtin

Re: make images with python

2007-08-26 Thread Steve Holden
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Boris > Borcic wrote: > >> Lawrence Oluyede wrote: >> >>> stefano <[EMAIL PROTECTED]> wrote: I need make some images using python but i'm lost :P >>> >>> >> If you want to do antialiased dra

Re: beginner, idiomatic python

2007-08-26 Thread bambam
Ok, many environments are capable of cached evaluation of functions without variable parameters so range(5) is cached, but range(v) is re-evaluated every time. Is this defined behaviour? That is, is it defined what Python does for for i in f() I'm sure it must be, but I haven't seen it

Re: beginner, idiomatic python

2007-08-26 Thread bambam
c = sorted(set(a)-set(b)) although for me :~( that is another step more obscure than c = list(set(a)-set(b)) c.sort() Bags don't seem to be built in to my copy of Python, and although I'm interested in why lists don't support the difference operation, I don't want to get away from standard Pyth

Re: beginner, idiomatic python

2007-08-26 Thread bambam
That looks good, and perhaps a difference operator would be too simple to be useful anyway. Steve. "Mikael Olofsson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > bambam wrote: >> >> In this case it doesn't matter - my lists don't contain >> duplicate elements this time - but

RE: Parser Generator?

2007-08-26 Thread Ryan Ginstrom
> On Behalf Of Jason Evans > Parsers typically deal with tokens rather than individual > characters, so the scanner that creates the tokens is the > main thing that Unicode matters to. I have written > Unicode-aware scanners for use with Parsing-based parsers, > with no problems. This is pret

RE: Using Regular Expresions to change .htm to .php in files

2007-08-26 Thread Ryan Ginstrom
> On Behalf Of Mark > This line should be: > > sed "s/\.htm$/.php/g" < $each > /tmp/$$ I think a more robust way to go about this would be: (1) Use os.walk to walk through the directory http://docs.python.org/lib/os-file-dir.html (2) Use Beautiful Soup to extract the internal links from each

Re: Co-developers wanted: document markup language

2007-08-26 Thread bambam
> virtually the only ones that feel the need to rub our nationality into I'd always assumed (I never spent much time) that Germans were another culture that had the habit of greeting groups on entrance. Australians, English, and most of North America just don't have that habit. Steve. "Wildemar

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread Luis M . González
On Aug 26, 5:52 am, Devraj <[EMAIL PROTECTED]> wrote: > Thanks > > On Aug 26, 5:26 pm, EuGeNe Van den Bulke > > <[EMAIL PROTECTED]> wrote: > > Devraj wrote: > > > My application uses MySQL as a backend and am using the MySQL/Python > > > bindings. Are there any libraries that provide a database abs

Re: SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Paul Rubin wrote: > hg <[EMAIL PROTECTED]> writes: >> I am releasing much of my work including SCF (Cross platform Smart >> Card library & Tools) to the GPL license. >> >> If interested, go to http://www.SnakeCard.com/Source.html > > Wow, that is great. I haven't found any low cost programmable c

Re: Parser Generator?

2007-08-26 Thread Jack
Thanks Json. There seem to be a few options that I can pursue. Having a hard time chooing one now :) "Jason Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 24, 1:21 pm, "Jack" <[EMAIL PROTECTED]> wrote: >> "Jason Evans" <[EMAIL PROTECTED]> wrote in message >> >htt

Re: SCF (Python Smar Card Framework)

2007-08-26 Thread Paul Rubin
hg <[EMAIL PROTECTED]> writes: > I am releasing much of my work including SCF (Cross platform Smart > Card library & Tools) to the GPL license. > > If interested, go to http://www.SnakeCard.com/Source.html Wow, that is great. I haven't found any low cost programmable cards (no large quantity pur

SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library & Tools) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in the course of the ne

Re: Parser Generator?

2007-08-26 Thread Jack
Good to know, thanks Paul. ! "Paul McGuire" <[EMAIL PROTECTED]> wrote in message > Pyparsing was already mentioned once on this thread. Here is an > application using pyparsing that parses Chinese characters to convert > to English Python. > > http://pypi.python.org/pypi/zhpy/0.5 > > -- Paul -

Re: YOU MUST KNOW THIS MAN

2007-08-26 Thread James Stroud
Would Muhammad, peace and blessings be upon him, want his followers to kill in his name? I know that other prophets would not. -- http://mail.python.org/mailman/listinfo/python-list

Re: my parser.py isn't imported

2007-08-26 Thread Torsten Bronger
Hallöchen! John Machin writes: > On Aug 27, 1:36 am, Torsten Bronger <[EMAIL PROTECTED]> > wrote: > >> I have a module parser.py in the same directory as the main >> module. In the main module, I import "parser". On Linux, this >> works as expected, however on Windows, it imports the stdlib >>

Re: my parser.py isn't imported

2007-08-26 Thread John Machin
On Aug 27, 1:36 am, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > I have a module parser.py in the same directory as the main module. > In the main module, I import "parser". On Linux, this works as > expected, however on Windows, it imports the stdlib parser module. > sys.path[0] po

Re: pySerial in a daemon process

2007-08-26 Thread paul
On Aug 26, 5:20 pm, Bjoern Schliessmann wrote: > paul wrote: > > If I put these back in and try to run the daemon, the script fails > > when I try to connect to the serial port, with this error: > > serial.serialutil.SerialException: Could not open port: [Errno 13] > > Permission denied: '/dev/tty

Re: New UI Toolkit

2007-08-26 Thread Richard Jones
Gerdus van Zyl wrote: > I am halfway to a first release of a new GUI library for python. It > will be cross platform and follows the Swing philosophy of user > experience and interface fidelity above "but it doesn't look like > windows!" (aside: neither does office 2007 or windowsmediaplayer). > >

Re: Debugging a curses application in python

2007-08-26 Thread [EMAIL PROTECTED]
Just to let anyone know who runs across this post, winpdb from (http:// www.digitalpeers.com/pythondebugger/) solved my issue. --Chris -- http://mail.python.org/mailman/listinfo/python-list

Re: pySerial in a daemon process

2007-08-26 Thread Bjoern Schliessmann
paul wrote: > If I put these back in and try to run the daemon, the script fails > when I try to connect to the serial port, with this error: > serial.serialutil.SerialException: Could not open port: [Errno 13] > Permission denied: '/dev/ttyS0' Did you check the permissions on this file? Often yo

Re: Parser Generator?

2007-08-26 Thread Jason Evans
On Aug 24, 1:21 pm, "Jack" <[EMAIL PROTECTED]> wrote: > "Jason Evans" <[EMAIL PROTECTED]> wrote in message > >http://www.canonware.com/Parsing/ > > Thanks Jason. Does Parsing.py support Unicode characters (especially CJK)? > I'll take a look. Parsers typically deal with tokens rather than indi

pySerial in a daemon process

2007-08-26 Thread paul
I am writing a daemon process that reads data from the serial port / dev/ttyS0. I am using pyserial & the method for setting up a daemon described in "Chris' Python Page" (http://homepage.hispeed.ch/py430/ python/) on an Ubuntu linux pc. Everything works great EXCEPT... in the daemon script, the

Re: New UI Toolkit

2007-08-26 Thread Gerdus van Zyl
> But I'm afraid with the Swing-like interface, i.e : did you use the same > widget positionning ? Not sure what you mean, but each parent widget is responsible for rendering and positioning the children. Can use layout managers, two currently absolute and simple flow. ( In the screenshot, the

Re: Joining Big Files

2007-08-26 Thread mcl
On 26 Aug, 15:45, vasudevram <[EMAIL PROTECTED]> wrote: > On Aug 26, 6:48 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > > On Aug 25, 8:15 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > On Aug 25, 4:57 am,mosscliffe<[EMAIL PROTECTED]> wrote: > > > > > I have 4 text files each approx 50mb.

the del function

2007-08-26 Thread Lamonte Harris
import random constant_array = "" red = blue = grey = black = 0 r1 = r2 = r3 = r4 = 1 blu1 = blu2 = blu3 = blu4 = 2 g1 = g2 = g3 = g4 = 3 bla1 = bla2 = bla3 = bla4 = 4 single_players = [r1,r2,r3,r4,blu1,blu2,blu3,blu4,bla1,bla2,bla3,bla4,g1,g2,g3,g4] _red = [1,1,1,1] #print random.randint(0,10 #red

Re: New UI Toolkit

2007-08-26 Thread tool69
Gerdus van Zyl a écrit : Seems very promising. But I'm afraid with the Swing-like interface, i.e : did you use the same widget positionning ? -- http://mail.python.org/mailman/listinfo/python-list

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
On Aug 26, 7:40 pm, Michele Simionato <[EMAIL PROTECTED]> wrote: > On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: > > > Hi, > > to extend my skills, I am learning python. I have written small > > program which computes math expression like "1+2*sin(y^10)/cos(x*y)" > > and similar, so far only + - *

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread [EMAIL PROTECTED]
Michele Simionato wrote: > On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: > > Hi, > > to extend my skills, I am learning python. I have written small > > program which computes math expression like "1+2*sin(y^10)/cos(x*y)" > > and similar, so far only + - * / ^ sin con tan sqrt are supported. But >

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread Michele Simionato
On Aug 26, 5:56 pm, [EMAIL PROTECTED] wrote: > Hi, > to extend my skills, I am learning python. I have written small > program which computes math expression like "1+2*sin(y^10)/cos(x*y)" > and similar, so far only + - * / ^ sin con tan sqrt are supported. But > my program is quite inextensible,

Re: New UI Toolkit

2007-08-26 Thread Lawrence Oluyede
Gerdus van Zyl <[EMAIL PROTECTED]> wrote: > Please reply and let your thoughts be known. Is there a need for a new > GUI library for python? I think there's no real point in answering this question. You developed a new toolkit because, I'm guessing, you are not fully satisfied by the current ones.

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
Thanks a lot for comments! I am going to fix the source according to your advices ;) Nep On Aug 26, 6:32 pm, Steven D'Aprano <[EMAIL PROTECTED] THIScybersource.com.au> wrote: > On Sun, 26 Aug 2007 15:56:08 +, neptundancer wrote: > > Hi, > > to extend my skills, I am learning python. I have

New UI Toolkit

2007-08-26 Thread Gerdus van Zyl
Hi I am halfway to a first release of a new GUI library for python. It will be cross platform and follows the Swing philosophy of user experience and interface fidelity above "but it doesn't look like windows!" (aside: neither does office 2007 or windowsmediaplayer). The library is built on top o

Re: lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread Steven D'Aprano
On Sun, 26 Aug 2007 15:56:08 +, neptundancer wrote: > Hi, > to extend my skills, I am learning python. I have written small > program which computes math expression like "1+2*sin(y^10)/cos(x*y)" and > similar, so far only + - * / ^ sin con tan sqrt are supported. But my > program is quite in

ANN: PyPE 2.8.6

2007-08-26 Thread Josiah Carlson
=== What is PyPE? === PyPE (Python Programmers' Editor) was written in order to offer a lightweight but powerful editor for those who think emacs is too much and idle is too little. Syntax highlighting is included out of the box, as is multiple open documents via tabs. Beyond the basic functional

lisper learning python, ... could you please comment my first python program?

2007-08-26 Thread neptundancer
Hi, to extend my skills, I am learning python. I have written small program which computes math expression like "1+2*sin(y^10)/cos(x*y)" and similar, so far only + - * / ^ sin con tan sqrt are supported. But my program is quite inextensible, I have to change the code to add new functions... Could

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Steven D'Aprano
On Sun, 26 Aug 2007 07:55:39 -0400, Steven W. Orr wrote: > In fact, I wanted to make a common routine that could be called from > multiple modules. I have classes that need to be created from those > multiple modules. I did run into trouble when I created a common routine > even though I passed gl

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Alex Martelli
Steven W. Orr <[EMAIL PROTECTED]> wrote: ... > =>accepts whatever dictionary you give it (so you can, though shouldn't, > =>do strange things such as pass globals()...:-). > > In fact, I wanted to make a common routine that could be called from > multiple modules. I have classes that need to b

my parser.py isn't imported

2007-08-26 Thread Torsten Bronger
Hallöchen! I have a module parser.py in the same directory as the main module. In the main module, I import "parser". On Linux, this works as expected, however on Windows, it imports the stdlib parser module. sys.path[0] points to the directory of my parser.py in both cases. What went wrong here?

Re: Joining Big Files

2007-08-26 Thread vasudevram
On Aug 26, 6:48 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > On Aug 25, 8:15 pm, Paul McGuire <[EMAIL PROTECTED]> wrote: > > > > > On Aug 25, 4:57 am, mosscliffe <[EMAIL PROTECTED]> wrote: > > > > I have 4 text files each approx 50mb. > > > 50mb? Really? Did you actually try this and find out it

Kinterbasdb needs new maintainer

2007-08-26 Thread DarkBlue
Sorry to interrupt the regular programming here . As has been reported on some websites the maintainer of kinterbasdb David Rushby has died last month after a diving accident. Kinterbasdb is the python wrapper around the Firebird database api and an excellent opensource project. The hope is , th

wxpython on FreeBSD 6.2 broken

2007-08-26 Thread Michael S
Good day all, I was wondering if anyone was using the latest wxpython on FreeBSD 6. I just installed it yesterday as well as wxGlade. wxGlade doesn't function properly - it does not display any controls. I then tried some simple examples from the web and half of them don't work. Anyone aware of t

Re: How can I use python for file processing

2007-08-26 Thread Ricardo Aráoz
Marc 'BlackJack' Rintsch wrote: > On Sun, 26 Aug 2007 06:05:11 +, [EMAIL PROTECTED] wrote: > >> I am trying to use python for file processing. >> Suppose I have a file like this: >> I want to build a Hashmap between the line "begin_QOS_statistics" and >> "end_QOS_statistics" >> and for each li

Re: Need a better understanding on how MRO works?

2007-08-26 Thread Steven W. Orr
On Saturday, Aug 25th 2007 at 22:14 -0700, quoth Alex Martelli: =>Steven W. Orr <[EMAIL PROTECTED]> wrote: =>> * Also, I'd like to understand what the difference is between =>> nclass = new.classobj(name,(D1,),globals()) =>> vs. =>> def classfactory(): =>> class somename(object):

Re: Python error on Mac

2007-08-26 Thread Graham Dumpleton
On Aug 26, 12:58 pm, Clover <[EMAIL PROTECTED]> wrote: > When trying to do some things on my Mac (starting Lyx, compiling Latex > via TextMate) I get this error: > > python: execv: > /Library/Frameworks/Python.framework/Versions/2.5/Resources/Python.app/Contents/MacOS/Python: > No such file or dire

Re: Using Regular Expresions to change .htm to .php in files

2007-08-26 Thread Mark
On Thu, 23 Aug 2007 12:27:10 -0700, Tobiah wrote: > sed "s/.htm/.php/g" < $each > /tmp/$$ This line should be: sed "s/\.htm$/.php/g" < $each > /tmp/$$ -- http://mail.python.org/mailman/listinfo/python-list

Re: expat error, help to debug?

2007-08-26 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Andreas Lobinger wrote: > Anyone any idea where the error is produced? Do you want to try adding an EndElementHandler as well, just to get more information on where the error might be happening? -- http://mail.python.org/mailman/listinfo/python-list

Re: Making a file-like object for manipulating a large file

2007-08-26 Thread Lawrence D'Oliveiro
In message <[EMAIL PROTECTED]>, Sean Davis wrote: > I have a VERY large file that I would > like to load a line at a time, do some manipulations on it, and then > make it available to as a file-like object for use as input to a > database module (psycopg2) that wants a file-like object (with read

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread Devraj
Thanks On Aug 26, 5:26 pm, EuGeNe Van den Bulke <[EMAIL PROTECTED]> wrote: > Devraj wrote: > > My application uses MySQL as a backend and am using the MySQL/Python > > bindings. Are there any libraries that provide a database abstraction > > layer like Activerecords for Python?' > > SQLObject > SQ

A online python decompiler

2007-08-26 Thread shi wu
depython [http://www.depython.net depython online service] could decompile python bytecodes. Depython online service supports Python versions from 2.4up to 2.5.You can freely test its function online. -- http://mail.python.org/mailman/listinfo/python-list

Re: ActiveRecord for Python/MySQL

2007-08-26 Thread EuGeNe Van den Bulke
Devraj wrote: > My application uses MySQL as a backend and am using the MySQL/Python > bindings. Are there any libraries that provide a database abstraction > layer like Activerecords for Python?' SQLObject SQLAclhemy DejaVu Storm Google for Python ORM you may find more! EuGeNe -- http://www.3kw