Python .elc and /etc/magic

Gustavo Niemeyer niemeyer at conectiva.com
Fri Nov 16 19:37:36 EST 2001


> > We should also have something like that for python:
> > 
> > 0	string/b	#!\ /bin/bash	Bourne-Again shell script text executable
> > 0	string/b	#!\ /usr/local/bin/bash	Bourne-Again shell script text executable
> 
> Why is that necessary?
> 
> porthos loewis 24 ( /tmp ) > cat a.py
> #! /usr/bin/python
> 
> print "Hallo, Welt!"
> porthos loewis 25 ( /tmp ) > file a.py
> a.py: a /usr/bin/python script text

Since there are entries for interpreters like perl, awk, gawk, bash and
others, I thought python would fit there.

Just for curiosity, that's from the default magic file of "file 3.35".

[niemeyer at ibook niemeyer]$ grep \/bin /usr/share/misc/magic | wc -l
     28

Best regards!

-- 
Gustavo Niemeyer

[ 2AAC 7928 0FBF 0299 5EB5  60E2 2253 B29A 6664 3A0C ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: <http://mail.python.org/pipermail/python-list/attachments/20011116/c065e86d/attachment.sig>


More information about the Python-list mailing list