Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
what does # -*- mean?
#6
i do test many things. the default encoding, at least in Python3.5, is utf-8 so i don't know why i am doing this since i have used, nor expect to use, anything else. i guess it can help with Emacs as it has been a problem with some files that have Unicode characters above 127 coded as utf-8 in them. it might be default ascii. so testing this with python will probably show nothing.

i am not asking for permission. but i do, often, try to get opinions of experience as they might apply to ideas i have. not everything i do bad breaks immediately.

i have seen # -*- coding: utf8 -*- in some code. i wonder if that would be recognized.

so Python doesn't need the -*- but Emacs does.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
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