Re: [Python-Dev] When should pathlib stop being provisional?

2016-04-05 Thread Guido van Rossum
ce 3.5.2 is out, the solution would be to use open(config.path), and that will also work when passing it to a library. Is it still unacceptable then? -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.

Re: [Python-Dev] When should pathlib stop being provisional?

2016-04-05 Thread Guido van Rossum
On Tue, Apr 5, 2016 at 7:44 PM, Nick Coghlan wrote: > Option 4: define a rich-object-to-text path serialisation convention, Unfortunately that sounds like a classic "serious programming" solution (objects, abstractions, serialization, all big important words :-). -- --Gui

Re: [Python-Dev] Incomplete Internationalization in Argparse Module

2016-04-08 Thread Guido van Rossum
ython-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 Py

Re: [Python-Dev] Incomplete Internationalization in Argparse Module

2016-04-09 Thread Guido van Rossum
OK, so this should be taken to the bug tracker. On Saturday, April 9, 2016, Grady Martin wrote: > I agree. However, an incorrect choice for an argument with a choices > parameter results in this string. > > On 2016年04月08日 18時12分, Guido van Rossum wrote: > >> >> T

Re: [Python-Dev] PEP 506 secrets module

2016-04-10 Thread Guido van Rossum
d ~bool threads, and we can proceed to add secrets.py to the 3.6 stdlib. You should be proud of that accomplishment! --Guido On Sat, Apr 9, 2016 at 10:08 PM, Steven D'Aprano wrote: > I've just spotted this email from Guido, sorry about the delay in > responding. > > Further comme

Re: [Python-Dev] PEP 506 secrets module

2016-04-11 Thread Guido van Rossum
Most excellent! PEP 506 is hereby approved. Congrats again. On Mon, Apr 11, 2016 at 10:50 AM, Steven D'Aprano wrote: > On Sun, Apr 10, 2016 at 11:43:08AM -0700, Guido van Rossum wrote: >> Hi Steven, >> >> No probIem with the delay -- it's still before 3.6.0.

Re: [Python-Dev] Wordcode: new regular bytecode using 16-bit units

2016-04-13 Thread Guido van Rossum
mory accesses: > >http://bugs.python.org/issue25823 > > The cost of non-aligned memory accesses depends on the CPU > architecture, but it can raise a SIGBUS on some arch (MIPS and > SPARC?). > > Victor > _______ >

Re: [Python-Dev] MAKE_FUNCTION simplification

2016-04-14 Thread Guido van Rossum
func); > DISPATCH(); > } > > compile.c also gets a bit simpler, but not much. > > What do you think? > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev >

Re: [Python-Dev] RFC: PEP 509: Add a private version to dict

2016-04-14 Thread Guido van Rossum
t; globals+builtins lookup optimization > <https://bugs.python.org/issue1616125>`_. The patch adds a private > ``timestamp`` field to the ``PyDictObject`` structure (``dict`` type), > the field has the C type ``size_t``. > > Thread on python-dev: `About dictionary lookup caching

[Python-Dev] PEP 8 updated on whether to break before or after a binary update

2016-04-15 Thread Guido van Rossum
es are %s, %s" % (width, height)) Blob.__init__(self, width, height, color, emphasis, highlight) -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Pytho

Re: [Python-Dev] PEP 8 updated on whether to break before or after a binary update

2016-04-15 Thread Guido van Rossum
tly fin and I disagree. > It helps to visually see that the multiline test and the raise > instruction are in two different blocks. > > (Moreover, the pep8 checks of OpenStack simply reject such syntax, but > I cannot use this syntax an

Re: [Python-Dev] PEP 8 updated on whether to break before or after a binary update

2016-04-15 Thread Guido van Rossum
and emphasis == 'strong' > or highlight > 100): > raise ValueError("sorry, you lose") > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailma

Re: [Python-Dev] [Question][Asyncio] Process + Threads + asyncio... has sense?

2016-04-18 Thread Guido van Rossum
n. > > Thank you very much for your time. > > Regards! > > -- > Daniel García a.k.a. cr0hn - Security researcher and pentester > @ggdaniel > http://www.cr0hn.com/me/ > > ___ > Python-Dev mailing list > Python-

Re: [Python-Dev] [Python-ideas] pep 7 line break suggestion differs from pep 8

2016-04-18 Thread Guido van Rossum
ability reasons will also > > translate to C; maybe pep 7 should also be updated. > > I would agree with this. Passing it directly to python-dev as that's > where the key decision makers are. > > ChrisA > ___ > Python-id

Re: [Python-Dev] Inconsistency of PyModule_AddObject()

2016-04-27 Thread Case Van Horsen
On Wed, Apr 27, 2016 at 11:06 AM, Serhiy Storchaka wrote: > I think it is better to have relation with PyModule_AddIntConstant() etc > than with PyObject_SetAttrString. > > My patch doesn't introduce new public function, but changes the behavior of > the old function. This needs minimal changes to

Re: [Python-Dev] Inconsistency of PyModule_AddObject()

2016-04-28 Thread Guido van Rossum
Stefan, could you explain which module you are talking about and why it would cost you a week? What is your responsibility here? --Guido (mobile) On Apr 28, 2016 8:28 AM, "Stefan Krah" wrote: > Random832 fastmail.com> writes: > > A more relevant point would be that _decimal does *not* use the A

Re: [Python-Dev] Problemas con modulos

2016-04-29 Thread Guido van Rossum
; > > https://mail.python.org/mailman/options/python-dev/facundobatista%40gmail.com > > > > > > -- > .Facundo > > Blog: http://www.taniquetil.com.ar/plog/ > PyAr: http://www.python.org/ar/ > Twitter: @facundobatista > ________

Re: [Python-Dev] Memory

2016-05-01 Thread Guido van Rossum
.python.org/mailman/listinfo/python-dev >> Unsubscribe: >> https://mail.python.org/mailman/options/python-dev/cmkleffner%40gmail.com >> > > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/

Re: [Python-Dev] Bug in 2to3 concerning import statements?

2016-05-01 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)

Re: [Python-Dev] Return type of alternative constructors

2016-05-08 Thread Guido van Rossum
IMO bool is a special case because it's meant to be a final class, and the implementation of int (which is in C and so can violate most rules) doesn't respect that. But in general I think the only reasonable approach is that a construction class method should return an instance of the subclass; th

Re: [Python-Dev] Minor change to Enum -- should it go into 3.5.2?

2016-05-08 Thread Guido van Rossum
If enum were provisional it would be okay, but since it isn't, I think this change can't go into 3.5.2. Think if this: could any code that works in 3.5.1 be broken by the change? --Guido (mobile) On May 8, 2016 1:11 PM, "Ethan Furman" wrote: > Currently, the Enum creation process ignores __dunde

Re: [Python-Dev] Return type of alternative constructors

2016-05-08 Thread Guido van Rossum
interactions between the subclass and the > base class than you really wanted to. > Indeed! We could also consider this a general weakness of the "alternative constructors are class methods" pattern. If instead these alternative constructors were folded into the main constructor (e

Re: [Python-Dev] Minor change to Enum -- should it go into 3.5.2?

2016-05-08 Thread Guido van Rossum
On Sun, May 8, 2016 at 3:43 PM, Ethan Furman wrote: > On 05/08/2016 03:29 PM, Guido van Rossum wrote: > > If enum were provisional it would be okay, but since it isn't, I think >> this change can't go into 3.5.2. Think if this: could any code that >> works i

Re: [Python-Dev] Minor change to Enum -- should it go into 3.5.2?

2016-05-08 Thread Guido van Rossum
I wonder if we should add something for this? --Guido (mobile) On May 8, 2016 7:18 PM, "Nick Coghlan" wrote: > On 9 May 2016 at 08:43, Ethan Furman wrote: > > On 05/08/2016 03:29 PM, Guido van Rossum wrote: > > > >> If enum were provisional it would be

Re: [Python-Dev] Return type of alternative constructors

2016-05-09 Thread Guido van Rossum
On Sun, May 8, 2016 at 7:52 PM, Nick Coghlan wrote: > On 9 May 2016 at 08:50, Guido van Rossum wrote: > > On Sun, May 8, 2016 at 4:49 AM, Nick Coghlan wrote: > >> P.S. The potential complexity of that is one of the reasons the design > >> philosophy of "prefer

Re: [Python-Dev] Return type of alternative constructors

2016-05-10 Thread Guido van Rossum
On Tue, May 10, 2016 at 6:21 AM, Nick Coghlan wrote: > On 10 May 2016 at 02:30, Guido van Rossum wrote: > > On Sun, May 8, 2016 at 7:52 PM, Nick Coghlan wrote: > >> P.S. It occurs to me that a sufficiently sophisticated typechecker > >> might be able to look at all

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)

