Re: Xah's Edu Corner: Under the spell of Leibniz's dream

2007-08-19 Thread Rob Warnock
Twisted <[EMAIL PROTECTED]> wrote: +--- | > "Under the spell of Leibniz's dream" (2000) By Edsger W | > Dijkstrahttp://www.cs.utexas.edu/~EWD/ewd12xx/EWD1298.PDF | | A link to a copy in a non-toxic format would be nice. +--- Well, the fact of the matter is that the bulk

Re: yet another indentation proposal

2007-08-19 Thread James Stroud
Dennis Lee Bieber wrote: > On Sat, 18 Aug 2007 13:22:54 -0500, "Aaron" > <[EMAIL PROTECTED]> declaimed the following in > comp.lang.python: > > >> column to make sure that everything lines up. I, on the other hand, >> generally find my self counting a lot of spaces. >> > Forgive me, but

Re: popen4 not returning output

2007-08-19 Thread James Stroud
James Stroud wrote: > [EMAIL PROTECTED] wrote: >> I am trying to run the following script: >> >> >> #!/usr/bin/python >> >> import popen2 >> >> commandToRun = """scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory""" >> #commandToRun = "ls" >> print commandToRun >> p_out, p_in = popen2.popen4 (comm

Re: popen4 not returning output

2007-08-19 Thread James Stroud
[EMAIL PROTECTED] wrote: > I am trying to run the following script: > > > #!/usr/bin/python > > import popen2 > > commandToRun = """scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory""" > #commandToRun = "ls" > print commandToRun > p_out, p_in = popen2.popen4 (commandToRun) > > theOut = p_out

Re: How do I call anonymous classes from imported modules?

2007-08-19 Thread James Stroud
JoeSox wrote: > On 8/19/07, James Stroud <[EMAIL PROTECTED]> wrote: >> Quick and dirty (you could also use a try: except:): >> >> f = __import__(module_name) >> for anobj in f.__dict__.values(): >> if hasattr(anobj, 'do_foobar'): >> anobj.do_foobar() >> >> Note that this does not test whether

Re: How do I call anonymous classes from imported modules?

2007-08-19 Thread JoeSox
On 8/19/07, James Stroud <[EMAIL PROTECTED]> wrote: > Quick and dirty (you could also use a try: except:): > > f = __import__(module_name) > for anobj in f.__dict__.values(): > if hasattr(anobj, 'do_foobar'): > anobj.do_foobar() > > Note that this does not test whether anobj is a class as thi

popen4 not returning output

2007-08-19 Thread hortitude
I am trying to run the following script: #!/usr/bin/python import popen2 commandToRun = """scp scp_trial.py [EMAIL PROTECTED]:/targetDirectory""" #commandToRun = "ls" print commandToRun p_out, p_in = popen2.popen4 (commandToRun) theOut = p_out.readlines () print theOut When I run this comman

Re: Python question (PyNoob)

2007-08-19 Thread Terry Reedy
"Anonymous" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] |I have exp with C/C++ (and a few other langs). I want to use Python to | start doing the ff: | | 1). Data Munging (text processing) - instead of Perl | 2). Automating my build process | 3). (Possibly) some web data retrieval

Re: What does this thread have to do with classical music,

2007-08-19 Thread ah
Art Deco wrote: > ah <[EMAIL PROTECTED]> wrote: >>Art Deco wrote: >>> ah <[EMAIL PROTECTED]> wrote: Art Deco wrote: > ah <[EMAIL PROTECTED]> wrote: >>Art Deco wrote: >>> ah <[EMAIL PROTECTED]> wrote: Art Deco wrote: > ah <[EMAIL PROTECTED]> wrote: >>Art Deco

Re: passing arguments with ampersands

2007-08-19 Thread O.R.Senthil Kumaran
Sorry for ignoring the thread. > the problem is that when i associate a file extension to my application and > i open it, the filename is not quoted before passed as an arguement. i dont If it is not quoted by default, you can quote it explicit. If this be the case where the filename is obtained

Re: How do I call anonymous classes from imported modules?

2007-08-19 Thread James Stroud
JoeSox wrote: > I am importing 3rd party modules via a plugin script. I wish to > iterate thru the modules and call a common method like .do_foobar() or > something with all the imports. > But I can't figure out how to do something like below without knowing > the class name before hand. Is there

Re: Latest models of Gibson guitars

2007-08-19 Thread David J. Littleboy
"Randall Ainsworth" <[EMAIL PROTECTED]> wrote: > In article <[EMAIL PROTECTED]>, Hermit > <[EMAIL PROTECTED]> wrote: > >> How does the image quality compare with a DSLR? > > Depends on whether it's a Paul or a Strat. My L5 beats out any dSLR any day. David J. Littleboy Tokyo, Japan -- http://

Re: Latest models of Gibson guitars

2007-08-19 Thread Twisted
On Aug 19, 2:41 pm, [EMAIL PROTECTED] wrote: > This is a newsgroup of programming language Python, stop with this! Python?! Python is as off-topic here as guitars, unlike, say, Java... -- http://mail.python.org/mailman/listinfo/python-list

Re: A/C Systems!

2007-08-19 Thread Twisted
On Aug 19, 4:12 pm, Daniel Pitts <[EMAIL PROTECTED]> wrote: > Don't you know that targeted advertising has far better return? Only when each impression is fairly expensive to cause. Unfortunately, spam (whether usenet, guestbook, blog comment, email, or whatever) is very cheap per impression, so t

Re: Xah's Edu Corner: Under the spell of Leibniz's dream

2007-08-19 Thread Twisted
On Aug 19, 7:56 pm, Xah Lee <[EMAIL PROTECTED]> wrote: > So, when you "dress up formally" to attend your friend's wedding... Oh dear God, please *don't* remind me. > "Under the spell of Leibniz's dream" (2000) By Edsger W > Dijkstrahttp://www.cs.utexas.edu/~EWD/ewd12xx/EWD1298.PDF A link to a c

How do I call anonymous classes from imported modules?

2007-08-19 Thread JoeSox
I am importing 3rd party modules via a plugin script. I wish to iterate thru the modules and call a common method like .do_foobar() or something with all the imports. But I can't figure out how to do something like below without knowing the class name before hand. Is there a builtin that helps cal

Re: Parser Generator?

2007-08-19 Thread Jack
Very interesting work. Thanks for the link! "Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > """ > NLTK ¡ª the Natural Language Toolkit ¡ª is a suite of open source Python > modules, data sets and tutorials suppor

Re: question

2007-08-19 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Aug 17, 2:34 pm, Peter Otten <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >>> "I've parsed a webpage into a text file. In doing so, I've kept all >>> the text I'm interested in, and removed all the text I don't want. My >>> result is a text file that iscomma

Re: Development for dual core machine

2007-08-19 Thread Andy
Thanks guys for the suggestions. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: Latest models of Gibson guitars

2007-08-19 Thread Randall Ainsworth
In article <[EMAIL PROTECTED]>, Hermit <[EMAIL PROTECTED]> wrote: > How does the image quality compare with a DSLR? Depends on whether it's a Paul or a Strat. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python question (PyNoob)

2007-08-19 Thread Benjamin
On Aug 19, 7:33 pm, Anonymous <[EMAIL PROTECTED]> wrote: > I have exp with C/C++ (and a few other langs). I want to use Python to > start doing the ff: > > 1). Data Munging (text processing) - instead of Perl > 2). Automating my build process > 3). (Possibly) some web data retrieval jobs > > Can an

Re: Syntax Question - list multiplication

2007-08-19 Thread James Stroud
MC wrote: > Classic Thanks Michel, but maybe this bit of programming jargon needs some translation for the uninitiated: Classic \Clas"sic\ (kl[a^]s"s[i^]k), Classical \Clas"sic*al\, a. 0. Read the FAQ 1. First rate 2. Greek 3. Refined James -- James Stroud UCLA-DOE Institute for Genomics and

Re: question

2007-08-19 Thread CarpeSkium
On Aug 17, 2:34 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > "I've parsed a webpage into a text file. In doing so, I've kept all > > the text I'm interested in, and removed all the text I don't want. My > > result is a text file that iscomma-separated. However, the tex

Re: Sorting a list of Unicode strings?

2007-08-19 Thread thebjorn
On Aug 19, 8:09 pm, [EMAIL PROTECTED] (Alex Martelli) wrote: [...] > In both Swedish and Danish, I believe, A-with-ring sorts AFTER the > letter Z in the alphabet; so, having Åaland (where I'm using Aa for > A-with-ring, since this newsreader has some problem in letting me enter > non-ascii charact

Re: Python question (PyNoob)

2007-08-19 Thread Pablo Torres
On Aug 19, 7:33 pm, Anonymous <[EMAIL PROTECTED]> wrote: > I have exp with C/C++ (and a few other langs). I want to use Python to > start doing the ff: > > 1). Data Munging (text processing) - instead of Perl > 2). Automating my build process > 3). (Possibly) some web data retrieval jobs > > Can an

Re: Python question (PyNoob)

2007-08-19 Thread Erik Max Francis
Anonymous wrote: > I have exp with C/C++ (and a few other langs). I want to use Python to > start doing the ff: > > 1). Data Munging (text processing) - instead of Perl > 2). Automating my build process > 3). (Possibly) some web data retrieval jobs > > Can anyone point me to resurces/possibly s

Python question (PyNoob)

2007-08-19 Thread Anonymous
I have exp with C/C++ (and a few other langs). I want to use Python to start doing the ff: 1). Data Munging (text processing) - instead of Perl 2). Automating my build process 3). (Possibly) some web data retrieval jobs Can anyone point me to resurces/possibly scripts that can get me up to spee

Re: Sorting a list of Unicode strings?

2007-08-19 Thread Steve Holden
Alex Martelli wrote: > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: >... Maybe I'm missing something fundamental here, but if I have a list of Unicode strings, and I want to sort these alphabetically, then it places those that begin with unicode characters at the bottom. >...

Re: "Variable variable name" or "variable lvalue"

2007-08-19 Thread Steve Holden
Gary Herron wrote: > [EMAIL PROTECTED] wrote: >> On Aug 15, 1:42 pm, mfglinux <[EMAIL PROTECTED]> wrote: >> >>> Hello to everybody >>> >>> I would like to know how to declare in python a "variable name" that >>> it is in turn a variable >>> In bash shell I would wrote sthg like: >>> >>> for x in

Xah's Edu Corner: Under the spell of Leibniz's dream

2007-08-19 Thread Xah Lee
Dear computing comrades, Today, i'd like to show you a piece of literature written by a eminent mathematician Edsger W Dijkstra. Here's 2 interesting quote from his letter: “The prevaling attitude was reflected in the creation of two literary figures — admittedly of rather poor literature, but n

Re: Syntax Question - list multiplication

