Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
coding: utf-8
#2
The default encoding for Python 3 code is utf-8.
Therefor is no need to use that line in Python 3,i have never used in Python 3.

Only if want to support python2.x in the same file,
or want to use other coding other than utf-8 is that comment needed.
Reply


Messages In This Thread
coding: utf-8 - by Skaperen - Jul-31-2018, 05:22 AM
RE: coding: utf-8 - by snippsat - Jul-31-2018, 06:00 AM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020