Skip to content

Chapter 1. 3. ASCII art: print() generates error warnings NON FATAL #2

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

Open
OldSubSailor opened this issue Sep 19, 2024 · 2 comments
Open

Comments

@OldSubSailor
Copy link

OldSubSailor commented Sep 19, 2024

After entering "ASCII art" code and running it, the following warnings are generated:
<>:1: SyntaxWarning: invalid escape sequence '\ _'
<>:1: SyntaxWarning: invalid escape sequence '_'
/var/folders/5d/8ps0wwr92kz35g594xfrd5zm0000gp/T/ipykernel_1141/1582080886.py:1: SyntaxWarning: invalid escape sequence '_'
print(" /_/\ ")

The Pasted warning is not showing properly, it should appear as:
... "invalid escape sequence '\ _' " I had to put a space in the first one for it to appear as shown on the notebook.
Note the appearance of the second and third SyntaxWarnings that only show an underscore rather than the entire escape sequence "cat" code.

It does not halt the generation of the art, but adds the warning under it.
You might want to add an update to the notebook about this showing up.
I am running a Mac mini M2 processor, macOS 14.2
Anaconda is using Python 3.12

@sbonaretti
Copy link
Contributor

Thanks for the information!

@OldSubSailor
Copy link
Author

OldSubSailor commented Sep 20, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants