get current function name

2005-12-01 Thread Joe Wong (Mango)
Hello,    Is this possible for a function to obtain its own name ?   eg.   def func1():     print "my name is " + get_my_name()   the result will show "my name is func1"   Regards,   - Joe   -- http://mail.python.org/mailman/listinfo/python-list

single process instance

2005-11-23 Thread Joe Wong (Mango)
Dear all,    Is there any library / function that I can put in my process to make sure he is the one and only one instance running in the box?   Best regards,   - Joe   -- http://mail.python.org/mailman/listinfo/python-list

extra a column from a 2-D array?

2005-05-10 Thread Joe Wong
Hello,    Suppose I have a python array as follow:       s=[ [1,3,5],   [2,4,6],       [9,8,7]]   what is the quickest way to extract the second colum from all rows? That is: [3,4,8] in this example.   Best regards,   - Joe No virus found in this outgoing message. Checked by AVG A

Re: Bug?

2005-03-13 Thread Joe Wong
I think python is expecting a octet number from the input?   - Joe   - Original Message - From: [EMAIL PROTECTED] To: python-list@python.org Sent: Monday, March 14, 2005 10:51 AM Subject: Bug? HelloIve recently found that you cannot type anything over 7 into a nu

convert \uXXXX to native character set?

2004-12-20 Thread Joe Wong
Hi,    Is there any library to convert HTML page with \u encoded text to native character set, e.g. BIG5.   Regards,   - Joe   No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.296 / Virus Database: 265.6.0 - Release Date: 2004/12/17 -- http://mail.python.org

httpconnection class handle 302 redirect?

2004-12-06 Thread Joe Wong
Hi , it looks like that HTTPConnection class is not capable to handle 302 redirect response. Is there any sample implementation that tackle this problem? I am using python 2.3.3 on Windows platform.   best regards,   - Joe     ---Outgoing mail is certified Virus Free.Checked by AVG anti-virus