[Python-Dev] PyFAQ: thread-safe interpreter operations

Nick Coghlan ncoghlan at gmail.com
Thu Nov 23 10:59:09 CET 2006


Martin v. Löwis wrote:
> Nick Coghlan schrieb:
>> Martin v. Löwis wrote:
>>> I personally consider it "good style" to rely on implementation details
>>> of CPython;
>> Is there a 'do not' missing somewhere in there?
> 
> No - I really mean it. I can find nothing wrong with people relying on
> reference counting to close files, for example. It's a property of
> CPython, and not guaranteed in other Python implementations - yet it
> works in a well-defined way in CPython. Code that relies on that feature
> is not portable, but portability is only one goal in software
> development, and may be irrelevant for some projects.

Cool, that's what I thought you meant (and it's a point I actually agree 
with). I was uncertain enough about your intent that I felt it was worth 
asking the question, though :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia
---------------------------------------------------------------
             http://www.boredomandlaziness.org


More information about the Python-Dev mailing list