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

Re: How to swallow traceback message

2010-08-11 Thread Back9
On Aug 11, 11:19 am, Tim Harig user...@ilthio.net wrote: On 2010-08-11, Back9 backgoo...@gmail.com 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 Traceback

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

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 backgoo...@gmail.com 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 what i meant class test: self._value

Re: default argument

2010-05-11 Thread Back9
On May 11, 3:20 pm, Chris Rebert c...@rebertia.com wrote: On Tue, May 11, 2010 at 12:08 PM, Back9 backgoo...@gmail.com wrote: On May 11, 3:06 pm, Back9 backgoo...@gmail.com wrote: snip When i try it, it complains about undefined self. i don't know why. TIA Sorry here is the what i

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 terenzio.be...@gmail.com wrote: On May 18, 3:48 pm, Back9 backgoo...@gmail.com 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? The string size will vary

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

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