Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Namespaces are pervasive in Python. Virtually everything you deal with is a namespace: package, modules, classes, instances; even functions are namespaces:

    >>> def func(ns):
    ...     print(ns.stuff)
    ...
    >>> func.stuff = 'honking great'
    >>> func(func)
    honking great


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: