Excel module for Python

2005-01-11 Thread sam
Hi group, I m wondering which Excel module is good to be used by Python? Thanks Sam -- http://mail.python.org/mailman/listinfo/python-list

Re: Windows GUIs from Python

2005-01-11 Thread Jon Perez
Wow, Venster looks cool and to think I've never heard of it before. I knew following this newsgroup would pay off one day... Luke Skywalker wrote: On Tue, 11 Jan 2005 22:15:36 +0100, Thomas Heller <[EMAIL PROTECTED]> wrote: Well, venster. Although it is most certainly alpha. But with some work..

Re: a new Perl/Python a day

2005-01-11 Thread Jon Perez
Bob Smith wrote: With terms such as "blabbering Unix donkeys" and "sloppy perl monkeys" I would say that the monkey-mind is indeed one that is enamoured with obfuscation and complicated gadgetry for its own sake. Ever wonder why no one has ever considered using the phrase "Zen of Perl"? (yes, it

20050111: list basics

2005-01-11 Thread Xah Lee
# in Python, list can be done this way: a = [0, 1, 2, 'more',4,5,6] print a # list can be joined with plus sign b = a + [4,5,6] print b # list can be extracted by appending a square bracket with index # negative index counts from right. print b[2] print b[-2] # sublist extraction print 'element

Re: [OT] SciTe

2005-01-11 Thread Fouff
I use Scintilla which is Scite with a lot of configurations files. In directory exists a file "cpp.properties" and near the end of the file is describe the command line use to compile, to link, ... I think you would be able to change here the compiler. regards Fouff -- http://mail.python.org/mail

Re: Python.org, Website of Satan

2005-01-11 Thread Tim Daneliuk
DogWalker wrote: "Luis M. Gonzalez" <[EMAIL PROTECTED]> said: [EMAIL PROTECTED] wrote: python.org = 194.109.137.226 194 + 109 + 137 + 226 = 666 What is this website with such a demonic name and IP address? What evils are the programmers who use this language up to? You dared to unveil our secret.

Re: Python.org, Website of Satan

2005-01-11 Thread Brian Eable
[EMAIL PROTECTED] writes: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 BUT! perl -e '$a="194.109.137.226"; @a = reverse split /\./, $a; for $i (0..3) { $sum += $a[$i]*(256**$i) } print "sum = $sum\n"' 226 + 35072 + 7143424 + 3254779904 = 3261958626 http://3261958626/ Whic

Re: Help Optimizing Word Search

2005-01-11 Thread snoe
Mike, Thanks, this worked great, and was 4x faster than my method! Thanks everyone for replying! The changes I made were: !rest = ''.join([chr(i) for i in range(256) if chr(i).upper() not in WORD]) !# a wildcard in the word means that we check all letters !if '?' in WORD: !rest = '' !trans

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-11 Thread michele . simionato
Paul Rubin: > [EMAIL PROTECTED] writes: >> > It wasn't obvious how to do it in Scheme either. There was quite > a bit of head scratching and experimental implementation before > there was consensus. Actually I am not convinced there is consensus yet, i.e. there is a non-negligible minority of s

Re: Help Optimizing Word Search

2005-01-11 Thread snoe
First of all thank you very much for the reply. I hope I'm not too verbose here, just hope that if someone else runs into a similar problem they can find an answer here. > This appears to be a Computer Science 101 Data Structures and > Algorithms question, not a Python question, but here's an answ

Re: Python.org, Website of Satan

2005-01-11 Thread TimC
On Wed, 12 Jan 2005 at 02:06 GMT, [EMAIL PROTECTED] (aka Bruce) was almost, but not quite, entirely unlike tea: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 > > What is this website with such a demonic name and IP address? What > evils are the programmers who use this languag

Re: Python.org, Website of Satan

2005-01-11 Thread Jane
"La bouche de la vérité - Déjà Vu Le Prophéte" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Your Uncle Wally just luuirvs > Monty Python -- especially John Clesse, Eric Idle > & Michael Palin -- very funny > > he he he ;-) Believe it or not, we have something

Re: Checking for X availability

