Skip to content

Conversation

@tacaswell
Copy link
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

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

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

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

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

Mostly a joke, but if it was merged it would not be the only joke / Easter egg in the code base ;)

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