Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
a one line module
#1
if you ever write any code that needs to work with individual ASCII control codes, then this one liner can help set up some variable names the same as ASCII control character name abbreviations, with the appropriate code value. making it not so long is an exercise left to the reader.

NUL,SOH,STX,ETX,EOT,ENQ,ACK,BEL,BS,TAB,NL,VTAB,FF,CR,SO,SI,DLE,DC1,DC2,DC3,DC4,NAK,SYN,ETB,CAN,EM,SUB,ESC,FS,GS,RS,US = range(32)
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Forum Jump:

User Panel Messages

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