Re: Having trouble getting Hello World to appear

2022-04-21 Thread MRAB
On 2022-04-22 02:57, Greg wrote: I downloaded and installed the auto version of the software. "auto version"? I go to the director C:\google-python-exercises> *python hello.py* I am running Windows. What am I doing incorrectly? I don't know, because you didn't say what did or didn't

Re: Having trouble getting Hello World to appear

2022-04-21 Thread Greg
I downloaded and installed the auto version of the software. I go to the director C:\google-python-exercises> *python hello.py* I am running Windows. What am I doing incorrectly? I had the zip file installed under my One Drive and then moved it to my C drive Patiently waiting, Greg --

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-29 Thread Francesc Elies
Francesc Elies added the comment: I am closing this one, bad-free is in this case a false positive. Starting python and loading a dll which was linked with asan is incorrect. One should asan-rt as earyly as possible, in order to do that in linux one should use LD_PRELOAD but in windows it's

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-25 Thread Francesc Elies
Francesc Elies added the comment: I tested the same script in ubuntu and got the following. ==1361==ASan runtime does not come first in initial library list; you should either link runtime to your application or manually preload it with LD_PRELOAD. While on windows he does not complain

[issue45842] AddressSanitizer: bad-free - hello world c extension

2021-11-19 Thread Francesc Elies
paul.moore, steve.dower, tim.golden, zach.ware priority: normal severity: normal status: open title: AddressSanitizer: bad-free - hello world c extension versions: Python 3.10, Python 3.7, Python 3.8, Python 3.9 ___ Python tracker <https://bugs.python.o

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: For whatever reason, the 3.9 backport, PR-27911, was closed. In any case, we will not edit the code we have replaced. Lyndon, when responding by email, please delete the old text as it is redundant and noisy when your email is added to the web page.

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-28 Thread miss-islington
Change by miss-islington : -- keywords: +patch nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +26458 stage: -> patch review pull_request: https://github.com/python/cpython/pull/27911 ___ Python tracker

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread E. Paine
E. Paine added the comment: Thanks for reporting this issue. This was (very) recently fixed in issue42560 / PR27842. These changes include a new hello world example and can be seen in the 3.10 / 3.11 docs (https://docs.python.org/3.10/library/tkinter.html#a-hello-world-program

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
Lyndon D'Arcy added the comment: Apologies, my original post was unclear. The help(app.quit) which I posted is what we should get when the method isn't clobbered. What Serhiy has posted is what you get after running the example as-is. It shows that after running the example self.quit refers

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I get different result: >>> app.quit >>> help(app.quit) Help on Button in module tkinter object: class Button(Widget) | Button(master=None, cnf={}, **kw) | | Button widget. | ... -- nosy: +serhiy.storchaka

[issue45029] tkinter doc, hello world example - quit button clobbers method

2021-08-27 Thread Lyndon D'Arcy
Application(tk.Frame): def __init__(self, master=None): super().__init__(master) self.master = master self.pack() self.create_widgets() def create_widgets(self): self.hi_there = tk.Button(self) self.hi_there["text"] = "Hello W

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread Serhiy Storchaka
Change by Serhiy Storchaka : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.6 ___ Python tracker ___

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington
miss-islington added the comment: New changeset c843a47007293d8361d0bfd45bfd7169afaa601c by Miss Islington (bot) in branch '3.6': bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160) https://github.com/python/cpython/commit/c843a47007293d8361d0bfd45bfd71

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington
miss-islington added the comment: New changeset f51ef51db686938486bff453e791a3093a1df108 by Miss Islington (bot) in branch '3.7': bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160) https://github.com/python/cpython/commit/f51ef51db686938486bff453e791a3

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +9555 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread miss-islington
Change by miss-islington : -- pull_requests: +9554 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-30 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: New changeset a80af770870937271865b5e2b05a2cfe40b024b6 by Serhiy Storchaka (Daniel Lovell) in branch 'master': bpo-35086: Fix tkinter example "A Simple Hello World Program". (GH-10160) https://github.com/python/cpyt

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-28 Thread Daniel Lovell
Daniel Lovell added the comment: Thanks for the reply xtreak. I agree that changing the example to include main() isn't necessary - I unintentionally included that from my example of the case where the current version isn't functional. In the PR I submitted on Github

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-28 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: Thanks for the report. So the current example in the docs works fine since root is in global namespace. But this seems to be a sensible change to use self.master which references root instead of relying on root to be global though I don't know we

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell
Change by Daniel Lovell : -- keywords: +patch pull_requests: +9484 stage: -> patch review ___ Python tracker ___ ___