2005-01-11 Thread Dan Stromberg
On Tue, 11 Jan 2005 03:32:01 -0800, Flavio codeco coelho wrote: > I have a program that uses pythondialog for its UI. > > Pythondialog is a wrapper of the shell dialog and xdialog libs. > > But I would like for it to switch between using Dialog ( when X is not > available ) and xdialog (when X

Re: Help Optimizing Word Search

2005-01-11 Thread Mike C. Fletcher
To search for a word which is a jumble of a given set of characters in a (sizable) lexicon, see this posting: http://blog.vrplumber.com/427 your alterations would be to check for length == to length - number-of-wildcards (with the wildcards removed from the translation table, of course) and

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Paul Rubin
[EMAIL PROTECTED] (David M. Cooke) writes: > >> > lists of incoming links to wiki pages, > ... > Most Wiki implementations (MoinMoin included) have this, by using a > search. Usually, following the original Wiki (http://c2.com/cgi/wiki) > model, you get at it by clicking on the title of the page. >

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread David M. Cooke
Paul Rubin writes: > Alexander Schremmer <[EMAIL PROTECTED]> writes: >> > lists of incoming links to wiki pages, >> >> It does. > > Huh? I don't see those. How does it store them, that's resilient > across crashes? Or does it just get wedged if there's a crash? Mos

Re: stopping the sound server in PySol code -- how?

2005-01-11 Thread carl . lowenstein
# chmod 000 /usr/lib/python2.3/site-packages/pysolsoundserver.so crude but very effective. carl -- http://mail.python.org/mailman/listinfo/python-list

Detecting shutdown of remote socket endpoint.

2005-01-11 Thread Tim Gosselin
I am writing a tcp tunnel but cannot find a way of detecting when a socket shuts down its read end without writing to the socket. For testing the write end of the remote endpoint I just do a: if not sock.recv(buffsize) I cannot write to the socket and check if send returns 0 though, because that

Re: Python.org, Website of Satan

2005-01-11 Thread Tim Churches
[EMAIL PROTECTED] wrote: > > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 > > What is this website with such a demonic name and IP address? What > evils are the programmers who use this language up to? More evidence of Beelzebub at work: GUIDO VAN ROSSUM is an anagram of SAVIO

Re: complex numbers

2005-01-11 Thread It's me
"Robert Kern" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > That's *it*. So, how would you overload an operator to do: With native complex support: def twice(a): return 2*a print twice(3+4j), twice(2), twice("abc") Let's presume for a moment that complex is *not* a nati

Re: Python.org, Website of Satan

2005-01-11 Thread DogWalker
"Luis M. Gonzalez" <[EMAIL PROTECTED]> said: >[EMAIL PROTECTED] wrote: >> python.org = 194.109.137.226 >> >> 194 + 109 + 137 + 226 = 666 >> >> What is this website with such a demonic name and IP address? What >> evils are the programmers who use this language up to? >You dared to unveil our secr

Re: Python.org, Website of Satan

2005-01-11 Thread Luis M. Gonzalez
[EMAIL PROTECTED] wrote: > python.org = 194.109.137.226 > > 194 + 109 + 137 + 226 = 666 > > What is this website with such a demonic name and IP address? What > evils are the programmers who use this language up to? You dared to unveil our secret. Now we'll have to kill you... -- http://mail.pyt

Re: appending data to an xml file

2005-01-11 Thread Peter Hansen
Thomas Heller wrote: I want to append/insert additional data to an xml file. [...] Better, imo, would be to add the dumped info into a proper xml tag, and inject it into the original file. Is that (efficiently) possible? My technique, when I can't just strip the root element and have a document fr

Re: readline, rlcompleter

2005-01-11 Thread python
There is a pretty complete (no pun intended) example in the standard cmd module Check file cmd.py in your Python installation .../lib/pythonX.Y/cmd.py, specifically the methods Cmd.preloop() and Cmd.complete(). Another, more elaborate example is in Py

Python.org, Website of Satan

2005-01-11 Thread humblythegreatest
python.org = 194.109.137.226 194 + 109 + 137 + 226 = 666 What is this website with such a demonic name and IP address? What evils are the programmers who use this language up to? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python.org, Website of Satan

2005-01-11 Thread La bouche de la vérité - Déjà Vu Le Prophéte
Your Uncle Wally just luuirvs Monty Python -- especially John Clesse, Eric Idle & Michael Palin -- very funny he he he ;-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python.org, Website of Satan

2005-01-11 Thread jay j bee
On 12-01-2005 03:06, in article [EMAIL PROTECTED], "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > python.org "Python - why settle for snake oil when you can have the whole snake?" Greetz -- http://mail.python.org/mailman/listinfo/python-list

Re: Help Optimizing Word Search

2005-01-11 Thread John Machin
Paul Rubin wrote: > "Case Nelson" <[EMAIL PROTECTED]> writes: > > Basically, the program needs to take in a random list of no more than > > 10 letters, and find all possible mutations that match a word in my > > dictionary (80k words). However a wildcard letter '?' is also an > > acceptable char

Re: Help Optimizing Word Search

2005-01-11 Thread Paul Rubin
"Case Nelson" <[EMAIL PROTECTED]> writes: > Basically, the program needs to take in a random list of no more than > 10 letters, and find all possible mutations that match a word in my > dictionary (80k words). However a wildcard letter '?' is also an > acceptable character which increases the wor

Re: a new Perl/Python a day

2005-01-11 Thread Bob Smith
Peter Maas wrote: Charlton Wilbur schrieb: "XL" == Xah Lee <[EMAIL PROTECTED]> writes: XL> i'll cross post to comp.lang.perl.misc and comp.lang.python. XL> If you spot mistakes, feel free to correct or discourse here. Error #1: crossposting to those two groups. (Error #2 is implying that

Re: SciTe

2005-01-11 Thread John Machin
Lucas Raab wrote: > I didn't want to go through the rigamole of adding myself to the SciTe > mailing list, so I'm asking my question here. How do I choose a > different C/C++ compiler to compile in?? I don't use the g++ compiler; I > use the VC 7 compiler. > > TIA, > Lucas How the @#$% should we

Re: Game programming in Python

2005-01-11 Thread Simon Wittber
> I'm looking for any books or on-line resources on game programming > using Python. Does anyone have any advice? Hi Baza, If I you are as I assume, a programmer just starting out with game programming, the best suggestion I can give is head over to pygame.org, and after downloading and installi

Re: python guy ide

2005-01-11 Thread Jeff Shannon
Kartic wrote: SPE is great, but it stops responding when I try to run my wxPython apps (probably something I am doing!). I don't know about SPE specifically, but this is a common issue with a lot of lower-end IDEs. The IDE is a GUI application, which operates using an event loop. If the IDE r

[OT] SciTe

2005-01-11 Thread Lucas Raab
I didn't want to go through the rigamole of adding myself to the SciTe mailing list, so I'm asking my question here. How do I choose a different C/C++ compiler to compile in?? I don't use the g++ compiler; I use the VC 7 compiler. TIA, Lucas -- http://mail.python.org/mailman/listinfo/python-lis

Re: shutil.move has a mind of its own

2005-01-11 Thread Michael Hoffman
Daniel Bickett wrote: As it happens, the desired locations are system folders (running windows xp, the folders are as follows: C:\WINDOWS, C:\WINDOWS\SYSTEM, C:\WINDOWS\SYSTEM32). To see if this factor was causing the problem, I tried it using the interpreter, and found it to be flawless. I'm not e

Re: Game programming in Python

2005-01-11 Thread Will
Hi Baza, On Tue, 11 Jan 2005 18:32:50 +, Baza <[EMAIL PROTECTED]> wrote: > I'm looking for any books or on-line resources on game programming using > Python. Does anyone have any advice? You're probably beyond this book, however, for other newbies like moi checking this thread in future, I

Re: Help Optimizing Word Search

2005-01-11 Thread John Machin
Case Nelson wrote: > Hi there I've just been playing around with some python code and I've > got a fun little optimization problem I could use some help with. > > Basically, the program needs to take in a random list of no more than > 10 letters, and find all possible mutations that match a word

Re: Game programming in Python

2005-01-11 Thread Michael Sparks
On Tue, 11 Jan 2005, Baza wrote: > I'm looking for any books or on-line resources on game programming using > Python. Does anyone have any advice? There's a book called "Games programming with Python" that's quite a good read. Any online bookstore should be able to give you more details. A cursor

Re: shutil.move has a mind of its own

2005-01-11 Thread Daniel Bickett
Don wrote: > I don't know if this is the problem or, not, but: > [snip] As I said, that was simply an error when typing the example, and it is not present in my code. See below. Neil Benn wrote: > >Oh, I'm sorry, that was my mistake. The example contained that error, > >but my code does not. > >

Re: Newbie: Pythonwin

2005-01-11 Thread Adonis
Brent W. Hughes wrote: 1) I'm running a program within Pythonwin. It's taking too long and I want to stop/kill it. What do I do (other than ctrl-alt-del)? 2) I'm running a long program and I want to minimize it to let it continue to run in the background while I do something else in the fore

