Re: Here I am again, same old arguments

2005-10-15 Thread Tim Roberts
Steven D'Aprano <[EMAIL PROTECTED]> wrote: > >Global variables aren't *entirely* bad. I use them myself, sometimes for >constants (well, pseudo-constants -- Python doesn't enforce constants) and >short, quick 'n' dirty throw away code. > >But in general, as your code gets bigger and more complicate

Re: Here I am again, same old arguments

2005-10-13 Thread Steven D'Aprano
On Thu, 13 Oct 2005 08:05:00 +, CJ wrote: > 1) Why no global variables? I'm taking your word for it that they're bad. Far > be it from me to > argue with you, but why are they bad ideas to begin with? Most of the > languages I've used up to > this point have been reliant on globals, so I'm

Re: Here I am again, same old arguments

2005-10-13 Thread gene tani
google "cheat sheet" or "quick reference" http://rgruet.free.fr/#QuickRef http://infohost.nmt.edu/tcc/help/pubs/python22/ http://www.onlamp.com/pub/a/python/excerpt/PythonPocketRef/index.html http://diveintopython.org/appendix/abstracts.html http://www.yukoncollege.yk.ca/~ttopper/COMP118/rCheatShe

Re: Here I am again, same old arguments

2005-10-13 Thread CJ
Wow, thanks alot. I pretty much (due to my own desire to get the program to )(@#T(=!!! work and be done with it) just turned the list into a function that returns a list that isn't attached to anything but the function itself, but I've taken the advice to heart. Most of what you posted makes

Re: Here I am again, same old arguments

2005-10-09 Thread Steven D'Aprano
On Sun, 09 Oct 2005 07:02:52 +, CJ wrote: >Okay, same program, different issue. Thanks to the help that I was > given I was able to complete my program to find variables in a list that > were repeated, and display them once, and how many times they appeared in > the list. And it worked

Re: Here I am again, same old arguments

2005-10-09 Thread Fredrik Lundh
"CJ" wrote: >Well, for some reason, the FOR loop is altering two of my lists. Using > PRINT magic, I was able to narrow down the lines that were causing it. > But the question remains: Why is it doing this? I'm sure there's a simple > answer that I just overlooked in the manual or something.