Neil Cerutti <[EMAIL PROTECTED]> writes:

> Calls to Glk functions are thus ugly and tedious.
>
>     scriptref = glk.fileref_create_by_prompt(
>             glk.fileusage_Transcript | glk.fileusage_TextMode,
>             glk.filemode_WriteAppend, 0)
>
> Please give me some good style advice for this situation.

One thing that has been implicit in other replies is the naming
convention for constants. There's nothing stopping a user from
re-binding a name in Python, so we use the convention that constants
are named with UPPER_CASE to indicate they shouldn't be re-bound.

-- 
 \       "Everything you read in newspapers is absolutely true, except |
  `\        for that rare story of which you happen to have first-hand |
_o__)                                      knowledge."  -- Erwin Knoll |
Ben Finney

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to