[Python-ideas] async objects

Nick Coghlan ncoghlan at gmail.com
Thu Oct 6 06:27:45 EDT 2016


On 6 October 2016 at 05:20, Sven R. Kunze <srkunze at mail.de> wrote:
> On 05.10.2016 18:06, Nick Coghlan wrote:
>>
>> [runtime matters]
>
>
> I think I understand your point.
>
> I also hope that others and me could provide you with our perspective. We
> see Python not as a C-like runtime but as an abstract modelling language. I
> know that it's different from the point of view of CPython internals,
> however from the outside Python suggests to be much more than a simple
> wrapper around C. Just two different perspectives.

It's not a question that's up for debate - as a point of factual
history, Python's runtime model is anchored in the C runtime model,
and this pervades the entire language design. Simply wishing that
Python's core runtime design was other than it is doesn't make it so.

We can diverge from that base model when we decide there's sufficient
benefit in doing so (e.g. the object model, the import system, the
numeric tower, exception handling, lexical closures, generators,
generators-as-coroutines, context management, native coroutines), but
whatever we decide to do still needs to be expressible in terms of
underlying operating system provided C primitives, or CPython can't
implement it (and if CPython can't implement a feature as the
reference implementation, that feature can't become part of the
language definition).

Postponing the point at which folks are confronted by those underlying
C-level constraints is often an admirable goal, though - the only
thing that isn't possible without fundamentally changing the language
is getting rid of them entirely.

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list