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

bpo-43432: add function clear to module os #24784

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

parsampsh
Copy link

@parsampsh parsampsh commented Mar 8, 2021

Now we can run:

from os import clear
clear()

instead of:

import os

if os.name == 'nt':
      os.system('cls')
else:
      os.system('clear')

https://bugs.python.org/issue43432

@github-actions
Copy link

github-actions bot commented Apr 8, 2021

This PR is stale because it has been open for 30 days with no activity.

@github-actions github-actions bot added the stale Stale PR or inactive for long period of time. label Apr 8, 2021
@github-actions github-actions bot removed the stale Stale PR or inactive for long period of time. label Aug 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants