The Artima Developer Community
Sponsored Link

Python Buzz Forum
Searching for the obvious

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Dean Goodmanson

Posts: 108
Nickname: deang
Registered: Jul, 2003

Dean Goodmanson is a Python blogger
Searching for the obvious Posted: Aug 11, 2003 11:52 PM
Reply to this message Reply

This post originated from an RSS feed registered with Python Buzz by Dean Goodmanson.
Original Post: Searching for the obvious
Feed Title: Dean Goodmanson: Slices of Py
Feed URL: http://www.pycs.net/sqr/categories/slicesOfPy/rss.xml
Feed Description: Bits from the world of the Python programming language.
Latest Python Buzz Posts
Latest Python Buzz Posts by Dean Goodmanson
Latest Posts From Dean Goodmanson: Slices of Py

Advertisement

Ever try to figure out the proper way to do something complicated only to find it has been front-loaded to a dead-simple implementation/solution?

Python and Google surprised me with a. Adding an item to a dictionary, and b. Line continuations/explicit line joining.

a. Where is the dict.add( key, value ) ? It's dict[key]=value.   Ahhh...  Ever search for specification terms that don't exist?

b. How do I allow a single line/expression of python to span multiple lines?  "\" at the end, ahh..  Note to self: Figure out spacing nuances.  Google was no help as I was bent on "line continuation" which returned me 101 ways to make a string or regex span multiple lines. How do I know it should have been obvious?  It's chapter 2, but the search hits continuously returned mirrors of Chapter 7.

(Note: The preceding is very crude recollection of a instance where I wound up ActivePython for an "let's figure out this algorithm with Python" session, and I once again found myself hastily trying to find the obvious.  I wanted this to be a polished micro-article entry "code in under 60 columns" which would have some nice stats regarding search terms, concepts whiched swarmed search-hits, and a request for Pythoneering bloggers to publish related 20 second readable entries covering secondary basics when encountering similar situations.  But who wants to admit they got hung up on terminology or forgot a fundamental and overlooked the obvious? Those willing to help others avoid it also.  Sometimes these others will just be folks at the end of the day looking to use that nifty other snake language that's supposedly intuitive and coding quicker, hence a tendency for disappointment when online searching[1] requires digging[2]. [1] Not coding, [2] brainstorming for terms..scanning mailing lists and different context details.)

To conclude I would not recommend the Python Reference Manual to a general user. Start with the Intros, or these references

Read: Searching for the obvious

Topic: How to Write Unmaintainable Code Previous Topic   Next Topic Topic: Python Book notes

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use