Explicit variable declaration
Ben Finney
bignose+hates-spam at benfinney.id.au
Tue Apr 22 23:01:49 EDT 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
of Python.
--
\ "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 |
Ben Finney
More information about the Python-list
mailing list