Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Iteration over strings
- From: steve at holdenweb.com (Steve Holden)
- Subject: Iteration over strings
- Date: Tue, 31 Jul 2007 21:44:28 -0400
Jay Loden wrote: [...] > This isn't just a problem with the socket module, so please don't think I'm picking on it or singling it out, it's something I've seen a number of places. e.g. from os.stat: > > os.stat = stat(...) > stat(path) -> stat result > > Perform a stat system call on the given path. > > Ok...and what is the return value? a list? tuple? string? some type of stat object? dictionary? The only way to find out is to read the os module's source code or try it to find out. If you were really lucky you might find the related documentation from class statvfs_result and put two and two together to figure it out. > In this particular case the documentation is quite explicit about the return value and the documentation for the function runs to almost 400 words. Do you expect *everything* to be in the source? That isn't practical, as documenting everything twice like that makes twice the work when the function changes and the documentation has to be rewritten. > One of the items on my very long TODO list is to submit bug reports for items like the above but it's a long list and I just haven't gotten there yet ;) > All such work will earn the gratitude of the developers. regards Steve -- Steve Holden +1 571 484 6266 +1 800 494 3119 Holden Web LLC/Ltd http://www.holdenweb.com Skype: holdenweb http://del.icio.us/steve.holden --------------- Asciimercial ------------------ Get on the web: Blog, lens and tag the Internet Many services currently offer free registration ----------- Thank You for Reading -------------
- Follow-Ups:
- Finding documentation (WAS: Iteration over strings)
- From: Jay Loden
- Finding documentation (WAS: Iteration over strings)
- References:
- Iteration over strings
- From: Jay Loden
- Iteration over strings
- Prev by Date: Extending Python by Adding Keywords & Data types
- Next by Date: TypeError: unsupported operand type(s) for -: 'Decimal' and 'Decimal'. Why?
- Previous by thread: Iteration over strings
- Next by thread: Finding documentation (WAS: Iteration over strings)
- Index(es):