Re: Windows GUIs from Python

2005-01-11 Thread Luke Skywalker
On Tue, 11 Jan 2005 22:15:36 +0100, Thomas Heller <[EMAIL PROTECTED]> wrote: >Well, venster. Although it is most certainly alpha. But with some >work... Thx, I'll keep an eye on it. http://venster.sourceforge.net/ Luke. -- http://mail.python.org/mailman/listinfo/python-list

Python setup question

2005-01-11 Thread Robert Lin
Hi, Sorry for this newbie question, I was wondering if anyone knows why when I run the test, the "test_anydbm" test will seg fault and the tests "test_aepack" and "test_al" are skipped? Thanks in advance. __   Robert Lin Eng. Intern | Blue Jungle | Redwood

Re: Python setup question

2005-01-11 Thread Lucas Raab
Robert Lin wrote: Hi, Sorry for this newbie question, I was wondering if anyone knows why when I run the test, the "test_anydbm" test will seg fault and the tests "test_aepack" and "test_al" are skipped? Thanks in advance. __ Robert Lin Eng. Intern | Blue

Re: Game programming in Python

2005-01-11 Thread Lucas Raab
Mike C. Fletcher wrote: Lucas Raab wrote: Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' www.panda3d.com, www.pygame.org, www.blender3d.com ... http://www.vrplumber.com/py3d.py?category=game HTH, Mi

