Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what does # -*- mean?
#2
Python HOWTO Wrote:The syntax is inspired by Emacs’s notation for specifying variables local to a file. Emacs supports many different variables, but Python only supports ‘coding’. The -*- symbols indicate to Emacs that the comment is special; they have no significance to Python but are a convention. Python looks for coding: name or coding=name in the comment.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
what does # -*- mean? - by Skaperen - Apr-06-2019, 02:10 AM
RE: what does # -*- mean? - by ichabod801 - Apr-06-2019, 02:23 AM
RE: what does # -*- mean? - by Skaperen - Apr-07-2019, 03:26 AM
RE: what does # -*- mean? - by ichabod801 - Apr-07-2019, 12:49 PM
RE: what does # -*- mean? - by DeaD_EyE - Apr-07-2019, 12:53 PM
RE: what does # -*- mean? - by Skaperen - Apr-09-2019, 01:49 AM

Forum Jump:

User Panel Messages

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