Re: [Python-Dev] PEP 450 adding statistics module

2013-09-09 Thread Paul Colomiets
Hi Guido, On Sun, Sep 8, 2013 at 8:32 PM, Guido van Rossum wrote: > Going over the open issues: > > - Parallel arrays or arrays of tuples? I think the API should require > an array of tuples. It is trivial to zip up parallel arrays to the > required format, while if you have an array of tuples, e

Re: [Python-Dev] PEP-419: Protecting cleanup statements from interruptions

2012-04-09 Thread Paul Colomiets
Hi Benjamin, On Mon, Apr 9, 2012 at 12:42 AM, Benjamin Peterson wrote: > 2012/4/8 Paul Colomiets : >> Function 'sys.setcleanuphook' >> - >> >> A new function for the ``sys`` module is proposed.  This function sets >&

Re: [Python-Dev] PEP-419: Protecting cleanup statements from interruptions

2012-04-08 Thread Paul Colomiets
Hi Antoine, On Mon, Apr 9, 2012 at 12:06 AM, Antoine Pitrou wrote: > > Hello Paul, > > Thanks for the PEP and the description of the various issues. > >> An example implementation of a SIGINT handler that interrupts safely >> might look like:: >> >>     import inspect, sys, functools >> >>     de

[Python-Dev] PEP-419: Protecting cleanup statements from interruptions

2012-04-08 Thread Paul Colomiets
Hi, I present my first PEP. http://www.python.org/dev/peps/pep-0419/ Added text to the end of email for easier reference. Comments are welcome. -- Paul PEP: 419 Title: Protecting cleanup statements from interruptions Version: $Revision$ Last-Modified: $Date$ Author: Paul Colomiets Status

Re: [Python-Dev] Pythreads and BSD descendants

2007-08-03 Thread Paul Colomiets
Cameron Laird wrote: > Folklore that I remember so unreliably I avoid trying to repeat it here > held that Python threading had problems on BSD and allied Unixes. What's > the status of this? I suspect the answer is, "Everything works, and the > only real problem ever was that *signals* have diff

Re: [Python-Dev] Bus error in transformer.py

2007-07-28 Thread Paul Colomiets
Martin v. Löwis wrote: > You should run it under gdb, or attach to the interpreter > from gdb. > I've run it with gdb before (when posted a bug), and sometimes I got a huge traceback with 1+ lines and sometimes less than 100 full of question marks so I've decided it's not of a great interes

[Python-Dev] Bus error in transformer.py

2007-07-28 Thread Paul Colomiets
Hi! I'm still working on bug: http://python.org/sf/1720241 First thing I've found is that `compile` works OK, but `compiler.parse` not. And I feel that It's bug in python, or python port, because I'm getting Bus error on some stage when I'm tracing execution and trying to backtrace. Also `pars

Re: [Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

2006-08-04 Thread Paul Colomiets
Giovanni Bajo wrote: > Paul Colomiets <[EMAIL PROTECTED]> wrote: > > >> Well it's not recomended to mix strings and unicode in the >> dictionaries >> but if we mix for example integer and float we have the same thing. It >> doesn't raise excep

Re: [Python-Dev] Dicts are broken Was: unicode hell/mixing str and unicode asdictionarykeys

2006-08-04 Thread Paul Colomiets
Hi! Terry Reedy wrote: > The fundamental axiom of sets and hence of dict keys is that any > object/value either is or is not a member (at any given time for 'mutable' > set collections). This requires that testing an object for possible > membership by equality give a clean True or False answe