Re: [Tutor] Follow-up Qs: Re: Identity operator (basic types)

2007-02-11 Thread Alan Gauld
"Cecilia Alm" <[EMAIL PROTECTED]> wrote > When we copy any such data type (float, integer, string, char, bool) > into a > function definition's local scope, does it always copy-by-value > then? Kent has already answered this but no. we never copy by value in Python, we create a new reference to

Re: [Tutor] MSI Installers for python

2007-02-11 Thread demonic . software
Thanks for your reply. Yes. I am trying to build an MSI installer file using python. Thank you for the pointers. I'll see if I can glean any information from that and who know even post a short tutorial ;). Thanks again. Kent Johnson wrote: > [EMAIL PROTECTED] wrote: >> Hello, >> >> I was

Re: [Tutor] Geolocating objects

2007-02-11 Thread Terry Carroll
On Sat, 10 Feb 2007, anil maran wrote: > i m trying to use python to find the proximity of a person using lat > long gps and zipcodes. A google search on "distance latitude longitude" will find you a number of pages with the math you need to determine distance, if you know latitude and longitu

Re: [Tutor] MSI Installers for python

2007-02-11 Thread Kent Johnson
[EMAIL PROTECTED] wrote: > Hello, > > I was wondering if anyone can offer any examples, pointers, tutorials, > or howtos on developing an MSI installer file for windows using Python. > I found the msilib reference in the Python 2.5 documents, but I am not > familiar with this area and I am t

Re: [Tutor] question about importing threads

2007-02-11 Thread Luke Paireepinart
shawn bright wrote: > great, saves me 15 lines. > thanks You have 15 lines of imports? ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] question about importing threads

2007-02-11 Thread shawn bright
great, saves me 15 lines. thanks sk On 2/11/07, Kent Johnson <[EMAIL PROTECTED]> wrote: shawn bright wrote: > one last queston. if i have a class that i import as a module, say a > script that emails me when something goes wrong. > so i have a file called my_own_email.py and in it a class call

Re: [Tutor] question about importing threads

2007-02-11 Thread Kent Johnson
shawn bright wrote: > one last queston. if i have a class that i import as a module, say a > script that emails me when something goes wrong. > so i have a file called my_own_email.py and in it a class called > MyOwnEmail. Now MyOwnEmail needs the smtplib module. Do i need to import > it just fo

Re: [Tutor] question about importing threads

2007-02-11 Thread shawn bright
Yes, Mr Gauld, this is a help. Even though i am still newbie enough to take some time digesting it. one last queston. if i have a class that i import as a module, say a script that emails me when something goes wrong. so i have a file called my_own_email.py and in it a class called MyOwnEmail. No

Re: [Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Hilton Garcia Fernandes
First of all, sorry for an empty message to the list. :-} Second, thanks for the input. Concerning Doxygen for Python, the page shown tell how to make Doxygen read Python documentation strings, but that's not practical for 3rd party, undocumented programs. For programs using C and C++, Doxygen c

Re: [Tutor] Unpickling data after passing over the network

2007-02-11 Thread Daniel Yoo
> a socket. Right now, I am pickling a basic string base 64 encoding and > sending the data over the network. After the recipient client/server > receives the data, it is decoded and then unpickled. The unpickling > fails with an EOFError, and I am not sure why. Hi Adam, Did you "flush" the

Re: [Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Kent Johnson
Hilton Garcia Fernandes wrote: > Dear all, > > i've been using doxygen for quite a time to document softwares written in > C and C++, but could not found a similar tool for Python software. > > Could you please point me to a suitable tool ? As we could see in a > previous thread, Python exposes i

Re: [Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Tim Golden
Christopher Arndt wrote: > Hilton Garcia Fernandes schrieb: >> Dear all, >> >> i've been using doxygen for quite a time to document softwares written in >> C and C++, but could not found a similar tool for Python software. >> >> Could you please point me to a suitable tool ? > > How about http://e

Re: [Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Christopher Arndt
Hilton Garcia Fernandes schrieb: > Dear all, > > i've been using doxygen for quite a time to document softwares written in > C and C++, but could not found a similar tool for Python software. > > Could you please point me to a suitable tool ? How about http://epydoc.sourceforge.net/ ? Chris ___

[Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Hilton Garcia Fernandes
Dear all, i've been using doxygen for quite a time to document softwares written in C and C++, but could not found a similar tool for Python software. Could you please point me to a suitable tool ? As we could see in a previous thread, Python exposes its parsing in publically available APIs. So,

[Tutor] A doxygen-like tool for Python ?

2007-02-11 Thread Hilton Garcia Fernandes
-- Hilton Garcia Fernandes Nucleo de Tecnologias sem Fio (NTSF) -- Wireless Technologies Team Lab de Sistemas Integraveis Tecnologico (LSI) -- Integrable Systems Lab Escola Politecnica (Poli) -- Engineering School Univ S Paulo (USP) Tel: (5511)3091-5676 (work) (5511)8131-5213 (mobile) Av. P

Re: [Tutor] token parser

2007-02-11 Thread Eike Welk
A nice parsing library is pyparsing: http://pyparsing.wikispaces.com/ It contains a parser for mathematical expressions. There are examples in the source distribution. HTH, Eike. ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/li

Re: [Tutor] Follow-up Qs: Re: Identity operator (basic types)

2007-02-11 Thread Kent Johnson
Cecilia Alm wrote: > Thanks for the respones. A few follow-up questions: > > For these basic types (float, integer, string, char, bool) does python > always figure out the identity change when assigning a 'new value', > as it seems to do below? > > >>> i = "hi" > >>> j = i > >>> print i, j, i

[Tutor] Follow-up Qs: Re: Identity operator (basic types)

2007-02-11 Thread Cecilia Alm
Thanks for the respones. A few follow-up questions: For these basic types (float, integer, string, char, bool) does python always figure out the identity change when assigning a 'new value', as it seems to do below? i = "hi" j = i print i, j, id(i), id(j) hi hi 12235136 12235136 j += i print

Re: [Tutor] Trouble getting os.execl() command to work

2007-02-11 Thread Richard Querin
On 2/11/07, Luke Paireepinart <[EMAIL PROTECTED]> wrote: > for name in filelist: oops! filelist still contains the non-normalized names of the files! > Dang! Thank you sir. I should have recaptured the file list before continuing on. Alan - thanks for the great info as well. I will check i

Re: [Tutor] Unpickling data after passing over the network

2007-02-11 Thread Kent Johnson
Adam Pridgen wrote: > Hello, > > I am having problems with unpickling data after I pass the data through > a socket. Right now, I am pickling a basic string base 64 encoding and > sending the data over the network. After the recipient client/server > receives the data, it is decoded and then

Re: [Tutor] token parser

2007-02-11 Thread Kent Johnson
Dj Gilcrease wrote: > How would I go about writing a fast token parser to parse a string like > "[4d6.takeHighest(3)+(2d6*3)-5.5]" > > and get a list like > ['+', > ['takeHighest', > ['d', > 4, > 6 > ], > 3 > ], > ['-', > ['*', >

[Tutor] Unpickling data after passing over the network

2007-02-11 Thread Adam Pridgen
Hello, I am having problems with unpickling data after I pass the data through a socket. Right now, I am pickling a basic string base 64 encoding and sending the data over the network. After the recipient client/server receives the data, it is decoded and then unpickled. The unpickling fai

Re: [Tutor] Trouble getting os.execl() command to work

2007-02-11 Thread Alan Gauld
"Richard Querin" <[EMAIL PROTECTED]> wrote > I'm having a slight problem here. I've got a script (shown below) > which is > run from the command line. I am converting the filenames to > lowercase and > then, for each .cr2 file, I'm building a command line and running > it. ... > os.execl() won

Re: [Tutor] Converting Filenames to Lower case

2007-02-11 Thread Alan Gauld
"Richard Querin" <[EMAIL PROTECTED]> wrote > Any ideas on where to look? I've fiddled quite a bit with very basic > scripting but nothing to do with getting files from the current > directory > and processing their names. Can anybody point me in the right > direction to > get started? Kent gav

[Tutor] token parser

2007-02-11 Thread Dj Gilcrease
How would I go about writing a fast token parser to parse a string like "[4d6.takeHighest(3)+(2d6*3)-5.5]" and get a list like ['+', ['takeHighest', ['d', 4, 6 ], 3 ], ['-', ['*', ['d', 2,