Re: python guy ide

2005-01-11 Thread Kartic
Ionel, There are IDE's based on wxPython like SPE and DrPython. SPE is great, but it stops responding when I try to run my wxPython apps (probably something I am doing!). DrPython is another free IDE and it is nice too. >From what I have read, WingIDE is an excellent product (it is a commercial p

Newbie: Pythonwin

2005-01-11 Thread Brent W. Hughes
1) I'm running a program within Pythonwin. It's taking too long and I want to stop/kill it. What do I do (other than ctrl-alt-del)? 2) I'm running a long program and I want to minimize it to let it continue to run in the background while I do something else in the foreground. I try clickin

Re: Best way to trap errors in ftplib?

2005-01-11 Thread Mark McEahern
Peter A.Schott wrote: Using ftplib.FTP object for a project we have here to upload/download files. I know that I can wrap everything in try/except blocks, but I'm having trouble getting the exact error messages out of the Exceptions. Consider using the traceback a la: try: [... whatever ...]

Re: shutil.move has a mind of its own

2005-01-11 Thread Don
I don't know if this is the problem or, not, but: shutil.move( "C:\omg.txt" , "C:\folder\subdir" ) Needs to have some special handling for the backslashes. Either: shutil.move( r"C:\omg.txt" , r"C:\folder\subdir" ) or: shutil.move( "C:\\omg.txt" , "C:\\folder\\subdir" ) -Don Daniel Bicket

Re: Python & unicode

2005-01-11 Thread Michel Claveau - abstraction mÃta-galactique non triviale en fuite perpÃtuelle.
ï Hi ! >>> import math>>> Ï = math.piGood sample !  I like too :  e=mc       -- http://mail.python.org/mailman/listinfo/python-list

Re: python guy ide

