Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Martin v. Löwis
> Besides, Bob doesn't really seem to care about > porting to py3k (he hasn't said anything about it until now, other than that > he > didn't feel competent to do it). That is quite unfortunate, and suggests that perhaps the module shouldn't have been added to Python in the first place. I can un

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Antoine Pitrou
Guido van Rossum python.org> writes: > > I'm kind of surprised that a serialization protocol like JSON wouldn't > support reading/writing bytes (as the serialized format -- I don't > care about having bytes as values, since JavaScript doesn't have > something equivalent AFAIK, and hence JSON does

Re: [Python-Dev] decorator module in stdlib?

2009-04-08 Thread Michele Simionato
On Wed, Apr 8, 2009 at 7:51 PM, Guido van Rossum wrote: > > There was a remark (though perhaps meant humorously) in Michele's page > about decorators that worried me too: "For instance, typical > implementations of decorators involve nested functions, and we all > know that flat is better than nes

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-08 Thread David Cournapeau
On Thu, Apr 9, 2009 at 4:45 AM, Alexander Neundorf wrote: > I think cmake can do all of the above (cpack supports creating packages). I am sure it is - it is just a lot of work, specially if you want to stay compatible with distutils-built extensions :) cheers, David __

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Guido van Rossum
On Wed, Apr 8, 2009 at 4:10 AM, Antoine Pitrou wrote: > We're in the process of forward-porting the recent (massive) json updates to > 3.1, and we are also thinking of dropping remnants of support of the bytes > type > in the json library (in 3.1, again). This bytes support almost didn't work at

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Antoine Pitrou
Martin v. Löwis v.loewis.de> writes: > > What does Bob Ippolito think about this change? IIUC, he considers > simplejson's speed one of its primary advantages, and also attributes it > to the fact that he can parse directly out of byte strings, and marshal > into them (which is important, as you

