N00b question on Py modules
Sion Arrowsmith
siona at chiark.greenend.org.uk
Wed May 9 09:47:39 EDT 2007
<lokesh.jagasia at gmail.com> wrote:
>Thanks a lot for the responses ppl. Python's treatment of global
>variables was an eye-opener. I have coded in Java & C/C++ in the past
>and there the behaviour is diametrically opposite.
How so? Python style gurus discourage use of global variables. So
does all the C++ (and to a lesser extent C) advice I've ever
encountered. And Java outright forbids the concept. It's one area
where there seems to be universal agreement.
--
\S -- siona at chiark.greenend.org.uk -- http://www.chaos.org.uk/~sion/
"Frankly I have no feelings towards penguins one way or the other"
-- Arthur C. Clarke
her nu becomeþ se bera eadward ofdun hlæddre heafdes bæce bump bump bump
More information about the Python-list
mailing list