Message141910
> I know perfectly well that [].append is valid Python,
> but I don't think this is the clearest way to give an example of an
> object method. I think spelling [].append's meaning more explicitly
> would be better.
Would it be clearer if we replaced the literal with a name?
These C functions are called “type methods” to distinguish them from
- things like [].append (which we call “object methods”).
+ methods bound to specific instances (things like sys.path.append),
+ which we call “object methods”.
> I'm also aware that there are tab problems all over the code base.
> I'm not suggesting a large cleanup.
*I* was suggesting a large cleanup :), but we can do that in another commit. If you want to clean the example code in Doc/extending or even just in newtypes.rst, I think you can just go ahead. |
|
Date |
User |
Action |
Args |
2011-08-11 16:02:45 | eric.araujo | set | recipients:
+ eric.araujo, pitrou, eli.bendersky, docs@python |
2011-08-11 16:02:45 | eric.araujo | set | messageid: <1313078565.32.0.00276556211233.issue12672@psf.upfronthosting.co.za> |
2011-08-11 16:02:44 | eric.araujo | link | issue12672 messages |
2011-08-11 16:02:44 | eric.araujo | create | |
|