2016-05-11 Thread Guido van Rossum
gt; or implementation? > > On Sat, 19 Mar 2016 at 11:56 Guido van Rossum wrote: > >> All that sounds fine! >> >> On Sat, Mar 19, 2016 at 11:28 AM, Stefan Krah >> wrote: >> > Guido van Rossum python.org> writes: >> >> So should the preprocessi

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)

2016-05-11 Thread Guido van Rossum
On Wed, May 11, 2016 at 10:28 AM, Brett Cannon wrote: > > > On Wed, 11 May 2016 at 09:47 Guido van Rossum wrote: > >> If the authors are happy I'll accept it right away. >> >> (I vaguely recall there's another PEP that's ready for pronouncement --

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)

2016-05-12 Thread Guido van Rossum
OK, then PEP 515 is now officially accepted! Congratulations. Start the implementation work! --Guido (mobile) On May 11, 2016 10:33 PM, "Georg Brandl" wrote: I'm happy with the latest version. Georg On 05/11/2016 06:46 PM, Guido van Rossum wrote: > If the authors are ha

Re: [Python-Dev] file system path protocol PEP

2016-05-12 Thread Guido van Rossum
rsion (unoptimized): def fspath(p: Union[str, bytes, PathLike]) -> Union[str, bytes]: if isinstance(p, (str, bytes)): return p try: return p.__fspath__ except AttributeError: raise TypeError(...) Other than that I think the PEP is already in fine shape. -- --G

Re: [Python-Dev] file system path protocol PEP

2016-05-12 Thread Guido van Rossum
On Thu, May 12, 2016 at 10:18 AM, Brett Cannon wrote: > > On Thu, 12 May 2016 at 09:25 Guido van Rossum wrote: > >> def fspath(p: Union[str, bytes, PathLike]) -> Union[str, bytes]: >> if isinstance(p, (str, bytes)): >> return p >>

Re: [Python-Dev] file system path protocol PEP

2016-05-12 Thread Guido van Rossum
t of the stdlib and only put in the stub (though you can show them in the PEP of course). If you want it to be generic we have more work to do. I'm out of time now but we can discuss that after 3pm today. -- --Guido van Rossum (python.org/~guido)

Re: [Python-Dev] file system path protocol PEP

2016-05-12 Thread Guido van Rossum
There's no need for typing.PathLike. -- --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/pytho

Re: [Python-Dev] PEP 515: Underscores in Numeric Literals (revision 3)

2016-05-12 Thread Guido van Rossum
Is anyone going to mark the PEP as accepted? On Thu, May 12, 2016 at 8:11 AM, Guido van Rossum wrote: > OK, then PEP 515 is now officially accepted! Congratulations. Start the > implementation work! > > --Guido (mobile) > On May 11, 2016 10:33 PM, "Georg Brandl" wrot

Re: [Python-Dev] File system path PEP, part 2

2016-05-13 Thread Guido van Rossum
.fspath() firmly falls in the latter camp: it takes an input whose __fspath__() method will return either str or bytes, so that's all the guidance it needs. Really, if you want bytes, you should use os.fsencode(); if you want strings, use os.fsencode(); if you want to be polymorphic, use os

Re: [Python-Dev] File system path PEP, part 2

2016-05-13 Thread Guido van Rossum
On Fri, May 13, 2016 at 9:33 AM, Larry Hastings wrote: > > > On 05/13/2016 06:21 PM, Guido van Rossum wrote: > > Really, if you want bytes, you should use os.fsencode(); if you want > strings, use os.fsencode(); if you want to be polymorphic, use os.fspath() > and chec

Re: [Python-Dev] File system path PEP, part 2

2016-05-13 Thread Guido van Rossum
On Fri, May 13, 2016 at 9:34 AM, Ethan Furman wrote: > I would say use `type(x).__fspath__`. I'm not aware of any other > __dunder__ method that doesn't access the attribute from the type instead > of the instance, and I see no point in making this one different. > Ag

[Python-Dev] Adding Type[C] to PEP 484

2016-05-13 Thread Guido van Rossum
e root of Python's metaclass hierarchy). This equivalence also motivates the name, ``Type``, as opposed to alternatives like ``Class`` or ``SubType``, which were proposed while this feature was under discussion; this is similar to the relationship between e.g. ``List`` and ``

Re: [Python-Dev] File system path PEP, 3rd draft

2016-05-13 Thread Guido van Rossum
the official repo. >> > > Paraphrasing *someone* from Twitter yesterday, I'm just going to work on > GitHub until I absolutely have to check into hg, m'kay? ;) > > -Brett > > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailma

Re: [Python-Dev] Adding Type[C] to PEP 484

2016-05-14 Thread Guido van Rossum
What would Type[C, D] mean? --Guido (mobile) On May 14, 2016 11:21 AM, "Peter Ludemann via Python-Dev" < python-dev@python.org> wrote: > Is Type[C,D] allowed? Or should multiple types be restricted to TypeVar? > > ___ > Python-Dev mailing list > Python-

Re: [Python-Dev] Adding Type[C] to PEP 484

2016-05-14 Thread Guido van Rossum
ason to use a type variable though -- without one the return type would be the base class. (But then again maybe that could be what you want, or you might not even have a return type, e.g. when the thing just gets thrown into the database.) --Guido > > > On 14 May 2016 at 11:30, Guido v

Re: [Python-Dev] Adding Type[C] to PEP 484

2016-05-15 Thread Guido van Rossum
://github.com/python/typing/issues/107 even though it's long and meanders a bit; it comes to the right conclusion in the end. On Sun, May 15, 2016 at 10:24 AM, Peter Ludemann wrote: > > > On 14 May 2016 at 13:28, Guido van Rossum wrote: > >> On Sat, May 14, 2016 at 11:47 AM, P

Re: [Python-Dev] File system path PEP, 3rd draft

2016-05-16 Thread Guido van Rossum
ed the union of all acceptable path-representing types >> as that can be represented with >> ``typing.Union[str, bytes, os.PathLike]`` easily enough and the hope >> is users will slowly gravitate to path objects only. >> >> >> Provide ``os.fspathb()`` >>

Re: [Python-Dev] File system path PEP, 3rd draft

2016-05-16 Thread Guido van Rossum
quite an effort (I personally did not have the patience to keep up with the thread...). On Mon, May 16, 2016 at 1:26 PM, Brett Cannon wrote: > > > On Mon, 16 May 2016 at 13:12 Guido van Rossum wrote: > >> Once you assign yourself a PEP number I'll do one more pass an

Re: [Python-Dev] Adding Type[C] to PEP 484

2016-05-18 Thread Guido van Rossum
github.com/python/typing/issues/107 -- --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/arch

Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Guido van Rossum
/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] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-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/~gu

Re: [Python-Dev] Removing the provisional label from pathlib

2016-05-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)

Re: [Python-Dev] Why does PEP 7/8 explicitly suggest 2 spaces after a period?

