Re: Overloading the tilde operator?

2007-02-01 Thread James Stroud
Ben Finney wrote: > James Stroud <[EMAIL PROTECTED]> writes: > > >>Peter Otten wrote: >> >>>Chris wrote: >>> I am trying to overload the __invert__ operator (~) such that it can take a second argument, >>> >>x ~ x >>> >>> File "", line 1 >>>x ~ x >>> ^ >>>SyntaxError: invali

Re: Overloading the tilde operator?

2007-02-01 Thread George Sakkis
On Feb 2, 12:49 am, James Stroud <[EMAIL PROTECTED]> wrote: > Ben Finney wrote: > > > The Python runtime parser is designed to parse Python, not some > > arbitrary language that someone chooses to implement in Python. > > You haven't addressed why the limitation isn't arbitrary. Indeed, and that'

Re: Overloading the tilde operator?

2007-02-01 Thread Ben Finney
James Stroud <[EMAIL PROTECTED]> writes: > Ben Finney wrote: > > The Python runtime parser is designed to parse Python, not some > > arbitrary language that someone chooses to implement in Python. > > You haven't addressed why the limitation isn't arbitrary. Good thing I wasn't trying to do that,

Re: win32com.client

2007-02-01 Thread Tim Roberts
"vithi" <[EMAIL PROTECTED]> wrote: >Hi, >I use python for window. If you are saying win32com in part of the >python then you are wrong. Look, you aren't paying attention. No one has said win32com is part of Python. What everyone has said is that win32com is part of the "Python for Windows extens

Re: Python does not play well with others

2007-02-01 Thread John Nagle
Paul Rubin wrote: > Ben Finney <[EMAIL PROTECTED]> writes: > >>>Python still isn't ready for prime time in the web hosting world. >> >>That doesn't follow. It's just as valid to say that the web hosting >>providers (that you've interacted with so far) aren't ready to support >>the Python functiona

Re: mysqldb duplicate entry error handling

2007-02-01 Thread John Nagle
Dennis Lee Bieber wrote: > On 1 Feb 2007 10:17:31 -0800, "baur79" <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: >>IntegrityError: (1062, "Duplicate entry '[EMAIL PROTECTED]' for key 1") > > So show us the schema for the database... My take: Your database > ALREADY HAS a

<    1   2   3