[Python-ideas] Deprecate the round builtin

Oleg Broytman phd at phdru.name
Wed Sep 26 23:51:30 CEST 2012

On Wed, Sep 26, 2012 at 04:30:33PM -0500, Mark Adam <dreamingforward at gmail.com> wrote:
> On Wed, Sep 26, 2012 at 4:21 PM, Oleg Broytman <phd at phdru.name> wrote:
> > On Wed, Sep 26, 2012 at 04:15:52PM -0500, Mark Adam <dreamingforward at gmail.com> wrote:
> >> On second thought, the idea of "namespaces" within the interpreter
> >> (like Tim Peters was suggesting I think in the doctest module) could
> >> put some order to built-ins and globals within the interpreter.
> >> round(), hex() and others could be in the namespace "Numbers" (Named
> >> by their associated type), similarly for the other type-specific
> >> builtins.
> >>
> >> Create a keyword "expose" to dump a particular namespace into the
> >> global scope when you don't want to type "Numbers.round(f)".
> >
> >    What is the difference between such namespaces and modules (which
> > *are* namespaces)?
> Modules reside on file and are changeable,

   Oh, really? What is the file for module sys? thread? zipimport?

> Namespaces solely in
> memory, defined by the Interpreter itself.

     Oleg Broytman            http://phdru.name/            phd at phdru.name
           Programmers don't die, they just GOSUB without RETURN.

More information about the Python-ideas mailing list