Explicit variable declaration
bignose+hates-spam at benfinney.id.au
Wed Apr 23 05:01:49 CEST 2008
"Filip Gruszczyński" <gruszczy at gmail.com> writes:
> I have become very interested in dynamically typed languages,
> especially Python.
Good to know. Welcome to the group.
> I would like to ask, whether there is any way of explicitly
> declaring variables used in a function?
Declaring what about them? If you mean declaring the type, remember
that Python deliberately allows any name to be bound to any object;
type declarations can't be enforced without losing a lot of the power
\ "Hanging one scoundrel, it appears, does not deter the next. |
`\ Well, what of it? The first one is at least disposed of." -- |
_o__) Henry L. Mencken |
More information about the Python-list