Re: Bug?
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 number that is preceded with a 0.ex: >>> 01 1 >>> 07 7 >>> 08 SyntaxError: invalid token >>> 011 9 >>> 017 15 >>> 077 63 >>> 078 SyntaxError: invalid tokenI know this isnt that big of a problem,but i cannot think of one reason why they would not allow numbers preceded with a 0 to have a numberhigher then a 7 in them...And it seems very inconsistant to me...Is there a reason for this?ThanksPeter-- No virus found in this outgoing message.Checked by AVG Anti-Virus.Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 3/11/2005-- http://mail.python.org/mailman/listinfo/python-list No virus found in this outgoing message. Checked by AVG Anti-Virus. Version: 7.0.308 / Virus Database: 266.7.2 - Release Date: 2005/3/11 -- http://mail.python.org/mailman/listinfo/python-list
httpconnection class handle 302 redirect?
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 system (http://www.grisoft.com).Version: 6.0.806 / Virus Database: 548 - Release Date: 2004/12/5 -- http://mail.python.org/mailman/listinfo/python-list
convert \uXXXX to native character set?
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/mailman/listinfo/python-list
extra a column from a 2-D array?
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 Anti-Virus. Version: 7.0.308 / Virus Database: 266.11.7 - Release Date: 2005/5/9 -- http://mail.python.org/mailman/listinfo/python-list
single process instance
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
get current function name
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