Live data from Hacker News

Python’s Preprocessor

pydong.org

11–20 of 109 posts

Re: Python’s Preprocessor

#11

Part of me says that python has not gone out of its way to expose preprocessor hooks for good reason, and reasonable adults should stay away from it. The other part wants nothing to do with reasonable adults anyhow. Such fun could be had.

Growing old is mandatory; growing up is optional.

Re: Python’s Preprocessor

#12
post #9

Earlier quoted context omitted.

Tied with Coq for best name

I remember that I wanted to implement a python module that would improve upon the builtin Django groups. So following a tradition of adding ex to the end of the existing name, I named my module "groupsex". After taking a peek at it I decided to rename it to groups2 instead :)

Not python but literally yesterday I had do a double take when I saw https://github.com/janestreet/sexplib

Re: Python’s Preprocessor

#13

Earlier quoted context omitted.

Tied with Coq for best name

Let's not forget this fine contribution to the Python's nest. https://github.com/ajalt/fuckitpy

> The web devs tell me that fuckit's versioning scheme is confusing, and that I should use "Semitic Versioning" instead. So starting with fuckit version ה.ג.א, package versions will use Hebrew Numerals.

Big lol

Re: Python’s Preprocessor

#14

    >>> from __future__ import braces
      File "", line 1
    SyntaxError: not a chance
For those interested in how this (hilarious) error text came to be, it's been hardcoded in cpython since 2001!

https://github.com/python/cpython/commit/ad3d3f2f3f19833f59f...

The author, Jeremy Hylton, is now a Principal Engineer at Google working on AI search quality. It's quite remarkable that in 24 years, a single person's career has gone from a tongue-in-cheek memorialization of certain syntax being forbidden, to working on ubiquitous query systems that don't require dedicated syntax at all!

Re: Python’s Preprocessor

#18

Part of me says that python has not gone out of its way to expose preprocessor hooks for good reason, and reasonable adults should stay away from it. The other part wants nothing to do with reasonable adults anyhow. Such fun could be had.

Growing old is mandatory; growing up is optional.

You’ve managed to sum my whole approach to life in one beautiful sentence. Thank you.

Re: Python’s Preprocessor

#19
post #41

[stub for offtopicness]

I think the title of this needs to be changed as it implies that this is a preprocessor project named Pydong. As far as I can tell that's simply the name of this blog and this post is about how python has a preprocessor built-in if you abuse the right mechanisms.

Re: Python’s Preprocessor

#20
post #19
post #41

[stub for offtopicness]

I think the title of this needs to be changed as it implies that this is a preprocessor project named Pydong. As far as I can tell that's simply the name of this blog and this post is about how python has a preprocessor built-in if you abuse the right mechanisms.

[deleted]
Post reply on HN