2005-01-11 Thread Don
ionel wrote: > i'm looking for a clean gui for python with a visual editor of some sort > any sugestions (i know of wxPython but i want to find out if there are > other alternatives) > and it's on win32 :P > Eric? http://www.die-offenbachs.de/detlev/eric3.html -- http://mail.python.org/mailman

XPath and XQuery in Python?

2005-01-11 Thread Nelson Minar
Could someone help me get started using XPath or XQuery in Python? I'm overwhelmed by all the various options and am lacking guidance on what the simplest way to go is. What library do I need to enable three line Python programs to extract data with XPath expressions? I have this problem a lot wit

python guy ide

2005-01-11 Thread ionel
i'm looking for a clean gui for python with a visual editor of some sort any sugestions (i know of wxPython but i want to find out if there are other alternatives) and it's on win32 :P -- ionel. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python & unicode

2005-01-11 Thread Serge Orlov
Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle. wrote: > Hi ! > > >>> It is a least-common-denominator argument, not a "this is better" > argument. > > I understand, but I have a feeling of attempt at hegemony. Is english > language really least-common-denominator f

Re: CGI, anydbm.open() and linux file permissions

2005-01-11 Thread Dan Sommers
On Tue, 11 Jan 2005 15:16:53 -0800 (PST), Derek Basch <[EMAIL PROTECTED]> wrote: > Hello, > I have a CGI script which uses anydb.open() to create a DBM. However I get > this > traceback: > /usr/lib/python2.3/bsddb/__init__.py in > hashopen(file='/var/www/bp/predictor/tools.dbm', flag='c', mode=

Best way to trap errors in ftplib?

2005-01-11 Thread Peter A.Schott
Using ftplib.FTP object for a project we have here to upload/download files. I know that I can wrap everything in try/except blocks, but I'm having trouble getting the exact error messages out of the Exceptions. I'd like to either send an e-mail or log the failure to a database. It would also be

Help Optimizing Word Search

2005-01-11 Thread Case Nelson
Hi there I've just been playing around with some python code and I've got a fun little optimization problem I could use some help with. Basically, the program needs to take in a random list of no more than 10 letters, and find all possible mutations that match a word in my dictionary (80k words).

smtpd.py in python2.4/bin directory?

2005-01-11 Thread Inyeol Lee
After installing Python 2.4 from src tarball I found one new executable in python/bin directory - "smtpd.py". I also found the same file in python/lib/python2.4/. Is this intentional or just a minor bug in build script? Inyeol -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Brion Vibber
Paul Rubin wrote: I think mod_php doesn't play nice with apache2 but am not aware of any cgi interoperability problems. Generally it's recommended to configure apache2 in the child process mode (eg the way that 1.3 works) when using PHP as many library modules are alleged not to be threadsafe. So

Re: Time script help sought!

2005-01-11 Thread Paul McGuire
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > man, now that is beautifully done. Paul, I wish I knew about pyparsing > a while ago. I could have used it in a few projects. :) > Thanks for the compliment! I'll be the first to admit that pyparsing can be a bit persnickety in some ap

Wide Unicode build for Windows available somewhere?

2005-01-11 Thread cwittern
Hi there, I am trying to locate a windows binary of a recent python (2.4 preferred, but not essential) with support for Unicode characters with values greater than 0x1. I have tested the python.org binaries and those from Activestate, both give me a traceback on unichr(0x1) and tell me its

Re: Time script help sought!

2005-01-11 Thread [EMAIL PROTECTED]
man, now that is beautifully done. Paul, I wish I knew about pyparsing a while ago. I could have used it in a few projects. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python & unicode

2005-01-11 Thread Serge Orlov
Leif K-Brooks wrote: > [EMAIL PROTECTED] wrote: > > So is the support of Unicode in virtually every computer language > > because they don't support ... digits except 0..9. > > Hex digits aren't 0..9. > You're right, I forgot about hex. But that's boring :) How about Hebrew numerals which are pres

Re: complex numbers

2005-01-11 Thread Robert Kern
It's me wrote: You are focusing on computational type applications of complex numbers. For those, you can do it with any languages - including machine language. It's just a matter of how much headache you want. For instance, when constructing "software lego parts" (such as the Matlab/Simulink typ

CGI, anydbm.open() and linux file permissions

2005-01-11 Thread Derek Basch
Hello, I have a CGI script which uses anydb.open() to create a DBM. However I get this traceback: /usr/lib/python2.3/bsddb/__init__.py in hashopen(file='/var/www/bp/predictor/tools.dbm', flag='c', mode=438, pgsize=None, ffactor=None, nelem=None, cachesize=None, lorder=None, hflags=0) 190 i

Re: Time script help sought!

2005-01-11 Thread Paul McGuire
"kpp9c" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > still working on it and also fixing the input data. I think for > simplicity and consistency's sake i will have *all* time values input > and output as hh:mm:ss maybe that would be easier but i have a few > thousand find and

Re: Importing Problem on Windows

2005-01-11 Thread John Machin
brolewis wrote: > I have a directory that has two files in it: > > parse.py > parser.py > > parse.py imports a function from parser.py and uses it to parse out the > needed information. On Linux, the following code works without a > problem: > > parse.py, line 1: > from parser import regexsearch >

Re: Importing Problem on Windows

2005-01-11 Thread John Machin
brolewis wrote: > I have a directory that has two files in it: > > parse.py > parser.py > > parse.py imports a function from parser.py and uses it to parse out the > needed information. On Linux, the following code works without a > problem: > > parse.py, line 1: > from parser import regexsearch >

Python script produces "sem_trywait: Permission denied"

2005-01-11 Thread Brown, Warren R
I’ve seen these messages too on AIX 5.2.   It seems to come from doing an “import” on piped/fork processes with a python parent.  (In particular import errno)     I don’t know the “proper” solution but I got rid of the messages (similar messages came up when I ran my app) by hacking P

Re: complex numbers

2005-01-11 Thread It's me
You are focusing on computational type applications of complex numbers. For those, you can do it with any languages - including machine language. It's just a matter of how much headache you want. For instance, when constructing "software lego parts" (such as the Matlab/Simulink type), it's very

Re: Python & unicode

2005-01-11 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
;o)   Python ==.  limits  ,===>    \/             -- http://mail.python.org/mailman/listinfo/python-list

Re: Python & unicode

2005-01-11 Thread Michel Claveau - abstraction méta-galactique non triviale en fuite perpétuelle.
Hi ! >>> It is a least-common-denominator argument, not a "this is better" argument. I understand, but I have a feeling of attempt at hegemony. Is english language really least-common-denominator for a russian who writes into cyrillic, or not anglophone chinese? And, did you think of klingons?

Re: complex numbers

2005-01-11 Thread It's me
"Big and Blue" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > It's me wrote: > > > > I am very happy that Python included *native* complex number > > support. > > And I have always been happy that FORTRAN supports them. > > > I really like Python's notion of hav

Rotation of eigenvector matrix using the varimax method

2005-01-11 Thread drife
Hello, Has anyone a Python script for rotating an eigenvector matrix using the varimax (or quartimax or other) methods? Thanks in advance for your help. Daran -- http://mail.python.org/mailman/listinfo/python-list

Re: Game programming in Python

2005-01-11 Thread Mike C. Fletcher
Lucas Raab wrote: Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' www.panda3d.com, www.pygame.org, www.blender3d.com ... http://www.vrplumber.com/py3d.py?category=game HTH, Mike __

Re: Game programming in Python

2005-01-11 Thread Lucas Raab
Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' www.panda3d.com, www.pygame.org, www.blender3d.com ... -- http://mail.python.org/mailman/listinfo/python-list

Octal notation: severe deprecation

