PEP for fp.type()

Skip Montanaro skip at pobox.com
Tue Jan 15 13:19:45 EST 2002


    Tim> I have struggled for some time to get a function similar to the
    Tim> Unix 'file' command.  I found
    Tim> http://www.demonseed.net/~jp/code/magic.py which works pretty well,
    Tim> but I think that a better place for this would be as a file method.

I see nothing wrong with a module like magic.py.  I don't understand why
this is best as a file method.  Your message didn't provide any motivation.

-- 
Skip Montanaro (skip at pobox.com - http://www.mojam.com/)




More information about the Python-list mailing list