[Python-ideas] namespace for backported stdlib modules?

Ethan Furman ethan at stoneleaf.us
Tue Oct 21 17:43:12 CEST 2014


On 10/21/2014 02:34 AM, Georg Brandl wrote:
> On 10/21/2014 03:18 AM, Robert Collins wrote:
>>
>> try:
>>      from stdlib import unitest
>> except ImportError:
>>      import unittest
>
> Seeing this as a newcomer, I'd be wondering which one is the one that's
> actually coming from the standard library.
>
> Please don't commandeer "stdlib" for something that's *not* the stdlib.

Indeed.  `backports` is a much better name for things that have been, um, backported.


More information about the Python-ideas mailing list