Cause for using objects?

Steve Holden steve at holdenweb.com
Wed Jun 15 20:59:00 EDT 2005


John Heasly wrote:
> Given:
> 	[{"mugshot": "nw_gradspeaker4_0608", "width": 67.0, "height": 96.0}, \
> 	{"mugshot": "nw_gradspeaker2_0608", "width": 67.0, "height": 96.0}, \
> 	{"freehand": "b1.developreport.0614", "width": 154.0, "height": 
> 210.0}, \
> 	{"graphic": "bz_cafeparadiso_0613", "width": 493.0, "height": 341.0}]
> 
> Return:
> 	{"mugshot1": "nw_gradspeaker4_0608", "mugshot1.width": 67.0, 
> "mugshot1.height": 96.0,\
> 	"mugshot2": "nw_gradspeaker2_0608", "mugshot2.width": 67.0, 
> "mugshot2.height": 96.0, \
> 	"freehand1": "b1.developreport.0614", "freehand1.width": 154.0, 
> "freehand1.width": 210.0, \
> 	"graphic1": "bz_cafeparadiso_0613", "graphic1.width": 493.0, 
> "graphic1.height": 341.0}
> 
> I'm trying to teach myself some OOP. Does grinding the Given above into 
> the Return seem like a good candidate?
> 
John:

Other responders have already hinted at the possibility that you are 
asking for help with one step of a significant task. Perhaps with more 
context (I have to write TIFF images read from disk at the rate of three 
per second for an advertising display system) we might be able to be of 
more assistance?

regards
  Steve
-- 
Steve Holden        +1 703 861 4237  +1 800 494 3119
Holden Web LLC             http://www.holdenweb.com/
Python Web Programming  http://pydish.holdenweb.com/




More information about the Python-list mailing list