Re: [Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-08 Thread Tobias Ivarsson
On Wed, Apr 8, 2009 at 8:37 PM, "Martin v. Löwis" wrote: --8<-- > > * Should we change the workflow for roundup to make this assignment > > of license clearer (see Tobias's idea in the thread about a > > click-though agreement). > > I think we do need something written; a lawyer ma

[Python-Dev] Deprecating PyOS_ascii_formatd

2009-04-08 Thread Eric Smith
Assuming that Mark's and my changes in the py3k-short-float-repr branch get checked in shortly, I'd like to deprecate PyOS_ascii_formatd. Its functionality is largely being replaced by PyOS_double_to_string, which we're introducing on our branch. PyOS_ascii_formatd was introduced to fix the is

Re: [Python-Dev] decorator module in stdlib?

2009-04-08 Thread Nick Coghlan
P.J. Eby wrote: > Anyway, it's nice for decorators to be transparent to inspection when > the decorator doesn't actually modify the calling signature, so that you > can then use your decorated functions with tools like the above. If anyone wanted to take PEP 362 up again, we could easily add a __s

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-08 Thread skip
>> - registration to pypi Alex> No idea what this is . http://pypi.python.org/ It is, in some ways, a CPAN-like system for Python. Skip ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsub

Re: [Python-Dev] Evaluated cmake as an autoconf replacement

2009-04-08 Thread Alexander Neundorf
On Wed, Apr 8, 2009 at 4:18 AM, David Cournapeau wrote: ... >> I guess something similar could be useful for Python, maybe this is >> what distutils actually do ? > > distutils does roughly everything that autotools does, and more: > - configuration: not often used in extensions, we (numpy) are t

Re: [Python-Dev] decorator module in stdlib?

2009-04-08 Thread P.J. Eby
At 10:51 AM 4/8/2009 -0700, Guido van Rossum wrote: I would like it even less if an API cared about the *actual* signature of a function I pass into it. One notable use of callable argument inspection is Bobo, the 12-years-ago predecessor to Zope, which used argument information to determine

Re: [Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-08 Thread Martin v. Löwis
> * What is the scope of a patch that requires a contributor > agreement? Unfortunately, that question was never fully answered (or I forgot what the answer was). > * Do Google employees, working on company time, automatically get > treated as contributors with existing contr

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Martin v. Löwis
> We're in the process of forward-porting the recent (massive) json updates to > 3.1, and we are also thinking of dropping remnants of support of the bytes > type > in the json library (in 3.1, again). This bytes support almost didn't work at > all, but there was a lot of C and Python code for it

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Martin v. Löwis
> foo = set([1, 65537]) > foo.pop() >> 1 > foo = set([65537, 1]) > foo.pop() >> 65537 > > You wrote a program to find the two smallest ints that would have a > hash collision in the CPython set implementation? I'm impressed. And > by impressed I mean frightened. Well, Mark is th

Re: [Python-Dev] decorator module in stdlib?

2009-04-08 Thread Guido van Rossum
On Wed, Apr 8, 2009 at 12:17 AM, Michele Simionato wrote: > On Wed, Apr 8, 2009 at 8:10 AM, Jack diederich wrote: >> Plus he's a softie for decorators, as am I. This worries me a bit. There was a remark (though perhaps meant humorously) in Michele's page about decorators that worried me too: "F

[Python-Dev] Update PEP 374 (DVCS)

2009-04-08 Thread Aahz
Someone listed this URL on c.l.py and I thought it would make a good reference addition to PEP 374 (DVCS decision): http://www.catb.org/~esr/writings/version-control/version-control.html -- Aahz (a...@pythoncraft.com) <*> http://www.pythoncraft.com/ "...string iteration isn't a

Re: [Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-08 Thread Jim Baker
Oops, didn't attach the entire thread, so see below: On Wed, Apr 8, 2009 at 9:50 AM, Jim Baker wrote: > A question that arose on this thread, which I'm forwarding for context (and > we're quite happy about it too!): > >- What is the scope of a patch that requires a contributor agreement? >

Re: [Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Raymond Hettinger
We're in the process of forward-porting the recent (massive) json updates to 3.1, and we are also thinking of dropping remnants of support of the bytes type in the json library (in 3.1, again). This bytes support almost didn't work at all, but there was a lot of C and Python code for it neverthe

[Python-Dev] Contributor Agreements for Patches - was [Jython-dev] Jython on Google AppEngine!

2009-04-08 Thread Jim Baker
A question that arose on this thread, which I'm forwarding for context (and we're quite happy about it too!): - What is the scope of a patch that requires a contributor agreement? This particular patch on #1188 simply adds obvious (in retrospect of course) handling on SecurityException so

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Paul Moore
2009/4/8 Steve Holden : > Paul Moore wrote: >> 2009/4/8 Duncan Booth : >>> Andrea Griffini wrote: >>> On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich wrote: > You wrote a program to find the two smallest ints that would have a > hash collision in the CPython set implementation?

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Steve Holden
Paul Moore wrote: > 2009/4/8 Duncan Booth : >> Andrea Griffini wrote: >> >>> On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich >>> wrote: You wrote a program to find the two smallest ints that would have a hash collision in the CPython set implementation? I'm impressed. And by impr

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Paul Moore
2009/4/8 Duncan Booth : > Andrea Griffini wrote: > >> On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich >> wrote: >>> You wrote a program to find the two smallest ints that would have a >>> hash collision in the CPython set implementation?  I'm impressed. >>>  And by impressed I mean frightened. >>

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Duncan Booth
Andrea Griffini wrote: > On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich > wrote: >> You wrote a program to find the two smallest ints that would have a >> hash collision in the CPython set implementation?  I'm impressed. >>  And by impressed I mean frightened. > > ? > > print set([0,8]).pop(

[Python-Dev] PyCFunction_* Missing

2009-04-08 Thread Campbell Barton
Hi, Just noticed the new Python 2.6.2 docs now dont have any reference to * PyCFunction_New * PyCFunction_NewEx * PyCFunction_Check * PyCFunction_Call Ofcourse these are still in the source code but Im wondering if this is intentional that these functions should be for internal use only? -- - Cam

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Andrea Griffini
On Wed, Apr 8, 2009 at 12:57 PM, Jack diederich wrote: > You wrote a program to find the two smallest ints that would have a > hash collision in the CPython set implementation?  I'm impressed.  And > by impressed I mean frightened. ? print set([0,8]).pop(), set([8,0]).pop() Andrea _

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Steve Holden
Jack diederich wrote: > On Wed, Apr 8, 2009 at 2:44 AM, Mark Dickinson wrote: >> On Wed, Apr 8, 2009 at 7:13 AM, John Barham wrote: >>> If you play around a bit it becomes clear that what set.pop() returns >>> is independent of the insertion order: >> It might look like that, but I don't think th

[Python-Dev] Dropping bytes "support" in json

2009-04-08 Thread Antoine Pitrou
Hello, We're in the process of forward-porting the recent (massive) json updates to 3.1, and we are also thinking of dropping remnants of support of the bytes type in the json library (in 3.1, again). This bytes support almost didn't work at all, but there was a lot of C and Python code for it nev

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Jack diederich
On Wed, Apr 8, 2009 at 2:44 AM, Mark Dickinson wrote: > On Wed, Apr 8, 2009 at 7:13 AM, John Barham wrote: >> If you play around a bit it becomes clear that what set.pop() returns >> is independent of the insertion order: > > It might look like that, but I don't think this is > true in general (a

Re: [Python-Dev] http://bugs.python.org/issue2240

2009-04-08 Thread Tennessee Leeuwenburg
On Wed, Apr 8, 2009 at 3:55 PM, Jeroen Ruigrok van der Werven < asmo...@in-nomine.org> wrote: > -On [20090408 05:24], Tennessee Leeuwenburg (tleeuwenb...@gmail.com) > wrote: > >It seems like the bug relates only to an older version of a 'weird' > >operating

Re: [Python-Dev] slightly inconsistent set/list pop behaviour

2009-04-08 Thread Antoine Pitrou
Mark Dickinson gmail.com> writes: > > On Wed, Apr 8, 2009 at 7:13 AM, John Barham gmail.com> wrote: > > If you play around a bit it becomes clear that what set.pop() returns > > is independent of the insertion order: > > It might look like that, but I don't think this is > true in general (at l

Re: [Python-Dev] decorator module in stdlib?

2009-04-08 Thread Michele Simionato
On Wed, Apr 8, 2009 at 8:10 AM, Jack diederich wrote: > Plus he's a softie for decorators, as am I. I must admit that while I still like decorators, I do like them as much as in the past. I also see an overuse of decorators in various libraries for things that could be done more clearly without t