program to generate data helpful in finding duplicate large files

Chris Angelico rosuav at gmail.com
Sat Sep 20 00:47:48 EDT 2014


On Sat, Sep 20, 2014 at 9:33 AM, Steven D'Aprano
<steve+comp.lang.python at 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 at 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 at orac:/home/steve$
>
> Bugger me, I'm going home!

This is the real reason for not relying on site.py:

rosuav at 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



More information about the Python-list mailing list