Module naming convention about StringIO

Terry Reedy tjreedy at udel.edu
Thu Oct 15 14:50:32 EDT 2009


Peng Yu wrote:
> It says on http://www.python.org/dev/peps/pep-0008/
> 
>     Package and Module Names
> 
>       Modules should have short, all-lowercase names.  Underscores can be used
>       in the module name if it improves readability.  Python packages should
>       also have short, all-lowercase names, although the use of underscores is
>       discouraged.
> 
> But StringIO does not following this convention. Although on the same
> page, it also mentions the following. However, since StringIO is in
> the library, shall its name be rectified?

Already done.  In 3.x, StringIO is a *class* within the io *module*.




More information about the Python-list mailing list