"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
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
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
[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
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
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
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
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
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
> 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
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
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
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
___
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,
--
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
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
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
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
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
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
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
> ],
> ['-',
> ['*',
>
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
"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
"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
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,
25 matches
Mail list logo