Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

5
  • 1
    \$\begingroup\$ Quick explanation: The zlib.decompress('...') evaluates to {'G?':' ', 'G;':' ','G"':' ',.......}, and a is a dictionary which maps from 2 character to 1 character. Basically 2-character variant of Steadybox's answer. \$\endgroup\$ Commented Jan 10, 2018 at 8:53
  • 1
    \$\begingroup\$ As I can see, the literal is 17780 bytes. You can reduce it to 11619 chars by removing whitespaces in the decompressed content, which saves 12322 bytes. (if I counted correctly) Also... converting hex escape codes to actual raw characters may save even more bytes. \$\endgroup\$ Commented Jan 10, 2018 at 14:18
  • \$\begingroup\$ How do I post something here if it is raw bytes? \$\endgroup\$ Commented Jan 10, 2018 at 15:13
  • 1
    \$\begingroup\$ xxd, hexdump, uuencode, or similar \$\endgroup\$ Commented Jan 10, 2018 at 15:29
  • \$\begingroup\$ @user202729 Just note that Python code cannot contain actual raw NUL bytes. \$\endgroup\$ Commented Jan 26, 2018 at 21:03