Re: [Python-Dev] [Python-checkins] Cron /home/docs/build-devguide

2014-01-24 Thread Georg Brandl
Am 25.01.2014 05:49, schrieb Benjamin Peterson: > On Fri, Jan 24, 2014, at 08:45 PM, Cron Daemon wrote: >> Could not find platform independent libraries >> Could not find platform dependent libraries >> Consider setting $PYTHONHOME to [:] >> 'import site' failed; use -v for traceback >> Traceback

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Nick Coghlan
On 25 January 2014 01:07, Larry Hastings wrote: > I'm sorting the problems we see into four rough categories. > > a) Functions where there's a static Python value that behaves >identically to not passing in that parameter (aka "the NULL problem") > >Possible Solutions: > 0) Do nothing

Re: [Python-Dev] lambda (x, y):

2014-01-24 Thread Serhiy Storchaka
25.01.14 07:41, Greg Ewing написав(ла): Brett Cannon wrote: On Fri, Jan 24, 2014 at 10:50 AM, Ram Rachum mailto:r...@rachum.com>> wrote: lambda (x, y): whatever http://python.org/dev/peps/pep-3113/ Part of the rationale in that PEP is that argument unpacking can always be replaced b

Re: [Python-Dev] lambda (x, y):

2014-01-24 Thread Nick Coghlan
On 25 January 2014 15:41, Greg Ewing wrote: > Brett Cannon wrote: >> >> >> On Fri, Jan 24, 2014 at 10:50 AM, Ram Rachum > > wrote: >> >> lambda (x, y): whatever >> >> http://python.org/dev/peps/pep-3113/ > > > Part of the rationale in that PEP is that argument unpac

Re: [Python-Dev] lambda (x, y):

2014-01-24 Thread Greg Ewing
Brett Cannon wrote: On Fri, Jan 24, 2014 at 10:50 AM, Ram Rachum > wrote: lambda (x, y): whatever http://python.org/dev/peps/pep-3113/ Part of the rationale in that PEP is that argument unpacking can always be replaced by an explicitly named argument and an u

Re: [Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 11:07 PM, Larry Hastings wrote: > A) pydoc and help() should not show bound parameters in the signature, > like inspect.signature. B) pydoc and help() should show bound > parameters in the signature, like inspect.getfullargspec. +1 for

