Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #82693 > unrolled thread
| Started by | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| First post | 2014-12-20 23:57 +1100 |
| Last post | 2014-12-22 19:05 +0000 |
| Articles | 20 on this page of 122 — 30 participants |
Back to article view | Back to comp.lang.python
Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-20 23:57 +1100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-21 00:11 +1100
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-20 16:13 +0000
Re: Hello World Rustom Mody <rustompmody@gmail.com> - 2014-12-20 08:50 -0800
Re: Hello World Steve Hayes <hayesstw@telkomsa.net> - 2014-12-20 20:39 +0200
Re: Hello World alister <alister.nospam.ware@ntlworld.com> - 2014-12-20 22:18 +0000
Re: Hello World CM <cmpython@gmail.com> - 2014-12-20 21:14 -0800
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-21 16:26 +1100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-21 16:31 +1100
Re: Hello World Terry Reedy <tjreedy@udel.edu> - 2014-12-21 01:31 -0500
Re: Hello World wxjmfauth@gmail.com - 2014-12-21 00:07 -0800
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-21 17:44 +1100
Re: Hello World CM <cmpython@gmail.com> - 2014-12-20 23:44 -0800
Re: Hello World CM <cmpython@gmail.com> - 2014-12-20 23:45 -0800
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2014-12-21 10:26 +0200
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-21 18:46 +1100
Re: Hello World albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-01-08 12:43 +0000
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-08 23:53 +1100
Re: Hello World albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-01-08 13:37 +0000
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2015-01-08 16:06 +0200
Re: Hello World alister <alister.nospam.ware@ntlworld.com> - 2015-01-08 14:21 +0000
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2015-01-08 16:31 +0200
Re: Hello World alister <alister.nospam.ware@ntlworld.com> - 2015-01-08 15:14 +0000
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-08 15:11 +0100
Re: Hello World albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-01-17 14:51 +0000
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 01:57 +1100
Re: Hello World cl@isbd.net - 2015-01-17 15:18 +0000
Re: Hello World Michael Torrie <torriem@gmail.com> - 2015-01-17 09:29 -0700
Re: Hello World cl@isbd.net - 2015-01-17 16:47 +0000
Re: Hello World albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-01-17 18:06 +0000
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-17 19:47 +0100
Re: Hello World Michael Torrie <torriem@gmail.com> - 2015-01-17 19:09 -0700
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-18 13:37 +1100
Re: Hello World Roy Smith <roy@panix.com> - 2015-01-17 22:18 -0500
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-18 14:45 +1100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 18:45 +1100
Re: Hello World Roy Smith <roy@panix.com> - 2015-01-18 07:26 -0500
Re: Hello World Tim Chase <python.list@tim.thechases.com> - 2015-01-17 21:50 -0600
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 18:44 +1100
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2015-01-17 18:31 +0000
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2015-01-18 10:46 +1100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 11:04 +1100
Re: Hello World Jason Friedman <jsf80238@gmail.com> - 2015-01-17 18:19 -0700
Re: Hello World Michael Torrie <torriem@gmail.com> - 2015-01-17 19:13 -0700
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2015-01-18 12:03 +0200
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 14:34 +0100
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2015-01-18 18:03 +0200
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 19:39 +0100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 21:10 +1100
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2015-01-18 22:50 +0200
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 14:32 +0100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-18 21:00 +1100
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 14:35 +0100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-19 00:57 +1100
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 16:48 +0100
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-19 04:08 +1100
Re: Hello World Michael Ströder <michael@stroeder.com> - 2015-01-18 14:30 +0100
Re: Hello World Steve Hayes <hayesstw@telkomsa.net> - 2015-01-08 19:02 +0200
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2015-01-09 04:11 +1100
Re: Hello World albert@spenarnc.xs4all.nl (Albert van der Horst) - 2015-01-17 15:10 +0000
Re: Hello World Michael Torrie <torriem@gmail.com> - 2015-01-08 10:53 -0700
Re: Hello World Grant Edwards <invalid@invalid.invalid> - 2015-01-08 18:57 +0000
Re: Hello World Devin Jeanpierre <jeanpierreda@gmail.com> - 2015-01-17 16:06 -0800
Re: Hello World Tony the Tiger <tony@tiger.invalid> - 2014-12-21 19:22 +0000
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2014-12-21 22:02 +0200
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-22 09:51 +1100
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-21 18:50 -0500
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-22 11:10 +1100
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-21 19:12 -0500
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-22 11:36 +1100
Re: Hello World mm0fmf <none@mailinator.com> - 2014-12-22 00:20 +0000
Re: Hello World Tim Chase <python.list@tim.thechases.com> - 2014-12-21 18:47 -0600
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 02:56 +0000
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2014-12-22 10:52 +0200
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-22 20:01 +1100
Re: Hello World Grant Edwards <invalid@invalid.invalid> - 2014-12-22 16:23 +0000
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-23 04:25 +1100
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 18:51 +0000
Re: Hello World MRAB <python@mrabarnett.plus.com> - 2014-12-22 19:05 +0000
Re: Hello World Tim Chase <python.list@tim.thechases.com> - 2014-12-22 13:16 -0600
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-22 19:55 -0500
Re: Hello World sohcahtoa82@gmail.com - 2014-12-22 17:03 -0800
Re: Hello World MRAB <python@mrabarnett.plus.com> - 2014-12-23 01:37 +0000
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-23 12:39 +1100
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-23 02:36 +0000
Re: Hello World Dennis Lee Bieber <wlfraed@ix.netcom.com> - 2014-12-23 12:24 -0500
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-23 12:03 +1100
Encryption - was Hello World Dave Angel <d@davea.name> - 2014-12-22 14:57 -0500
Re: Encryption - was Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-23 09:29 +1100
Re: Encryption - was Hello World Dave Angel <davea@davea.name> - 2014-12-22 18:22 -0500
Re: Hello World Rustom Mody <rustompmody@gmail.com> - 2014-12-21 18:37 -0800
Re: Hello World Steve Hayes <hayesstw@telkomsa.net> - 2014-12-22 08:21 +0200
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-22 17:33 +1100
Re: Hello World Steve Hayes <hayesstw@telkomsa.net> - 2014-12-22 09:46 +0200
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-22 18:56 +1100
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-22 20:18 +1100
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2014-12-22 11:34 +0200
Re: Hello World Rustom Mody <rustompmody@gmail.com> - 2014-12-22 19:38 -0800
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-22 08:15 -0500
Re: Hello World Chris Angelico <rosuav@gmail.com> - 2014-12-23 00:23 +1100
OFF TOPIC Snow Crash [was Re: Hello World] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-23 13:09 +1100
Re: OFF TOPIC Snow Crash [was Re: Hello World] Grant Edwards <invalid@invalid.invalid> - 2014-12-23 16:20 +0000
Re: OFF TOPIC Snow Crash [was Re: Hello World] Rustom Mody <rustompmody@gmail.com> - 2014-12-23 08:41 -0800
Re: OFF TOPIC Snow Crash [was Re: Hello World] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-24 12:51 +1100
Re: OFF TOPIC Snow Crash [was Re: Hello World] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-24 14:18 +1100
Re: OFF TOPIC Snow Crash [was Re: Hello World] alister <alister.nospam.ware@ntlworld.com> - 2014-12-24 11:50 +0000
Re: OFF TOPIC Snow Crash [was Re: Hello World] alex23 <wuwei23@gmail.com> - 2014-12-26 09:34 +1000
Re: OFF TOPIC Snow Crash [was Re: Hello World] alex23 <wuwei23@gmail.com> - 2014-12-26 09:27 +1000
Re: OFF TOPIC Snow Crash [was Re: Hello World] Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-26 15:13 +1100
Re: OFF TOPIC Snow Crash [was Re: Hello World] alister <alister.nospam.ware@ntlworld.com> - 2014-12-26 10:03 +0000
Re: Hello World Marko Rauhamaa <marko@pacujo.net> - 2014-12-22 15:26 +0200
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-22 08:41 -0500
Re: Hello World Roy Smith <roy@panix.com> - 2014-12-22 08:13 -0500
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-23 02:22 +1100
Re: Hello World Jussi Piitulainen <jpiitula@ling.helsinki.fi> - 2014-12-22 17:36 +0200
Re: Hello World Chris Warrick <kwpolska@gmail.com> - 2014-12-22 17:03 +0100
Re: Hello World Skip Montanaro <skip.montanaro@gmail.com> - 2014-12-22 09:39 -0600
Re: Hello World Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-12-23 03:54 +1100
Re: Hello World Mark Lawrence <breamoreboy@yahoo.co.uk> - 2014-12-22 18:48 +0000
Re: Hello World Grant Edwards <invalid@invalid.invalid> - 2014-12-22 16:26 +0000
Re: Hello World Grant Edwards <invalid@invalid.invalid> - 2014-12-22 16:18 +0000
Re: Hello World alister <alister.nospam.ware@ntlworld.com> - 2014-12-22 19:05 +0000
Page 1 of 7 [1] 2 3 4 5 6 7 Next page →
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2014-12-20 23:57 +1100 |
| Subject | Hello World |
| Message-ID | <54957226$0$12975$c3e8da3$5496439d@news.astraweb.com> |
Taken from Ben Kurtovic's blog:
http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html
(lambda _, __, ___, ____, _____, ______, _______, ________:
getattr(
__import__(True.__class__.__name__[_] + [].__class__.__name__[__]),
().__class__.__eq__.__class__.__name__[:__] +
().__iter__().__class__.__name__[_____:________]
)(
_, (lambda _, __, ___: _(_, __, ___))(
lambda _, __, ___:
chr(___ % __) + _(_, __, ___ // __) if ___ else
(lambda: _).func_code.co_lnotab,
_ << ________,
(((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ << __)
- _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ <<
__) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______
<< ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) <<
((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) <<
__) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______
<< (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) +
_) << ((((___ << __) + _) << _))) + (((_______ << __) - _) <<
(((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ <<
_))) + (_____ << ______) + (_ << ___)
)
)
)(
*(lambda _, __, ___: _(_, __, ___))(
(lambda _, __, ___:
[__(___[(lambda: _).func_code.co_nlocals])] +
_(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else []
),
lambda _: _.func_code.co_argcount,
(
lambda _: _,
lambda _, __: _,
lambda _, __, ___: _,
lambda _, __, ___, ____: _,
lambda _, __, ___, ____, _____: _,
lambda _, __, ___, ____, _____, ______: _,
lambda _, __, ___, ____, _____, ______, _______: _,
lambda _, __, ___, ____, _____, ______, _______, ________: _
)
)
)
I am in total awe.
--
Steven
[toc] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-21 00:11 +1100 |
| Message-ID | <mailman.17068.1419081110.18130.python-list@python.org> |
| In reply to | #82693 |
On Sat, Dec 20, 2014 at 11:57 PM, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: > Taken from Ben Kurtovic's blog: > > http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html Introduction to Functional Programming in Python. Sadly, it doesn't work on Python 3. Someone needs to port it, otherwise Py3 adoption will be irreparably retarded. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Mark Lawrence <breamoreboy@yahoo.co.uk> |
|---|---|
| Date | 2014-12-20 16:13 +0000 |
| Message-ID | <mailman.17072.1419092031.18130.python-list@python.org> |
| In reply to | #82693 |
On 20/12/2014 12:57, Steven D'Aprano wrote: > Taken from Ben Kurtovic's blog: > > http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html > > > > (lambda _, __, ___, ____, _____, ______, _______, ________: > getattr( > __import__(True.__class__.__name__[_] + [].__class__.__name__[__]), > ().__class__.__eq__.__class__.__name__[:__] + > ().__iter__().__class__.__name__[_____:________] > )( > _, (lambda _, __, ___: _(_, __, ___))( > lambda _, __, ___: > chr(___ % __) + _(_, __, ___ // __) if ___ else > (lambda: _).func_code.co_lnotab, > _ << ________, > (((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ << __) > - _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ << > __) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______ > << ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) << > ((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) << > __) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______ > << (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) + > _) << ((((___ << __) + _) << _))) + (((_______ << __) - _) << > (((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ << > _))) + (_____ << ______) + (_ << ___) > ) > ) > )( > *(lambda _, __, ___: _(_, __, ___))( > (lambda _, __, ___: > [__(___[(lambda: _).func_code.co_nlocals])] + > _(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else [] > ), > lambda _: _.func_code.co_argcount, > ( > lambda _: _, > lambda _, __: _, > lambda _, __, ___: _, > lambda _, __, ___, ____: _, > lambda _, __, ___, ____, _____: _, > lambda _, __, ___, ____, _____, ______: _, > lambda _, __, ___, ____, _____, ______, _______: _, > lambda _, __, ___, ____, _____, ______, _______, ________: _ > ) > ) > ) > > > > I am in total awe. > So am I, that sure is some gauntlet to throw into the ring. -- My fellow Pythonistas, ask not what our language can do for you, ask what you can do for our language. Mark Lawrence
[toc] | [prev] | [next] | [standalone]
| From | Rustom Mody <rustompmody@gmail.com> |
|---|---|
| Date | 2014-12-20 08:50 -0800 |
| Message-ID | <d0f6080b-6bf8-46a5-b4dc-48be27928ece@googlegroups.com> |
| In reply to | #82693 |
On Saturday, December 20, 2014 6:27:19 PM UTC+5:30, Steven D'Aprano wrote: > Taken from Ben Kurtovic's blog: > > http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html > > > > (lambda _, __, ___, ____, _____, ______, _______, ________: > getattr( > __import__(True.__class__.__name__[_] + [].__class__.__name__[__]), > ().__class__.__eq__.__class__.__name__[:__] + > ().__iter__().__class__.__name__[_____:________] > )( > _, (lambda _, __, ___: _(_, __, ___))( > lambda _, __, ___: > chr(___ % __) + _(_, __, ___ // __) if ___ else > (lambda: _).func_code.co_lnotab, > _ << ________, > (((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ << __) > - _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ << > __) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______ > << ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) << > ((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) << > __) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______ > << (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) + > _) << ((((___ << __) + _) << _))) + (((_______ << __) - _) << > (((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ << > _))) + (_____ << ______) + (_ << ___) > ) > ) > )( > *(lambda _, __, ___: _(_, __, ___))( > (lambda _, __, ___: > [__(___[(lambda: _).func_code.co_nlocals])] + > _(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else [] > ), > lambda _: _.func_code.co_argcount, > ( > lambda _: _, > lambda _, __: _, > lambda _, __, ___: _, > lambda _, __, ___, ____: _, > lambda _, __, ___, ____, _____: _, > lambda _, __, ___, ____, _____, ______: _, > lambda _, __, ___, ____, _____, ______, _______: _, > lambda _, __, ___, ____, _____, ______, _______, ________: _ > ) > ) > ) > > > > I am in total awe. Oooooooo F________!!!!
[toc] | [prev] | [next] | [standalone]
| From | Steve Hayes <hayesstw@telkomsa.net> |
|---|---|
| Date | 2014-12-20 20:39 +0200 |
| Message-ID | <4jgb9advuq2ltskee2bff7vl6if6pca1qv@4ax.com> |
| In reply to | #82693 |
On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano <steve+comp.lang.python@pearwood.info> wrote: >Taken from Ben Kurtovic's blog: > >http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html > > > >(lambda _, __, ___, ____, _____, ______, _______, ________: > getattr( > __import__(True.__class__.__name__[_] + [].__class__.__name__[__]), > ().__class__.__eq__.__class__.__name__[:__] + > ().__iter__().__class__.__name__[_____:________] > )( > _, (lambda _, __, ___: _(_, __, ___))( > lambda _, __, ___: > chr(___ % __) + _(_, __, ___ // __) if ___ else > (lambda: _).func_code.co_lnotab, > _ << ________, > (((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ << __) > - _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ << > __) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______ > << ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) << > ((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) << > __) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______ > << (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) + > _) << ((((___ << __) + _) << _))) + (((_______ << __) - _) << > (((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ << > _))) + (_____ << ______) + (_ << ___) > ) > ) >)( > *(lambda _, __, ___: _(_, __, ___))( > (lambda _, __, ___: > [__(___[(lambda: _).func_code.co_nlocals])] + > _(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else [] > ), > lambda _: _.func_code.co_argcount, > ( > lambda _: _, > lambda _, __: _, > lambda _, __, ___: _, > lambda _, __, ___, ____: _, > lambda _, __, ___, ____, _____: _, > lambda _, __, ___, ____, _____, ______: _, > lambda _, __, ___, ____, _____, ______, _______: _, > lambda _, __, ___, ____, _____, ______, _______, ________: _ > ) > ) >) > > > >I am in total awe. Bloody hell! It worked. -- Steve Hayes from Tshwane, South Africa Web: http://www.khanya.org.za/stevesig.htm Blog: http://khanya.wordpress.com E-mail - see web page, or parse: shayes at dunelm full stop org full stop uk
[toc] | [prev] | [next] | [standalone]
| From | alister <alister.nospam.ware@ntlworld.com> |
|---|---|
| Date | 2014-12-20 22:18 +0000 |
| Message-ID | <eBmlw.128001$W43.1025@fx04.am4> |
| In reply to | #82693 |
On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano wrote: > Taken from Ben Kurtovic's blog: > > http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html > > > > (lambda _, __, ___, ____, _____, ______, _______, ________: > getattr( > __import__(True.__class__.__name__[_] + > [].__class__.__name__[__]), > ().__class__.__eq__.__class__.__name__[:__] + > ().__iter__().__class__.__name__[_____:________] > )( > _, (lambda _, __, ___: _(_, __, ___))( > lambda _, __, ___: > chr(___ % __) + _(_, __, ___ // __) if ___ else (lambda: > _).func_code.co_lnotab, > _ << ________, > (((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ > << __) > - _) << ___) + _) << ((_____ << ____) + (_ << _))) + > (((_______ << __) - _) << (((((_ << ___) + _)) << ___) + (_ > << _))) + (((_______ << ___) + _) << ((_ << ______) + _)) + > (((_______ << ____) - _) << ((_______ << ___))) + (((_ << > ____) - _) << ((((___ << __) + _) << __) - _)) - (_______ << > ((((___ << __) - _) << __) + _)) + (_______ > << (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << > __) + _) << ((((___ << __) + _) << _))) + (((_______ << __) > - _) << (((((_ << ___) + _)) << _))) + (((___ << ___) + _) > << ((_____ << _))) + (_____ << ______) + (_ << ___) > ) > ) > )( > *(lambda _, __, ___: _(_, __, ___))( > (lambda _, __, ___: > [__(___[(lambda: _).func_code.co_nlocals])] + > _(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ > else [] > ), > lambda _: _.func_code.co_argcount, > ( > lambda _: _, > lambda _, __: _, > lambda _, __, ___: _, > lambda _, __, ___, ____: _, > lambda _, __, ___, ____, _____: _, > lambda _, __, ___, ____, _____, ______: _, > lambda _, __, ___, ____, _____, ______, _______: _, > lambda _, __, ___, ____, _____, ______, _______, ________: _ > ) > ) > ) > > > > I am in total awe. Burn the witch! -- Government [is] an illusion the governed should not encourage. -- John Updike, "Couples"
[toc] | [prev] | [next] | [standalone]
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2014-12-20 21:14 -0800 |
| Message-ID | <b157ffcf-aead-463d-b152-6abbd4994d56@googlegroups.com> |
| In reply to | #82693 |
On Saturday, December 20, 2014 7:57:19 AM UTC-5, Steven D'Aprano wrote:
> Taken from Ben Kurtovic's blog:
>
> http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html
>
>
>
> (lambda _, __, ___, ____, _____, ______, _______, ________:
> getattr(
> __import__(True.__class__.__name__[_] + [].__class__.__name__[__]),
> ().__class__.__eq__.__class__.__name__[:__] +
> ().__iter__().__class__.__name__[_____:________]
> )(
> _, (lambda _, __, ___: _(_, __, ___))(
> lambda _, __, ___:
> chr(___ % __) + _(_, __, ___ // __) if ___ else
> (lambda: _).func_code.co_lnotab,
> _ << ________,
> (((_____ << ____) + _) << ((___ << _____) - ___)) + (((((___ << __)
> - _) << ___) + _) << ((_____ << ____) + (_ << _))) + (((_______ <<
> __) - _) << (((((_ << ___) + _)) << ___) + (_ << _))) + (((_______
> << ___) + _) << ((_ << ______) + _)) + (((_______ << ____) - _) <<
> ((_______ << ___))) + (((_ << ____) - _) << ((((___ << __) + _) <<
> __) - _)) - (_______ << ((((___ << __) - _) << __) + _)) + (_______
> << (((((_ << ___) + _)) << __))) - ((((((_ << ___) + _)) << __) +
> _) << ((((___ << __) + _) << _))) + (((_______ << __) - _) <<
> (((((_ << ___) + _)) << _))) + (((___ << ___) + _) << ((_____ <<
> _))) + (_____ << ______) + (_ << ___)
> )
> )
> )(
> *(lambda _, __, ___: _(_, __, ___))(
> (lambda _, __, ___:
> [__(___[(lambda: _).func_code.co_nlocals])] +
> _(_, __, ___[(lambda _: _).func_code.co_nlocals:]) if ___ else []
> ),
> lambda _: _.func_code.co_argcount,
> (
> lambda _: _,
> lambda _, __: _,
> lambda _, __, ___: _,
> lambda _, __, ___, ____: _,
> lambda _, __, ___, ____, _____: _,
> lambda _, __, ___, ____, _____, ______: _,
> lambda _, __, ___, ____, _____, ______, _______: _,
> lambda _, __, ___, ____, _____, ______, _______, ________: _
> )
> )
> )
>
>
>
> I am in total awe.
>
>
>
>
> --
> Steven
I ran it in IDLE with Python 2.7.8 and got:
Traceback (most recent call last):
File "C:/Python27/helloworld.py", line 39, in <module>
lambda _, __, ___, ____, _____, ______, _______, ________: _
File "C:/Python27/helloworld.py", line 21, in <lambda>
_))) + (_____ << ______) + (_ << ___)
OSError: [Errno 9] Bad file descriptor
[toc] | [prev] | [next] | [standalone]
| From | Steven D'Aprano <steve+comp.lang.python@pearwood.info> |
|---|---|
| Date | 2014-12-21 16:26 +1100 |
| Message-ID | <549659f6$0$13011$c3e8da3$5496439d@news.astraweb.com> |
| In reply to | #82707 |
CM wrote: > On Saturday, December 20, 2014 7:57:19 AM UTC-5, Steven D'Aprano wrote: >> Taken from Ben Kurtovic's blog: >> >> http://benkurtovic.com/2014/06/01/obfuscating-hello-world.html [...] > I ran it in IDLE with Python 2.7.8 and got: > > Traceback (most recent call last): > File "C:/Python27/helloworld.py", line 39, in <module> > lambda _, __, ___, ____, _____, ______, _______, ________: _ > File "C:/Python27/helloworld.py", line 21, in <lambda> > _))) + (_____ << ______) + (_ << ___) > OSError: [Errno 9] Bad file descriptor I believe that IDLE plays funny games with sys.stdout etc., so I'm not surprised that this doesn't run under IDLE. -- Steven
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-21 16:31 +1100 |
| Message-ID | <mailman.17075.1419139878.18130.python-list@python.org> |
| In reply to | #82707 |
On Sun, Dec 21, 2014 at 4:14 PM, CM <cmpython@gmail.com> wrote: > I ran it in IDLE with Python 2.7.8 and got: > > Traceback (most recent call last): > File "C:/Python27/helloworld.py", line 39, in <module> > lambda _, __, ___, ____, _____, ______, _______, ________: _ > File "C:/Python27/helloworld.py", line 21, in <lambda> > _))) + (_____ << ______) + (_ << ___) > OSError: [Errno 9] Bad file descriptor Yes, because - like most "Hello world" programs - it attempts to write to stdout. This interferes with IDLE and the way it captures output for the graphical environment. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | Terry Reedy <tjreedy@udel.edu> |
|---|---|
| Date | 2014-12-21 01:31 -0500 |
| Message-ID | <mailman.17076.1419143491.18130.python-list@python.org> |
| In reply to | #82707 |
On 12/21/2014 12:31 AM, Chris Angelico wrote:
> On Sun, Dec 21, 2014 at 4:14 PM, CM <cmpython@gmail.com> wrote:
>> I ran it in IDLE with Python 2.7.8 and got:
>>
>> Traceback (most recent call last):
>> File "C:/Python27/helloworld.py", line 39, in <module>
>> lambda _, __, ___, ____, _____, ______, _______, ________: _
>> File "C:/Python27/helloworld.py", line 21, in <lambda>
>> _))) + (_____ << ______) + (_ << ___)
>> OSError: [Errno 9] Bad file descriptor
>
> Yes, because - like most "Hello world" programs - it attempts to write
> to stdout. This interferes with IDLE and the way it captures output
> for the graphical environment.
Just to be clear, writing to sys.stdout works fine in Idle.
>>> import sys; sys.stdout.write('hello ')
hello #2.7
In 3.4, the number of chars? bytes? is returned and written also.
Whether you mean something different by 'stdout' or not, I am not sure.
The error is from writing to a non-existent file descriptor.
The os 'file descriptor functions are unix functions. Many but not all
also work on Windows. I do not believe that was true on msdos.
According to the os doc, they do not work on osx. Python io streams are
not required to have a file descriptor.
--
Terry Jan Reedy
[toc] | [prev] | [next] | [standalone]
| From | wxjmfauth@gmail.com |
|---|---|
| Date | 2014-12-21 00:07 -0800 |
| Message-ID | <00049353-d4cc-4bf4-b955-2adae87a9f4a@googlegroups.com> |
| In reply to | #82710 |
Le dimanche 21 décembre 2014 07:32:03 UTC+1, Terry Reedy a écrit : > > Just to be clear, writing to sys.stdout works fine in Idle. Only for narrow minded ascii users (Like plenty of other stuff in Python). jmf
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-21 17:44 +1100 |
| Message-ID | <mailman.17077.1419144290.18130.python-list@python.org> |
| In reply to | #82707 |
On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy <tjreedy@udel.edu> wrote:
> Just to be clear, writing to sys.stdout works fine in Idle.
>>>> import sys; sys.stdout.write('hello ')
> hello #2.7
>
> In 3.4, the number of chars? bytes? is returned and written also.
>
> Whether you mean something different by 'stdout' or not, I am not sure. The
> error is from writing to a non-existent file descriptor.
That's because sys.stdout is replaced. But stdout itself, file
descriptor 1, is not available:
>>> os.fdopen(1,"w").write("Hello, world\n")
Traceback (most recent call last):
File "<pyshell#4>", line 1, in <module>
os.fdopen(1,"w").write("Hello, world\n")
OSError: [Errno 9] Bad file descriptor
This works fine in command-line Python, just not in IDLE. It's not
Windows vs Unix, it's Idle vs terminal.
ChrisA
[toc] | [prev] | [next] | [standalone]
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2014-12-20 23:44 -0800 |
| Message-ID | <f865490a-7afe-4a37-89f3-7b8f84546593@googlegroups.com> |
| In reply to | #82711 |
On Sunday, December 21, 2014 1:45:02 AM UTC-5, Chris Angelico wrote:
> On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy wrote:
> > Just to be clear, writing to sys.stdout works fine in Idle.
> >>>> import sys; sys.stdout.write('hello ')
> > hello #2.7
> >
> > In 3.4, the number of chars? bytes? is returned and written also.
> >
> > Whether you mean something different by 'stdout' or not, I am not sure. The
> > error is from writing to a non-existent file descriptor.
>
> That's because sys.stdout is replaced. But stdout itself, file
> descriptor 1, is not available:
>
> >>> os.fdopen(1,"w").write("Hello, world\n")
> Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> os.fdopen(1,"w").write("Hello, world\n")
> OSError: [Errno 9] Bad file descriptor
>
> This works fine in command-line Python, just not in IDLE. It's not
> Windows vs Unix, it's Idle vs terminal.
>
> ChrisA
Yes, just tested it on the same machine in the terminal and it prints:
Hello, world!
13
Not sure what the 13 is all about. Thanks.
[toc] | [prev] | [next] | [standalone]
| From | CM <cmpython@gmail.com> |
|---|---|
| Date | 2014-12-20 23:45 -0800 |
| Message-ID | <5925e112-33a8-405b-aff6-d5d0bfa012ec@googlegroups.com> |
| In reply to | #82712 |
On Sunday, December 21, 2014 2:44:50 AM UTC-5, CM wrote:
> On Sunday, December 21, 2014 1:45:02 AM UTC-5, Chris Angelico wrote:
> > On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy wrote:
> > > Just to be clear, writing to sys.stdout works fine in Idle.
> > >>>> import sys; sys.stdout.write('hello ')
> > > hello #2.7
> > >
> > > In 3.4, the number of chars? bytes? is returned and written also.
> > >
> > > Whether you mean something different by 'stdout' or not, I am not sure. The
> > > error is from writing to a non-existent file descriptor.
> >
> > That's because sys.stdout is replaced. But stdout itself, file
> > descriptor 1, is not available:
> >
> > >>> os.fdopen(1,"w").write("Hello, world\n")
> > Traceback (most recent call last):
> > File "<pyshell#4>", line 1, in <module>
> > os.fdopen(1,"w").write("Hello, world\n")
> > OSError: [Errno 9] Bad file descriptor
> >
> > This works fine in command-line Python, just not in IDLE. It's not
> > Windows vs Unix, it's Idle vs terminal.
> >
> > ChrisA
>
> Yes, just tested it on the same machine in the terminal and it prints:
>
> Hello, world!
> 13
Actually, there is no comma after Hello.
[toc] | [prev] | [next] | [standalone]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Date | 2014-12-21 10:26 +0200 |
| Message-ID | <87a92hv25z.fsf@elektro.pacujo.net> |
| In reply to | #82713 |
CM <cmpython@gmail.com>: > On Sunday, December 21, 2014 2:44:50 AM UTC-5, CM wrote: >> Hello, world! >> 13 > > Actually, there is no comma after Hello. Do you have a patch? Marko
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2014-12-21 18:46 +1100 |
| Message-ID | <mailman.17078.1419148015.18130.python-list@python.org> |
| In reply to | #82712 |
On Sun, Dec 21, 2014 at 6:44 PM, CM <cmpython@gmail.com> wrote: > Yes, just tested it on the same machine in the terminal and it prints: > > Hello, world! > 13 > > Not sure what the 13 is all about. Thanks. Number of bytes output. It's the return value from the output call - common with low-level APIs. ChrisA
[toc] | [prev] | [next] | [standalone]
| From | albert@spenarnc.xs4all.nl (Albert van der Horst) |
|---|---|
| Date | 2015-01-08 12:43 +0000 |
| Message-ID | <54ae7b75$0$15900$e4fe514c@dreader35.news.xs4all.nl> |
| In reply to | #82711 |
In article <mailman.17077.1419144290.18130.python-list@python.org>,
Chris Angelico <rosuav@gmail.com> wrote:
>On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy <tjreedy@udel.edu> wrote:
>> Just to be clear, writing to sys.stdout works fine in Idle.
>>>>> import sys; sys.stdout.write('hello ')
>> hello #2.7
>>
>> In 3.4, the number of chars? bytes? is returned and written also.
>>
>> Whether you mean something different by 'stdout' or not, I am not sure. The
>> error is from writing to a non-existent file descriptor.
>
>That's because sys.stdout is replaced. But stdout itself, file
>descriptor 1, is not available:
>
>>>> os.fdopen(1,"w").write("Hello, world\n")
>Traceback (most recent call last):
> File "<pyshell#4>", line 1, in <module>
> os.fdopen(1,"w").write("Hello, world\n")
>OSError: [Errno 9] Bad file descriptor
I don't trust sudo because it is too complicated.
(To the point that I removed it from my machine.)
I do
su
..
#
su nobody
Who needs sudo?
It's like instead of telling a 4-year old to stay on the
side walk, learning him to read and then give him a 8-page
brochure about "safety in traffic".
>
>This works fine in command-line Python, just not in IDLE. It's not
>Windows vs Unix, it's Idle vs terminal.
>
>ChrisA
Groetjes Albert
--
Albert van der Horst, UTRECHT,THE NETHERLANDS
Economic growth -- being exponential -- ultimately falters.
albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
[toc] | [prev] | [next] | [standalone]
| From | Chris Angelico <rosuav@gmail.com> |
|---|---|
| Date | 2015-01-08 23:53 +1100 |
| Message-ID | <mailman.17471.1420721626.18130.python-list@python.org> |
| In reply to | #83327 |
On Thu, Jan 8, 2015 at 11:43 PM, Albert van der Horst <albert@spenarnc.xs4all.nl> wrote: > I don't trust sudo because it is too complicated. > (To the point that I removed it from my machine.) > I do > su > .. > # > su nobody > > Who needs sudo? With sudo, you get MUCH finer control. I can grant some user the power to run "sudo eject sr0", but no other commands. I can permit someone to execute any of a large number of commands, all individually logged. I can allow sudo to other users than root, without having to reveal those accounts' passwords (chances are they don't even have passwords). But sure. If you want to cut out complication, dispense with user accounts altogether and run everything as root. That's WAY simpler! ChrisA
[toc] | [prev] | [next] | [standalone]
| From | albert@spenarnc.xs4all.nl (Albert van der Horst) |
|---|---|
| Date | 2015-01-08 13:37 +0000 |
| Message-ID | <54ae880c$0$15929$e4fe514c@dreader35.news.xs4all.nl> |
| In reply to | #83328 |
In article <mailman.17471.1420721626.18130.python-list@python.org>, Chris Angelico <rosuav@gmail.com> wrote: >On Thu, Jan 8, 2015 at 11:43 PM, Albert van der Horst ><albert@spenarnc.xs4all.nl> wrote: >> I don't trust sudo because it is too complicated. >> (To the point that I removed it from my machine.) >> I do >> su >> .. >> # >> su nobody >> >> Who needs sudo? > >With sudo, you get MUCH finer control. I can grant some user the power >to run "sudo eject sr0", but no other commands. I can permit someone >to execute any of a large number of commands, all individually logged. >I can allow sudo to other users than root, without having to reveal >those accounts' passwords (chances are they don't even have >passwords). You've answered it. sudo works for a system with a very knowledgeable system administrator and at least one other user. Not for an electronic engineer who uses Python on his Raspberry Pi. > >But sure. If you want to cut out complication, dispense with user >accounts altogether and run everything as root. That's WAY simpler! I've no problem explaining to an electronic engineer not to do this, while not offering him to do the system administration for him. Having a separate account for system things is a useful distinction that he can grasp and handle easily. Beyond that he is indeed inclined to do everything as root, because what he wants is to make a turnkey to feed his gold fish. So a separate root account is the best protection for a single user system. For quite a considerable part of the systems around, sudo is over the top and stimulates no protection at all, i.e. what I'd call counter productive. I can save a 4-years olds life by imprinting on him to stay on the side walk. > >ChrisA Groetjes Albert -- Albert van der Horst, UTRECHT,THE NETHERLANDS Economic growth -- being exponential -- ultimately falters. albert@spe&ar&c.xs4all.nl &=n http://home.hccnet.nl/a.w.m.van.der.horst
[toc] | [prev] | [next] | [standalone]
| From | Marko Rauhamaa <marko@pacujo.net> |
|---|---|
| Date | 2015-01-08 16:06 +0200 |
| Message-ID | <87bnm9fjtz.fsf@elektro.pacujo.net> |
| In reply to | #83328 |
Chris Angelico <rosuav@gmail.com>: > With sudo, you get MUCH finer control. I can grant some user the power > to run "sudo eject sr0", but no other commands. I can permit someone > to execute any of a large number of commands, all individually logged. I can't remember ever having a need for that. I sometimes use sudo but most times su is the way. > I can allow sudo to other users than root, without having to reveal > those accounts' passwords (chances are they don't even have > passwords). An administrator doesn't need the users' passwords for anything but should be assumed to know them. > But sure. If you want to cut out complication, dispense with user > accounts altogether and run everything as root. That's WAY simpler! In the era of personal computers, the main advantage of the root account is that you can breathe more easily as an ordinary user, as the potential for accidental damage is lower. Marko
[toc] | [prev] | [next] | [standalone]
Page 1 of 7 [1] 2 3 4 5 6 7 Next page →
Back to top | Article view | comp.lang.python
csiph-web