Re: [Tutor] dict['_find']

2011-02-20 Thread Alan Gauld
"Max Niederhofer" wrote first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. I think you are misunderstanding some of the terminology. There is no deprecated find module. You are not using any modules in your code. An

Re: [Tutor] dict['_find']

2011-02-20 Thread Knacktus
Am 20.02.2011 05:14, schrieb Max Niederhofer: Hello all, Hello Max, first post, please be gentle. I'm having serious trouble finding an alternative for the deprecated find module for dictionaries. The code (from Zed Shaw's Hard Way, exercise 40) goes something like this. Hope indentation sur

Re: [Tutor] dict['_find']

2011-02-20 Thread Max Niederhofer
Steven, Alan, Knacktus, thanks for your help. I was indeed very confused because I thought '_find' was calling something special instead of just being added to the dictionary (the confusion stemming from http://www.python.org/dev/peps/pep-0004/ where find module is obsolete). When I ran the code,

[Tutor] how to connect to Django's irc

2011-02-20 Thread shaheryar ali
hi guys, does anyone know how to connect to the Django's irc, As django is based on python there asking from you guys, thanks From: Alan Gauld To: tutor@python.org Sent: Wed, January 19, 2011 8:04:23 PM Subject: Re: [Tutor] Decoding from strange symbols "O

Re: [Tutor] how to connect to Django's irc

2011-02-20 Thread Corey Richardson
On 02/20/2011 01:03 PM, shaheryar ali wrote: > hi guys, > > does anyone know how to connect to the Django's irc, > As django is based on python there asking from you guys, > > > thanks > Point your favorite client at irc.freenode.net or use http://webchat.freenode.net/. #django You'll have be

Re: [Tutor] how to connect to Django's irc

2011-02-20 Thread bob gailer
On 2/20/2011 1:03 PM, shaheryar ali wrote: hi guys, does anyone know how to connect to the Django's irc, As django is based on python there asking from you guys, thanks I don't know BUT what is the relevance of the following to your question? If it is not relevant why did you include it? P

Re: [Tutor] tic tac toe

2011-02-20 Thread bob gailer
On 2/20/2011 9:49 AM, Ben Ganzfried wrote: Thanks, Bob. I'd love some specific feedback. Exactly what did I offer that you found useful? Also please always reply-all so a copy goes to the list. -- Bob Gailer 919-636-4239 Chapel Hill NC ___ Tutor

[Tutor] creating classes while coding

2011-02-20 Thread Bill Allen
I know that Python not only supports OOP, but is fundamentally OOP in its design. Just in using the language and standard library, that much becomes obvious. However, I do wonder a bit about the practice I have seen of some Python programmers to implement relatively short bits of code, that wou

Re: [Tutor] creating classes while coding

2011-02-20 Thread R. Alan Monroe
> I'll freely admit that I do not come from an OOP programming > background, so designing classes is not my first impulse when > writing code. Am I missing something? In my book, no, you're not missing something. I refer to it as "drinking the OO kool-aid". It's not compulsory. I just use it when

Re: [Tutor] creating classes while coding

2011-02-20 Thread Bill Allen
That raises my next question. Under what sort of programming circumstances does it make sense? --Bill On Sun, Feb 20, 2011 at 19:01, R. Alan Monroe wrote: > > I'll freely admit that I do not come from an OOP programming > > background, so designing classes is not my first impulse when

Re: [Tutor] creating classes while coding

2011-02-20 Thread Alan Gauld
"Bill Allen" wrote However, I do wonder a bit about the practice I have seen of some Python programmers to implement relatively short bits of code, that would be quite simple using functions and procedural code, with classes. OOP is often overkill, but if its the normal way of programming

Re: [Tutor] creating classes while coding

2011-02-20 Thread Bill Allen
On Sun, Feb 20, 2011 at 19:59, Alan Gauld wrote: > > "Bill Allen" wrote > > > However, I do wonder a bit about the practice I have seen of some >> Python programmers to implement relatively short bits of code, that would >> be >> quite simple using functions and procedural code, with classes. >