Re: [Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Nick Coghlan
On 25 January 2014 14:36, Steven D'Aprano wrote: > On Fri, Jan 24, 2014 at 08:07:43PM -0800, Larry Hastings wrote: >> A) pydoc and help() should not show bound parameters in the signature, >> like inspect.signature. >> B) pydoc and help() should show bound parameters in the signature, like >> ins

Re: [Python-Dev] [Python-checkins] Cron /home/docs/build-devguide

2014-01-24 Thread Benjamin Peterson
On Fri, Jan 24, 2014, at 08:45 PM, Cron Daemon wrote: > Could not find platform independent libraries > Could not find platform dependent libraries > Consider setting $PYTHONHOME to [:] > 'import site' failed; use -v for traceback > Traceback (most recent call last): > File "/data/hg/sphinx-env

Re: [Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Steven D'Aprano
On Fri, Jan 24, 2014 at 08:07:43PM -0800, Larry Hastings wrote: > > (Quick, because apparently nobody reads the long ones!) > > In Python 3.3: > > >>> class C: >...def foo(self, a): pass >... > >>> c = C() > >>> help(c.foo) > > shows you the signature "foo(self, a)". T

Re: [Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Zachary Ware
On Fri, Jan 24, 2014 at 10:07 PM, Larry Hastings wrote: > > (Quick, because apparently nobody reads the long ones!) > > In Python 3.3: > class C: > ...def foo(self, a): pass > ... c = C() help(c.foo) > > shows you the signature "foo(self, a)". As in, it claims it accepts two >

[Python-Dev] Quick poll: should help() show bound arguments?

2014-01-24 Thread Larry Hastings
(Quick, because apparently nobody reads the long ones!) In Python 3.3: >>> class C: ...def foo(self, a): pass ... >>> c = C() >>> help(c.foo) shows you the signature "foo(self, a)". As in, it claims it accepts two parameters. The function actually only accepts one par

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Nick Coghlan
On 25 January 2014 11:14, Steven D'Aprano wrote: > On Sat, Jan 25, 2014 at 10:41:05AM +1000, Nick Coghlan wrote: > >> In this specific case, our general communication about the different >> purposes of the core lists *isn't* particularly good, > > Nick, I beg to differ: I think that our communicat

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Steven D'Aprano
On Sat, Jan 25, 2014 at 10:41:05AM +1000, Nick Coghlan wrote: > In this specific case, our general communication about the different > purposes of the core lists *isn't* particularly good, Nick, I beg to differ: I think that our communication in this regard actually is quite reasonable. Before s

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Nick Coghlan
On 25 Jan 2014 09:46, "Brett Cannon" wrote: > On Fri, Jan 24, 2014 at 6:02 PM, Mark Lawrence wrote: >>> >> >> Okay, I'll leave the snarky comments to the people who are authorised to be snarky. How do you get on this list? Is it any core dev, or are there more severe restrictions than that, for

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brett Cannon
On Fri, Jan 24, 2014 at 6:02 PM, Mark Lawrence wrote: > On 24/01/2014 22:56, Brian Curtin wrote: > >> On Fri, Jan 24, 2014 at 4:50 PM, Mark Lawrence >> wrote: >> >>> On 24/01/2014 22:44, Brian Curtin wrote: >>> On Fri, Jan 24, 2014 at 11:40 AM, Mark Lawrence < breamore...@yahoo.co.

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Mark Lawrence
On 24/01/2014 22:56, Brian Curtin wrote: On Fri, Jan 24, 2014 at 4:50 PM, Mark Lawrence wrote: On 24/01/2014 22:44, Brian Curtin wrote: On Fri, Jan 24, 2014 at 11:40 AM, Mark Lawrence wrote: On 24/01/2014 17:19, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brian Curtin
On Fri, Jan 24, 2014 at 4:50 PM, Mark Lawrence wrote: > On 24/01/2014 22:44, Brian Curtin wrote: >> >> On Fri, Jan 24, 2014 at 11:40 AM, Mark Lawrence >> wrote: >>> >>> On 24/01/2014 17:19, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation between pyt

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Mark Lawrence
On 24/01/2014 22:44, Brian Curtin wrote: On Fri, Jan 24, 2014 at 11:40 AM, Mark Lawrence wrote: On 24/01/2014 17:19, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation between python-dev and python-list, but on the other hand I don't think python-list is a good place

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brian Curtin
On Fri, Jan 24, 2014 at 11:40 AM, Mark Lawrence wrote: > On 24/01/2014 17:19, Ram Rachum wrote: >> >> Hmm, on one hand I understand the need for the separation between >> python-dev and python-list, but on the other hand I don't think >> python-list is a good place to discuss Python, the language.

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Terry Reedy
On 1/24/2014 12:50 PM, Wes Turner wrote: On Jan 24, 2014 11:43 AM, "Terry Reedy" mailto:tjre...@udel.edu>> wrote: > > On 1/24/2014 12:19 PM, Ram Rachum wrote: >> >> Hmm, on one hand I understand the need for the separation between >> python-dev and python-list, but on the other hand I don't

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Jesse Noller
I'm giving AMK the keys to the kingdom right now: AMK: Feel free to go nuts. Email me your public key On Fri, Jan 24, 2014 at 12:01 PM, Mark Lawrence wrote: > On 24/01/2014 16:37, Jesse Noller wrote: >> >> fwiw, I'm offering the keys/account/etc for getpython3.com to whomever >> has the time to

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Wes Turner
On Jan 24, 2014 11:43 AM, "Terry Reedy" wrote: > > On 1/24/2014 12:19 PM, Ram Rachum wrote: >> >> Hmm, on one hand I understand the need for the separation between >> python-dev and python-list, but on the other hand I don't think >> python-list is a good place to discuss Python, the language. >

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Mark Lawrence
On 24/01/2014 16:37, Jesse Noller wrote: fwiw, I'm offering the keys/account/etc for getpython3.com to whomever has the time to keep it fresh and up to date. If I've ever heard of this I've forgotten about it. How do we make it more prominent? -- My fellow Pythonistas, ask not what our lan

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ethan Furman
On 01/24/2014 09:19 AM, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation between python-dev and python-list, but on the other hand I don't think python-list is a good place to discuss Python, the language. [snip] it's full of people asking about third-party Python

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread A.M. Kuchling
On Fri, Jan 24, 2014 at 10:37:12AM -0600, Jesse Noller wrote: > fwiw, I'm offering the keys/account/etc for getpython3.com to whomever > has the time to keep it fresh and up to date. I'd be interested. --amk ___ Python-Dev mailing list Python-Dev@python

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brett Cannon
On Fri, Jan 24, 2014 at 12:46 PM, Ram Rachum wrote: > Okay, next time I'll ask on python-ideas. (I do hope that no one there > will be angry that I'm posting a question there rather than an idea...) > Nope, no one will. Just phrase it as "is there something like a str.rreplace? If not I think it

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Okay, next time I'll ask on python-ideas. (I do hope that no one there will be angry that I'm posting a question there rather than an idea...) On Fri, Jan 24, 2014 at 7:41 PM, Brett Cannon wrote: > > > > On Fri, Jan 24, 2014 at 12:33 PM, Ram Rachum wrote: > >> I knew it didn't exist by that na

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Chris Angelico
On Sat, Jan 25, 2014 at 4:19 AM, Ram Rachum wrote: > I now looked at the 17 most recent python-list threads. Out of them: > > - 58% are about third-party packages. > - 17% are off-topic (not even programming related) > - 11% are 2-vs-3 discussions > - 5% are job offers. > - 5% (which is just

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Terry Reedy
On 1/24/2014 12:19 PM, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation between python-dev and python-list, but on the other hand I don't think python-list is a good place to discuss Python, the language. Python-list is the place for such discussions. Questions such a

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brett Cannon
On Fri, Jan 24, 2014 at 12:33 PM, Ram Rachum wrote: > I knew it didn't exist by that name, but couldn't know whether there was > another function that did the same thing or technique to make it not needed. > > So I couldn't know whether it's new or not, therefore I couldn't know > whether it shou

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Mark Lawrence
On 24/01/2014 17:19, Ram Rachum wrote: Hmm, on one hand I understand the need for the separation between python-dev and python-list, but on the other hand I don't think python-list is a good place to discuss Python, the language. I now looked at the 17 most recent python-list threads. Out of the

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
I knew it didn't exist by that name, but couldn't know whether there was another function that did the same thing or technique to make it not needed. So I couldn't know whether it's new or not, therefore I couldn't know whether it should be on python-ideas or not. On Fri, Jan 24, 2014 at 7:31 PM

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Brett Cannon
On Fri, Jan 24, 2014 at 11:46 AM, Ram Rachum wrote: > You see, Antoine, *you* know that it's better asked on python-ideas > because you know it doesn't exist in Python, therefore it's an idea for an > addition. However, when a person like me asks this question, he does not > know whether it exist

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Hmm, on one hand I understand the need for the separation between python-dev and python-list, but on the other hand I don't think python-list is a good place to discuss Python, the language. I now looked at the 17 most recent python-list threads. Out of them: - 58% are about third-party packages

[Python-Dev] Summary of Python tracker Issues

2014-01-24 Thread Python tracker
ACTIVITY SUMMARY (2014-01-17 - 2014-01-24) Python tracker at http://bugs.python.org/ To view or respond to any of the issues listed below, click on the issue. Do NOT respond to this message. Issues counts and deltas: open4475 (+38) closed 27678 (+54) total 32153 (+92) Open issues wit

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Terry Reedy
On 1/24/2014 11:32 AM, Ram Rachum wrote: Question: Why is there no str.rreplace in Python? Ram, this list is for discussing the development of the next few releases of CPython. General questions should go to python-list. -- Terry Jan Reedy ___ Pyt

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ryan Gonzalez
http://stackoverflow.com/questions/2556108/how-to-replace-the-last-occurence-of-an-expression-in-a-string On Fri, Jan 24, 2014 at 10:32 AM, Ram Rachum wrote: > Question: Why is there no str.rreplace in Python? > > ___ > Python-Dev mailing list > Pyth

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Wes Turner
Wes Turner On Jan 24, 2014 10:37 AM, "Jesse Noller" wrote: > > fwiw, I'm offering the keys/account/etc for getpython3.com to whomever > has the time to keep it fresh and up to date. It shouldn't be too difficult to add a GET JSON view to python3wos: https://python3wos.appspot.com > > On Fri, Ja

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Mark Lawrence
On 24/01/2014 16:32, Ram Rachum wrote: Question: Why is there no str.rreplace in Python? It's not needed. Is this *REALLY* relevant to this list? -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence __

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
You see, Antoine, *you* know that it's better asked on python-ideas because you know it doesn't exist in Python, therefore it's an idea for an addition. However, when a person like me asks this question, he does not know whether it exists or not, so he can't know whether he's proposing a new idea o

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Antoine Pitrou
On Fri, 24 Jan 2014 18:32:17 +0200 Ram Rachum wrote: > Question: Why is there no str.rreplace in Python? What would it do? (also, I think such questions are better asked on python-ideas) Regards Antoine. ___ Python-Dev mailing list Python-Dev@python

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Jesse Noller
fwiw, I'm offering the keys/account/etc for getpython3.com to whomever has the time to keep it fresh and up to date. On Fri, Jan 24, 2014 at 8:36 AM, Wes Turner wrote: > Hardly marketing documents, but potentially useful nonetheless: > > http://docs.python.org/3.4/whatsnew/index.html > > https://

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Serhiy Storchaka
24.01.14 18:28, Serhiy Storchaka написав(ла): 24.01.14 17:07, Larry Hastings написав(ла): a) Functions where there's a static Python value that behaves identically to not passing in that parameter (aka "the NULL problem") [...] Possible Solutions: 0) Do nothing, don't convert the

Re: [Python-Dev] str.rreplace

2014-01-24 Thread Chris Angelico
On Sat, Jan 25, 2014 at 3:38 AM, Antoine Pitrou wrote: > On Fri, 24 Jan 2014 18:32:17 +0200 > Ram Rachum wrote: >> Question: Why is there no str.rreplace in Python? > > What would it do? > (also, I think such questions are better asked on python-ideas) Or python-list. Chances are there's a way t

[Python-Dev] str.rreplace

2014-01-24 Thread Ram Rachum
Question: Why is there no str.rreplace in Python? ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Serhiy Storchaka
24.01.14 17:07, Larry Hastings написав(ла): a) Functions where there's a static Python value that behaves identically to not passing in that parameter (aka "the NULL problem") [...] Possible Solutions: 0) Do nothing, don't convert the function. 1) Use that clever static valu

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Tres Seaver
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 01/24/2014 10:07 AM, Larry Hastings wrote: > THE SPECIFICS > > I'm sorting the problems we see into four rough categories. > > a) Functions where there's a static Python value that behaves > identically to not passing in that parameter (aka "the

Re: [Python-Dev] Enable Hostname and Certificate Chain Validation

2014-01-24 Thread Cory Benfield
On 23 January 2014 08:37, Stephen J. Turnbull wrote: > > I don't know what the right answer is, but this needs careful > discussion and amelioration, not just "you're broken, so take the > consequences!" > Absolutely. =) With that said, having a great big button to turn the change off (e.g. envir

Re: [Python-Dev] Enable Hostname and Certificate Chain Validation

2014-01-24 Thread Cory Benfield
On 24 January 2014 03:06, Stephen J. Turnbull wrote: > Are you kidding? These *aren't* the apps that I care about breaking, > and I know that the PHBs won't pay attention to what I say about > fixing their sites and cert chains (believe me, I've tried, and the > answer is as Paul Moore says: the

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Wes Turner
Hardly marketing documents, but potentially useful nonetheless: http://docs.python.org/3.4/whatsnew/index.html https://bitbucket.org/gutworth/six/src/tip/six.py https://github.com/nandoflorestan/nine/blob/master/nine/__init__.py http://docs.python.org/3/library/2to3.html https://pypi.python.or

Re: [Python-Dev] lambda (x, y):

2014-01-24 Thread Eric V. Smith
On 1/24/2014 10:50 AM, Ram Rachum wrote: > I don't like how in Python 3.x, you can't do this: > > lambda (x, y): whatever > > It's quite useful in Python 2 > > if I understand correctly, it's a side effect of such packed arguments > not being allowed in function definitions. (i.e. def instea

Re: [Python-Dev] lambda (x, y):

2014-01-24 Thread Brett Cannon
On Fri, Jan 24, 2014 at 10:50 AM, Ram Rachum wrote: > I don't like how in Python 3.x, you can't do this: > > lambda (x, y): whatever > > It's quite useful in Python 2 > > if I understand correctly, it's a side effect of such packed arguments not > being allowed in function definitions. (i.e.

[Python-Dev] lambda (x, y):

2014-01-24 Thread Ram Rachum
I don't like how in Python 3.x, you can't do this: lambda (x, y): whatever It's quite useful in Python 2 if I understand correctly, it's a side effect of such packed arguments not being allowed in function definitions. (i.e. def instead of lambda) Can you please refer me to the original dis

Re: [Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Larry Hastings
On 01/24/2014 07:07 AM, Larry Hastings wrote: b) Functions where there's no static Python value that behaves identically to not passing in that parameter (aka "the dynamic default problem") Ouch! Sorry, I forgot a detail here. This can also be another form of NULL problem. For example,

[Python-Dev] Argument Clinic: what to do with builtins with non-standard signatures?

2014-01-24 Thread Larry Hastings
BACKGROUND (skippable if you're a know-it-all) Argument parsing for Python functions follows some very strict rules. Unless the function implements its own parsing like so: def black_box(*args, **kwargs): there are some semantics that are always true. For example: * Any parameter th

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Brett Cannon
On Thu, Jan 23, 2014 at 10:48 PM, Dan Stromberg wrote: > Has anyone published a web page or wiki page about what's great about > Python 3.x? > In case you want a video I gave a presentation at PyCon US 2013 on Python 3.3 and tried to cover everything from 3.0 on. http://www.youtube.com/watch?v=

Re: [Python-Dev] Python 3 marketing document?

2014-01-24 Thread Nick Coghlan
I've tried to address the most common questions and misapprehensions in my Python 3 Q & A: http://python-notes.curiousefficiency.org/en/latest/python3/questions_and_answers.html Cheers, Nick. ___ Python-Dev mailing list Python-Dev@python.org https://mail