Re: Polymorphism using constructors

2008-03-03 Thread castironpi
On Mar 3, 4:03 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > On Mar 3, 4:17 pm, Raymond Hettinger <[EMAIL PROTECTED]> wrote: > > > Since Python doesn't support having two methods with the same name, > > the usual solution is to provide alternative constructors using > > classmethod(): > > >   @classm

XML Schema validation in Python

2008-03-03 Thread Medhat . Gayed
I tested and tried a few XML validators but none of them is able to successfully validate a string of xml (not a file just a string) to programatically be able to validate messages of xml that flow in and out of the different systems. The validators I used were XSV, oNVDL and lxml, can we implemen

Re: pySQLite Insert speed

2008-03-03 Thread mmm
> > Hence (if I understand python convention), this can be > > solved by adding > > sqlx= copy.copy(sqlx) > > before the looping. And in tests adding this step saved about 5-10% in > > time. > > Now this I don;t really understand at all. What's the point of trying to > replace sqlx with a copy of

Re: metaclasses

2008-03-03 Thread Benjamin
On Mar 3, 7:12 pm, [EMAIL PROTECTED] wrote: > What are metaclasses? Depends on whether you want to be confused or not. If you do, look at this old but still head bursting essay: http://www.python.org/doc/essays/metaclasses/. Basically, the metaclass of a (new-style) class is responsible for crea

Re: 'normal' shell with curses

2008-03-03 Thread Miki
Hello Michael, > I'm trying to print out text in color. As far as I know, curses is the > only way to do that (or not?). On unix, every XTerm compatible terminal will be able to display color using escape sequence. (Like the one you see in the output of 'grep --color') See the shameless plug in h

Re: pySQLite Insert speed

2008-03-03 Thread Steve Holden
mmm wrote: >>> Hence (if I understand python convention), this can be >>> solved by adding >>> sqlx= copy.copy(sqlx) >>> before the looping. And in tests adding this step saved about 5-10% in >>> time. >> Now this I don;t really understand at all. What's the point of trying to >> replace sqlx with

Re: RELEASED Python 2.6a1 and 3.0a3

2008-03-03 Thread Terry Reedy
"Tim Roberts" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Kay Schluehr <[EMAIL PROTECTED]> wrote: | >"The master said so" isn't an entirely satisfying answer. | | Nevertheless, it IS the answer for many questions in the Python world. But not for the questions about 2to3 Curren

cron popen xen-create-image

2008-03-03 Thread Christian Kortenhorst
Hey just wondering could anyone help me Have script that runs through cron but seams to run but xen-create-image goes to end but shoes up errors because some stuff it not being passed. ./grabJob.py # RUN all the Create ENVIRONMNET commands here run="/usr/bin/xen-create-image --

download students tutorials,ebooks,softwares here for Free!!!!

2008-03-03 Thread priya4u
download students tutorials,ebooks,softwares here for Free Download Softwares Ebooks Students tutorials Games Ring tones Wallpapers and Lots of fun everything for FREE only at www.studentshangout.com -- http://mail.python.org/mailman/listinfo/python-list

Re: tools to install not in python tree?

2008-03-03 Thread Miki
Hello Jim, > I have some materials for a project that I am working on that I keep > in a source code control system (svn now, but I'm experimenting with > mercurial).  I want to install these things from the repository, but > not into site-packages/ as Distutils wants to do. > > For instance there

Earn from home

2008-03-03 Thread ragu
Today, We are earning upto Rs.20,000 every month from internet without working hard and spending only 30 min daily in the internet. This Income is keep on increasingday by day.We are not joking. We are not making any false statement. It's 100% true ! http://eanrfromyourhome.blogspot.com -- ht

Re: sympy: what's wrong with this picture?

2008-03-03 Thread Erik Max Francis
Mensanator wrote: > While we're on the subject of English, the word "worthless" > means "has no value". So, a program that doesn't work would > generally be "worthless". One that not only doesn't work but > creates side effects that cause other programs to not work > (which don't have bugs) would

Command line arguments in Windows

2008-03-03 Thread Mike Walker
I am having some problems with command line arguments in Windows. The same code under Linux works fine. In Windows I only get one argument no matter how many arguments are passed on the command line. I think there is some problem with the way the .py files are associated causing this. I'm just

Re: Command line arguments in Windows

2008-03-03 Thread Mike Walker
> If you run a python file, ie. just double clicking it the only > argument you will have will be the filename of the script. If you > create a shortcut to the script and in the target box add your > arguments (if you have quotation marks place them after not inside) > you will see your arguments

Re: 'normal' shell with curses

2008-03-03 Thread Michael Goerz
Miki wrote, on 03/03/2008 11:14 PM: > Hello Michael, > >> I'm trying to print out text in color. As far as I know, curses is the >> only way to do that (or not?). > On unix, every XTerm compatible terminal will be able to display color > using escape sequence. > (Like the one you see in the output

Re: Command line arguments in Windows

2008-03-03 Thread Chris
On Mar 4, 7:12 am, "Mike Walker" <[EMAIL PROTECTED]> wrote: > I am having some problems with command line arguments in Windows. The same > code under Linux works fine. > > In Windows I only get one argument no matter how many arguments are passed > on the command line. I think there is some problem

Re: metaclasses

2008-03-03 Thread castironpi
On Mar 3, 10:01 pm, Benjamin <[EMAIL PROTECTED]> wrote: > On Mar 3, 7:12 pm, [EMAIL PROTECTED] wrote: > > > What are metaclasses? > > Depends on whether you want to be confused or not. If you do, look at > this old but still head bursting > essay:http://www.python.org/doc/essays/metaclasses/. > >

Re: sympy: what's wrong with this picture?

2008-03-03 Thread Mensanator
On Mar 3, 8:31 pm, [EMAIL PROTECTED] wrote: > > All software has bugs. > > Good software has bugs. > > Therefore, good software is software. > > > This makes sympy worse than worthless, as it f***s up other modules. > > What is it still good for? Lots. The problem is when the total is less than th

help needed with regex and unicode

2008-03-03 Thread Pradnyesh Sawant
Hi all, I have a file which contains chinese characters. I just want to find out all the places that these chinese characters occur. The following script doesn't seem to work :( ** class RemCh(object): def __init__(self, fNam

Re: sympy: what's wrong with this picture?

2008-03-03 Thread Mensanator
On Mar 3, 11:58 pm, Erik Max Francis <[EMAIL PROTECTED]> wrote: > Mensanator wrote: > > While we're on the subject of English, the word "worthless" > > means "has no value". So, a program that doesn't work would > > generally be "worthless". One that not only doesn't work but > > creates side effec

Re: help needed with regex and unicode

2008-03-03 Thread Marc 'BlackJack' Rintsch
On Tue, 04 Mar 2008 10:49:54 +0530, Pradnyesh Sawant wrote: > I have a file which contains chinese characters. I just want to find out > all the places that these chinese characters occur. > > The following script doesn't seem to work :( > > **

Re: metaclasses

2008-03-03 Thread Gerard Flanagan
On Mar 4, 6:31 am, [EMAIL PROTECTED] wrote: > On Mar 3, 10:01 pm, Benjamin <[EMAIL PROTECTED]> wrote: > > > > > On Mar 3, 7:12 pm, [EMAIL PROTECTED] wrote: > > > > What are metaclasses? > > > Depends on whether you want to be confused or not. If you do, look at > > this old but still head bursting

Answer: Is there a way to "link" a python program from several files?

2008-03-03 Thread Edward A. Falk
In article <[EMAIL PROTECTED]>, George Sakkis <[EMAIL PROTECTED]> wrote: > >What's so complicated about "python setup.py install" ? Even that is >not strictly necessary for pure python packages; a user may just >unpack the archive, cd to the extracted directory and execute the >appropriate .py fil

Re: clocking subprocesses

2008-03-03 Thread Karthik Gurusamy
On Mar 3, 9:57 am, [EMAIL PROTECTED] wrote: > Hi, > > I've seen several threads on this subject, but haven't (yet) run > across one that answers my specific questions. This should be really > easy for someone, so here goes: > > I'm running some numerical simulations under Ubuntu, and using Python

Re: Command line arguments in Windows

2008-03-03 Thread Mark Tolonen
"Mike Walker" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >> If you run a python file, ie. just double clicking it the only >> argument you will have will be the filename of the script. If you >> create a shortcut to the script and in the target box add your >> arguments (if yo

Re: help needed with regex and unicode

2008-03-03 Thread Mark Tolonen
"Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Tue, 04 Mar 2008 10:49:54 +0530, Pradnyesh Sawant wrote: > >> I have a file which contains chinese characters. I just want to find out >> all the places that these chinese characters occur. >> >> The follo

Re: Command line arguments in Windows

2008-03-03 Thread Mike Walker
"Mark Tolonen" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > From the command line, the 'ftype' and 'assoc' commands can be used > view how an extension is handled: > > C:\>assoc .py > .py=Python.File > > C:\>ftype Python.File > Python.File="C:\Python25\python.exe" "%1" %

<    1   2