Re: How should I handle socket receiving?

2011-03-12 Thread Tim Roberts
Hans wrote: > >I'm thinking to write a code which to: >1. establish tons of udp/tcp connections to a server What does "tons" mean? Tens? Hundreds? >my question is how should I handle receiving traffic from each >connection respectively? You're really going to want to use "select". You can s

Re: two brief question about abstractproperty

2011-03-12 Thread Darren Dale
On Mar 12, 11:16 pm, Darren Dale wrote: > I've been reading PEP 3119 and the documentation for ABCs in the > python documentation. According to the PEP, the following should yield > an error, because the abstract property has not been overridden: > > import abc > class C: >     __metaclass__ = abc

IronPython 2.7 Now Available

2011-03-12 Thread Jeff Hardy
On behalf of the IronPython team, I'm very pleased to announce the release of IronPython 2.7. This release contains all of the language features of Python 2.7, as well as several previously missing modules and numerous bug fixes. IronPython 2.7 also includes built-in Visual Studio support through I

two brief question about abstractproperty

2011-03-12 Thread Darren Dale
I've been reading PEP 3119 and the documentation for ABCs in the python documentation. According to the PEP, the following should yield an error, because the abstract property has not been overridden: import abc class C: __metaclass__ = abc.ABCMeta @abc.abstractproperty def x(self):

Re: Changing class name causes process to 'hang'

2011-03-12 Thread Terry Reedy
On 3/12/2011 7:18 PM, Tim Johnson wrote: * Terry Reedy [110312 13:28]: On 3/12/2011 2:53 PM, Tim Johnson wrote: Is 'cgilib' *your* wrapper of the cgi module, or from a third party. cgilib is my module. I use the cgi module as follows: ## code below import cgi self.form = cgi.Fi

Re: OT: processes, terminals and file descriptors on *nix (was: Re: attach to process by pid?)

2011-03-12 Thread Nobody
On Sat, 12 Mar 2011 00:49:08 +0100, Alexander Kapps wrote: > I still try to digest your explanations. I thought, that processes > just do something like dup()'ing the file descriptors of their > terminal but after some strace experiments, I think that is totally > wrong. Actually, the way that

Re: Changing class name causes process to 'hang'

2011-03-12 Thread Tim Johnson
* Terry Reedy [110312 13:28]: > On 3/12/2011 2:53 PM, Tim Johnson wrote: > > Is 'cgilib' *your* wrapper of the cgi module, or from a third party. cgilib is my module. I use the cgi module as follows: ## code below import cgi self.form = cgi.FieldStorage(keep_blank_values=1) ## /code > W

Re: Do you monitor your Python packages in inux distributions?

2011-03-12 Thread Philip Semanchuk
On Mar 12, 2011, at 2:26 PM, s...@pobox.com wrote: > > I'm one of the SpamBayes developers and in a half-assed way try to keep > track of SB dribbles on the net via a saved Google search. About a month > ago I got a hit on an Ubuntu bug tracker about a SpamBayes bug. As it turns > out, Ubuntu

Re: Do you monitor your Python packages in inux distributions?

2011-03-12 Thread Irmen de Jong
On 12-3-2011 20:26, s...@pobox.com wrote: I'm one of the SpamBayes developers and in a half-assed way try to keep track of SB dribbles on the net via a saved Google search. About a month ago I got a hit on an Ubuntu bug tracker about a SpamBayes bug. As it turns out, Ubuntu distributes an outd

Re: Changing class name causes process to 'hang'

2011-03-12 Thread Terry Reedy
On 3/12/2011 2:53 PM, Tim Johnson wrote: I'm using Python 2.6.5 on ubuntu 10.04 32-bit. My issue however, is with a code base that goes back to 2002, which at that time was 1.5~ or so. I have been since that time using my own cgi module which in turn, uses the python standard `cgi' module. The

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Grant Edwards
On 2011-03-12, Martin Gregorie wrote: > On Sat, 12 Mar 2011 17:11:37 +, Grant Edwards wrote: > >> The point I was trying to make was that the 240 was a >> superset of the 220, and could be used identically as the 220 was used. >> > Fair enough: I bow to hands-on experience. > > My source - ht

Re: What do you use with Python for GUI programming and why?

2011-03-12 Thread Stef Mientki
On 11-03-2011 22:45, Dan Stromberg wrote: > > On Fri, Mar 11, 2011 at 12:54 PM, Fred Pacquier > wrote: > > Robert mailto:sigz...@gmail.com>> said : > > > Is there a push to one toolkit or the other? > > If you are just now getting started, I would honest

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Martin Gregorie
On Fri, 11 Mar 2011 23:00:25 -0800, Dennis Lee Bieber wrote: > Note the last sentence starting "The name ANSI..." > Indeed. I'm pretty certain that the first time I met the term "ANSI" was in connection with the DOS add-on 'ANSI driver' that allowed programs to control the display by emitt

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Martin Gregorie
On Sat, 12 Mar 2011 17:11:37 +, Grant Edwards wrote: > The point I was trying to make was that the 240 was a > superset of the 220, and could be used identically as the 220 was used. > Fair enough: I bow to hands-on experience. My source - http://vt100.net/vt_history - Says "There is no VT20

Re: organizing many python scripts, in a large corporate environment.

2011-03-12 Thread Tim Johnson
* Tim Johnson [110312 10:41]: <...> 3)Cut down on the number of executables by using 'loaderers'. Sheesh! Typo, meant to say 'loaders'.. sorry -- Tim tim at johnsons-web.com or akwebsoft.com http://www.akwebsoft.com -- http://mail.python.org/mailman/listinfo/python-list

Changing class name causes process to 'hang'

2011-03-12 Thread Tim Johnson
I'm using Python 2.6.5 on ubuntu 10.04 32-bit. My issue however, is with a code base that goes back to 2002, which at that time was 1.5~ or so. I have been since that time using my own cgi module which in turn, uses the python standard `cgi' module. The object instantiation has looked something l

Re: organizing many python scripts, in a large corporate environment.

2011-03-12 Thread Tim Johnson
* Phat Fly Alanna [110312 07:22]: > We've been doing a fair amount of Python scripting, and now we have a > directory with almost a hundred loosely related scripts. It's > obviously time to organize this, but there's a problem. These scripts > import freely from each other and although code reuse

Do you monitor your Python packages in inux distributions?

2011-03-12 Thread skip
I'm one of the SpamBayes developers and in a half-assed way try to keep track of SB dribbles on the net via a saved Google search. About a month ago I got a hit on an Ubuntu bug tracker about a SpamBayes bug. As it turns out, Ubuntu distributes an outdated (read: no longer maintained) version of

Re: organizing many python scripts, in a large corporate environment.

2011-03-12 Thread eryksun ()
bukzor wrote: > This only works if you can edit the PYTHONPATH. With thousands of > users and dozens of groups each with their own custom environments, > this is a herculean effort. It works for me without setting PYTHONPATH. Again, I run the module from the root folder with the -m option as a pa

Re: attach to process by pid?

2011-03-12 Thread Grant Edwards
On 2011-03-12, John Nagle wrote: > On 3/9/2011 5:38 PM, Miki Tebeka wrote: >>> Is there any way to attach to an already running process by pid? I >>> want to send commands from python to an application that is already >>> running. I don't want to give the command name to >>> subprocess.Popen. >> W

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Grant Edwards
On 2011-03-12, Martin Gregorie wrote: > Sorry if I wasn't clear: I was intending to compare APIs rather than the > display mechanisms - I am aware that both text terminals and vector > graphics terminals are raster devices, not vector like oscilloscopes. > What I was getting at is that the AP

Re: organizing many python scripts, in a large corporate environment.

2011-03-12 Thread bukzor
On Mar 11, 10:14 pm, "eryksun ()" wrote: > I'm not an expert at Python packaging, but assuming a structure such as > > folder1 >        \ >         __init__.py >         module1.py > folder2 >        \ >         __init__.py >         module2.py > > within module1, I can import from module2, e.g.:

Re: What do you use with Python for GUI programming and why?

2011-03-12 Thread Adam Tauno Williams
On Fri, 2011-03-11 at 09:34 -0800, Rafe Kettler wrote: > On Mar 10, 9:25 pm, Robert wrote: > > Is there a push to one toolkit or the other? I use PyGtk. It is robust, fast, and integrates well into the desktop. Also the documentation is very good and the forum very helpful. My PyGtk app is Imbo

Re: Purely historic question: VT200 text graphic programming

2011-03-12 Thread Blockheads Oi Oi
On Mar 11, 9:17 am, Anssi Saari wrote: > Grant Edwards writes: > > C wasn't very widely used under VMS, and VMS had it's own screen > > formatting and form handling libraries. > > Just curious, what language was widely used in VMS? My VMS experience > is limited to running Maple for a math course

Working on Python benchmarking

2011-03-12 Thread tleeuwenb...@gmail.com
Hi there... I'm working on a package to provide python benchmarking (profiling and analysis over time). The idea is to provide a decorator which can be applied to unit tests which will cause the system to be profiled while running those tests. The idea would be that any existing set of unit tests