Coding standard: Prefixing variables to indicate datatype

Thomas Weholt 2002 at weholt.org
Thu Jan 16 10:04:55 CET 2003


In my day-job I use Delphi/Object Pascal. My firm has a coding-standard
where we prefix all variables with a single character to indicate datatype;
strings are prefixed with s, integers with i, floats with f etc. etc.

Are there any standards like this for Python? Or hints, tips, opinions
related to this topic? I do believe it could make source more understandable
and easier to debug/maintain when used in larger projects.

All thoughts appreciated.

Best regards,
Thomas






More information about the Python-list mailing list