Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Steven D'Aprano
On Sun, 18 Apr 2010 07:47:08 am Maciej Fijalkowski wrote: > On Sat, Apr 17, 2010 at 1:03 PM, Steve Holden wrote: > > Dino Viehland wrote: > >> Maciej wrote: > > > > [...] > > > >>> And yet that breaks some code :-) > >> > >> Sure, if you do: > >> > >> class C(object): > >>     locals()[object()]

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Maciej Fijalkowski
On Sat, Apr 17, 2010 at 1:03 PM, Steve Holden wrote: > Dino Viehland wrote: >> Maciej wrote: > [...] >>> And yet that breaks some code :-) >> >> Sure, if you do: >> >> class C(object): >>     locals()[object()] = 42 >> >> dir(C) >> >> You lose.  Once I'm aware of some piece of code in the wild doi

Re: [Python-Dev] Automatic installer builds (was Re: Fwd: Broken link to download (Mac OS X))

2010-04-17 Thread Steve Holden
David Bolen wrote: > "Martin v. Löwis" writes: > >> This actually happened on Windows - some people now >> recommend to run the buildbot scripts on a regular developer checkout, >> because they supposedly do the right things. > > I have to admit that I'm guilty of this (thou

Re: [Python-Dev] Automatic installer builds (was Re: Fwd: Broken link to download (Mac OS X))

2010-04-17 Thread David Bolen
"Martin v. Löwis" writes: > This actually happened on Windows - some people now > recommend to run the buildbot scripts on a regular developer checkout, > because they supposedly do the right things. I have to admit that I'm guilty of this (though to be fair most of my test

Re: [Python-Dev] bbreport

2010-04-17 Thread Mark Dickinson
On Sat, Apr 17, 2010 at 7:41 PM, Victor Stinner wrote: > Ezio and Florent are developing a tool called bbreport to collect buildbot > results and generate short reports to the command line. It's possible to > filter results by Python branch, builder name, etc. I send patches to link > failed tests

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Steve Holden
Dino Viehland wrote: > Maciej wrote: [...] >> And yet that breaks some code :-) > > Sure, if you do: > > class C(object): > locals()[object()] = 42 > > dir(C) > > You lose. Once I'm aware of some piece of code in the wild doing this > then I'll be happy to change IronPython to be more comp

[Python-Dev] bbreport

2010-04-17 Thread Victor Stinner
Hi, Ezio and Florent are developing a tool called bbreport to collect buildbot results and generate short reports to the command line. It's possible to filter results by Python branch, builder name, etc. I send patches to link failed tests to existing issues to see quickly known failures vs new

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

2010-04-17 Thread aditya bhargava
Works for me too. On Sat, Apr 17, 2010 at 12:19 PM, Daniel Stutzbach < dan...@stutzbachenterprises.com> wrote: > On Sat, Apr 17, 2010 at 12:17 PM, Victor Stinner < > victor.stin...@haypocalc.com> wrote: > >> http://bugs.python.org/ displays "Service Temporarily Unavailable". Is it >> normal? >> >

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Maciej Fijalkowski
On Sat, Apr 17, 2010 at 12:03 PM, Dino Viehland wrote: > Maciej wrote: >> On Sat, Apr 17, 2010 at 11:38 AM, Dino Viehland >> wrote: >> > Benjamin wrote: >> >> 2010/4/17 Guido van Rossum : >> >> > On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan >> >> wrote: >> >> >> Guido van Rossum wrote: >> >> >>

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Dino Viehland
Maciej wrote: > On Sat, Apr 17, 2010 at 11:38 AM, Dino Viehland > wrote: > > Benjamin wrote: > >> 2010/4/17 Guido van Rossum : > >> > On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan > >> wrote: > >> >> Guido van Rossum wrote: > >> >>> Because Python promises that the object the callee sees as > 'kw

Re: [Python-Dev] OS information, tags

2010-04-17 Thread anatoly techtonik
On Fri, Apr 16, 2010 at 7:13 AM, Steve Holden wrote: > Brian Curtin wrote: >> On Thu, Apr 15, 2010 at 03:20, anatoly techtonik > > wrote: >> >>     On Tue, Apr 13, 2010 at 3:54 PM, Nick Coghlan >     > wrote: >>     > >>     >>>            I a

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Maciej Fijalkowski
On Sat, Apr 17, 2010 at 11:38 AM, Dino Viehland wrote: > Benjamin wrote: >> 2010/4/17 Guido van Rossum : >> > On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan >> wrote: >> >> Guido van Rossum wrote: >> >>> Because Python promises that the object the callee sees as 'kwargs' >> is >> >>> "just a dict"

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Dino Viehland
Benjamin wrote: > 2010/4/17 Guido van Rossum : > > On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan > wrote: > >> Guido van Rossum wrote: > >>> Because Python promises that the object the callee sees as 'kwargs' > is > >>> "just a dict". > >> > >> Huh, I thought kwargs was allowed to be implemented a

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Benjamin Peterson
2010/4/17 Guido van Rossum : > On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan wrote: >> Guido van Rossum wrote: >>> Because Python promises that the object the callee sees as 'kwargs' is >>> "just a dict". >> >> Huh, I thought kwargs was allowed to be implemented as a >> string-keys-only dict (simi

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

2010-04-17 Thread Daniel Stutzbach
On Sat, Apr 17, 2010 at 12:17 PM, Victor Stinner < victor.stin...@haypocalc.com> wrote: > http://bugs.python.org/ displays "Service Temporarily Unavailable". Is it > normal? > It's working fine for me. -- Daniel Stutzbach, Ph.D. President, Stutzbach Enterprises, LLC

[Python-Dev] http://bugs.python.org/ is down

2010-04-17 Thread Victor Stinner
Hi, http://bugs.python.org/ displays "Service Temporarily Unavailable". Is it normal? -- Victor Stinner http://www.haypocalc.com/ ___ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http:/

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Guido van Rossum
On Sat, Apr 17, 2010 at 9:22 AM, Nick Coghlan wrote: > Guido van Rossum wrote: >> Because Python promises that the object the callee sees as 'kwargs' is >> "just a dict". > > Huh, I thought kwargs was allowed to be implemented as a > string-keys-only dict (similar to class and module namespaces) w

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Nick Coghlan
Guido van Rossum wrote: > Because Python promises that the object the callee sees as 'kwargs' is > "just a dict". Huh, I thought kwargs was allowed to be implemented as a string-keys-only dict (similar to class and module namespaces) while still be a valid Python implementation. I guess I was wron

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Guido van Rossum
On Sat, Apr 17, 2010 at 5:41 AM, Vinay Sajip wrote: > Steve Holden holdenweb.com> writes: > >> I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) >> >> >>> def f(**kwargs): >> ...   kwargs[1] = "dummy" >> ...   print(kwargs) >> ... >> >>> f(this="Guido", that="Raymond", the_other

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Steve Holden
Guido van Rossum wrote: > On Fri, Apr 16, 2010 at 4:38 PM, Steve Holden wrote: >> I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) >> > def f(**kwargs): >> ... kwargs[1] = "dummy" >> ... print(kwargs) >> ... > f(this="Guido", that="Raymond", the_other="Steve") >> {'t

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Guido van Rossum
On Fri, Apr 16, 2010 at 4:38 PM, Steve Holden wrote: > I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) > def f(**kwargs): > ...   kwargs[1] = "dummy" > ...   print(kwargs) > ... f(this="Guido", that="Raymond", the_other="Steve") > {'this': 'Guido', 1: 'dummy', 'the_ot

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Vinay Sajip
Steve Holden holdenweb.com> writes: > I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) > > >>> def f(**kwargs): > ... kwargs[1] = "dummy" > ... print(kwargs) > ... > >>> f(this="Guido", that="Raymond", the_other="Steve") > {'this': 'Guido', 1: 'dummy', 'the_other': 'Steve'

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Xavier Morel
On 16 Apr 2010, at 23:31 , Guido van Rossum wrote: > > +1. > > Apparently dict(x, **y) is going around as "cool hack" for "call > x.update(y) and return x". Personally I find it more despicable than > cool. This description doesn't make sense since `dict(x, **y)` returns not an updated `x` but a

Re: [Python-Dev] Drop OS/2 support?

2010-04-17 Thread Eric Smith
Andrew MacIntyre wrote: It is nice to get heads-up messages about issues that might involve such support though, and it shouldn't take much searching to find me to enquire. Especially since aimacintyre is listed in Misc/maintainers.rst. ___ Python-D

Re: [Python-Dev] Drop OS/2 support?

2010-04-17 Thread Nick Coghlan
Victor Stinner wrote: > If we support OS/2, we need a buildbot. As Andrew said, there are 2 levels of support - the "if we break it, we'll fix it" level where our buildbots live, and the "we won't go out of our way to break it, but it may degenerate as other things change (or simply miss out on so

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-17 Thread Nick Coghlan
Steve Holden wrote: > I'm sure we wouldn't want to go so far as to inhibit this. (Py 3.1) > def f(**kwargs): > ... kwargs[1] = "dummy" > ... print(kwargs) > ... f(this="Guido", that="Raymond", the_other="Steve") > {'this': 'Guido', 1: 'dummy', 'the_other': 'Steve', 'that': 'Raymond'}