Hi,

Tryton uses file() for opening files al over the palace. This could be
changed to use open() instead.

Reasoning: Python documentation clearly recommends using open(). In
practice, file() is rarely used, though.

"When opening a file, it’s preferable to use open() instead of invoking
the file constructor directly." [1]


References:
[1] http://docs.python.org/library/functions.html#open
[2] http://docs.python.org/library/functions.html#file


-- 
Schönen Gruß - Regards
Hartmut Goebel
Dipl.-Informatiker (univ.), CISSP, CSSLP

Goebel Consult
Spezialist für IT-Sicherheit in komplexen Umgebungen
http://www.goebel-consult.de

Monatliche Kolumne: http://www.cissp-gefluester.de/
Goebel Consult mit Mitglied bei http://www.7-it.de

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to