[Python-Dev] Challenge: Please break this! [Now with blog post]
Guido van Rossum
guido at python.org
Mon Feb 23 23:51:30 CET 2009
TWIW, on Twitter, Ian Bicking just came up with a half-solution. I
figured out the other half. I guess you own Ian drinks and me dinner.
Python 2.5.3a0 (release25-maint:64494, Jun 23 2008, 19:17:09)
[GCC 4.0.3 (Ubuntu 4.0.3-1ubuntu5)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from safelite import FileReader
>>> class S(str):
... def __eq__(self, o): print o; return 'r' == o
>>> f = FileReader('w00t', S('w'))
$ ls -l w00t
-rw-r----- 1 guido eng 0 Feb 23 14:50 w00t
On Mon, Feb 23, 2009 at 2:41 PM, tav <tav at espians.com> wrote:
>> I take it back, we need to find all the trivial ones too.
>> BTW Tav, you ought to create a small website for this challenge. A
>> blog post or wiki page would suffice.
> Please blog/retweet and of course, try the challenge yourselves =)
> love, tav
> plex:espians/tav | tav at espians.com | +44 (0) 7809 569 369
> http://tav.espians.com | http://twitter.com/tav | skype:tavespian
--Guido van Rossum (home page: http://www.python.org/~guido/)
More information about the Python-Dev