Linked by Eugenia Loli on Mon 20th Mar 2006 07:13 UTC
General Development All the data stored in a Python program is built around the concept of an object. Objects include fundamental data types such as numbers, strings, lists, and dictionaries. It's also possible to create user-defined objects in the form of classes or extension types. This chapter describes the Python object model and provides an overview of the built-in data types.
Permalink for comment 105952
To read all comments associated with this story, please click here.
namespace pollution
by project_2501 on Mon 20th Mar 2006 14:18 UTC
Member since:

python is a beautiful language - with only one major ugly problem - namespace pollution. even the texts and guides expect you to "import from" into the main namespace... ugly and bad practise.

python needs a better way of handling this. top level names should only be the core set of language keywords (for, if, def,..) and anything else should be structured and unambiguous and unable to clobber anything else. if there are function name lookup issues, as described in the article, that is an implementation issue, not a language design issue. you can cache the name lookup if you like....

Reply Score: 1