X Tutup
The Wayback Machine - https://web.archive.org/web/20241008013401/https://github.com/python/cpython/issues/123614
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A save function in the Turtle module #123614

Closed
yngvem opened this issue Sep 2, 2024 · 4 comments
Closed

A save function in the Turtle module #123614

yngvem opened this issue Sep 2, 2024 · 4 comments
Assignees
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement

Comments

@yngvem
Copy link
Contributor

yngvem commented Sep 2, 2024

Feature or enhancement

Proposal:

I've used turtle.py quite a bit in my teaching, and a common question is how learners can save their files. Now, the turtle library only supports saving the drawings as postscript files by calling the cryptic command turtle.getscreen().getcanvas().postscript(file=filename). Whenever a learner asks “How can I print what I made?”, I’ll have to show them that extremely scary command with method chaining -- not the best snippet to show someone who’s still struggling with functions…

If we instead had a turtle.save("filename.ps"), then I could tell the learners to use that function and an online postscript to pdf converter, which should be understandable to most learners

Has this already been discussed elsewhere?

I have already discussed this feature proposal on Discourse

Links to previous discussion of this feature:

https://discuss.python.org/t/improving-the-turtle-library/61840

Linked PRs

@yngvem yngvem added the type-feature A feature request or enhancement label Sep 2, 2024
@yngvem
Copy link
Contributor Author

yngvem commented Sep 2, 2024

@MarieRoald and I will submit a pull request on this shortly

yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
@yngvem yngvem changed the title # A save function in the Turtle module A save function in the Turtle module Sep 2, 2024
yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
@Eclips4 Eclips4 added the stdlib Python modules in the Lib dir label Sep 2, 2024
yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
yngvem added a commit to yngvem/cpython that referenced this issue Sep 2, 2024
Co-authored-by: Marie Roald <roald.marie@gmail.com>
@rruuaanng

This comment was marked as outdated.

@hugovk

This comment was marked as outdated.

@rruuaanng

This comment was marked as outdated.

yngvem added a commit to yngvem/cpython that referenced this issue Sep 4, 2024
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
yngvem added a commit to yngvem/cpython that referenced this issue Sep 4, 2024
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
yngvem added a commit to yngvem/cpython that referenced this issue Sep 4, 2024
Co-authored-by: Yngve Mardal Moe <yngve.m.moe@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Python modules in the Lib dir type-feature A feature request or enhancement
Projects
Development

No branches or pull requests

5 participants
X Tutup