2005-01-11 Thread John Machin
Some poster wrote (in connexion with another topic): > ... unicode("\347", "iso-8859-1") ... Well, I haven't had a good rant for quite a while, so here goes: I'm a bit of a retro specimen, being able (inter alia) to recall octal opcodes from the ICT 1900 series (070=call, 072=exit, 074=branch, .

Re: Time script help sought!

2005-01-11 Thread kpp9c
so all the imput will look more like this now... ( no comments either) tem_133, DAT_20, 7, 00:58:25, 01:15:50 Item_134, DAT_20, 8, 01:15:50, 01:32:15 Item_135, DAT_21, 1, 00:01:00, 00:36:15 Item_136, DAT_60, 3, 00:18:30 Item_136, DAT_60, 4, 00:19:30 Item_136, DAT_60, 5, 00:23:00, 00:28:00 Item

Re: Python serial data aquisition

2005-01-11 Thread Bengt Richter
On 11 Jan 2005 07:51:35 -0800, [EMAIL PROTECTED] (Flavio codeco coelho) wrote: >[EMAIL PROTECTED] (Bengt Richter) wrote in message news:<[EMAIL PROTECTED]>... >> On 9 Jan 2005 14:13:28 -0800, [EMAIL PROTECTED] (Flavio codeco coelho) wrote: >> >> >Hi, >> > >> >I am using pyserial to acquire data f

Re: Time script help sought!

2005-01-11 Thread kpp9c
still working on it and also fixing the input data. I think for simplicity and consistency's sake i will have *all* time values input and output as hh:mm:ss maybe that would be easier but i have a few thousand find and replaceeseseses to do now (yes i am doing them by hand) grr... this is hard

Re: Time script help sought!

2005-01-11 Thread [EMAIL PROTECTED]
using my code above... start = x[3].split(":") #split the minutes from the seconds this splits something like 1:22:40 into three parts 1(hours), 22(mintes), 40(seconds) so, you must add a special case handler... if len(start) == 3: { start[1] = int(start[0]) * 60 + int(start[1]) start = start[1], s

Re: unicode mystery

2005-01-11 Thread John Machin
Sean McIlroy wrote: > I recently found out that unicode("\347", "iso-8859-1") is the > lowercase c-with-cedilla, so I set out to round up the unicode numbers > of the extra characters you need for French, and I found them all just > fine EXCEPT for the o-e ligature (oeuvre, etc). I examined the un

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Peter Maas
Alexander Schremmer schrieb: Having a DBMS backend is good in your opinion? It has some severe disadvantages like not easy to scale (you would need to setup DBMS replication), two potential points of failure, more complex setup, bigger memory requirements, etc. So nobody should use DBMS backends, r

Re: Time script help sought!

2005-01-11 Thread [EMAIL PROTECTED]
post your script here so we can go over it with you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Securing a future for anonymous functions in Python

2005-01-11 Thread Donn Cave
In article <[EMAIL PROTECTED]>, Jeff Shannon <[EMAIL PROTECTED]> wrote: ... > From the sounds of it, you may have the opposite experience with > reading map/lambda vs. reading list comps, though, so we could go back > and forth on this all week without convincing the other. :) I'm with him. L

Re: reference or pointer to some object?

2005-01-11 Thread Jeff Shannon
Torsten Mohr wrote: Hi, i'd like to pass a reference or a pointer to an object to a function. The function should then change the object and the changes should be visible in the calling function. There are two possible meanings of "change the object" in Python. One of them will "just work" for y

Re: readline, rlcompleter

