First time here? Checkout the FAQ!
x
0 votes
217 views
asked in Python by (115k points)  
Python3 and Python2 seems so similar, and the only changes which are obvious are some changes in functions such as print that now needs parentheses. Are there other improvements?
  

1 Answer

0 votes
answered by (115k points)  

There is a list of great features many do not use yet. Here is the list of some of them:

  • f-strings (3.6+)
  • Pathlib (3.4+)
  • Type hinting (3.5+)
  • Enumerations (3.4+)
  • Built-in LRU cache (3.2+)
  • Extended iterable unpacking (3.0+)
  • Data classes (3.7+)
  • Implicit namespace packages (3.3+)

This article shows some examples, and you can take the notebook for your test from this GitHub page.

Related questions

0 votes
1 answer 236 views
+1 vote
1 answer 237 views
0 votes
1 answer 213 views
asked Oct 29, 2018 in Python by wxeshetu (400 points)  
...