pcc-cis-012-intro-to-programming-python icon indicating copy to clipboard operation
pcc-cis-012-intro-to-programming-python copied to clipboard

Add discussion of Python oddities when discussing oddities of other languages.

Open mcfarke311 opened this issue 4 years ago • 1 comments

Just add some python oddities to the discussion - good things to be aware of when learning python :)

I'll see if I can find some more to include just so students are aware. Right now I'm thinking of the CPython pylong object where objects assigned values of low integers [-5:256] actually reference the same object.

>>> b = 1
>>> a is b
True
>>> a = 9537
>>> b = 9537
>>> a is b
False```

mcfarke311 avatar Mar 05 '20 17:03 mcfarke311

Great idea! This is definitely a good topic to cover early one.

mertzjames avatar Mar 09 '20 04:03 mertzjames