Message311763
| Author |
josh.r |
| Recipients |
cowlinator, josh.r, r.david.murray |
| Date |
2018年02月07日.04:10:34 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1517976634.44.0.467229070634.issue32784@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
Side-note: You say "how could i have known it was named 'f'?"
>>> help(csv.DictReader)
class DictReader
| Methods defined here:
|
| __init__(self, f, fieldnames=None, restkey=None, restval=None, dialect='excel', *args, **kwds)
... rest of class help ...
Not saying the docs shouldn't be fixed, but the name is correctly given in the __init__ prototype (being implemented in Python, the names are always available to help() introspection, barring really specific cases of manual parsing of **kwargs). Just a general tip for the future. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2018年02月07日 04:10:34 | josh.r | set | recipients:
+ josh.r, r.david.murray, cowlinator |
| 2018年02月07日 04:10:34 | josh.r | set | messageid: <1517976634.44.0.467229070634.issue32784@psf.upfronthosting.co.za> |
| 2018年02月07日 04:10:34 | josh.r | link | issue32784 messages |
| 2018年02月07日 04:10:34 | josh.r | create |
|