Changes between Version 9 and Version 10 of PyAmazon
- Timestamp:
- 06/18/06 00:52:33 (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
PyAmazon
v9 v10 87 87 for d in data: 88 88 authors = getattr(d, attr, None) 89 # 89 90 if isinstance(authors, amazon.Bag): 90 91 authors = getattr(authors, attr[:-1], None) 92 # 91 93 if isinstance(authors, list): # リストの場合 92 94 for a in authors: 93 95 print ' %s' % a 96 # 94 97 elif authors is not None: # リストでも None でもない場合は str と仮定 95 98 print ' %s' % authors