Skip to content

Instantly share code, notes, and snippets.

@mattboehm
Created March 9, 2017 18:32
Show Gist options
  • Save mattboehm/98ae4871ae21821c21cb9f2aecbb9c39 to your computer and use it in GitHub Desktop.
Save mattboehm/98ae4871ae21821c21cb9f2aecbb9c39 to your computer and use it in GitHub Desktop.
Python 2.7.10 (default, Oct 23 2015, 19:19:21)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.0.59.5)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import string
>>> string.letters
'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
>>> help(string)
>>> string.letters
'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'
@dimo414
Copy link

dimo414 commented Mar 9, 2017

@dschep that's not so surprising, the new string.letters just happens to get the same ID, same as this question. If you assign the original string.letters to a variable the updated string.letters will have a different ID.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment