Re: regex question

2007-04-28 Thread proctor
On Apr 27, 8:26 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: > proctorwrote: > > On Apr 27, 1:33 am, Paul McGuire <[EMAIL PROTECTED]> wrote: > >> On Apr 27, 1:33 am,proctor<[EMAIL PROTECTED]> wrote: > >>> rx_test = re.compile('/x([^x])*x/') > >>> s = '/xabcx/' > >>> if rx_test.findall(s): > >>>

Re: Now()

2007-04-28 Thread Hendrik van Rooyen
"Carsten Haese" <[EMAIL PROTECTED]> wrote: > On Thu, 2007-04-26 at 08:42 +0200, Hendrik van Rooyen wrote: > > Robert Rawlins - Think Blue wrote: > > >With time depicted to the nearest second, from my background in ColdFusion > > development we used to have a >datetimeformat() function that I co

Asynchronous XML-RPC client library?

2007-04-28 Thread Jarek Zgoda
Is there anything like that? Googling yields many articles on async servers, but virtually nothing on clients. I have to talk to remote in an environment that does not allow threads... -- Jarek Zgoda http://jpa.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Tracebacks for `exec`ed code?

2007-04-28 Thread Adam Atlas
Is it possible to make more traceback information available for exceptions code dynamically run via `exec`? Normally it just says things like "File '', line 3, in ?", which is not very helpful. I'm looking for a way for it to show the line of source code below it, like it would for an exception in

Re: How to get HTTP error when using urlretrieve()

2007-04-28 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > Hi, > > I use urlretrieve to retrieve resources from a http server. > Can you please tell me how can I get the HTTP error (whenever > happens)? > > And what kind of different exception urlretrieve will throw? e.g. > unknown host? connection timeout?

How to get HTTP error when using urlretrieve()

2007-04-28 Thread [EMAIL PROTECTED]
Hi, I use urlretrieve to retrieve resources from a http server. Can you please tell me how can I get the HTTP error (whenever happens)? And what kind of different exception urlretrieve will throw? e.g. unknown host? connection timeout? HTTP error? Thank you. -- http://mail.python.org/mailman/l

Re: I have a chance to do somting diffrent way not Python ?!

2007-04-28 Thread oscartheduck
Hi anders, try looking here first: http://docs.python.org/lib/module-os.html Also: http://sourceforge.net/projects/pywin32/ On Apr 28, 10:27 am, anders <[EMAIL PROTECTED]> wrote: > Hi! > On my work we have a lot off diffrent server to make software for > diffrent os > from Windows, OS/X to Lin

Re: Any Good tools to create CSV Files?

2007-04-28 Thread Alex Martelli
johnny <[EMAIL PROTECTED]> wrote: > Any Good tools to create CSV Files? ReportLab only creates pdf > files. I need something to create CSV files. Alex -- http://mail.python.org/mailman/listinfo/python-list

Re: Any Good tools to create CSV Files?

2007-04-28 Thread Carsten Haese
On Sat, 2007-04-28 at 18:55 -0700, johnny wrote: > Any Good tools to create CSV Files? ReportLab only creates pdf > files. I need something to create CSV files. You mean something like the csv module that is part of Python's standard library? >>> import csv >>> help(csv) Help on module csv: NA

Re: Platform-dependent module search order?

