Message67644
In my last posting i forgot a fourth proposition.
Currently one has the Turtle.methods fill(), begin_fill() and end_fill()
As is stated in the old turtle docs the specification of fill is "rather
complex". begin_fill() and end_fill(), are identical to fill(True) and
fill(False) (or fill(1) and fill(0)). That means, that begin_fill()
sometimes may do somthing unexpected, namely complete som filling
underway. In the new turtle module fill() without arguments returns the
filling state, i. e. True/False respectively.
I'd prefer the following:
begin_fill() should only start a new filling process and cancel some
underway, if necessary (that means: a filling without end_fill will
not take place)
end_fill() should only complete the current filling process
a new method filling() should be used to ask if same filling is
currently taking place
and fill() could be dropped. (deprecated in 2.6)
I think Vern Ceders intention with introducing begin_fill and end_fill
was to have a clear and easily understandable meaning, which is only
partially accomplished with the current solution.
What is your opinion?
Gregor |
|
| Date |
User |
Action |
Args |
| 2008-06-02 22:55:19 | gregorlingl | set | spambayes_score: 0.138146 -> 0.138146 recipients:
+ gregorlingl, gvanrossum, loewis, glingl, benjamin.peterson, bmiller |
| 2008-06-02 22:55:15 | gregorlingl | set | spambayes_score: 0.138146 -> 0.138146 messageid: <1212447314.35.0.882107541311.issue1513695@psf.upfronthosting.co.za> |
| 2008-06-02 22:55:09 | gregorlingl | link | issue1513695 messages |
| 2008-06-02 22:55:03 | gregorlingl | create | |
|