r/Python • • May 30 '19

Dear python2 user

Post image
1.9k Upvotes

275 comments sorted by

View all comments

277

u/billsil May 30 '19

I killed my libraries support for python 2 last Friday. It feels good to get rid of six, future, scans it, and pathlib2 and really start doing type annotations properly.

People are already trying to get me to change my mind. But my company uses Anaconda...use a virtual environment; Anaconda lets you have multiple versions of python. It’s coming like a train and all my dependencies have moved on. Time for me to as well.

-70

u/mmarius90 May 30 '19

In total agreement with you except for the type annotations. I see those as an abomination. Python is so beautiful as a syntax without those horrible glyphs.

Quote the PEP:

While these annotations are available at runtime through the usual annotations attribute, no type checking happens at runtime . Instead, the proposal assumes the existence of a separate off-line type checker which users can run over their source code voluntarily

See? An abomination. I'll never introduce those in my personal projects.

-27

u/mmarius90 May 30 '19

All you downvoting hating mf'ers are really coding in the wrong language. Y'all need to grasp the concept of duck typing. "Oh BuT iT hElPs Me FiGuRe OuT ThE TyPeS" without any enforcement or guarantee that that's what's passed at runtime. Y'all need to switch to a statically typed language. Ruining the beauty of the syntax with those abominations.

→ More replies (1)