Message108592
| Author |
ezio.melotti |
| Recipients |
andybuckley, exarkun, ezio.melotti |
| Date |
2010年06月25日.12:35:29 |
| SpamBayes Score |
0.014807844 |
| Marked as misclassified |
No |
| Message-id |
<1277469332.38.0.951675801556.issue9080@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
If we add a .prepend() method, people will see it and start using it. Since now there's no 'prepend' method people ask why, and the answer they usually get is "because it not a good idea to add elements on lists (but if you really have to use the 'insert' method)".
The symmetry should be in the use case, not (only) in the names, otherwise we should also have a method to pop from the beginning to complete the symmetry with append/pop.
If you are not convinced yet you could write to the python-ideas mailing list. |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2010年06月25日 12:35:32 | ezio.melotti | set | recipients:
+ ezio.melotti, exarkun, andybuckley |
| 2010年06月25日 12:35:32 | ezio.melotti | set | messageid: <1277469332.38.0.951675801556.issue9080@psf.upfronthosting.co.za> |
| 2010年06月25日 12:35:30 | ezio.melotti | link | issue9080 messages |
| 2010年06月25日 12:35:30 | ezio.melotti | create |
|