MCPcopy Index your code
hub / github.com/python/cpython / clearstamp

Method clearstamp

Lib/turtle.py:3219–3232  ·  view source on GitHub ↗

Delete stamp with given stampid Argument: stampid - an integer, must be return value of previous stamp() call. Example (for a Turtle instance named turtle): >>> turtle.color("blue") >>> astamp = turtle.stamp() >>> turtle.fd(50) >>> turtle.cle

(self, stampid)

Source from the content-addressed store, hash-verified

3217 buf.buffer.insert((buf.ptr+1)%buf.bufsize, [None])
3218
3219 def clearstamp(self, stampid):
3220 """Delete stamp with given stampid
3221
3222 Argument:
3223 stampid - an integer, must be return value of previous stamp() call.
3224
3225 Example (for a Turtle instance named turtle):
3226 >>> turtle.color("blue")
3227 >>> astamp = turtle.stamp()
3228 >>> turtle.fd(50)
3229 >>> turtle.clearstamp(astamp)
3230 """
3231 self._clearstamp(stampid)
3232 self._update()
3233
3234 def clearstamps(self, n=None):
3235 """Delete all or first/last n of turtle's stamps.

Callers 1

_undoMethod · 0.95

Calls 2

_clearstampMethod · 0.95
_updateMethod · 0.95

Tested by

no test coverage detected