ENH: 🐍 snake by tacaswell · Pull Request #1686 · python/cpython · GitHub
Skip to content

ENH: 🐍 snake#1686

Closed
tacaswell wants to merge 1 commit intopython:masterfrom
tacaswell:enh_🐍_snek

Hidden character warning

The head ref may contain hidden characters: "enh_\ud83d\udc0d_snek"
Closed

ENH: 🐍 snake#1686
tacaswell wants to merge 1 commit intopython:masterfrom
tacaswell:enh_🐍_snek

Conversation

@tacaswell
Copy link
Copy Markdown
Contributor

Special case the identifier validation to allow 🐍 to be used in
identifiers


This works in the terminal (assuming you have the right fonts, showing both with and without mark up as the 🐍 do not render for me in the escaped code)

(bleeding) ✔ ~                                                                                                    
18:38 $ python
Python 3.7.0a0 (heads/enh_🐍_snek:2bfe3d18dad, May 20 2017, 18:32:35)                                             
[GCC 6.3.1 20170306] on linux                                                                                     
Type "help", "copyright", "credits" or "license" for more information.                                            
>>> 🐍 = 1
>>> 🐍 + 🐍 
2                                                                                                                 
>>>                                                                                                               
(bleeding) ✔ ~  

(bleeding) ✔ ~
18:38 $ python
Python 3.7.0a0 (heads/enh_🐍_snek:2bfe3d18dad, May 20 2017, 18:32:35)
[GCC 6.3.1 20170306] on linux
Type "help", "copyright", "credits" or "license" for more information.

🐍 = 1
🐍 + 🐍
2

(bleeding) ✔ ~

tsn


It also works in the jupyter notebook (again assuming you have the right fonts)

sn

@the-knights-who-say-ni
Copy link
Copy Markdown

Special case the identifier validation to allow 🐍 to be used in
identifiers
@gvanrossum
Copy link
Copy Markdown
Member

I hope this is just a joke -- this shouldn't be merged.

@gvanrossum gvanrossum closed this May 22, 2017
@tacaswell
Copy link
Copy Markdown
Contributor Author

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

Successfully merging this pull request may close these issues.

3 participants