2016-05-20 Thread Guido van Rossum
Because Emacs. :-) I am going to mute this thread now. On Fri, May 20, 2016 at 11:40 AM, Brett Cannon wrote: > > > On Fri, 20 May 2016 at 09:46 Guido van Rossum wrote: >> >> ALso, in case anyone reading this didn't realize, this is a classic >> internet debate th

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-27 Thread Guido van Rossum
Sorry, this is more meant to be the start of a discussion about the proposed feature. And typing.py has its own upstream repo (like asyncio). --Guido (mobile) On May 27, 2016 12:52 PM, "Brett Cannon" wrote: > Patches to Python's stdlib should go through bugs.python.org so it isn't > lost in emai

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-27 Thread Guido van Rossum
Also -- the most important thing. :-) What to call these things? We're pretty much settled on the semantics and how to create them (A = NewType('A', int)) but what should we call types like A when we're talking about them? "New types" sounds awkward. On Fri, May 2

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-27 Thread Guido van Rossum
oes to these). > Fake types? Virtual types? Pseudo-types? I'm not keen on any of these. -- --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] Adding NewType() to PEP 484

2016-05-28 Thread Guido van Rossum
obably confusing because a subclass is also called a derived class. On Sat, May 28, 2016 at 5:24 AM, Steven D'Aprano wrote: > On Fri, May 27, 2016 at 09:26:29PM -0700, Guido van Rossum wrote: > >> We discussed this over dinner at PyCon, some ideas we came up with: >> >

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-28 Thread Guido van Rossum
lled. So if the function is > typings.distinguish_type(...), then distinguished will stick. > > Top-posted from my Windows Phone > ____ > From: Guido van Rossum > Sent: ‎5/‎28/‎2016 7:38 > To: Steven D'Aprano > Cc: Python-Dev > Subject: Re: [Python-Dev]

Re: [Python-Dev] New hash algorithms: SHA3, SHAKE, BLAKE2, truncated SHA512

2016-05-28 Thread Guido van Rossum
://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.

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Guido van Rossum
On Sun, May 29, 2016 at 12:07 PM, Jelle Zijlstra wrote: > > > 2016-05-27 16:01 GMT-07:00 Guido van Rossum : >> >> Also -- the most important thing. :-) What to call these things? We're >> pretty much settled on the semantics and how to create them (A = >>

Re: [Python-Dev] Adding NewType() to PEP 484

2016-05-29 Thread Guido van Rossum
On Sun, May 29, 2016 at 4:08 PM, Oscar Benjamin wrote: > > On 28 May 2016 00:03, "Guido van Rossum" wrote: >> >> Also -- the most important thing. :-) What to call these things? We're >> pretty much settled on the semantics and how to create them (A = &

Re: [Python-Dev] Python parser performance optimizations

2016-05-30 Thread Guido van Rossum
I know we're all just having fun, but that's probably a rather stressful welcome to the list. Maybe we can tone down the humor a bit and instead review the OP's patches? --Guido (mobile) ___ Python-Dev mailing list Python-Dev@python.org https://mail.pyth

Re: [Python-Dev] Adding NewType() to PEP 484

2016-06-01 Thread Guido van Rossum
Unless Jukka objects I am going with "distinct type" when discussing the feature but NewType() in code. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/

Re: [Python-Dev] Adding NewType() to PEP 484

2016-06-01 Thread Guido van Rossum
Everyone on the mypy team has a different opinion so the search is on. :-( On Wed, Jun 1, 2016 at 5:37 PM, Hai Nguyen wrote: > I am +1 for DistinctType (vs others) (no specific reason, just read out > loud). > > Hai > > On Wednesday, June 1, 2016, Guido van Rossum wrote:

Re: [Python-Dev] Adding NewType() to PEP 484

2016-06-01 Thread Guido van Rossum
I've merged this into PEP 484 now. The informal term used there is actually "unique type" which is fine. End of discussion please. On Wed, Jun 1, 2016 at 5:50 PM, Bernardo Sulzbach wrote: > On 06/01/2016 09:44 PM, Guido van Rossum wrote: >> >> Everyone on the mypy t

Re: [Python-Dev] C99

2016-06-04 Thread Guido van Rossum
t > 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] C99

2016-06-04 Thread Guido van Rossum
As long as we don't require extension module authors to use them -- they may have their own compatibility requirements. On Sat, Jun 4, 2016 at 11:50 AM, Christian Heimes wrote: > On 2016-06-04 10:47, Guido van Rossum wrote: >> Funny. Just two weeks ago I was helping someone wh

Re: [Python-Dev] C99

2016-06-04 Thread Guido van Rossum
t 12:05 PM, Christian Heimes wrote: > On 2016-06-04 11:59, Guido van Rossum wrote: >> As long as we don't require extension module authors to use them -- >> they may have their own compatibility requirements. > > On Windows extension modules must be compiled with a spe

Re: [Python-Dev] C99

2016-06-05 Thread Guido van Rossum
ev 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 maili

Re: [Python-Dev] C99

2016-06-06 Thread Guido van Rossum
hat do not support it. It's much > lower impact on the source code than some other C99 features. That could be a major performance impact. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.pytho

Re: [Python-Dev] C99

2016-06-06 Thread Guido van Rossum
On Mon, Jun 6, 2016 at 4:23 AM, Sturla Molden wrote: > Guido van Rossum wrote: > >> I'm not sure I meant that. But if I have a 3rd party extension that >> compiles with 3.5 headers using C89, then it should still compile with >> 3.6 headers using C99. Also if I c

Re: [Python-Dev] C99

2016-06-06 Thread Guido van Rossum
Right. On Mon, Jun 6, 2016 at 7:31 AM, Eric V. Smith wrote: > On 06/06/2016 10:11 AM, Guido van Rossum wrote: >> On Mon, Jun 6, 2016 at 4:23 AM, Sturla Molden >> wrote: >>> Guido van Rossum wrote: >>> >>>> I'm not sure I meant that. But if I

Re: [Python-Dev] PEP 492: __aiter__ should return async iterator directly instead of awaitable

2016-06-06 Thread Guido van Rossum
cially with xenial being an LTS release. >> >> > Yes, I agree. OTOH, I don't see any other way of resolving this. > > Another option would be to start raising the DeprecationWarning only in > 3.6. > > Yury > > _______

Re: [Python-Dev] C99

2016-06-07 Thread Guido van Rossum
I'll ask my colleague what his compiler setup was. On Tue, Jun 7, 2016 at 3:24 AM, Victor Stinner wrote: > Hi, > > 2016-06-04 19:47 GMT+02:00 Guido van Rossum : > > Funny. Just two weeks ago I was helping someone who discovered a > > compiler that doesn't s

Re: [Python-Dev] C99

2016-06-07 Thread Guido van Rossum
So here's the diffs that seem to indicate we were working with a compiler that wasn't full C99 (or maybe previously we were working with a compiler that had extensions?) https://github.com/dropbox/typed_ast/commit/f7497e25abc3bcceced3ca6c3be3786d8805df41 On Tue, Jun 7, 2016 at 8:18 AM,

Re: [Python-Dev] Proper way to specify that a method is not defined for a type

2016-06-07 Thread Guido van Rossum
e any method is unsupported? > > -- > ~Ethan~ > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: > https://mail.python.org/mailman/options/pytho

Re: [Python-Dev] Looking for volunteers to test Tulip on Windows

2013-10-18 Thread Guido van Rossum
M, Richard Oudkerk wrote: > On 18/10/2013 6:15pm, Guido van Rossum wrote: > >> Thanks! There are some new changes (I fixed a race with sockets closing) >> and I hope to land flow control (finally) later today. >> >> Do you know what those skips are? I suspect they mi

Re: [Python-Dev] Looking for volunteers to test Tulip on Windows

