Message158403
| Author |
TheBiggerGuy |
| Recipients |
TheBiggerGuy, docs@python, pitrou, r.david.murray |
| Date |
2012年04月16日.07:47:43 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1334562463.88.0.9542912452.issue14586@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
What ever change is made to the new CPythons the old docs should be updated to prevent confusion, with truncate([size]).
On fixing it for the future I would agree that supporting it as a keyword argument is preferred, as it is more pythonic (in my opinion). However this would cause ether backwards incompatibility or ambiguity in the language (ie. truncate(0, size=1) or need the deprecate, warn then removal stages taken three release cycles).
Maybe the less perfect but acceptable solution is just to change the docs and wait for Python 4k for the real fix....? |
|
History
|
|---|
| Date |
User |
Action |
Args |
| 2012年04月16日 07:47:43 | TheBiggerGuy | set | recipients:
+ TheBiggerGuy, pitrou, r.david.murray, docs@python |
| 2012年04月16日 07:47:43 | TheBiggerGuy | set | messageid: <1334562463.88.0.9542912452.issue14586@psf.upfronthosting.co.za> |
| 2012年04月16日 07:47:43 | TheBiggerGuy | link | issue14586 messages |
| 2012年04月16日 07:47:43 | TheBiggerGuy | create |
|