Re: [Python-Dev] PEP 454 (tracemalloc) close to pronouncement

2013-11-19 Thread Guido van Rossum
de be merged before the > beta1? > > Victor > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
ckslash, redundant [back]slashes, and redundant '.' components are handled). So if you are in the unusual circumstances where you have to use case-sensitive paths on Windows, you can still use WindowsPath. -- --Guido van Rossum (python.org/~guido) ___ 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] Accepting PEP 3154 for 3.4?

2013-11-20 Thread Guido van Rossum
below the opcodes - just like http chunked transfer is "in" http, > but below the content encoding). > > Regards, > Martin > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/m

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
liant" stamp of approval -- using a different set of kernel interfaces that don't enforce case insensitive matching.) -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/list

Re: [Python-Dev] PEP 3156 (asyncio) formally accepted

2013-11-20 Thread Guido van Rossum
ions of many > people (perhaps someone should add them to Misc/ACKS?). > > Regards > > Antoine. > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscri

Re: [Python-Dev] PEP 428 - pathlib - ready for approval

2013-11-20 Thread Guido van Rossum
thlib won't replace os.path immediately (the current status is "provisional", which means that the API may still be tweaked after 3.4 is released), but in the long term I expect os.path to die a quiet death (as well as the host of 3rd party path modules that preceded pathlib).

Re: [Python-Dev] Accepting PEP 3154 for 3.4?

2013-11-20 Thread Guido van Rossum
_ > 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/guido%40python.org > -- --Guido van Rossum (python.org/~guido) ___ 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] flaky tests caused by repr() sort order

2013-11-21 Thread Guido van Rossum
Correct. On Nov 21, 2013 10:15 AM, "Daniel Holth" wrote: > +1 on unsorted repr(). It makes it obvious that the collection is not > sorted. > > On Thu, Nov 21, 2013 at 1:10 PM, Christian Heimes > wrote: > > Am 21.11.2013 18:57, schrieb Tim Peters: > >> Best to change the failing tests. For examp

Re: [Python-Dev] pathlib and issue 11406 (a directory iterator returning stat-like info)

2013-11-24 Thread Guido van Rossum
the plan. The ship has likewise sailed for adding scandir() (whether to os or pathlib). By all means experiment and get it ready for consideration for 3.5, but I don't want to add it to 3.4. In general I think there are some tough choices regarding stat caching. You already bro

Re: [Python-Dev] potential argparse problem: bad mix of parse_known_args and prefix matching

2013-11-26 Thread Guido van Rossum
____ > 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/guido%40python.org > > -- --Guido van Rossum (python.org/~guido) ___ 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] PEP process entry point and ill fated initiatives

2013-11-28 Thread Guido van Rossum
ople, so everybody is scratching > own itches. I wish that usability and UX was given at > least some coverage in Python development regulations. > -- > anatoly t. > ___ > Python-Dev mailing list > Python-Dev@python.org > https://ma

Re: [Python-Dev] Verification of SSL cert and hostname made easy

2013-11-30 Thread Guido van Rossum
s not supported. > > > > > > The default settings for all stdlib modules will still be verify_mode = > > CERT_NONE and check_hostname = False for maximum backward compatibility. > > Python 3.4 comes with a new function ssl.create_default_context() that > > returns a new context with best practice settings and loaded root CA > > certs. The settings are TLS 1.0, no weak and insecure ciphers (no MD5, > > no RC4), no compression (CRIME attack), CERT_REQUIRED and check_hostname > > = True (for client side only). > > > > http://bugs.python.org/issue19509 has a working patch for ftplib. > > > > Comments? > > If Larry is OK with it as RM (and it sounds like he is), +1 from me as > well. > -- --Guido van Rossum (python.org/~guido) ___ 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] test_bind_port and test_find_unused_port fail due to missing SO_REUSEPORT when building Python 3.3.2-r2 (from portage) on 3.7.10-gentoo-r1 kernel

2013-12-03 Thread Guido van Rossum
kage/dev-lang/python > [2]: https://lwn.net/Articles/542629/ > [3]: http://bugs.python.org/issue16594 > > -- > Best regards, > Reuben Garrett > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.pyth

Re: [Python-Dev] Running the unit test as root/administrator

2013-12-03 Thread Guido van Rossum
I would be rather worried about some accidental Trojen running that way. ___ 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-

Re: [Python-Dev] One-line abstractmethod function?