2007-08-19 Thread Duncan Smith
Roel Schroeven wrote: > Pablo Torres schreef: > >> Hi guys! >> >> I am working on Conway's Game of Life right now and I've run into a >> little problem. >> I represent dead cells with 0s and live ones with 1s. Check this out: >> >> >>> grid = [[0] * 3] * 3 >> >>> grid >> [[0, 0, 0], [0

Re: Syntax Question - list multiplication

2007-08-19 Thread Pablo Torres
Thanks everyone. Now I see why every row in my grid were actually the same object. Pablo -- http://mail.python.org/mailman/listinfo/python-list

Re: Can I add methods to built in types with classes?

2007-08-19 Thread Scott David Daniels
CC wrote: > ... But am still a long way from seeing how I can use this OOP stuff. > ... I wrote: > from string import hexdigits > def ishex(word): > for d in word: > if d not in hexdigits: return(False) > else return(True) > Then I can do this to check if a string is

Can I add methods to built in types with classes?

2007-08-19 Thread CC
Hi: I've gotten through most of the "9. Classes" section of the tutorial. I can deal with the syntax. I understand the gist of what it does enough that I can play with it. But am still a long way from seeing how I can use this OOP stuff. But I have one idea. Not that the functional approac

Re: desperately in need of a tool

2007-08-19 Thread Chris Mellon
On 8/19/07, yagyala <[EMAIL PROTECTED]> wrote: > Hi. > > I recently started working for a company that has just implemented its > first set of software standards. So far, so good. Here's the problem: > one of those standards is that the comments for each routine must > indicate every other routine

Re: Latest models of Gibson guitars

2007-08-19 Thread thebjorn
On Aug 19, 8:41 pm, [EMAIL PROTECTED] wrote: > On 19 kol, 19:34, [EMAIL PROTECTED] wrote: > [spam] > > Hello, > > This is a newsgroup of programming language Python, stop with this! > > Regards, > Vedran As someone else pointed out, this is more widely disseminated than just c.l.py. If you feel t

Re: Python on Computation, Math and Statistics

2007-08-19 Thread W. Watson
Thanks. That looks interesting. Jaap Spies wrote: > W. Watson wrote: >> I would hope Python is doing a lot of standard computations beyond >> arithmetic. Trig functions and more. Comments? > > Try SAGE: http://www.sagemath.org/ > > Jaap > > > Permanents are here forever. --

Re: Python on Computation, Math and Statistics

2007-08-19 Thread W. Watson
Thanks. Paul McGuire wrote: > On Aug 19, 2:32 pm, "W. Watson" <[EMAIL PROTECTED]> wrote: >> Google? What's that? Thanks. I like to get a insider's view when I know >> experts are out there. > > FYI the "insiders" and "experts" out there appreciate knowing that you > did a little work on your own

Re: Python on Computation, Math and Statistics

2007-08-19 Thread W. Watson
Thanks. I appreciate the info. Diez B. Roggisch wrote: > W. Watson schrieb: >> Google? What's that? Thanks. I like to get a insider's view when I >> know experts are out there. So now I ask a deeper question. Are there >> matrix computation libraries or even statistical (regression, factor >> a

Re: Syntax Question - list multiplication

2007-08-19 Thread Roel Schroeven
Pablo Torres schreef: > Hi guys! > > I am working on Conway's Game of Life right now and I've run into a > little problem. > I represent dead cells with 0s and live ones with 1s. Check this out: > > >>> grid = [[0] * 3] * 3 > >>> grid > [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >

Re: Syntax Question - list multiplication

2007-08-19 Thread Thomas Jollans
On Sunday 19 August 2007, Pablo Torres wrote: > Hi guys! > > I am working on Conway's Game of Life right now and I've run into a > little problem. > > I represent dead cells with 0s and live ones with 1s. Check this out: > >>> grid = [[0] * 3] * 3 > >>> grid > > [[0, 0, 0], [0, 0,

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Jaap Spies
W. Watson wrote: > I would hope Python is doing a lot of standard computations beyond > arithmetic. Trig functions and more. Comments? Try SAGE: http://www.sagemath.org/ Jaap Permanents are here forever. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-19 Thread Richard Jones
Gary Herron wrote: > Jason wrote: >> On Aug 17, 6:42 pm, Carl Banks <[EMAIL PROTECTED]> wrote: >> >>> Windows comes with OpenGL libraries. However, before you can use >>> OpenGL you'll need a package that can provide an OpenGL context, which >>> PyOpenGL doesn't do (easily). >>> >>> PyGame is t

Re: A problem with Time

2007-08-19 Thread Dick Moores
At 08:30 AM 8/16/2007, special_dragonfly wrote: >Hello, > >I need to return the date yesterday in the form DDMM. I looked through >the modules: time, datetime and calendar but can't find anything that leaps >out at me. > >The problem I'm having is that although I can use time.localtime and get

desperately in need of a tool

2007-08-19 Thread yagyala
Hi. I recently started working for a company that has just implemented its first set of software standards. So far, so good. Here's the problem: one of those standards is that the comments for each routine must indicate every other routine that it calls. As I try to keep my routines small, and fac

Re: Syntax Question - list multiplication

2007-08-19 Thread MC
Classic -- @-salutations Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Syntax Question - list multiplication

2007-08-19 Thread Pablo Torres
Hi guys! I am working on Conway's Game of Life right now and I've run into a little problem. I represent dead cells with 0s and live ones with 1s. Check this out: >>> grid = [[0] * 3] * 3 >>> grid [[0, 0, 0], [0, 0, 0], [0, 0, 0]] >>> grid[0][0] = 1 [[1, 0,

Re: How to make a module function visible only inside the module?

2007-08-19 Thread Bjoern Schliessmann
beginner wrote: > I just started learning the language. I wasn't aware of the PEP. Mh, two postings before Lawrence already mentioned it. I suggest looking through the BeginnersGuide. http://wiki.python.org/moin/BeginnersGuide Regards, Björn -- BOFH excuse #203: Write-only-memory subsyste

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Paul McGuire
On Aug 19, 2:32 pm, "W. Watson" <[EMAIL PROTECTED]> wrote: > Google? What's that? Thanks. I like to get a insider's view when I know > experts are out there. FYI the "insiders" and "experts" out there appreciate knowing that you did a little work on your own before just posting questions. "I like

Re: Development for dual core machine

2007-08-19 Thread Bjoern Schliessmann
Paul Rubin wrote: > Python threading doesn't support multiple CPU's because of the > GIL. :s/support/take full advantage of/ Regards, Björn -- BOFH excuse #46: waste water tank overflowed onto computer -- http://mail.python.org/mailman/listinfo/python-list

Re: Development for dual core machine

2007-08-19 Thread Bjoern Schliessmann
samwyse wrote: > The Python interpreter is not multi-cpu aware, so using Python > threads won't work on multiple CPUs. Are you sure about this? Regards, Björn -- BOFH excuse #12: dry joints on cable plug -- http://mail.python.org/mailman/listinfo/python-list

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Bjoern Schliessmann
Buchoux Sébastien wrote: > Yeah, I know this is a FAQ, but, as you mention, there is a whole > bunch of editors, every one of them being updated constantly (+ > the new ones getting out). Are you really sure that you know the meaning of the word "frequently"? > So I am quite sure that looking th

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Dick Moores
At 02:47 AM 8/19/2007, Sébastien wrote: >Hi folks, > >I am currently using Eclipse+PyDev when developping Python projects but >I lack a fast, simple editor for tiny bit of scripts. So here is my >question: what is, for you, the current best ( but still kind of light! >) Python editor/IDE ? A tiny p

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Sebastian Bassi
On 8/19/07, W. Watson <[EMAIL PROTECTED]> wrote: > Google? What's that? Thanks. I like to get a insider's view when I know > experts are out there. So now I ask a deeper question. Are there matrix > computation libraries or even statistical (regression, factor analysis) > libraries? If you are so

Re: 1)URL QueryString Parsing 2)Search Engine Spiders

2007-08-19 Thread mosscliffe
On 19 Aug, 13:54, samwyse <[EMAIL PROTECTED]> wrote: > mosscliffewrote: > > I am trying to create a back link, equivalent to the browser back > > action and I can not use java script. The target user does not allow > > java script. > > > I am using HTTP_REFERER. > > > I need to add the original Que

Re: Latest models of Gibson guitars

2007-08-19 Thread Hermit
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Reviews of latest models of best guitars, fender, gibson, yamaha, and > many more, with pictures and prices. > > http://pro-guitars.blogspot.com/ > > > And if you want to win a free guitar go here > > http://freeguitars.blogspot.com/ >

Re: Symbolic Link

2007-08-19 Thread mosscliffe
On 19 Aug, 13:16, samwyse <[EMAIL PROTECTED]> wrote: > mosscliffewrote: > > I am trying to create a link to a file, which I can then use in an > > HTML page. > > > The system is Linux on a hosted web service, running python 2.3. > > Other than that I have no knowledge of the system. > > > The link

Re: A/C Systems!

2007-08-19 Thread Daniel Pitts
On Aug 19, 10:42 am, [EMAIL PROTECTED] wrote: > On Aug 19, 7:39 pm, [EMAIL PROTECTED] wrote: > > > Everything you need to know about car air conditioners... > > >http://car-air-conditioning.spamspot.spam/ > > Great website man, I found everything I need Perhaps you did, after all, you advertise it

Re: Latest models of Gibson guitars

2007-08-19 Thread George
[EMAIL PROTECTED] wrote: > On 19 kol, 19:34, [EMAIL PROTECTED] wrote: >> Reviews of latest models of best guitars, fender, gibson, yamaha, and >> many more, with pictures and prices. >> >> http://spam-guitars.blogspot.com/ >> >> And if you want to win a free guitar go here >> >> http://spamguitars.

Re: Parser Generator?

2007-08-19 Thread Alex Martelli
Jack <[EMAIL PROTECTED]> wrote: > Thanks for the suggestion. I understand that more work is needed for natural > language > understanding. What I want to do is actually very simple - I pre-screen the > user > typed text. If it's a simple syntax my code understands, like, Weather in > London, I'll

Re: Latest models of Gibson guitars

2007-08-19 Thread Arne Vajhøj
[EMAIL PROTECTED] wrote: [some spam deleted] > This is a newsgroup of programming language Python, stop with this! Actually this was posted to a bunch of newsgroups of which one is about python. Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Diez B. Roggisch
W. Watson schrieb: > Google? What's that? Thanks. I like to get a insider's view when I know > experts are out there. So now I ask a deeper question. Are there matrix > computation libraries or even statistical (regression, factor analysis) > libraries? That's your idea of an "in depth question

Re: Overriding Thread.join in derived class.

2007-08-19 Thread Gabriel Genellina
On 18 ago, 04:31, Graham Dumpleton <[EMAIL PROTECTED]> wrote: > If one creates a thread using threading.Thread and makes it a daemon > by calling setDaemon(), then when Python is exiting it will not > attempt to call join() on that thread and wait for it to complete > first. [...] > End result is

Re: Python on Computation, Math and Statistics

2007-08-19 Thread W. Watson
Google? What's that? Thanks. I like to get a insider's view when I know experts are out there. So now I ask a deeper question. Are there matrix computation libraries or even statistical (regression, factor analysis) libraries? Diez B. Roggisch wrote: > W. Watson schrieb: >> I would hope Python

Re: How to make a module function visible only inside the module?

2007-08-19 Thread Gabriel Genellina
On 18 ago, 22:46, beginner <[EMAIL PROTECTED]> wrote: > On Aug 18, 8:27 pm, [EMAIL PROTECTED] (Lawrence Oluyede) wrote: > > beginner <[EMAIL PROTECTED]> wrote: > > > Is there any equivalent version of C's static function in Python. I > > > know I can make a class function private by starting a fun

Re: Latest models of Gibson guitars

2007-08-19 Thread Diez B. Roggisch
> Hello, > > This is a newsgroup of programming language Python, stop with this! And by fully citing the message including the links, you increase the visibility of the spammers site. Don't do that. Diez -- http://mail.python.org/mailman/listinfo/python-list

Re: Latest models of Gibson guitars

2007-08-19 Thread vedrandekovic
On 19 kol, 19:34, [EMAIL PROTECTED] wrote: > Reviews of latest models of best guitars, fender, gibson, yamaha, and > many more, with pictures and prices. > > http://pro-guitars.blogspot.com/ > > And if you want to win a free guitar go here > > http://freeguitars.blogspot.com/ Hello, This is a ne

Re: ctypes and unsigned char*

2007-08-19 Thread Gabriel Genellina
On 19 ago, 14:44, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi, > > can anybody with ctypes experience tell me, how to handle a C function > that returns an unsigned char*? Obviously it is not a restype of > c_char_p. Being signed or unsigned is not important here. But you have to disambigu

Re: Python on Computation, Math and Statistics

2007-08-19 Thread Diez B. Roggisch
W. Watson schrieb: > I would hope Python is doing a lot of standard computations beyond > arithmetic. Trig functions and more. Comments? Bad google day? http://docs.python.org/lib/numeric.html Additionally, there are several scientific extensions, like SciPy, Numeric/Numpy and so forth. Diez

Re: ctypes and unsigned char*

2007-08-19 Thread Diez B. Roggisch
[EMAIL PROTECTED] schrieb: > Hi, > > can anybody with ctypes experience tell me, how to handle a C function > that returns an unsigned char*? Obviously it is not a restype of > c_char_p. From the docs: c_ubyte Represents the C unsigned char datatype, it interprets the value as small inte

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread math2life
On Aug 19, 2:47 am, Sébastien <[EMAIL PROTECTED]> wrote: > Hi folks, > > I am currently using Eclipse+PyDev when developping Python projects but > I lack a fast, simple editor for tiny bit of scripts. So here is my > question: what is, for you, the current best ( but still kind of light! > ) Python

Python on Computation, Math and Statistics

2007-08-19 Thread W. Watson
I would hope Python is doing a lot of standard computations beyond arithmetic. Trig functions and more. Comments? -- Wayne Watson (Nevada City, CA) Web Page: -- http://mail.python.org/mailman/listinfo/python-list

Re: Parser Generator?

2007-08-19 Thread Jack
Thanks for the suggestion. I understand that more work is needed for natural language understanding. What I want to do is actually very simple - I pre-screen the user typed text. If it's a simple syntax my code understands, like, Weather in London, I'll redirect it to a weather site. Or, if it's

Re: Sorting a list of Unicode strings?

2007-08-19 Thread Alex Martelli
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: ... > > > Maybe I'm missing something fundamental here, but if I have a list of > > > Unicode strings, and I want to sort these alphabetically, then it > > > places those that begin with unicode characters at the bottom. ... > Anyway, I know _why_

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-19 Thread Gary Herron
Jason wrote: > On Aug 17, 6:42 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > >> Windows comes with OpenGL libraries. However, before you can use >> OpenGL you'll need a package that can provide an OpenGL context, which >> PyOpenGL doesn't do (easily). >> >> PyGame is the typical choice for most u

Re: A/C Systems!

2007-08-19 Thread Torrey Hills
On Aug 19, 10:42 am, [EMAIL PROTECTED] wrote: > On Aug 19, 7:39 pm, [EMAIL PROTECTED] wrote: > > > Everything you need to know about car air conditioners... > > >http://car-air-conditioning.blogspot.com/ > > Great website man, I found everything I need A lot of wonderful tips. Thanks. Ken Oppor

Re: yet another indentation proposal

2007-08-19 Thread O.R.Senthil Kumaran
Hi Aaron, > Finally, just to be clear, I do not want to change the way 99.9% of Python > code is written. I feel that the indentation model is a good one for 99.9% > of users. What I do want to do is simply give the Python interpreter a tiny > bit more flexibility to handle code from users or

ctypes and unsigned char*

2007-08-19 Thread [EMAIL PROTECTED]
Hi, can anybody with ctypes experience tell me, how to handle a C function that returns an unsigned char*? Obviously it is not a restype of c_char_p. Best regards, Oliver -- http://mail.python.org/mailman/listinfo/python-list

Re: A/C Systems!

2007-08-19 Thread carairconditionersmail
On Aug 19, 7:39 pm, [EMAIL PROTECTED] wrote: > Everything you need to know about car air conditioners... > > http://car-air-conditioning.blogspot.com/ Great website man, I found everything I need -- http://mail.python.org/mailman/listinfo/python-list

A/C Systems!

2007-08-19 Thread Cartuners
Everything you need to know about car air conditioners... http://car-air-conditioning.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: How to find script's directory

2007-08-19 Thread Tuomas
#!/usr/bin/python # module show_my_path # ... import os print 'os.path.abspath(__file__):', os.path.abspath(__file__) # ... # end of module [EMAIL PROTECTED] class]$ python >>> import show_my_path os.path.abspath(__file__): /misc/proc/py/test/class/show_my_path.py >>> [EMAIL PROTECTED] class]$ p

Latest models of Gibson guitars

2007-08-19 Thread mobilendd
Reviews of latest models of best guitars, fender, gibson, yamaha, and many more, with pictures and prices. http://pro-guitars.blogspot.com/ And if you want to win a free guitar go here http://freeguitars.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Development for dual core machine

2007-08-19 Thread Paul Rubin
Andy <[EMAIL PROTECTED]> writes: > >From what I read, I think that simply by making the package run in > several separate processes (web server, database server, Python > interpreter, etc.), and/or using multiple threads (which I will > anyway) the package should be able to use multiple CPUs. Pyth

Re: imaplib & Received: header(s)???

2007-08-19 Thread Donn Cave
Quoth Petri Savolainen <[EMAIL PROTECTED]>: | Is there a way to get at the "Received" header(s) or is there something | in imaplib or imap server implementations that hides these? If not, what | IMAP FETCH command should be used? I've used for example | "BODY[HEADER.FIELDS (RECEIVED)]" and it a

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Diez B. Roggisch
Buchoux Sébastien schrieb: > Bjoern Schliessmann wrote: >> Sébastien wrote: >> >>> I am currently using Eclipse+PyDev when developping Python >>> projects but I lack a fast, simple editor for tiny bit of scripts. >>> So here is my question: what is, for you, the current best ( but >>> still kind

Re: "Variable variable name" or "variable lvalue"

2007-08-19 Thread Gary Herron
[EMAIL PROTECTED] wrote: > On Aug 15, 1:42 pm, mfglinux <[EMAIL PROTECTED]> wrote: > >> Hello to everybody >> >> I would like to know how to declare in python a "variable name" that >> it is in turn a variable >> In bash shell I would wrote sthg like: >> >> for x in `seq 1 3` >> do >> M$i=Mate

Re: Sorting a list of Unicode strings?

2007-08-19 Thread [EMAIL PROTECTED]
On Aug 19, 6:01 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > Hey Guys, > > ... and girls - maybe ... > > > Maybe I'm missing something fundamental here, but if I have a list of > > Unicode strings, and I want to sort these alphabetically, then it > > places those that

Re: Sorting a list of Unicode strings?

2007-08-19 Thread Stefan Behnel
[EMAIL PROTECTED] wrote: > Hey Guys, ... and girls - maybe ... > Maybe I'm missing something fundamental here, but if I have a list of > Unicode strings, and I want to sort these alphabetically, then it > places those that begin with unicode characters at the bottom. That's because "Unicode" is

Sorting a list of Unicode strings?

2007-08-19 Thread [EMAIL PROTECTED]
Hey Guys, Maybe I'm missing something fundamental here, but if I have a list of Unicode strings, and I want to sort these alphabetically, then it places those that begin with unicode characters at the bottom. Is there a way to avoid this, and make it sort them properly? I'm sure that this is the

Re: How to find script's directory

2007-08-19 Thread Jeffrey Froman
Papalagi Pakeha wrote: > I guess I could do it with a little help of os.path.realpath() for all > those cases where absolute or relative path was used. But how should I > approach it when it's invoked as plain 'blah.py' because its directory > name is in $PATH? Use the value of __file__ rather t

Re: How to setup pyOpenGL3.0.a6 for window xp?

2007-08-19 Thread Jason
On Aug 17, 6:42 pm, Carl Banks <[EMAIL PROTECTED]> wrote: > Windows comes with OpenGL libraries. However, before you can use > OpenGL you'll need a package that can provide an OpenGL context, which > PyOpenGL doesn't do (easily). > > PyGame is the typical choice for most uses. If all you need is

Re: "Variable variable name" or "variable lvalue"

2007-08-19 Thread inmmike
On Aug 15, 1:42 pm, mfglinux <[EMAIL PROTECTED]> wrote: > Hello to everybody > > I would like to know how to declare in python a "variable name" that > it is in turn a variable > In bash shell I would wrote sthg like: > > for x in `seq 1 3` > do > M$i=Material(x) #Material is a python class > do

Re: How to make a module function visible only inside the module?

2007-08-19 Thread beginner
On Aug 19, 7:45 am, Bjoern Schliessmann wrote: > beginner wrote: > > Thanks a lot. I was using two underscores, __module_method() as my > > static method convention, and then I had some problems calling > > them from inside class methods. > > *Please* do yourself and other people that sometime may

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Wildemar Wildenburger
Buchoux Sébastien wrote: > Yeah, I know this is a FAQ, but, as you mention, there is a whole bunch > of editors, every one of them being updated constantly (+ the new ones > getting out). So I am quite sure that looking through the archives is > THE solution since it will only reflect what peopl

Re: yet another indentation proposal

2007-08-19 Thread Aaron
"Paddy" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > Oh wow. it never crossed my mind... > > Can screen reaaderss be customized? > Maybe their is a way to get the screen reader to say indent and dedent > at thee appropriate places? > Or maybe a filter to put those wordds into th

Re: yet another indentation proposal

2007-08-19 Thread Alex Martelli
Paddy <[EMAIL PROTECTED]> wrote: ... > Can screen reaaderss be customized? Open-source ones surely can (e.g., NVDA is an open-source reader for Windows written in Python, -- alas, if you search for NVDA Google appears to be totally convinced you mean NVidia instea

Re: clarification

2007-08-19 Thread Alex Martelli
samwyse <[EMAIL PROTECTED]> wrote: ... > > brain:~ alex$ python -mtimeit -s'sos=[set(range(x,x+4)) for x in > > range(0, 100, 3)]' 'r=set()' 'for x in sos: r.update(x)' > > 10 loops, best of 3: 18.8 usec per loop > > > > brain:~ alex$ python -mtimeit -s'sos=[set(range(x,x+4)) for x in > > r

Re: Hot subject: a good python editor and/or IDE?

2007-08-19 Thread Paddy
On Aug 19, 10:47 am, Sébastien <[EMAIL PROTECTED]> wrote: > Hi folks, > > I am currently using Eclipse+PyDev when developping Python projects but > I lack a fast, simple editor for tiny bit of scripts. So here is my > question: what is, for you, the current best ( but still kind of light! > ) Pytho

Re: Python syntax r prefix to a string

2007-08-19 Thread Paddy
On Aug 19, 4:43 pm, goldtech <[EMAIL PROTECTED]> wrote: > Does anyone know this syntax and could link me to an explanation? > > Something like: > > Workspace = r'C:\foobar\mystuff\xyz' > > What's that "r" doing? Sometimes I see a "u" too. > > Explanation appreciated. > > Thanks, > Lee G. Search fo

Re: yet another indentation proposal

2007-08-19 Thread Paddy
On Aug 18, 7:22 pm, "Aaron" <[EMAIL PROTECTED]> wrote: > Hello all. > > I realize that proposals dealing with alternatives to indentation have been > brought up (and shot down) before, but I would like to take another stab at > it, because it is rather important to me. > > I am totally blind, and

  1   2   >