r/Python • • Jun 27 '18

Python 3.7.0 released

https://www.python.org/downloads/release/python-370/
1.3k Upvotes

293 comments sorted by

View all comments

-9

u/Pojan06 Jun 28 '18

I know this sound stupid...but what this 3.7 diffrent with 3.6

26

u/13steinj Jun 28 '18

...I can't tell if you didn't bother to click the link or what but:

Among the major new features in Python 3.7 are:

  • PEP 539, new C API for thread-local storage

  • PEP 545, Python documentation translations

  • New documentation translations: Japanese, French, and Korean.

  • PEP 552, Deterministic pyc files

  • PEP 553, Built-in breakpoint()

  • PEP 557, Data Classes

  • PEP 560, Core support for typing module and generic types

  • PEP 562, Customization of access to module attributes

  • PEP 563, Postponed evaluation of annotations

  • PEP 564, Time functions with nanosecond resolution

  • PEP 565, Improved DeprecationWarning handling

  • PEP 567, Context Variables

  • Avoiding the use of ASCII as a default text encoding (PEP 538, legacy C locale coercion and PEP 540, forced UTF-8 runtime mode)

  • The insertion-order preservation nature of dict objects is now an official part of the Python language spec.

  • Notable performance improvements in many areas.

10

u/zenverak Jun 28 '18

I think his question is better phrased as, what does any of that mean to him as a user. Insertion order preservation is pretty neat but for the random joe they might not know what some of those things truly offer

→ More replies (15)

5

u/[deleted] Jun 28 '18

Reading that feature list is like this vince mcmahon gif

4

u/Pojan06 Jun 28 '18

I mean...i told you the question might sound stupid to a python user...while Iam just learning it...so is the 3.7 gonna affect 3.6 and should they transit to 3.7?

18

u/Raging_Hippy Jun 28 '18

3.6 isn't going anywhere. You can still use it if you can't or don't want to upgrade to 3.7. But if you're just learning then you aren't going to notice any real difference between the two. The changes are all more advanced features.

3

u/[deleted] Jun 28 '18

3.7 is going to be backwards-compatible with 3.6, at least in most ways that are meaningful to someone who doesn't work on developing the Python interpreter itself -- that means your 3.6 code will still work under 3.7.

You just get access to some new features if you run that code under a 3.7 interpreter.

→ More replies (5)

1

u/[deleted] Jun 28 '18

the forced UTF-8 is the selling point for me

2

u/13steinj Jun 28 '18

I really hope that will unfuck packages like click and everything it depends on.

17

u/TehMoonRulz Jun 28 '18

See the dozen or so PEPs at the top of the link!

Lots of people are excited about Data Classes