Timeline for Write the shortest self-identifying program (a quine variant)
Current License: CC BY-SA 3.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Feb 23, 2018 at 18:28 | comment | added | PunPun1000 | @Simon That is not allowed, it is one of the standard loopholes for challenges like this. And yes, this is what it means by Your program must not access any special files, such as the file of its own source code. | |
| Jan 29, 2018 at 14:12 | comment | added | Simon | I am confused by the challenge wording ('cause I am not good with english grammar). Is this allowed? print raw_input()==open(__file__).read() ? It is only 40 bytes, uses your raw_input() approach, but reads it's code. | |
| Feb 5, 2015 at 22:53 | comment | added | feersum | A trivial fix would be to replace raw_input() with __import__('sys').stdin.read(). | |
| Apr 17, 2013 at 20:06 | comment | added | flornquake | True, multi-line input is not supported. | |
| Apr 17, 2013 at 18:56 | comment | added | boothby | Fails on any file that begins with the first line equal to a='a=%r;print a%%a==raw_input()';print a%a==raw_input(). | |
| Apr 17, 2013 at 15:14 | history | answered | flornquake | CC BY-SA 3.0 |