Re: General question about Python design goals



In article <mailman.1274.1133177700.18701.python-list@xxxxxxxxxx>,
Sebastien Douche <sdouche@xxxxxxxxx> wrote:
>
>I use this thread to asking on python conception : why python have so
>many builtins ?
>I cannot understand why we use a builtins for open a file. Is it a old
>decision ? If anyone have a pointer of this or can explain me.

One of the primary goals for Python is to make it easy to use for new
programmers. Particularly for sysadmins, opening a file for reading and
writing is considered such a basic task that it's part of the builtins.

There are some builtins slated for removal in Python 3.0 (e.g. apply(),
which is superseded by *args/**kwargs being allows on the calling side).
--
Aahz (aahz@xxxxxxxxxxxxxxx) <*> http://www.pythoncraft.com/

"If you think it's expensive to hire a professional to do the job, wait
until you hire an amateur." --Red Adair
.



Relevant Pages

  • Re: Method Underscores?
    ... > much as I adore Python, I have to admit, I find this to be one of the ... Python does not have a single base class, ... In single base class languages, ... Removing it from the builtins is equivalent to eliminating ...
    (comp.lang.python)
  • Re: Python 2.4: Why only assignments to None are forbiden?
    ... > I think in general assignments to built-in types, functions, and ... It's a common mistake to do things ... builtins, like str and dict. ... the dynamism that makes Python nice. ...
    (comp.lang.python)
  • Re: map/filter/reduce/lambda opinions and background unscientific mini-survey
    ... I don't object to list comps. ... Adding builtins is another. ... Python gets used in embedded applications as well, ... The latter has occured for map, filter, and reduce. ...
    (comp.lang.python)
  • Re: is this pythonic?
    ... > Python Library reference, and if you don't know what you are looking for, ... > global module reference and language reference. ... > If you already know what you are looking for, reading the manual is great ... I said the *builtins* section. ...
    (comp.lang.python)
  • Re: Getting rid of "self."
    ... Python today? ... builtins, or search the module and builtins before ... This is distinct from the issue of how to spell ... among the method parameters. ...
    (comp.lang.python)