2005-01-11 Thread David M. Cooke
[EMAIL PROTECTED] writes: > This a case where the documentation is lacking. The standard library > documentation > (http://www.python.org/dev/doc/devel/lib/module-rlcompleter.html) gives > this example > try: > import readline > except ImportError: > print "Module readline not available." > else:

Re: Windows GUIs from Python

2005-01-11 Thread Thomas Heller
Luke Skywalker <[EMAIL PROTECTED]> writes: > On Tue, 11 Jan 2005 12:55:42 -0600, Doug Holton <[EMAIL PROTECTED]> wrote: >>You might also be interested in PyGUI although it doesn't have a native >>Windows implementation yet: >>http://nz.cosc.canterbury.ac.nz/~greg/python_gui/ > > Generally speaki

Re: python and macros (again) [Was: python3: 'where' keyword]

2005-01-11 Thread Paul Rubin
[EMAIL PROTECTED] writes: > 2. One could proposed hygienic pattern-matching macros in Python, > similar to > Scheme syntax-rules macros. Again, it is not obvious how to > implement pattern-matching in Python in a non-butt-ugly way. Plus, > I feel hygienic macros quite limited and not worth the effo

Re: Python & unicode

2005-01-11 Thread Leif K-Brooks
[EMAIL PROTECTED] wrote: So is the support of Unicode in virtually every computer language because they don't support ... digits except 0..9. Hex digits aren't 0..9. Python 2.4 (#2, Dec 3 2004, 17:59:05) [GCC 3.3.5 (Debian 1:3.3.5-2)] on linux2 Type "help", "copyright", "credits" or "license" for

appending data to an xml file

2005-01-11 Thread Thomas Heller
I want to append/insert additional data to an xml file. Context: I use gccxml to parse C header files. gccxml creates an xml file containing all the definitions from the header files. The xml files may be somewhat largish, for 'windows.h' it has more than 5 MB. Since the xml does not contain #de

Re: Time script help sought!

2005-01-11 Thread kpp9c
I also notice that there is the is the 'datetime' module, which is new to version 2.3, which i now have access to. My feeling is that this will do much of what i want, but i can't get my head round the standard library reference stuff http://www.python.org/doc/lib/module-datetime.html I don't hav

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Alexander Schremmer
On 11 Jan 2005 08:49:52 -0800, Paul Rubin wrote: > Alexander Schremmer <[EMAIL PROTECTED]> writes: >>> I need to set up a wiki for a small group. I've played with MoinMoin >>> a little bit and it's reasonably straightforward to set up, but >>> limited in capabilities and uses BogusMarkupConventio

Re: a new Perl/Python a day

2005-01-11 Thread Peter Maas
Charlton Wilbur schrieb: "XL" == Xah Lee <[EMAIL PROTECTED]> writes: XL> i'll cross post to comp.lang.perl.misc and comp.lang.python. XL> If you spot mistakes, feel free to correct or discourse here. Error #1: crossposting to those two groups. (Error #2 is implying that you're a Perl e

Re: complex numbers

2005-01-11 Thread Big and Blue
It's me wrote: > I am very happy that Python included *native* complex number support. And I have always been happy that FORTRAN supports them. I really like Python's notion of having just one data type: the duck. So have you considered using Python for your problem? --

Re: python3: 'where' keyword

2005-01-11 Thread Jeff Shannon
Paul Rubin wrote: Steve Holden <[EMAIL PROTECTED]> writes: [...] and if you think that newbies will have their lives made easier by the addition of ad hoc syntax extensions then you and I come from a different world (and I suspect the walls might be considerably harder in mine than in yours). I'm s

Re: Securing a future for anonymous functions in Python

2005-01-11 Thread Jeff Shannon
Jacek Generowicz wrote: Given a population with previous exposure to computer programming, my money is on the map-lambda version. But this last point is mostly irrelevant. The fact is that you cannot program computers without doing a bit of learning ... and the lambda, map and friends really do not

Re: OT: MoinMoin and Mediawiki?

2005-01-11 Thread Paul Rubin
Alexander Schremmer <[EMAIL PROTECTED]> writes: > > It doesn't have features that MW has, like user pages, > > It does. Oops, correct, however, they're not anything like MW's, which are almost like an internal email system inside the wiki. You can sign any comment with ~~~ or and it generat

Re: Time script help sought!

2005-01-11 Thread kpp9c
Thanks for this Everyone! Trying to work with all the stuff folks are giving me on this i a have come across a problem... down the line i notice that some of the times will also have an hour as well as in H:M:S (e.g. 1:22:40) so in some cases i would need to convert H:M:S to sec and some just M:S

Re: reference or pointer to some object?

2005-01-11 Thread Peter Maas
Torsten Mohr schrieb: i'd like to pass a reference or a pointer to an object to a function. The function should then change the object and the changes should be visible in the calling function. [..] is something like this possible in python? Yes, wrap it in a container, e.g. a list or an object. C

Re: Game programming in Python

2005-01-11 Thread Terry Reedy
"Baza" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I'm looking for any books or on-line resources on game programming using > Python. Does anyone have any advice? Google "Python game programming" -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   >