A http server

2011-01-25 Thread Back9
Hi, I'm trying to set up a http server to handle a single POST request. That POST request is to upload a huge file and the server is supposed to handle it with the just POST request. With my python sample code, multiple post requests are working well, but that is not my solution. I need a single PO

default argument

2010-05-11 Thread Back9
Hi, Is this grammer working in Python? class test: self._value = 10 def func(self, self._value) When i try it, it complains about undefined self. i don't know why. TIA -- http://mail.python.org/mailman/listinfo/python-list

Re: default argument

2010-05-11 Thread Back9
On May 11, 3:06 pm, Back9 wrote: > Hi, > > Is this grammer working in Python? > > class test: >   self._value = 10 >   def func(self, self._value) > > When i try it, it complains about undefined self. > > i don't know why. > > TIA Sorry here is the

Re: default argument

2010-05-11 Thread Back9
On May 11, 3:20 pm, Chris Rebert wrote: > On Tue, May 11, 2010 at 12:08 PM, Back9 wrote: > > On May 11, 3:06 pm, Back9 wrote: > > >> When i try it, it complains about undefined self. > > >> i don't know why. > > >> TIA > > > Sorry &g

Regular expression

2010-05-18 Thread Back9
Hi, I have a string like this: 0x340x5A0x9B0xBA I want to extract 0x from the string but the first one. How I can use re for this case? The string size will vary. TIA -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular expression

2010-05-18 Thread Back9
On May 18, 10:09 am, ilvecchio wrote: > On May 18, 3:48 pm, Back9 wrote: > > >  Hi, > > > I have a string like this: > > 0x340x5A0x9B0xBA > > I want to extract 0x from the string but the first one. > > > How I can use re for this case? > > >

how to preserve hex value

2010-05-19 Thread Back9
Hi, When converting a hex value, I'd like to preserve the decimal position. For example, 0x0A is converted to 0A not just A in string. How do I do this? TIA -- http://mail.python.org/mailman/listinfo/python-list

struct

2010-05-19 Thread Back9
Can anyone explain the difference between f and d in struct unpack? When using them, some data work in either one not both. To me it seems to be same, TIA -- http://mail.python.org/mailman/listinfo/python-list

How to swallow traceback message

2010-08-11 Thread Back9
Hi, I run my py app to display a file's contents, and it is normally very long. So I use it like below: python myapp.py input_file | more to see them step by step. But when I try to exit it, normally I use Ctrl+ C key to quit it. Problem is every time I do like it, it shows Traceback message and

Re: How to swallow traceback message

2010-08-11 Thread Back9
On Aug 11, 11:19 am, Tim Harig wrote: > On 2010-08-11, Back9 wrote: > > > python myapp.py input_file | more > > to see them step by step. > > > But when I try to exit it, normally I use Ctrl+ C key to quit it. > > Problem is every time I do like it, it shows T

most popular gui framework for python

2010-08-11 Thread Back9
Hi, Does anyone know of what is the most popular gui framework for python application? TIA -- http://mail.python.org/mailman/listinfo/python-list