2013-10-18 Thread Guido van Rossum
Maybe the dummy socket returned by wrap_socket() is not acceptable for select? --Guido van Rossum (sent from Android phone) On Oct 18, 2013 11:26 AM, "Richard Oudkerk" wrote: > On 18/10/2013 6:57pm, Guido van Rossum wrote: > >> Thanks! Those are all expected (though co

Re: [Python-Dev] Looking for volunteers to test Tulip on Windows

2013-10-18 Thread Guido van Rossum
Good sleuthing! Does the attached patch fix it? (Off-topic: the code is pretty inconsistent about catching BaseException. Maybe it shouldn't be caught at all?) On Fri, Oct 18, 2013 at 2:04 PM, Richard Oudkerk wrote: > On 18/10/2013 9:19pm, Guido van Rossum wrote: > >> Maybe

Re: [Python-Dev] Looking for volunteers to test Tulip on Windows

2013-10-18 Thread Guido van Rossum
on an Ubuntu box too, and there it actually works.) On Fri, Oct 18, 2013 at 3:42 PM, Richard Oudkerk wrote: > On 18/10/2013 10:37pm, Guido van Rossum wrote: > >> Good sleuthing! Does the attached patch fix it? >> >> (Off-topic: the code is pretty inconsistent about

Re: [Python-Dev] Looking for volunteers to test Tulip on Windows

2013-10-19 Thread Guido van Rossum
You should ask Glyph too. He supplied lots of useful info about cert checking on the python-tulip list. On Sat, Oct 19, 2013 at 7:14 AM, Nick Coghlan wrote: > On 19 October 2013 22:44, Christian Heimes wrote: > > Am 19.10.2013 00:56, schrieb Guido van Rossum: > > A couple of

Re: [Python-Dev] PEP 454 (tracemalloc): new minimalist version

2013-10-19 Thread Guido van Rossum
.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@pytho

Re: [Python-Dev] PEP 451: ModuleSpec

2013-10-20 Thread Guido van Rossum
h the PEP, having been > heavily involved in earlier discussions. Thanks! > > -eric -- --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] Usefulness of site-python?

2013-10-23 Thread Guido van Rossum
. But only under > Unix ("if os.sep == '/'"). > > Has anyone seen that feature in the real world? Debian doesn't use > site-python, but its own /usr/share/pyshared. > > For the record, it was added in b53347c8260e with the following commit > message: >

Re: [Python-Dev] Merge codeaccess.txt from wesnoth-contribcommunity project in Google Code Hosting

2013-10-25 Thread Guido van Rossum
Somebody please block him. --Guido van Rossum (sent from Android phone) On Oct 25, 2013 5:53 PM, "Ned Deily" wrote: > In article , Terry Reedy > wrote: > > On 10/25/2013 6:55 PM, Tae Wong wrote: > > > Here's the codeaccess.txt file. > > > https:

Re: [Python-Dev] RELEASED: Python 2.6.9 final

2013-10-29 Thread Guido van Rossum
he interactive interpreter, is *not* fixed in 2.6.9. If this issue > affects > you, please review the tracker for possible options: > > http://bugs.python.org/issue18458 > > Enjoy, > -Barry > (on behalf of the Python development community) -- --Guido van Rossu

Re: [Python-Dev] Compiler security

2013-10-31 Thread Guido van Rossum
ptions/python-dev/** > guido%40python.org<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/lis

[Python-Dev] Problem installing matplotlib 1.3.1 with Python 2.7.6 and 3.3.3 (release candidate 1)

2013-11-03 Thread Piet van Oostrum
ython should also include the Tcl/Tk header files. -- Piet van Oostrum WWW: http://pietvanoostrum.com/ PGP key: [8DAE142BE17999C4] ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe:

Re: [Python-Dev] [Python-checkins] cpython (2.7): Issue #XXXXX: Fix test_idle so that idlelib test cases are actually run

2013-11-04 Thread Guido van Rossum
://phdru.name/p...@phdru.name >Programmers don't die, they just GOSUB without RETURN. > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscribe: &g

Re: [Python-Dev] "PyObject *module" for module-level functions?

2013-11-04 Thread Guido van Rossum
from the module), even though they behave > a little like they are. > > Instead of relying on the descriptor protocol (which doesn't trigger > because module level functions are stored in an instance namespace), we > play games

Re: [Python-Dev] PEP 451 (ModuleSpec) is accepted

2013-11-08 Thread Guido van Rossum
Congrats are deserved all around. This is a solid PEP. I'm glad you all took such great care with the design and the review. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/ma

Re: [Python-Dev] The pysandbox project is broken

2013-11-12 Thread Guido van Rossum
e the process. > > There is also http://shell.appspot.com/ which uses Google AppEngine. > In my opinion, Google AppEngine doesn't use a sandbox in Python, but > outside Python. That's not just your opinion, it's a fact. -- --Guido van Rossum (python.org/~gui

Re: [Python-Dev] The pysandbox project is broken

2013-11-15 Thread Guido van Rossum
urageous step by Victor to declare defeat. Negative results are also results, and they need to be published. Thanks Victor! -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listi

Re: [Python-Dev] What's the story on Py_FrozenMain?

2013-11-16 Thread Guido van Rossum
geset: 1270:14369a5e61679364deeae9a9a0deedbd593a72e0 > branch: legacy-trunk > user:Guido van Rossum > date:Thu Apr 01 20:59:32 1993 + > summary: Support for frozen scripts; added -i option. > > -eric > ___

Re: [Python-Dev] PyParallel: alternate async I/O and GIL removal

2013-11-16 Thread Guido van Rossum
g done on Linux; see > recent MegaPipe paper for an example.) > > Regards, > > Trent. > ___ > Python-Dev mailing list > Python-Dev@python.org > https://mail.python.org/mailman/listinfo/python-dev > Unsubscrib

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

2013-11-16 Thread Guido van Rossum
g/issue17810 > Assuming Tim doesn't object (hi Tim!) I think this PEP is fine to accept -- all the ideas sound good, and I agree with moving to support 8-byte sizes and framing. I haven't looked at the implementation but I trust you as a re

Re: [Python-Dev] (#19562) Asserts in Python stdlib code (datetime.py)

2013-11-17 Thread Guido van Rossum
use them: > > https://mail.python.org/pipermail/python-list/2013-November/660401.html Nice post! > I will continue to use my best effort to encourage good use of > assertions in Python. Thank you! --Guido > > -- --Guido van Rossum (on iPad) __

Re: [Python-Dev] (#19562) Asserts in Python stdlib code (datetime.py)

2013-11-17 Thread Guido van Rossum
man page and --help output could be more forthcoming about this implication of "optimize". (The language reference is quite clear about it.) -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://m

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

2013-11-18 Thread Guido van Rossum
point of the PEP (== elicits the most bikeshedding). I am also unsure about the value of framing when pickles are written to strings. -- --Guido van Rossum (python.org/~guido) ___ Python-Dev mailing list Python-Dev@python.org https://mail.python.o

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

2013-11-18 Thread Guido van Rossum
On Mon, Nov 18, 2013 at 8:10 AM, Antoine Pitrou wrote: > On Mon, 18 Nov 2013 07:48:27 -0800 > Guido van Rossum wrote: > > On Mon, Nov 18, 2013 at 3:28 AM, Serhiy Storchaka >wrote: > > > > > 18.11.13 07:53, Tim Peters написав(ла): > > > > > &

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

2013-11-18 Thread Guido van Rossum
ent. > > > > And the frame size is read using either one or two read() calls, which > > is efficient. > > And it's only a minimal change from the current patch. Sounds good to me. > Food for thought: maybe we should have variable-encoding lengths for all opcodes, rather than the current cumbersome scheme? -- --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-19 Thread Guido van Rossum
So why is framing different? On Tue, Nov 19, 2013 at 10:51 AM, Antoine Pitrou wrote: > On Mon, 18 Nov 2013 16:48:05 -0800 > Guido van Rossum wrote: > > > > Food for thought: maybe we should have variable-encoding lengths for all > > opcodes, rather than the current cum

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

2013-11-19 Thread Guido van Rossum
So using an opcode for framing is out? (Sorry, I've lost track of the back-and-forth.) On Tue, Nov 19, 2013 at 10:57 AM, Antoine Pitrou wrote: > On Tue, 19 Nov 2013 10:52:58 -0800 > Guido van Rossum wrote: > > So why is framing different? > > Because it doesn't

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

2013-11-19 Thread Guido van Rossum
On Tue, Nov 19, 2013 at 11:11 AM, Antoine Pitrou wrote: > On Tue, 19 Nov 2013 11:05:45 -0800 > Guido van Rossum wrote: > > > So using an opcode for framing is out? (Sorry, I've lost track of the > > back-and-forth.) > > It doesn't seem to bring anything, and it

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