2013-12-05 Thread Guido van Rossum
x27;])) > ... > > I think that it would make ABC definitions a lot more compact for many > use cases, but I welcome any criticisms against this idea. > > Allen Li > ___ > Python-Dev mailing list > Python-Dev@python.org >

Re: [Python-Dev] One-line abstractmethod function?

2013-12-05 Thread Guido van Rossum
On Thu, Dec 5, 2013 at 1:12 PM, Allen Li wrote: > On Thu, Dec 05, 2013 at 10:24:11AM -0800, Guido van Rossum wrote: >> How would you get the docstrings in? It seems cramming that much on a >> single line doesn't help readability (even though I agree there is a >>

Re: [Python-Dev] One-line abstractmethod function?

2013-12-05 Thread Guido van Rossum
On Thu, Dec 5, 2013 at 6:08 PM, Allen Li wrote: > On Thu, Dec 05, 2013 at 01:33:00PM -0800, Guido van Rossum wrote: >> > The only two alternatives are doing nothing/pass/return >> > None or having actual code in the method. >> > >> > The former is onl

Re: [Python-Dev] One-line abstractmethod function?

2013-12-05 Thread Guido van Rossum
On Thu, Dec 5, 2013 at 6:31 PM, Ethan Furman wrote: >> On Thu, Dec 05, 2013 at 01:33:00PM -0800, Guido van Rossum wrote: >>> Actually if you want to support multiple inheritance of your ABC, your >>> abstract methods *must* be no-ops (or have some kind of default >>

Re: [Python-Dev] One-line abstractmethod function?

2013-12-06 Thread Guido van Rossum
"""Docstring for instance attribute spam.""" -- --Guido van Rossum (python.org/~guido) ___ 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] Add Gentoo packagers of external modules to Misc/ACKS

2013-12-07 Thread Guido van Rossum
Spam. On Dec 7, 2013 7:26 PM, "TaeWong" wrote: > Please add the Gentoo packagers of external modules to Misc/ACKS: > > Rob Cakebread > Corentin Chary > Ian Delaney > Sebastien Fabbro > Mike Gilbert > Carsten Lohrke > Jan Matejka > Rafael Martins > Patrick McLean > Tiziano Müller > Dirkjan Ochtman

Re: [Python-Dev] Add Gentoo packagers of external modules to Misc/ACKS

2013-12-09 Thread Guido van Rossum
m >> ___ >> 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/gokoproject%40gmail.com >

Re: [Python-Dev] Sort error in Misc/ACKS

2013-12-09 Thread Guido van Rossum
l.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/thatiparthysreenivas%40gmail.com > > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://m

Re: [Python-Dev] Default SIGINT handling dangerous?

2013-12-14 Thread Guido van Rossum
command-line flag to skip the default SIGINT handler setup. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/o

Re: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6

2013-12-17 Thread Guido van Rossum
wjpmD > G6oAoMIjtrKkGTlFj0b9Tfdj5BCu1rYS > =GxuS > -END PGP SIGNATURE- > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.pyt

Re: [Python-Dev] Backward-incompatible change to random.randrange in 2.7.6

2013-12-18 Thread Guido van Rossum
worth the > risk of breaking the code of people that are relying on what's > possible rather than what the docs say. > > Cheers, > Nick. > > > -- > Nick Coghlan | ncogh...@gmail.com | Brisbane, Australia > _______ > Python-Dev

Re: [Python-Dev] Fwd: 2.x vs 3.x survey results

2014-01-05 Thread Guido van Rossum
lts. If anyone comes up with a resonable query that > gives bad results, we can do some lightweight SEO on it by adding a few > links here and there. > > Eli > > > > ___ > Python-Dev mailing list > Python-Dev@python.org

Re: [Python-Dev] [RELEASED] Python 3.4.0b2

2014-01-06 Thread Guido van Rossum
hem above.] > > At any rate, the attempts to connect to the network seem like > undesirable behavior to this man. If pip is necessary, then some > Window users may well end up without it -- and then not know why > something later doesn't work. > > Got to go now, but wil

Re: [Python-Dev] Proposed: The Great Argument Clinic Conversion Derby

2014-01-06 Thread Guido van Rossum
23 I added a hopefully useful suggestion there; ISTM the situation can easily be improved by changing the wording of the magic comments. I'm not yet convinced that the generated code is better off in separate files nor why that is considered such a big deal. And how would yo

Re: [Python-Dev] General Q&A regarding Python 3, adoption etc.

2014-01-06 Thread Emile van Sebille
On 1/6/2014 3:16 PM, Nick Coghlan wrote: I thought I mentioned it on this list last year when I first wrote it, but some messages I've seen recently suggest many folks haven't seen it before. And even more will see it if you provide a link. Please. Emile ___

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-12 Thread Emile van Sebille
On 01/12/2014 09:26 AM, Paul Moore wrote: Can you give an example of code that is *nearly* acceptable to you, which works in Python 2 and 3 today, and explain what improvements you would like to see to it in order to use it instead of waiting for a core change? I'm not a developer, but I'm try

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-12 Thread Emile van Sebille
On 01/12/2014 11:30 AM, Emile van Sebille wrote: On 01/12/2014 09:26 AM, Paul Moore wrote: Can you give an example of code that is *nearly* acceptable to you, which works in Python 2 and 3 today, and explain what improvements you would like to see to it in order to use it instead of waiting for

[Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
at all, but at least it is consistent -- it always produces text in ASCII encoding (by default). The same applies to the http module, which IIUC adheres to the standard by treating headers as Latin-1. -- --Guido van Rossum (python.org/~guido) ___ Python

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
On Sun, Jan 12, 2014 at 4:28 PM, Ethan Furman wrote: > On 01/12/2014 03:55 PM, Guido van Rossum wrote: >> >> There's a lot of discussion about PEP 460 and I haven't read it all. >> Maybe you all have already reached the same conclusion that I have. > > >

Re: [Python-Dev] Trying to focus the whole bytes/str formatting discussion

2014-01-12 Thread Guido van Rossum
7;t forget, we are talking about Python 3.5; we have not even hit Python > 3.4rc1 yet so this level of arguing seems a bit premature and going nowhere. > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailma

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
On Sun, Jan 12, 2014 at 5:27 PM, Ethan Furman wrote: > On 01/12/2014 04:47 PM, Guido van Rossum wrote: >> %s seems the trickiest: I think with a bytes argument it should just >> insert those bytes (and the padding modifiers should work too), and >> for other types it should

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
one. An operation should either work for no type, one type, a few specific types, or all types. Something that works for all but one type will *appear* to work for all types to a casually experimenting user and may pass extensive unittests, leaving a bomb that can detonate when you least expect it.

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
low up with an UnicodeEncodeError. You don't say what outcome you want, but if you wanted b'%s' % 'some text' to return b'some text' while b'%s' % '\u1234' should blow up, you're back at the Python 2 approach and that is the last thing I want

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
; > b"'some text'" > > So an encoding should definitely be specified. Yes, but the encoding is no business of %s or %. As far as the formatting operation cares, if the argument is bytes they will be copied literally, and if the argument i

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-12 Thread Guido van Rossum
Those still arguing on this thread might want to look at the thread "PEP 460 reboot". -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscri

Re: [Python-Dev] PEP 460 reboot

2014-01-12 Thread Guido van Rossum
why couldn't you also refrain from b += b'%s' % 42? I'll suppress the urge to quote verbatim from my first message in this thread (about the motivation for bytes) but I'll just recommend you re-read it. (It's too late here to write more, but it looks like we are in

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
think about encoding to bytes. -- --Guido van Rossum (python.org/~guido) ___ 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] PEP460 thoughts from a Mercurial dev

2014-01-13 Thread Guido van Rossum
On Mon, Jan 13, 2014 at 9:37 AM, Augie Fackler wrote: > > On Mon, Jan 13, 2014 at 12:34 PM, Guido van Rossum wrote: >> >> On Mon, Jan 13, 2014 at 8:51 AM, Nick Coghlan wrote: >> > On 13 January 2014 23:57, Augie Fackler wrote: >> >> 1) What do we need in

Re: [Python-Dev] PEP460 thoughts from a Mercurial dev

