Thursday, June 2, 2011

Re: Question about using imports within functions/methods



On Thu, Jun 2, 2011 at 4:46 PM, Shawn Milochik <shawn@milochik.com> wrote:
On 06/02/2011 11:09 AM, Cal Leeming [Simplicity Media Ltd] wrote:

Pretty shameful that after almost 6 years of (fairly advanced) Python coding, I still finding myself not knowing some of the basic 101 stuff.. Slightly off topic but, does anyone else have that issue when coding? (i.e. doing really complex code, but forgetting/not knowing some of the real basic stuff).


Yeah, I run into that from time to time. What I do to remedy it is read books. Especially ones like the Python Essential Reference by David Beazley. Just scan through it in the bath or at breakfast or whatever, and you'll find a handy module you never knew existed, or a wonderful new feature in something you use all the time.

I'm anxiously anticipating Doug Hellmann's new book on the standard library, which should ship sometime this month.
   http://amzn.com/0321767349
From what I've read in his PyMoTW posts and seen in his PyCon presentation, this book will make my Python skills even better.

Sounds like a good idea, this is going in my todo list :)
 

I suspect that most working developers are self-taught, in that they didn't learn the technology they work with from the ground up in a classroom -- they picked it up as they went along. That's what I blame for the gaps in our knowledge. I don't think these books are the best place to start with Python, but they're a great way to sharpen the axe.

Yeah I'm completely self taught too, although it does mean my knowledge is somewhat sparse. I think your above suggestion is a good way to tackle that problem though. I guess it's like any job, every so often, you need to have "refreshers" to make sure you are keeping up to scratch.
 

Shawn


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

No comments:

Post a Comment