2 Replies - 195 Views - Last Post: 28 February 2014 - 01:36 PM Rate Topic: -----

#1 MaverocK  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 35
  • Joined: 21-February 14

Strange symbol in pygettext.py

Posted 28 February 2014 - 11:02 AM

Greetings,

Do you have any idea why the symbol in the code (see picture below) is put there?
You may find the file under C:\Python33\Tools\i18n\ and pygettext.py

Posted Image

And a follow-up question: How is that symbol called?
Is This A Good Question/Topic? 0
  • +

Replies To: Strange symbol in pygettext.py

#2 MentalFloss  Icon User is offline

  • "ADDICTED"[2:5]
  • member icon

Reputation: 527
  • View blog
  • Posts: 1,397
  • Joined: 02-September 09

Re: Strange symbol in pygettext.py

Posted 28 February 2014 - 01:15 PM

I went to http://svn.python.or...8n/pygettext.py to view this code as it is not in my system.

Upon copying it into geany (which I have configured to show control characters and the like), it is identified as FF or Form-Feed character.

Here is an image:

Posted Image

This post has been edited by MentalFloss: 28 February 2014 - 01:20 PM

Was This Post Helpful? 3
  • +
  • -

#3 sepp2k  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 2151
  • View blog
  • Posts: 3,307
  • Joined: 21-June 11

Re: Strange symbol in pygettext.py

Posted 28 February 2014 - 01:36 PM

And with regards to why you'd put a form feed into a python file, I found this:

Quote

Python accepts the control-L (i.e. ^L) form feed character as whitespace; Many tools treat these characters as page separators, so you may use them to separate pages of related sections of your file. Note, some editors and web-based code viewers may not recognize control-L as a form feed and will show another glyph in its place.

This post has been edited by sepp2k: 28 February 2014 - 01:37 PM

Was This Post Helpful? 2
  • +
  • -

Page 1 of 1