[issue35086] tkinter docs: errors in A Simple Hello World Program

2018-10-27 Thread Daniel Lovell
New submission from Daniel Lovell : In the documentation for tkinter, "A Simple Hello World Program" Application class does not hold onto the master Tk() instance as a class attribute. This is a good practice, and newcomers to tkinter would likely have trouble closing the wind

Re: Hello World in Python

2015-01-24 Thread Terry Reedy
would be a Hello World program. Let's see if we can get that to work. So my buddy creates opens the IDE they gave at the workplace, creates a new project, adds a demo.py file, writes one line : print Hello World, hits Run in the IDE and indeed the display is shown at the bottom when it executes

Re: Hello World in Python

2015-01-24 Thread Rustom Mody
On Sunday, January 25, 2015 at 5:36:02 AM UTC+5:30, Chris Angelico wrote: One thing that I really like doing with my Python students (full disclosure: I'm a mentor with www.thinkful.com and am thus at times paid to help people learn Python) is some form of screen-sharing, so I can watch

Re: Hello World in Python

2015-01-24 Thread Chris Angelico
On Sun, Jan 25, 2015 at 6:14 PM, Rustom Mody rustompm...@gmail.com wrote: On Sunday, January 25, 2015 at 5:36:02 AM UTC+5:30, Chris Angelico wrote: One thing that I really like doing with my Python students (full disclosure: I'm a mentor with www.thinkful.com and am thus at times paid to help

Re: Hello World in Python

2015-01-24 Thread Christopher J. Pisz
learning any new language, I said, the first step would be a Hello World program. Let's see if we can get that to work. So my buddy creates opens the IDE they gave at the workplace, creates a new project, adds a demo.py file, writes one line : print Hello World, hits Run in the IDE and indeed the display

Hello World in Python

2015-01-24 Thread Christopher J. Pisz
I am trying to help a buddy out. I am a C++ on Windows guy. This buddy of mine is learning Python at work on a Mac. I figured I could contribute with non language specific questions and such. When learning any new language, I said, the first step would be a Hello World program. Let's see

Re: Hello World in Python

2015-01-24 Thread Chris Angelico
On Sun, Jan 25, 2015 at 10:53 AM, Christopher J. Pisz cp...@austin.rr.com wrote: So my buddy creates opens the IDE they gave at the workplace, creates a new project, adds a demo.py file, writes one line : print Hello World, hits Run in the IDE and indeed the display is shown at the bottom when

Re: Hello World

2015-01-18 Thread Marko Rauhamaa
Michael Torrie torr...@gmail.com: Most password policies are the wrong solution. I believe passwords themselves are the wrong solution. I believe in a physical, government-issue object capable of challenge-response. It can then be beefed up with extra measures depending on the need. Marko --

Re: Hello World

2015-01-18 Thread Michael Ströder
Chris Angelico wrote: Want security? Push the encryption and authentication down to a lower layer, and save yourself the trouble. Yes. And now for the next level: How to prevent unauthorized machines to connect to your network… Ciao, Michael. --

Re: Hello World

2015-01-18 Thread Chris Angelico
On Mon, Jan 19, 2015 at 12:35 AM, Michael Ströder mich...@stroeder.com wrote: Chris Angelico wrote: Want security? Push the encryption and authentication down to a lower layer, and save yourself the trouble. Yes. And now for the next level: How to prevent unauthorized machines to connect to

Re: Hello World

2015-01-18 Thread Michael Ströder
Chris Angelico wrote: On Mon, Jan 19, 2015 at 12:35 AM, Michael Ströder mich...@stroeder.com wrote: Chris Angelico wrote: Want security? Push the encryption and authentication down to a lower layer, and save yourself the trouble. Yes. And now for the next level: How to prevent

Re: Hello World

2015-01-18 Thread Marko Rauhamaa
Michael Ströder mich...@stroeder.com: Marko Rauhamaa wrote: I believe in a physical, government-issue object Did you forget the smiley? Or where were you during the last 1,5 years? You can juggle the issues all you want. In the end, there's no escaping the

Re: Hello World

2015-01-18 Thread Chris Angelico
On Sun, Jan 18, 2015 at 9:03 PM, Marko Rauhamaa ma...@pacujo.net wrote: Michael Torrie torr...@gmail.com: Most password policies are the wrong solution. I believe passwords themselves are the wrong solution. I believe in a physical, government-issue object capable of challenge-response. It

Re: Hello World

2015-01-18 Thread Chris Angelico
On Sun, Jan 18, 2015 at 1:13 PM, Michael Torrie torr...@gmail.com wrote: Like many of you I use a password manager these days. It's pretty slick. But really it shows the absurdity of the situation. Instead of passwords we should all just use private/public keypairs and store the private

Re: Hello World

2015-01-18 Thread Michael Torrie
On 01/17/2015 05:04 PM, Chris Angelico wrote: Related to that is another reason I've heard: if your password is figured out by some means other than hash theft [1], there's a maximum of N days to make use of it. But let's face it, if someone gets hold of one of your accounts, it won't take

Re: Hello World

2015-01-18 Thread Roy Smith
In article 54bb2c5f$0$12977$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: You know that two-factor authentication doesn't offer any real security against Man In The Middle attacks? The fact that TFA doesn't solve all problems doesn't change

Re: Hello World

2015-01-18 Thread Michael Ströder
Steven D'Aprano wrote: Mark Lawrence wrote: Bah humbug, this has reminded me of doing secure work whereby each individual had two passwords, both of which had to be changed every thirty days, and rules were enforced so you couldn't just increment the number at the end of a word or similar.

Re: Hello World

2015-01-18 Thread Michael Ströder
Michael Torrie wrote: Like many of you I use a password manager these days. It's pretty slick. But really it shows the absurdity of the situation. Instead of passwords we should all just use private/public keypairs and store the private keys in a digital wallet. Forget this password

Re: Hello World

2015-01-18 Thread Jason Friedman
Password maximum age is the wrong solution to a few problems, and is itself a problem. Don't do it. Bruce Schneier (mostly) agrees with you: https://www.schneier.com/blog/archives/2010/11/changing_passwo.html. -- https://mail.python.org/mailman/listinfo/python-list

Re: Hello World

2015-01-18 Thread Michael Ströder
Marko Rauhamaa wrote: I believe in a physical, government-issue object Did you forget the smiley? Or where were you during the last 1,5 years? Ciao, Michael. -- https://mail.python.org/mailman/listinfo/python-list

Re: Hello World

2015-01-18 Thread Michael Ströder
Marko Rauhamaa wrote: Michael Ströder mich...@stroeder.com: Marko Rauhamaa wrote: I believe in a physical, government-issue object Did you forget the smiley? Or where were you during the last 1,5 years? You can juggle the issues all you want. In the end,

Re: Hello World

2015-01-18 Thread Chris Angelico
On Mon, Jan 19, 2015 at 2:48 AM, Michael Ströder mich...@stroeder.com wrote: For instance, someone could join my wifi network - all they need is the WPA2 PSK, which is well known around the place - and use/abuse our internet connection; but they couldn't access my PostgreSQL databases, because

Re: Hello World

2015-01-18 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: On Sun, Jan 18, 2015 at 9:03 PM, Marko Rauhamaa ma...@pacujo.net wrote: I believe passwords themselves are the wrong solution. I believe in a physical, government-issue object capable of challenge-response. It can then be beefed up with extra measures depending

Re: Hello World

2015-01-17 Thread Albert van der Horst
In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication, dispense with user accounts altogether and run everything as root. That's WAY simpler! I didn't except this strawman argument from you. Of

Re: Hello World

2015-01-17 Thread Chris Angelico
On Sun, Jan 18, 2015 at 1:51 AM, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication, dispense with user accounts altogether and run

Re: Hello World

2015-01-17 Thread Albert van der Horst
In article mailman.17481.1420737102.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Fri, Jan 9, 2015 at 4:02 AM, Steve Hayes hayes...@telkomsa.net wrote: On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: I don't trust sudo because it

Re: Hello World

2015-01-17 Thread cl
Chris Angelico ros...@gmail.com wrote: On Sun, Jan 18, 2015 at 1:51 AM, Albert van der Horst alb...@spenarnc.xs4all.nl wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication,

Re: Hello World

2015-01-17 Thread Michael Torrie
On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication, dispense with user accounts altogether and run everything as root. That's WAY

Re: Hello World

2015-01-17 Thread cl
Michael Torrie torr...@gmail.com wrote: On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication, dispense with user accounts

Re: Hello World

2015-01-17 Thread Mark Lawrence
On 17/01/2015 16:47, c...@isbd.net wrote: Michael Torrie torr...@gmail.com wrote: On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you want to cut out complication,

Re: Hello World

2015-01-17 Thread Albert van der Horst
In article h9gqob-c3e@esprimo.zbmc.eu, c...@isbd.net wrote: Michael Torrie torr...@gmail.com wrote: On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: SNIP But sure. If you

Re: Hello World

2015-01-17 Thread Michael Ströder
alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: In article h9gqob-c3e@esprimo.zbmc.eu, c...@isbd.net wrote: Michael Torrie torr...@gmail.com wrote: On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico

Re: Hello World

2015-01-17 Thread Steven D'Aprano
Mark Lawrence wrote: Bah humbug, this has reminded me of doing secure work whereby each individual had two passwords, both of which had to be changed every thirty days, and rules were enforced so you couldn't just increment the number at the end of a word or similar. I hate and despise

Re: Hello World

2015-01-17 Thread Devin Jeanpierre
Sorry for necro. On Sat, Dec 20, 2014 at 10:44 PM, Chris Angelico ros...@gmail.com wrote: On Sun, Dec 21, 2014 at 5:31 PM, Terry Reedy tjre...@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

Re: Hello World

2015-01-17 Thread Michael Torrie
On 01/17/2015 11:47 AM, Michael Ströder wrote: sudo makes administrators careless, lazy and it is not simple at all. Admins must have separate accounts with separate credentials for administrative work and must be careful when using an administrative account. Right. This is not a bad idea

Re: Hello World

2015-01-17 Thread Steven D'Aprano
Albert van der Horst wrote: In article h9gqob-c3e@esprimo.zbmc.eu, c...@isbd.net wrote: Michael Torrie torr...@gmail.com wrote: On 01/17/2015 07:51 AM, Albert van der Horst wrote: In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote:

Re: Hello World

2015-01-17 Thread Steven D'Aprano
Roy Smith wrote: In article 54bb1c83$0$12979$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Even that doesn't protect you, because your security is controlled by websites and banks etc. with stupid security policies. E.g. I am forced to

Re: Hello World

2015-01-17 Thread Chris Angelico
On Sun, Jan 18, 2015 at 2:50 PM, Tim Chase python.l...@tim.thechases.com wrote: You think that's bad, one million Google Authenticator 2-factor verification codes were leaked: https://twitter.com/paulmutton/status/509991378647277568 Those hackers are a wily bunch. ;-)

Re: Hello World

2015-01-17 Thread Chris Angelico
On Sun, Jan 18, 2015 at 10:46 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: The merely poor reason given by the more thoughtful sys admins is, if the password hashes get stolen, the hacker has a maximum of N days (and possibly less) to crack the hashes and recover the

Re: Hello World

2015-01-17 Thread Tim Chase
On 2015-01-17 22:18, Roy Smith wrote: Tell me about it. I have an E-Trade ATM card. When I first got it, I set it up with a 6 digit PIN. I was shocked to discover some time later that it actually only looks at the first 4 digits. And, no, I'm not talking *characters*, I'm talking *digits*.

Re: Hello World

2015-01-17 Thread Roy Smith
In article 54bb1c83$0$12979$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Even that doesn't protect you, because your security is controlled by websites and banks etc. with stupid security policies. E.g. I am forced to deal with one bank that

Re: Hello World

2015-01-17 Thread Chris Angelico
On Sun, Jan 18, 2015 at 2:45 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: (I am very cynical about most of the security features the banks are pushing for, since in my opinion they are more about giving the banks plausible deniablity so they can push responsibility for

Re: Hello World

2015-01-08 Thread Albert van der Horst
: 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

Re: Hello World

2015-01-08 Thread Chris Angelico
On Thu, Jan 8, 2015 at 11:43 PM, Albert van der Horst alb...@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

Re: Hello World

2015-01-08 Thread Albert van der Horst
In article mailman.17471.1420721626.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Thu, Jan 8, 2015 at 11:43 PM, Albert van der Horst alb...@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

Re: Hello World

2015-01-08 Thread Marko Rauhamaa
Chris Angelico ros...@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

Re: Hello World

2015-01-08 Thread Michael Torrie
On 01/08/2015 10:02 AM, Steve Hayes wrote: On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: I don't trust sudo because it is too complicated. (To the point that I removed it from my machine.) I do How do you do that? I avoided Ubuntu because it had

Re: Hello World

2015-01-08 Thread Marko Rauhamaa
alister alister.nospam.w...@ntlworld.com: On Thu, 08 Jan 2015 16:06:16 +0200, Marko Rauhamaa wrote: An administrator doesn't need the users' passwords for anything but should be assumed to know them. The administrator may be able to change them but he should NEVER know them (or need to)!

Re: Hello World

2015-01-08 Thread alister
On Thu, 08 Jan 2015 16:31:22 +0200, Marko Rauhamaa wrote: alister alister.nospam.w...@ntlworld.com: On Thu, 08 Jan 2015 16:06:16 +0200, Marko Rauhamaa wrote: An administrator doesn't need the users' passwords for anything but should be assumed to know them. The administrator may be able

Re: Hello World

2015-01-08 Thread Michael Ströder
Chris Angelico wrote: With sudo, you get MUCH finer control. But it's very hard, almost impossible, to really implement fine-grained control with sudo. Too many programs provide shell exits. Well, it's off-topic here. How about taking this to news:comp.security.unix ? Ciao, Michael. --

Re: Hello World

2015-01-08 Thread alister
On Thu, 08 Jan 2015 16:06:16 +0200, Marko Rauhamaa wrote: Chris Angelico ros...@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

Re: Hello World

2015-01-08 Thread Steve Hayes
On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: I don't trust sudo because it is too complicated. (To the point that I removed it from my machine.) I do How do you do that? I avoided Ubuntu because it had sudo, and then discovered that Fedora had it as well.

Re: Hello World

2015-01-08 Thread Chris Angelico
On Fri, Jan 9, 2015 at 4:02 AM, Steve Hayes hayes...@telkomsa.net wrote: On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: I don't trust sudo because it is too complicated. (To the point that I removed it from my machine.) I do How do you do that? I

Re: Hello World

2015-01-08 Thread Grant Edwards
On 2015-01-08, Michael Torrie torr...@gmail.com wrote: On 01/08/2015 10:02 AM, Steve Hayes wrote: On 08 Jan 2015 12:43:33 GMT, alb...@spenarnc.xs4all.nl (Albert van der Horst) wrote: I don't trust sudo because it is too complicated. (To the point that I removed it from my machine.) I do

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-26 Thread alister
On Fri, 26 Dec 2014 15:13:25 +1100, Steven D'Aprano wrote: Deep in the brain, well underneath the level of modern languages and consciousness, there is a deeper machine language of the brain. If you can write instructions in this machine language, you can control people's brains. Back in

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-25 Thread alex23
On 24/12/2014 2:20 AM, Grant Edwards wrote: And even _with_ all the technical jibber-jabber, none of it explained or justified the whole writing a virus to infect the brain through the optic nerve thing which might just have well been magick and witches. While I love SNOW CRASH, I do think

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-25 Thread alex23
On 24/12/2014 9:50 PM, alister wrote: what feels like 3 or 4 chapters in it is still trying to set the scene, an exercise in stylish writing with very little content so far. even early scifi written for magazines on a per word basis were not this excessive (because if they were they would

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-25 Thread Steven D'Aprano
alex23 wrote: On 24/12/2014 2:20 AM, Grant Edwards wrote: And even _with_ all the technical jibber-jabber, none of it explained or justified the whole writing a virus to infect the brain through the optic nerve thing which might just have well been magick and witches. While I love SNOW

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-24 Thread alister
On Tue, 23 Dec 2014 16:20:10 +, Grant Edwards wrote: On 2014-12-23, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Tue, Dec 23, 2014 at 12:15 AM, Roy Smith r...@panix.com wrote: If I really didn't trust something, I'd go to AWS and spin up one of

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-23 Thread Grant Edwards
On 2014-12-23, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Tue, Dec 23, 2014 at 12:15 AM, Roy Smith r...@panix.com wrote: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and run it there :-) How

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-23 Thread Rustom Mody
On Tuesday, December 23, 2014 9:50:22 PM UTC+5:30, Grant Edwards wrote: And even _with_ all the technical jibber-jabber, none of it explained or justified the whole writing a virus to infect the brain through the optic nerve thing which might just have well been magick and witches. You find

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-23 Thread Steven D'Aprano
Rustom Mody wrote: On Tuesday, December 23, 2014 9:50:22 PM UTC+5:30, Grant Edwards wrote: And even _with_ all the technical jibber-jabber, none of it explained or justified the whole writing a virus to infect the brain through the optic nerve thing which might just have well been magick

Re: OFF TOPIC Snow Crash [was Re: Hello World]

2014-12-23 Thread Steven D'Aprano
Grant Edwards wrote: On 2014-12-23, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Chris Angelico wrote: On Tue, Dec 23, 2014 at 12:15 AM, Roy Smith r...@panix.com wrote: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and

Re: Hello World

2014-12-22 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: Level 0: Why implement your own crypto?!? Licensing concerns come to mind. For example, the reference implementations of MD5 [RFC1321] and SHA1 [RFC3174] are not in the public domain. Marko -- https://mail.python.org/mailman/listinfo/python-list

Re: Hello World

2014-12-22 Thread Chris Angelico
On Mon, Dec 22, 2014 at 7:52 PM, Marko Rauhamaa ma...@pacujo.net wrote: Chris Angelico ros...@gmail.com: Level 0: Why implement your own crypto?!? Licensing concerns come to mind. For example, the reference implementations of MD5 [RFC1321] and SHA1 [RFC3174] are not in the public domain.

Re: Hello World

2014-12-22 Thread Steven D'Aprano
Steve Hayes wrote: Yes, my initial reaction was that's awesome. And my second thought was that it was scary. I ran it. It worked, and printed Hello world. I was awed. But what if I had run it and it reformatted my hard disk? How would I have known that it would or wouldn't do

Re: Hello World

2014-12-22 Thread Marko Rauhamaa
Steven D'Aprano steve+comp.lang.pyt...@pearwood.info: Steve Hayes wrote: But what if I had run it and it reformatted my hard disk? How would I have known that it would or wouldn't do that? That's why I didn't run it myself :-) Well, I admit having run yum install python3 as root.

Re: Hello World

2014-12-22 Thread Roy Smith
in such cases where you deliberately want to write obfuscated code for production use. Yes, my initial reaction was that's awesome. And my second thought was that it was scary. I ran it. It worked, and printed Hello world. I was awed. But what if I had run it and it reformatted my hard disk

Re: Hello World

2014-12-22 Thread Roy Smith
In article 5497e1d5$0$12978$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Steve Hayes wrote: Yes, my initial reaction was that's awesome. And my second thought was that it was scary. I ran it. It worked, and printed Hello world. I

Re: Hello World

2014-12-22 Thread Chris Angelico
On Tue, Dec 23, 2014 at 12:15 AM, Roy Smith r...@panix.com wrote: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and run it there :-) How do you know it won't create console output that stroboscopically infects you with a virus through your

Re: Hello World

2014-12-22 Thread Marko Rauhamaa
Roy Smith r...@panix.com: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and run it there :-) Speaking of trust and AWS, Amazon admins—and by extension, the NSA—have full access to the virtual machines. That needs to be taken into account

Re: Hello World

2014-12-22 Thread Roy Smith
In article 87egrrrf2i@elektro.pacujo.net, Marko Rauhamaa ma...@pacujo.net wrote: Roy Smith r...@panix.com: If I really didn't trust something, I'd go to AWS and spin up one of their free-tier micro instances and run it there :-) Speaking of trust and AWS, Amazon admins—and by

Re: Hello World

2014-12-22 Thread Steven D'Aprano
Roy Smith wrote: If I wanted to write something evil, I wouldn't write it to look obfuscated.  I'd write it to look like it did something useful. That's an order of magnitude harder than merely obfuscating code. If you wanted to write something evil, better to just rely on the fact that most

Re: Hello World

2014-12-22 Thread Jussi Piitulainen
Steven D'Aprano writes: Don't try this at home! # download_naked_pictures_of_jennifer_lawrence.py import os os.system(rm ――rf /) Not sure what that character is (those characters are) but it's not (they aren't) the hyphen that rm expects in its options, so: os.system(rm ――rf /) rm:

Re: Hello World

2014-12-22 Thread Skip Montanaro
On Mon, Dec 22, 2014 at 9:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Don't try this at home! # download_naked_pictures_of_jennifer_lawrence.py import os os.system(rm ――rf /) And because Steven *knows* some fool will try this at home, he cripples the rm command. Now

Re: Hello World

2014-12-22 Thread Chris Warrick
On Mon, Dec 22, 2014 at 4:36 PM, Jussi Piitulainen jpiit...@ling.helsinki.fi wrote: Steven D'Aprano writes: Don't try this at home! # download_naked_pictures_of_jennifer_lawrence.py import os os.system(rm ――rf /) Not sure what that character is (those characters are) but it's not (they

Re: Hello World

2014-12-22 Thread Grant Edwards
On 2014-12-21, Tony the Tiger tony@tiger.invalid wrote: On Sat, 20 Dec 2014 23:57:08 +1100, Steven D'Aprano wrote: I am in total awe. I'm not. It has no real value. Write your code like that and you'll soon be looking for a new job. I think you'll find that people who know enough to write

Re: Hello World

2014-12-22 Thread Grant Edwards
On 2014-12-21, Roy Smith r...@panix.com wrote: In article 54974ed7$0$12986$c3e8da3$54964...@news.astraweb.com, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Obviously you don't write obfuscated code like this for production use, except in such cases where you deliberately want

Re: Hello World

2014-12-22 Thread Grant Edwards
code for production use. Yes, my initial reaction was that's awesome. And my second thought was that it was scary. I ran it. It worked, and printed Hello world. I was awed. But what if I had run it and it reformatted my hard disk? How would I have known that it would or wouldn't do

Re: Hello World

2014-12-22 Thread Steven D'Aprano
Skip Montanaro wrote: On Mon, Dec 22, 2014 at 9:22 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Don't try this at home! # download_naked_pictures_of_jennifer_lawrence.py import os os.system(rm ――rf /) And because Steven *knows* some fool will try this at home, he

  1   2   3   >