[Bf-python] api style/doc question

Willian Padovani Germano wgermano at ig.com.br
Sun Nov 16 21:10:34 CET 2003


Hi,

> setMode()- set the mode using symbols like 'Halo' and 'VColLight'
> Modes dictionary with keys like 'HALO' and 'VCOL_LIGHT'
(...)
> Should the Texture module follow a similar scheme, ie. mixed case for
> setXXX() and upper case for constant dictionaries? This seems like a
> nice style to me, as long as it is documented ;)

Yes, it's better to follow the current ways, when possible.  The all-upper
ones are bitfields: Material.Modes.HALO, vs. strings for setMode: "Halo",
etc.  You're right, they are missing from the ref doc, I'll add this info,
maybe simply explaining that they are like the mode bitfields, but lowercase
except for each words first letter, thanks Alex.

--
Willian, wgermano at ig.com.br




More information about the Bf-python mailing list