2014-01-13 Thread Guido van Rossum
460 would help -- Augie mentioned %d, which it excludes. -- --Guido van Rossum (python.org/~guido) ___ 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] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
le (C) also seems adding too much complexity, and adds to porting efforts. I may have felt differently in the past, but ATM I feel that if newer versions of Python 3 make porting of Python 2 code easier, through minor compromises, that's a *good* thing. (Example: adding u"

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
On Mon, Jan 13, 2014 at 11:57 AM, Barry Warsaw wrote: > On Jan 13, 2014, at 02:13 PM, Donald Stufft wrote: >>On Jan 13, 2014, at 1:58 PM, Guido van Rossum wrote: >>> I hear the objections against b'%s' % 'x' returning b"'x'" lo

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
ften shared between packages that don't know about each other). Anyway, the % or .format() issue seems completely orthogonal to the issues that get people riled up (which are mostly about whether using either implies some kind of ASCII compatibility). --

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
plate and a formatting operation. """ I would buy this if a binary format string could contain embedded text (like 'Hello' in my example above), but then the argument about avoiding ASCII bias seems to fall apart so I am at a loss about what Nick actually wants, and even a

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
don't want to use {:s}. The docs at http://docs.python.org/3/library/stdtypes.html#printf-style-string-formatting don't show %b so it could still be used there, but it would be nicer to be consistent. -- --Guido van Rossum (python.org/~guido) __

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
On Mon, Jan 13, 2014 at 1:40 PM, Antoine Pitrou wrote: > On Mon, 13 Jan 2014 13:32:28 -0800 > Guido van Rossum wrote: >> >> But formatb() feels absurd to me. PEP 460 has neither a precise >> specification or any actual examples, so I can't tell whether the >>

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
On Mon, Jan 13, 2014 at 1:29 PM, Glenn Linderman wrote: > On 1/13/2014 12:09 PM, Guido van Rossum wrote: > > Yeah, the %s behavior with a string argument was a messy attempt at > compromise. I was hoping to mimick a common use of %s in Python 2, > where it can be used with either

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
e.g. verb missing :-), and I'm not clear on what you are (or were) actually proposing. When exactly would bytes.format() need .encode('ascii')? I would be happy to wait a few hours or days for you to to write it up clearly, rather than responding in a hurry. -- --Guido van Rossum (py

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-13 Thread Emile van Sebille
On 1/13/2014 4:06 PM, Greg Ewing wrote: of text methods -- together with a text-like literal syntax and default repr(), even though at least half the time they're completely inappropriate! Better said as 'half the time they're coincidentally helpful!' My $.01 :) Emile __

Re: [Python-Dev] PEP 460 reboot

2014-01-13 Thread Guido van Rossum
On Mon, Jan 13, 2014 at 6:25 PM, Terry Reedy wrote: > On 1/13/2014 4:32 PM, Guido van Rossum wrote: > >> I will doggedly keep posting to this thread rather than creating more >> threads. > > Please permit to to doggedly keep pointing you toward the possible solution > I

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-13 Thread Guido van Rossum
Sorry to butt in, but can you post a link to the asciistr code? Google has too many hits for other things to be useful to find it, it seems. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-13 Thread Guido van Rossum
the problem is similar to creating the perfect proxy type). > PEP 460 should actually make asciistr easier in the long run, as I now > expect we'll run into some "interesting" issues getting formatting to > produce anything other than text (contrary to what I said els

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-14 Thread Guido van Rossum
On Tue, Jan 14, 2014 at 12:20 AM, Greg Ewing wrote: > Guido van Rossum wrote: >> >> I've now looked at asciistr. (Thanks Glenn and Ethan for the link.) >> >> Now that I (hopefully) understand it, I'm worried that a text >> processing algorithm tha

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-14 Thread Guido van Rossum
On Tue, Jan 14, 2014 at 7:59 AM, Guido van Rossum wrote: > Here's an example of what I mean: I sent that off without proofreading, and I also got one detail about asciistr() wrong. Here are some corrections. > def spam(a): > r = asciistr('(') > if a: r += a.

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-14 Thread Guido van Rossum
epoints_above_127(self): self.assertRaises(ValueError, asciistr, 'Schrödinger') looks reasonable enough when you assume asciistr() is always used with a literal as argument -- but I suspect that plenty of people would misunderstand its purpose and write asciistr(s) as a "clever" way to turn a string into something that's compatible with both bytes and strings... :-( -- --Guido van Rossum (python.org/~guido) ___ 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] PEP 460 reboot

2014-01-14 Thread Guido van Rossum
ve to the argument in favor of loud and early failure. It's just that I can see both sides of the coin, and I'm still deciding which argument is more important. (*) Gamer slang for a weapon made less dangerous. :-) -- --Guido van Rossum (python.org/~guido)

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Guido van Rossum
hat this support simply won't be used when >> when it does not make sense. For example, bytes literals >> *could* be used to construct a sound sample, but the >> literals will be far easier to read when they are used >> to represent (encode

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Guido van Rossum
On Tue, Jan 14, 2014 at 12:04 PM, Eric V. Smith wrote: > On 01/14/2014 01:52 PM, Guido van Rossum wrote: > >> But the way to arrive at this behavior without duplicating a whole lot >> of code seems to be to call the existing text-based __format__ API and >> convert th

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Guido van Rossum
On Tue, Jan 14, 2014 at 12:13 PM, Ethan Furman wrote: > On 01/14/2014 10:52 AM, Guido van Rossum wrote: >> >> Which reminds me. Quite a few people have spoken out in favor of loud >> failures rather than silent "wrong" output. But I think that in the >>

Re: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes

2014-01-14 Thread Guido van Rossum
lect your ideas together, I'll add them to 461 as questions or > discussions or however is appropriate (assuming you're willing to go that > route). > > -- > ~Ethan~ -- --Guido van Rossum (python.org/~guido) ___ Python-Dev maili

Re: [Python-Dev] PEP 460: allowing %d and %f and mojibake

2014-01-14 Thread Guido van Rossum
r more error prone > than the core Python 3 text model. Hm. It sounds like the kind of power tool that only candidates for the Darwin award would use. The more I hear you defend it, the less I think it's a good idea for *anything*. And limiting it to PyPy doesn't make it less danger

Re: [Python-Dev] Binding problem

2014-01-14 Thread Guido van Rossum
ot; information off the WWW? > > > > Cheers, Rob Ward > > PS In my state of eternal optimism I have attached the whole file :-) > > PPS I have done some OOP in the past but not keen to jump in at the moment. > > > ______

Re: [Python-Dev] PEP 460 reboot

2014-01-14 Thread Guido van Rossum
I am exhausted from all these discussions. I just recommend not touching those docs. On Tue, Jan 14, 2014 at 8:08 PM, Jim Jewett wrote: > On Tue, Jan 14, 2014 at 3:06 PM, Guido van Rossum wrote: >> Personally I wouldn't add any words suggesting or referring to the >> option

Re: [Python-Dev] PEP 461 - Adding % and {} formatting to bytes

2014-01-15 Thread Guido van Rossum
d we introduce only __bformat__ and have the % operator call it? > That would only require implementing one new special method instead > of two. > > Neil > > ___ > Python-Dev mailing list > Python-Dev@python.org > ht

Re: [Python-Dev] PEP 461 updates

2014-01-15 Thread Guido van Rossum
tps://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/guido%40python.org > -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://m

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-15 Thread Guido van Rossum
a special value, let's call it > sys.NULL, whose specific semantics are "turns into NULL when passed into > builtins". This would solve the problem but it's really, really awful. > > The only other option I can see: don't convert SHA1_new() to use Argument >

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-15 Thread Guido van Rossum
On Wed, Jan 15, 2014 at 9:55 PM, Larry Hastings wrote: > > On 01/15/2014 09:37 PM, Guido van Rossum wrote: > > Well, I think these are mostly artifacts from old times, and usually passing > None *should* be the same as omitting the argument. But check each case! > > &g

Re: [Python-Dev] cpython: asyncio: Fix CoroWrapper (fix my previous commit)

2014-01-16 Thread Guido van Rossum
__name__', '__doc__'] >> > > Why did you remove the docstring? > > Regards > > Antoine. > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/pyth

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-16 Thread Guido van Rossum
On Thu, Jan 16, 2014 at 1:42 AM, Terry Reedy wrote: > On 1/16/2014 3:31 AM, Serhiy Storchaka wrote: >> >> 16.01.14 08:05, Guido van Rossum написав(ла): >>> >>> In this specific case it's clear to me that the special-casing of >>> negative count is

Re: [Python-Dev] AC Derby and accepting None for optional positional arguments

2014-01-16 Thread Guido van Rossum
#x27;m not sure how AC should deal with (b), but I still hope that true examples are rare enough that we can keep hand-coding them. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/li

Re: [Python-Dev] cpython: asyncio: Fix CoroWrapper (fix my previous commit)

2014-01-16 Thread Guido van Rossum
comment instead of a docstring. :-) I'll do this now. On Thu, Jan 16, 2014 at 8:14 AM, Christian Heimes wrote: > On 16.01.2014 16:57, Guido van Rossum wrote: >> Because somehow you can't have a slot named __doc__ *and* a docstring >> in the class. Try it. (I tried to work a

Re: [Python-Dev] python code in argument clinic annotations

2014-01-16 Thread Guido van Rossum
nlikely scenario. Why would you implement clinic in C? -- --Guido van Rossum (python.org/~guido) ___ 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] PEP 461 updates

2014-01-16 Thread Guido van Rossum
d you mean. Among my questions are "by data, do you mean interpolated > objects or interpolated bytes?" and "what restriction on 'data' do you > intend by 'ASCII compatible'?". Can you move the meta-discussion off-list?

Re: [Python-Dev] Closing the Clinic output format debate (at least for now)

2014-01-16 Thread Guido van Rossum
; > /arry > > _______ > 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/guido%40python.org > -- --Guido

[Python-Dev] Need help designing subprocess API for Tulip

2014-01-28 Thread Guido van Rossum
If you're interested, please see us on the python-tulip mailing list at Google Groups. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] weird docstring generated by argument clinic

2014-01-29 Thread Guido van Rossum
. > > Stefan > > ___ > 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/guido%40python.org > -- --Guid

Re: [Python-Dev] The docstring hack for signature information has to go

2014-02-03 Thread Guido van Rossum
ility with 3.3. Can you remind us of what the corner-case was? How bad would it be if we decided to just live with it or if we added a new flag bit (only recognized by 3.4) to disambiguate corner-cases? -- --Guido van Rossum (python.org/~guido) ___ Python-D

Re: [Python-Dev] _PyUnicode_CheckConsistency() too strict?

2014-02-03 Thread Guido van Rossum
o/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/python-dev/guido%40python.org > -- --Guido van Rossum (python.org/~guido) ___ 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] The docstring hack for signature information has to go

2014-02-03 Thread Guido van Rossum
ct info, we just fix them when we notice the issue, we don't declare the language broken. On Mon, Feb 3, 2014 at 5:29 PM, Larry Hastings wrote: > > > On 02/03/2014 09:46 AM, Guido van Rossum wrote: > > Can you summarize why neither of the two schemes you tried so far w

[Python-Dev] Fwd: [python-tulip] Need help to finish asyncio documentation

2014-02-08 Thread Guido van Rossum
umentation. If you would like to contribute, send patches on .rst files. The source of the documentation is in the Doc/library/ directory of CPython repository: http://hg.python.org/cpython/ Files asyncio-*.rst: http://hg.python.org/cpython/file/default/Doc/library Victor -- --Guido van

Re: [Python-Dev] [python-tulip] Need help to finish asyncio documentation

2014-02-08 Thread Guido van Rossum
On Sat, Feb 8, 2014 at 3:47 PM, Antoine Pitrou wrote: > On Sat, 8 Feb 2014 15:32:23 -0800 > Guido van Rossum wrote: > > We could really use more help reviewing and finishing asyncio's docs! > > Well, it's probably difficult for people to help when they are not >

Re: [Python-Dev] Fwd: [python-tulip] Need help to finish asyncio documentation

2014-02-10 Thread Guido van Rossum
On Mon, Feb 10, 2014 at 12:47 PM, Russell E. Owen wrote: > In article > , > Guido van Rossum wrote: > > > We could really use more help reviewing and finishing asyncio's docs! > ... > > http://docs.python.org/dev/library/asyncio.html > > I think the docum

[Python-Dev] Is the PIP requirement too strict?

2014-02-11 Thread Guido van Rossum
ython/Lib/ensurepip/__init__.py", line 74, in bootstrap _require_ssl_for_pip() File "/Users/guido/cpython/Lib/ensurepip/__init__.py", line 23, in _require_ssl_for_pip raise RuntimeError(_MISSING_SSL_MESSAGE) RuntimeError: pip 1.5.2 requires SSL/TLS make: *** [install] Erro

Re: [Python-Dev] Is the PIP requirement too strict?

2014-02-11 Thread Guido van Rossum
Thanks, I discovered ENSUREPIP=no right after posting, but agreed it should print an intelligible error message instead of giving a traceback. On Tue, Feb 11, 2014 at 10:15 AM, Donald Stufft wrote: > On Feb 11, 2014, at 12:30 PM, Guido van Rossum wrote: > > I don't happen t

Re: [Python-Dev] Is the PIP requirement too strict?

2014-02-11 Thread Guido van Rossum
). This is a common issue with Mavericks and open-source projects (not just Python); Ned will add something to the README. --Guido On Tue, Feb 11, 2014 at 2:22 PM, Ned Deily wrote: > In article > , > Guido van Rossum wrote: > > I don't happen to have OpenSSL configured on my O

Re: [Python-Dev] [Python-checkins] cpython: asyncio.events: Use __slots__ in Handle and TimerHandle

2014-02-12 Thread Guido van Rossum
super().__init__(callback, args) >> > > Apologies up front if these are stupid questions, but: > > Why __slots__? Are we going to have so many of these things that memory > is an issue > There's one of these created for every callback -- which includes every time

Re: [Python-Dev] Pickling of Enums

2014-02-18 Thread Guido van Rossum
t; 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/ > guido%40python.org > -- --Guido van Rossum (python.org/~guido) ___ 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] Pickling of Enums

2014-02-18 Thread Guido van Rossum
b 18, 2014 at 10:01 AM, Ethan Furman wrote: > On 02/18/2014 09:47 AM, Guido van Rossum wrote: > >> >> I'm confused. Hasn't this all been decided by the PEP long ago? >> > > The PEP only mentions pickling briefly, as in "the normal rules apply". >

Re: [Python-Dev] Pickling of Enums

2014-02-18 Thread Guido van Rossum
INPUT 0 26: KBININT12 28: \x85 TUPLE1 29: qBINPUT 1 31: RREDUCE 32: qBINPUT 2 34: .STOP highest protocol among opcodes = 2 >>> On Tue, Feb 18, 2014 at 10:16 AM, Ethan Furman wrote: > On 02/18/2014 10:05 AM, Guido van Rossum wrote: &g

Re: [Python-Dev] Pickling of Enums

2014-02-18 Thread Guido van Rossum
Well, I'm against that. On Tue, Feb 18, 2014 at 11:26 AM, Ethan Furman wrote: > On 02/18/2014 11:20 AM, Guido van Rossum wrote: > >> >> I'm confused. AFAICT enums are pickled by value too. What am I missing? >> Are we confused about terminology or about >&g

Re: [Python-Dev] Pickling of Enums

2014-02-18 Thread Guido van Rossum
Well, I still think it should be done by value. On Tue, Feb 18, 2014 at 11:53 AM, Serhiy Storchaka wrote: > 18.02.14 21:20, Guido van Rossum написав(ла): > > I'm confused. AFAICT enums are pickled by value too. What am I missing? >> Are we confused about terminology or

Re: [Python-Dev] Python 3.4: Cherry-picking into rc2 and final

2014-02-18 Thread Guido van Rossum
__ > 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/guido%40python.org > -- --Guido van Rossum (python.org/~

Re: [Python-Dev] Python 3.4: Cherry-picking into rc2 and final

2014-02-19 Thread Guido van Rossum
ht? Once Larry says it's baked, everyone *will* have a chance to test it. What value is a preview of the preview really going to add? Give Larry some trust and freedom to do things in the way that makes him comfortable. -- --Guido van Rossum (python.org/~guido) _

Re: [Python-Dev] Python 3.4: Cherry-picking into rc2 and final

2014-02-19 Thread Guido van Rossum
gt; is published you should use "merge". And that's exactly why Larry is holding off pushing. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/pytho

Re: [Python-Dev] Python 3.4: Cherry-picking into rc2 and final

2014-02-19 Thread Guido van Rossum
On Wed, Feb 19, 2014 at 8:16 AM, Barry Warsaw wrote: > On Feb 19, 2014, at 07:50 AM, Guido van Rossum wrote: > > >That's why it's RC2 and not 3.4final, right? Once Larry says it's baked, > >everyone *will* have a chance to test it. What value is a preview of t

Re: [Python-Dev] Preview of 3.4 rc2 (so far) is up

2014-02-19 Thread Guido van Rossum
s, and hoping for the best. > > I really am hoping it'll settle down soon, though, > I am actively clamping down on these now. Yuri's and Victor's youthful enthusiasm is adorable. :-) -- --Guido van Rossum (python.org/~guido) _

Re: [Python-Dev] PEP 463: Exception-catching expressions

2014-02-21 Thread Guido van Rossum
+0.5 > But I'm aware it requires reserving "then" as a keyword, which might > need a prior SyntaxWarning. > I'm put off by the ':' syntax myself (it looks to me as if someone forgot a newline somewhere) but 'then' feels even weirder (it's been ha

<    6   7   8   9   10   11   12   13   14   15   >