2007-04-28 Thread Carsten Haese
On Sat, 2007-04-28 at 14:54 -0700, John Machin wrote: > Very interesting. My first reaction to Theo's posting was to make a > confident declaration like Carsten did, but I couldn't simulate this > behaviour on Windows with Python 2.5.1 (or 2.1.3 for that matter) and > moreover the docs say: > """ >

Any Good tools to create CSV Files?

2007-04-28 Thread johnny
Any Good tools to create CSV Files? ReportLab only creates pdf files. I need something to create CSV files. Thank you. -- http://mail.python.org/mailman/listinfo/python-list

Re: SEO - Search Engine Optimization - Seo Consulting

2007-04-28 Thread Alvin Bruney [MVP]
Please don't spam this group -- Regards, Alvin Bruney -- Shameless author plug Excel Services for .NET is coming... OWC Black book on Amazon and www.lulu.com/owc Professional VSTO 2005 - Wrox/Wiley <[EMAIL PROTECTED]> wrote in message news:[E

Re: Numbers and truth values

2007-04-28 Thread Alex Martelli
Szabolcs <[EMAIL PROTECTED]> wrote: > But I still think that it is an inconsistency to allow to redefine a > _value_ like True or False (not a built-in function that may have been > missing in earlier versions). Saying True = 2 is just like saying 3 = 2. True and False were *ALSO* missing in ear

SEO - Search Engine Optimization - Seo Consulting

2007-04-28 Thread Leisure . 210
Free Seo Consulting http://seo-optimizer.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Numbers and truth values

2007-04-28 Thread Steven D'Aprano
On Sat, 28 Apr 2007 23:54:01 +0200, Szabolcs wrote: > But I still think that it is an inconsistency to allow to redefine a > _value_ like True or False (not a built-in function that may have been > missing in earlier versions). Saying True = 2 is just like saying 3 = 2. Well, it might seem that

Re: Numbers and truth values

2007-04-28 Thread Steven D'Aprano
On Sat, 28 Apr 2007 11:35:36 -0700, John Nagle wrote: >> Python forbids very few things in comparison to other languages. The >> attitude is "We're all adults here". Because Python is such a dynamic >> language, it is often hard for the compiler to tell the difference between >> something you are

Re: strip newline from string

2007-04-28 Thread Ian Clark
On 4/28/07, James <[EMAIL PROTECTED]> wrote: [snip] > username = getuser() > string.strip > (username) > print "username is %s" % username [snip] > > > The autoconf.txt contains two lines, which first has an ip address and > second a username. The problem I'm having is that the string.strip() do

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-28 Thread jasen
On 2007-04-28, Quadibloc <[EMAIL PROTECTED]> wrote: > Australia - Tasmania included - would today be under the iron heel of > Imperial Japan had it not been for the armed might of the United > States of America! Please do not feed the trolls. Bye. Jasen -- http://mail.python.org/mailman/list

strip newline from string

2007-04-28 Thread James
I have a program that reads as follows: #!/usr/bin/env python import string import os def ssher(): #ssher takes a port input (if none entered, it defaults to 2024) and def connector(): #connector checks to see if the autoconfigure file exists. If so, it uses that #for information for where the

Re: Numbers and truth values

2007-04-28 Thread Mel Wilson
John Nagle wrote: > "True", "False", and "None" should be reserved words in Python. > "None" already is. The permissiveness makes it less painful to upgrade to new versions of Python. True and False only recently got assigned conventional values, but you can still import old modules withou

CPython vs. Jython/JPython

2007-04-28 Thread Sean McCallister
Is this stephen coursen, once married to michelle coursen from linden NJ? -- http://mail.python.org/mailman/listinfo/python-list

Platform-dependent module search order?

2007-04-28 Thread John Machin
On Apr 29, 5:04 am, "Theo v. Werkhoven" <[EMAIL PROTECTED] werkhoven.nl.invalid> wrote: > The carbonbased lifeform John Machin inspired comp.lang.python with: > > > > > On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] > > werkhoven.nl.invalid> wrote: > >> Goodday, > > >> strg

Re: Numbers and truth values

2007-04-28 Thread Szabolcs
Alex Martelli wrote: > Maybe somebody assigning a value to True or False is a > common error, but much of my livelihood over the last 10 years has been > about mentoring/coaching programmers in Python, and that's one error I > have *NEVER* observed, so I'd need a lot of empirical evidence to > conv

Re: editing scripts on a mac

2007-04-28 Thread Alex Martelli
Michael Bentley <[EMAIL PROTECTED]> wrote: ... > highlighting for Python (and most everything else). But both Text > Edit and nano are dead easy for noobs. TextMate, a shareware program, is also widely appreciated -- it has pretty good support for many languages, including Python. Personall

Re: Portable SciPy v0.1 released

2007-04-28 Thread Alex Martelli
Beliavsky <[EMAIL PROTECTED]> wrote: > On Apr 27, 6:17 pm, Stef Mientki <[EMAIL PROTECTED]> > wrote: > > Portable SciPy, is an easy installer of SciPy for M$ windows users. > > If you have an announcement for Windows users, I suggest that you not > needlessly turn them off by abbreviating Microso

Re: python and activeX control

2007-04-28 Thread vml
On 28 avr, 23:09, "Méta-MCI" <[EMAIL PROTECTED]> wrote: > Bonsoir ! > > Flagrant délit de manque de confiance dans les newsgroups français en vue... > > Ha ! Ha ! Ha ! Bonne chance avec les US... c'est vrai j'avoue ;) -- http://mail.python.org/mailman/listinfo/python-list

Re: python and activeX control

2007-04-28 Thread M�ta-MCI
Bonsoir ! Flagrant délit de manque de confiance dans les newsgroups français en vue... Ha ! Ha ! Ha ! Bonne chance avec les US... -- http://mail.python.org/mailman/listinfo/python-list

Re: relative import broken?

2007-04-28 Thread Alex Martelli
Alan Isaac <[EMAIL PROTECTED]> wrote: > Are relative imports broken in 2.5? > Directory ``temp`` contains:: > > __init__.py > test1.py > test2.py > > File contents: > __init__.py and test2.py are empty > test1.py contains a single line:: > > from . import test2 >

Re: Numbers and truth values

2007-04-28 Thread Alex Martelli
John Nagle <[EMAIL PROTECTED]> wrote: ... > I'd have to consider that a bug. > > Some very early FORTRAN compilers allowed you to redefine > integer constants: > > > CALL SET(25,99) > WRITE (6,100) 25 > 100 FORMAT(I6) > > SUBROUTINE SET(IVAR, INEWVAL) >

Re: My Python annoyances

2007-04-28 Thread Alex Martelli
James Stroud <[EMAIL PROTECTED]> wrote: > André wrote: [snipping total repost of André's post] > > I'm really annoyed at Python - and not for the reasons already > > mentioned on this list. > > > > Everyone know that programming is supposed to be a dark art, nearly > > impossible to learn.

Re: My Python annoyances

2007-04-28 Thread Aahz
In article <[EMAIL PROTECTED]>, =?iso-8859-1?B?QW5kcuk=?= <[EMAIL PROTECTED]> wrote: > >Programming should be more difficult than this - otherwise, how can >programmers be respected by the common folks? http://www.netfunny.com/rhf/jokes/98/May/stroustrup.html -- Aahz ([EMAIL PROTECTED])

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Major Quaternion Dirt Quantum
here's a question that came-up recently, in battling with the controlled-demo advocates at teh Promenade: how is it that the metal was still molten, after weeks? it seems taht an additional hypothesis is required, to explain that. because I doubt that there was sufficient nukular material "left-o

Re: how can I put an Exception as the key of a hash table

2007-04-28 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > I want to keep track of the number of different exception happens in > my python program: > > ErrorHash = {} > > try: > > # come code ... > > except Exception, e: > print e > errcode = e > > if (ErrorHash.has

Re: Interop between C# and Python

2007-04-28 Thread Ravi Teja
On Apr 27, 8:25 pm, urielka <[EMAIL PROTECTED]> wrote: > thx i will try this. > > i am also trying XML-RPC,i wrote a basic generator(in python) that > genrate a Interface from the XML-RPC service module,but maybe with > soaplib i don`t need this if i use wsdl as Visual Studio can generate > the cod

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 14:15, Eric Gisse <[EMAIL PROTECTED]> wrote: > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > > Cal Tech is the ELITE of ELITE in physics. > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > physics at the University of Iowa - regarding his thoughts on the > 'collaps

Re: My Python annoyances

2007-04-28 Thread James Stroud
André wrote: > I'm really annoyed at Python - and not for the reasons already > mentioned on this list. > > Everyone know that programming is supposed to be a dark art, nearly > impossible to learn. Computer code is supposed to be something > impossible to read to the common person and yet reveal

Re: How to pass in argument to timeit.Timer

2007-04-28 Thread Gabriel Genellina
En Sat, 28 Apr 2007 15:48:11 -0300, [EMAIL PROTECTED] <[EMAIL PROTECTED]> escribió: > I have a function in my python like this: > def callFunc(line, no): > # some code > > And I want to do a performance test like this: > for line in f: > for i in range(int(count)): > t

python and activeX control

2007-04-28 Thread vml
I have an application that I want to automatised trough a COM layer or (DCOM)... I can access to all the method of the COM objects with python and win32com when this application is running If the application is not running, I can not access to all the method of the object. Usually to overcom

Re: My Python annoyances

2007-04-28 Thread Basilisk96
> Everyone know that programming is supposed to be a dark art, nearly > impossible to learn. Computer code is supposed to be something > impossible to read to the common person and yet reveal their secrets > to the initiated - just remember the code displayed in the Matrix... Hmm, on my PyCon mug

Re: how to serialize a COM object ?

2007-04-28 Thread vml
On 24 avr, 23:53, Neil Hodgson <[EMAIL PROTECTED]> wrote: > vmlwrote: > > I have a COM object. > > > I would like to pass this com object from a server to a client through > > a socket. > > As Diez mentioned, this may be possible through Distributed COM > (DCOM). Its not very popular any more w

Re: My Python annoyances

2007-04-28 Thread Stef Mientki
> Programming should be more difficult than this - otherwise, how can > programmers be respected by the common folks? the answer is very simple (even more simple than Python ;-) ... ... create what common folks ask for !! cheers, Stef Mientki -- http://mail.python.org/mailman/listinfo/python-li

Re: how can I put an Exception as the key of a hash table

2007-04-28 Thread 7stud
[EMAIL PROTECTED] wrote: > I want to keep track of the number of different exception happens in > my python program: > > ErrorHash = {} > > try: > > # come code ... > > except Exception, e: > print e > errcode = e > > if (ErrorHash.has_key(errcode)): >

Re: how can I put an Exception as the key of a hash table

2007-04-28 Thread James Stroud
[EMAIL PROTECTED] wrote: > I want to keep track of the number of different exception happens in > my python program: > > ErrorHash = {} > > try: > > # come code ... > > except Exception, e: > print e > errcode = e > > if (ErrorHash.has_key(errcode)): >

My Python annoyances

2007-04-28 Thread André
I'm really annoyed at Python - and not for the reasons already mentioned on this list. Everyone know that programming is supposed to be a dark art, nearly impossible to learn. Computer code is supposed to be something impossible to read to the common person and yet reveal their secrets to the ini

Re: python function in pipe

2007-04-28 Thread Gabriel Genellina
En Sat, 28 Apr 2007 13:58:59 -0300, <[EMAIL PROTECTED]> escribió: > On Apr 28, 6:37 am, Bart <[EMAIL PROTECTED]> wrote: >> Im using module that gives errors to stderr/stdout (generated by SWIG) >> Problem is that I need to parse this errors/information from module. >> os.popen3 looks nice but thi

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 14:30, "Michael A. Terrell" <[EMAIL PROTECTED]> wrote: > Eric Gisse wrote: > > > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > > Cal Tech is the ELITE of ELITE in physics. > > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > > physics at the University of Iowa - re

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 14:30, "Michael A. Terrell" <[EMAIL PROTECTED]> wrote: > Eric Gisse wrote: > > > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > > Cal Tech is the ELITE of ELITE in physics. > > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > > physics at the University of Iowa - re

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 16:06, Salmon Egg <[EMAIL PROTECTED]> wrote: > On 4/28/07 9:44 AM, in article > [EMAIL PROTECTED], "War Office" > > <[EMAIL PROTECTED]> wrote: > > Why can't any of you just discuss the fact that free-fall collapse of > > this building contradicts the laws of physics? > > > Why do you all

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 14:15, Eric Gisse <[EMAIL PROTECTED]> wrote: > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > > Cal Tech is the ELITE of ELITE in physics. > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > physics at the University of Iowa - regarding his thoughts on the > 'collaps

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 28 abr, 13:56, Eric Gisse <[EMAIL PROTECTED]> wrote: > On Apr 28, 8:44 am, War Office <[EMAIL PROTECTED]> wrote: > > > > > On 25 abr, 21:33, "Bill Habr" <[EMAIL PROTECTED]> wrote: > > > > <[EMAIL PROTECTED]> wrote in message > > > >news:[EMAIL PROTECTED] > > > > > Cal Tech is the ELITE of ELITE

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Salmon Egg
On 4/28/07 9:44 AM, in article [EMAIL PROTECTED], "War Office" <[EMAIL PROTECTED]> wrote: > Why can't any of you just discuss the fact that free-fall collapse of > this building contradicts the laws of physics? > > Why do you all have to avoid the topic and rather go on a character > assassinatio

Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform Carsten Haese inspired comp.lang.python with: > On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: >> Goodday, >> >> Something strange going on here. >> A piece of code I wrote bombs out in one of de directories under $HOME, >> but not in others. > > This usually

Re: Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
The carbonbased lifeform John Machin inspired comp.lang.python with: > On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] > werkhoven.nl.invalid> wrote: >> Goodday, >> >> strg = array("B",octarray).tostring() > > The above statement appears to be where the error manifests itself

relative import broken?

2007-04-28 Thread Alan Isaac
Are relative imports broken in 2.5? Directory ``temp`` contains:: __init__.py test1.py test2.py File contents: __init__.py and test2.py are empty test1.py contains a single line:: from . import test2 Python 2.5.1 under Win2000, cmd line execution, produces as out

how can I put an Exception as the key of a hash table

2007-04-28 Thread [EMAIL PROTECTED]
I want to keep track of the number of different exception happens in my python program: ErrorHash = {} try: # come code ... except Exception, e: print e errcode = e if (ErrorHash.has_key(errcode)): ErrorFailNo = ErrorHash[errcode]

How to pass in argument to timeit.Timer

2007-04-28 Thread [EMAIL PROTECTED]
Hi, I have a function in my python like this: def callFunc(line, no): # some code And I want to do a performance test like this: for line in f: for i in range(int(count)): t1 = timeit.Timer("callFunc(line, i)","from __main__ import callFunc") r1 = t1.timeit(

Re: Numbers and truth values

2007-04-28 Thread John Nagle
Steven D'Aprano wrote: > On Sat, 28 Apr 2007 15:36:19 +0200, Szabolcs wrote: > > >>True = 2 # DON'T DO THIS!!! >>2 == True >>> >>>True >>> >> >>But shouldn't Python forbid this? Is it possible to get a warning when >>unintentionally redefining built-in thing? > > > Python forbids very

Re: Memory addressing

2007-04-28 Thread Alex Martelli
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > On Fri, 27 Apr 2007 16:07:57 -0700, castironpi wrote: > > > That's what we need: a CopyMemory() routine. > > What we _really_ need are Poke() and Peek() routines. You can easily write them with ctypes (it's part of the standard library now, too) -- a

Re: Cgi File Upload without Form

2007-04-28 Thread Steve Holden
[EMAIL PROTECTED] wrote: > Hello, > > what is the simplest way to upload a file (or a long string) to a > server using cgi/python? > > Since I want to upload the data programmatically, a form based > solution is not good. I am not experienced with SOAP/WSDL and I > believe that would be more diff

Re: Numbers and truth values

2007-04-28 Thread Alex Martelli
Szabolcs <[EMAIL PROTECTED]> wrote: ... > True = 2 # DON'T DO THIS!!! > 2 == True > > True > > But shouldn't Python forbid this? Is it possible to get a warning when > unintentionally redefining built-in thing? Python can be changed to make some non-reserved builtin identifiers into

Re: More urllib timeout issues.

2007-04-28 Thread John Nagle
Steve Holden wrote: > John Nagle wrote: >> Then we'd have a reasonable network timeout system. >> We have about half of the above now, but it's not consistent. >> >> Comments? >> > The only comments I'll make for now are > > 1) There is work afoot to build timeout arguments into network libraries

ImportError: No module named QtOpenGL

2007-04-28 Thread Pradnyesh Sawant
Hello, I've written a small pyqt4 code, which on running on an ubuntu 6.10 system gives me the foll error: $ python2.4 updLbl.py Traceback (most recent call last): File "updLbl.py", line 1, in ? import PyQt4.Qt as qt File "/usr/lib/python2.4/site-packages/PyQt4/Qt.py", line 4, in ? from

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Eric Gisse
On Apr 28, 9:30 am, "Michael A. Terrell" <[EMAIL PROTECTED]> wrote: > Eric Gisse wrote: > > > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > > Cal Tech is the ELITE of ELITE in physics. > > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > > physics at the University of Iowa -

Re: how to create/ref globals in an alternate namespace?

2007-04-28 Thread Steve Holden
Steven W. Orr wrote: > On Friday, Apr 27th 2007 at 14:07 -0700, quoth James Stroud: > > =>Steven W. Orr wrote: > =>> I have two seperate modules doing factory stuff which each have the > =>> similar function2: > =>> > =>> In the ds101 module, def DS101CLASS(mname,data): > =>> cname = mname+'

Re: Beginner Ping program

2007-04-28 Thread [EMAIL PROTECTED]
On Apr 27, 10:54 pm, Linus Cohen <[EMAIL PROTECTED]> wrote: > Hi all, > I'm a newbie to python and programming in general, so I wanted a > simple project to start off. What I'm trying to do here is write a > python command-line ping program, much like the Unix and Windows ping > programs. I've got

Re: Numbers and truth values

2007-04-28 Thread Steven D'Aprano
On Sat, 28 Apr 2007 15:36:19 +0200, Szabolcs wrote: > True = 2 # DON'T DO THIS!!! > 2 == True >> True >> > > But shouldn't Python forbid this? Is it possible to get a warning when > unintentionally redefining built-in thing? Python forbids very few things in comparison to other langua

Re: python function in pipe

2007-04-28 Thread 7stud
> p = subprocess.Popen(["python", "6test.py"], > stdout=subprocess.PIPE, > stderr=subprocess.PIPE) The file name is wrong there; it should be: p = subprocess.Popen(["python", "moduleA.py"], stdout=subprocess.PIPE, stderr=subprocess.PIPE) --

Re: python function in pipe

2007-04-28 Thread 7stud
On Apr 28, 7:37 am, Bart <[EMAIL PROTECTED]> wrote: > Hi everyone! > > Im using module that gives errors to stderr/stdout (generated by SWIG) > Problem is that I need to parse this errors/information from module. > > os.popen3 looks nice but this executes command not function. > > Is there any

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Michael A. Terrell
Eric Gisse wrote: > > On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > > Cal Tech is the ELITE of ELITE in physics. > > "INN World Report interviewed Dr. Crockett Grabbe - professor of > physics at the University of Iowa - regarding his thoughts on the > 'collapses' of WTC1, WTC2, & WTC7. In this i

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Eric Gisse
On Apr 24, 6:13 pm, [EMAIL PROTECTED] wrote: > Cal Tech is the ELITE of ELITE in physics. "INN World Report interviewed Dr. Crockett Grabbe - professor of physics at the University of Iowa - regarding his thoughts on the 'collapses' of WTC1, WTC2, & WTC7. In this interview he lists numerous reason

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Ben newsam
On 28 Apr 2007 09:35:59 -0700, War Office <[EMAIL PROTECTED]> wrote: >(God's law whom gave you >and God's children whom's mass murder in Iraq you have allowed)? Hi Dennis! -- http://mail.python.org/mailman/listinfo/python-list

Re: python function in pipe

2007-04-28 Thread attn . steven . kuo
On Apr 28, 6:37 am, Bart <[EMAIL PROTECTED]> wrote: > Hi everyone! > > Im using module that gives errors to stderr/stdout (generated by SWIG) > Problem is that I need to parse this errors/information from module. > > os.popen3 looks nice but this executes command not function. > > Is there any

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread Eric Gisse
On Apr 28, 8:44 am, War Office <[EMAIL PROTECTED]> wrote: > On 25 abr, 21:33, "Bill Habr" <[EMAIL PROTECTED]> wrote: > > > > > <[EMAIL PROTECTED]> wrote in message > > >news:[EMAIL PROTECTED] > > > > Cal Tech is the ELITE of ELITE in physics. > > > > If Feynman were alive, he would point his finger

If you Got Questions? I bet We got Answers

2007-04-28 Thread Leisure . 201
http://ugotquestions.blogspot.com/ - Find out anything ! -- http://mail.python.org/mailman/listinfo/python-list

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 25 abr, 21:33, "Bill Habr" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Cal Tech is the ELITE of ELITE in physics. > > > If Feynman were alive, he would point his finger straight at the 911 > > criminal operators, the yank bastards themselves

Re: Video: Professor of Physics Phd at Cal Tech says: 911 Inside Job

2007-04-28 Thread War Office
On 25 abr, 21:33, "Bill Habr" <[EMAIL PROTECTED]> wrote: > <[EMAIL PROTECTED]> wrote in message > > news:[EMAIL PROTECTED] > > > Cal Tech is the ELITE of ELITE in physics. > > > If Feynman were alive, he would point his finger straight at the 911 > > criminal operators, the yank bastards themselves

I have a chance to do somting diffrent way not Python ?!

2007-04-28 Thread anders
Hi! On my work we have a lot off diffrent server to make software for diffrent os from Windows, OS/X to Linux Solaris Everyting is scripted with shell, but Windows has batchfiles witch is very limited, compared to cshell etc. So my boss has told me that it okej if i want to make somting better o

Re: creating an object from base class

2007-04-28 Thread Steve Holden
Ian Clark wrote: > Quote iogilvy: >> i wish to have some extended functionality added to sockets >> >> i can create my own socket class class mysocket(socket.socket): >> >> and all should be fine. Except, the sockets are created for me by the >> accept method, listening on port. So how can i take

Re: webbrowser.open works in IDLE and cmd shell but not from cygwin prompt

2007-04-28 Thread Steve Holden
Gregory Bloom wrote: > On Apr 27, 3:12 am, Michael Hoffman <[EMAIL PROTECTED]> wrote: >>> And, more to the point, how can I use webbrowser from scripts launched under >> > cygwin? >> >> If you're using native Windows Python as you seem to be, try >> webbrowser.get("windows-default").open_new(url)

Re: More urllib timeout issues.

2007-04-28 Thread Steve Holden
John Nagle wrote: >I thought I had all the timeout problems with urllib worked around, > but no. > >socket.setdefaulttimeout is useful, but not always effective. > I'm setting that to 15 seconds. > If the host end won't open the connection within 15 seconds, > urllib times out. But if the

Re: Tutorial creates confusion about slices

2007-04-28 Thread Steve Holden
Antoon Pardon wrote: > On 2007-04-26, Steve Holden <[EMAIL PROTECTED]> wrote: [...] > >> Warning: this is an explicit test to see whether you can sit on your >> hands and refrain from replying. It's hard to find a thread where you >> don't make the last comment on every branch you get involved i

Re: EuroPython vs PyconUK

2007-04-28 Thread Steve Holden
EuGeNe Van den Bulke wrote: > Steve Holden wrote: > > So by this reasoning there should have been no "Python UK" conference >> for the last four years (in case you didn't know it ran as a track of >> the C/C++ conference, but ths track has now broadened to include all >> scripting languages). A

Re: Python CGI and Browser timeout

2007-04-28 Thread Steve Holden
Steve Holden wrote: > Sebastian Bassi wrote: >> On 26 Apr 2007 14:48:29 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >>> In order to work around this problem, I started printing empty strings >>> (i.e. print "") so that the browser does not timeout. >> How do you print something while doing

Re: *** Dr G Polya BRILLIANTLY analyses the Virgina Shooting Incident ***

2007-04-28 Thread Quadibloc
[EMAIL PROTECTED] wrote: > On Apr 24, 2:09 pm, Quadibloc <[EMAIL PROTECTED]> wrote: > > I never thought that I would feel the urge to call someone an > > edelweiss-eating Tanzanian devil, but Dr. Polya proved that I lacked > > imagination. . > The effect is - in fact - more severely damaged by you

Re: Program runs in all directories, except one..

2007-04-28 Thread Carsten Haese
On Sat, 2007-04-28 at 13:50 +0200, Theo v. Werkhoven wrote: > Goodday, > > Something strange going on here. > A piece of code I wrote bombs out in one of de directories under $HOME, > but not in others. This usually means that the directory where your script doesn't work contains some .py file th

Re: Python CGI and Browser timeout

2007-04-28 Thread Steve Holden
Sebastian Bassi wrote: > On 26 Apr 2007 14:48:29 -0700, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >> In order to work around this problem, I started printing empty strings >> (i.e. print "") so that the browser does not timeout. > > How do you print something while doing the query and waiting f

Re: Multiple select in wx.GenericDirCrtl

2007-04-28 Thread Soren
On Apr 27, 3:13 pm, [EMAIL PROTECTED] wrote: > On Apr 27, 7:31 am, Soren <[EMAIL PROTECTED]> wrote: > > > Hi! > > > Is it possible to do multiple file selections in a wx.GenericDirCtrl?? > > > Thanks, > > Soren > > I'm not finding anything. I do know you can select multiple files > using the FileDi

tkinter undo

2007-04-28 Thread Gigs_
Hi I dont have idea how to write tkinter undo/redo function form my text editor and my paint program. Could someone help? I'm not asking for code, just for some guidelines to get me in the right way. thanks -- http://mail.python.org/mailman/listinfo/python-list

python function in pipe

2007-04-28 Thread Bart
Hi everyone! Im using module that gives errors to stderr/stdout (generated by SWIG) Problem is that I need to parse this errors/information from module. os.popen3 looks nice but this executes command not function. Is there any solution? Best regards Bart. -- http://mail.python.org/mailman

Re: Numbers and truth values

2007-04-28 Thread Szabolcs
Steven D'Aprano wrote: > 1 == True > True 0 == False > True 2 == True > False Oh my goodness! Now I also get 2 != True. I really don't know what happened. Most probably this (as a result of mistyping): > True = 2 # DON'T DO THIS!!! 2 == True > True > But shouldn't P

Re: Program runs in all directories, except one..

2007-04-28 Thread John Machin
On Apr 28, 9:50 pm, "Theo v. Werkhoven" <[EMAIL PROTECTED] werkhoven.nl.invalid> wrote: > Goodday, > > Something strange going on here. > A piece of code I wrote bombs out in one of de directories under $HOME, > but not in others. [snip] > def shiftout(numoctets): > os.system('clear') > ser

Re: Numbers and truth values

2007-04-28 Thread Steven D'Aprano
On Sat, 28 Apr 2007 14:33:23 +0200, Szabolcs wrote: > Newbie question: > > Why is 1 == True and 2 == True (even though 1 != 2), > but 'x' != True (even though if 'x': works)? Everything in Python has a truth-value. So you can always do this: if some_object: print "if clause is true" else:

Re: Numbers and truth values

2007-04-28 Thread Irmen de Jong
Szabolcs wrote: > Newbie question: > > Why is 1 == True and 2 == True (even though 1 != 2), > but 'x' != True (even though if 'x': works)? Please check before you post: [E:\Projects]python Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copy

Re: Numbers and truth values

2007-04-28 Thread Michael Hoffman
Szabolcs wrote: > Why is 1 == True and 2 == True (even though 1 != 2), Not what I get. Python 2.5 (r25:51908, Mar 13 2007, 08:13:14) [GCC 3.4.4 (cygming special, gdc 0.12, using dmd 0.125)] on cygwin Type "help", "copyright", "credits" or "license" for more information. >>> 2 == True False --

Numbers and truth values

2007-04-28 Thread Szabolcs
Newbie question: Why is 1 == True and 2 == True (even though 1 != 2), but 'x' != True (even though if 'x': works)? -- http://mail.python.org/mailman/listinfo/python-list

Re: Which are your favorite UML tools?

2007-04-28 Thread Anastasios Hatzis
On Saturday 28 April 2007 00:26, Russell E. Owen wrote: > In article <[EMAIL PROTECTED]>, > > Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > > Anastasios Hatzis a écrit : > > > Hello, > > > > > > I'm working on the light-weight MDA tool pyswarm, > > > http://pyswarm.sourceforge.net/ (it is about

Re: Which are your favorite UML tools?

2007-04-28 Thread Anastasios Hatzis
On Friday 27 April 2007 23:48, Bruno Desthuilliers wrote: > Anastasios Hatzis a écrit : > > Hello, > > > > I'm working on the light-weight MDA tool pyswarm, > > http://pyswarm.sourceforge.net/ (it is about a code-generator for > > Python/PostgreSQL-based software. I plan to add support of UML CASE

Program runs in all directories, except one..

2007-04-28 Thread Theo v. Werkhoven
Goodday, Something strange going on here. A piece of code I wrote bombs out in one of de directories under $HOME, but not in others. Here's a snipped: #v+ def bin2asc(c): s='' for i in range(0,8): if c & 1<<(7-i): s+='1' else: s+='0' return 'b'+s def

Re: Beginner Ping program

2007-04-28 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Linus Cohen wrote: > Actually the class ping bit is a placeholder. I'm actually developing > a module with python implementations of most standard network/internet > tools such as telnet, tracert, whois etc. It will be called inettools, > and the ping function is what I'm w

Re: Numeric + wxPython, can't understand a bug...

2007-04-28 Thread John Ladasky
On Apr 27, 9:40 pm, Robert Kern <[EMAIL PROTECTED]> wrote: > wx.Point objects are being recognized as sequences by array(). Consequently, > reshape() thinks you are trying to reshape a (height*width, 2) array into a > (height, width) array. You might want to create an empty (height, width) > PyObj

  1   2   >