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.
Python’s Preprocessor
11–20 of 109 posts
Re: Python’s Preprocessor
#12Earlier 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 :)
Re: Python’s Preprocessor
#13Earlier 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
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
#15Re: Python’s Preprocessor
#16Re: Python’s Preprocessor
#17Re: Python’s Preprocessor
#18Part 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
#19[stub for offtopicness]
Re: Python’s Preprocessor
#20[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.