On Sat, Sep 20, 2014 at 9:33 AM, Steven D'Aprano <steve+comp.lang.pyt...@pearwood.info> wrote: > It's a bad idea to rely on features added to site.py, since they aren't > necessarily going to be available at all sites or in all implementations: > > steve@orac:/home/steve$ ipy > IronPython 2.6 Beta 2 DEBUG (2.6.0.20) on .NET 2.0.50727.1433 > Type "help", "copyright", "credits" or "license" for more information. >>>> exit(2) > steve@orac:/home/steve$ > > Bugger me, I'm going home!
This is the real reason for not relying on site.py: rosuav@sikorsky:~$ python -S Python 2.7.3 (default, Mar 13 2014, 11:03:55) [GCC 4.7.2] on linux2 >>> exit Traceback (most recent call last): File "<stdin>", line 1, in <module> NameError: name 'exit' is not defined ChrisA -- https://mail.python.org/mailman/listinfo/python-list