Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Random832
On Sun, Apr 17, 2016, at 01:01, eryk sun wrote: > It doesn't support fonts that mix half-width and full-width glyphs. This is the most baffling bit to me. I mean, it _has_ to, for Chinese, Japanese, and Korean users. This support obviously exists in the code. Why not extend it to everyone, inste

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread eryk sun
On Sat, Apr 16, 2016 at 8:30 PM, Tim Chase wrote: > On 2016-04-16 19:39, eryk sun wrote: >> On Sat, Apr 16, 2016 at 4:50 PM, Tim Chase wrote: >> > I also do some editing/diffing within a cmd.exe window on Windows >> > which is limited to 80 characters unless you do some hijinks in >> > the setting

Re: Installation problem

2016-04-16 Thread boB Stepp
On Sat, Apr 16, 2016 at 2:16 PM, Jurell wrote: > I installed the Python program version 3.5.1 32 bit and the IDE I am going > to use is Wing IDE 101. The problem when I tried installing the python > program was as follows: "The program can`t start because > api-ms-win-crt-runtime-l1-1-0.dll is m

Re: error with tkinter, help

2016-04-16 Thread Terry Reedy
On 4/16/2016 9:31 PM, blueridicul...@gmail.com wrote: So I was reading https://wiki.python.org/moin/TkInter for help. > I got to step 3 under "Checking your Tkinter support." > Nothing happens when I do steps 1 or 2, and when I do step 3, > I get this error: Traceback (most recent call last):

Re: Fraud

2016-04-16 Thread Mario R. Osorio
Mel: Portuguese for honey Drosis: from Greek hidrōs; to sweat -- https://mail.python.org/mailman/listinfo/python-list

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Dan Sommers
On Sun, 17 Apr 2016 11:48:11 +1000, Steven D'Aprano wrote: > On Sun, 17 Apr 2016 09:35 am, Dan Sommers wrote: > >> We (this mailing list, or maybe it was the python-ideas mailing list) >> just had a thread about non-ASCII characters in identifiers. One of >> the main argument against is the conf

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 1:44 PM, Rustom Mody wrote: > Thats a strange self-contradiction. I wrote this: > http://blog.languager.org/2012/10/layout-imperative-in-functional.html > to make the case against PEP8 style line length strictures. > Which has the SAME code formatted in two styles: > > --

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Rustom Mody
On Saturday, April 16, 2016 at 10:22:10 PM UTC+5:30, Marko Rauhamaa wrote: > Larry Martell : > > > I have worked for many companies where you are required to get a clean > > run of pep8 on your code before your pull request will even be > > considered for approval. I don't agree with this at all,

Introducing the secrets module

2016-04-16 Thread Steven D'Aprano
I'm pleased to announce a new standard library module for Python 3.6 and better, to aid in generating secure tokens for authentication and other secrets. Last year, the founder of OpenBSD Theo de Raadt contacted Guido van Rossum with concerns that the Python standard library made it too easy for p

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Random832
On Sat, Apr 16, 2016, at 21:30, Tim Chase wrote: > On 2016-04-16 19:39, eryk sun wrote: > > On Sat, Apr 16, 2016 at 4:50 PM, Tim Chase wrote: > > > I also do some editing/diffing within a cmd.exe window on Windows > > > which is limited to 80 characters unless you do some hijinks in > > > the setti

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Steven D'Aprano
On Sun, 17 Apr 2016 09:35 am, Dan Sommers wrote: > We (this mailing list, or maybe it was the python-ideas mailing list) > just had a thread about non-ASCII characters in identifiers. One of the > main argument against is the confusables (A vs Α vs А). Sufficient > tooling, however, could render

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Steven D'Aprano
On Sun, 17 Apr 2016 06:44 am, Random832 wrote: > On Sat, Apr 16, 2016, at 16:21, Ben Finney wrote: >> * Oh, come on, no-one would use U+000C FORM FEED in source code. > > Some text editors have shortcuts to navigate to the previous/next line > that begins with a form feed. Are you saying that's

error with tkinter, help

2016-04-16 Thread blueridiculous
So I was reading https://wiki.python.org/moin/TkInter for help. I got to step 3 under "Checking your Tkinter support." Nothing happens when I do steps 1 or 2, and when I do step 3, I get this error: " Traceback (most recent call last): File "", line 301, in runcode File "", line 1, in Fil

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Tim Chase
On 2016-04-16 19:39, eryk sun wrote: > On Sat, Apr 16, 2016 at 4:50 PM, Tim Chase wrote: > > I also do some editing/diffing within a cmd.exe window on Windows > > which is limited to 80 characters unless you do some hijinks in > > the settings to expand it. > > Try `mode con cols=120 lines=30`. Y

Re: Fraud

2016-04-16 Thread Steven D'Aprano
On Sun, 17 Apr 2016 03:12 am, Mel Drosis wrote: > > My phone my accounts my home network have all been affected because of > someone using coding from Python and Linux and GitHub and json. I don't > even know what this stuff is but how do I get rid of it all. It's ruined > my life. Sent from my i

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-16 Thread Steven D'Aprano
On Sun, 17 Apr 2016 02:09 am, Dennis Lee Bieber wrote: > VMS had a whole slew of "no error" status values (essentially all > positive odd integers were "success", but different values carried > additional information. 1 = success 3 = success against all odds 5 = success but at great cost 7 = su

Re: Fraud

2016-04-16 Thread Random832
On Sat, Apr 16, 2016, at 20:20, Joel Goldstick wrote: > As it turns out, the OP hasn't engaged in any further back and forth, > which to me enforces my original post. It's entirely possible he's not subscribed to the mailing list. -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Ben Bacarisse
Chris Angelico writes: > On Sun, Apr 17, 2016 at 9:25 AM, Ben Bacarisse wrote: >> Dennis Lee Bieber writes: >> >>> I still miss the Amiga -- in which one could /push/ a window to the >>> back of the stack while still retaining input focus! Made it nice for >>> transcribing stuff from a v

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread MRAB
On 2016-04-17 00:11, Chris Angelico wrote: On Sun, Apr 17, 2016 at 9:02 AM, Dennis Lee Bieber wrote: I still miss the Amiga -- in which one could /push/ a window to the back of the stack while still retaining input focus! Made it nice for transcribing stuff from a visible window to a te

Re: Fraud

2016-04-16 Thread Joel Goldstick
On Sat, Apr 16, 2016 at 7:49 PM, Gene Heskett wrote: > On Saturday 16 April 2016 18:02:50 Joel Goldstick wrote: > >> On Sat, Apr 16, 2016 at 5:23 PM, Chris Angelico > wrote: >> > On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list >> > >> > wrote: >> >> My phone my accounts my home netwo

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Tim Chase
On 2016-04-16 19:02, Dennis Lee Bieber wrote: > I still miss the Amiga -- in which one could /push/ a > window to the back of the stack while still retaining input focus! > Made it nice for transcribing stuff from a visible window to a text > input region while it was obscured. What OS (or i

Re: Fraud

2016-04-16 Thread Gene Heskett
On Saturday 16 April 2016 18:02:50 Joel Goldstick wrote: > On Sat, Apr 16, 2016 at 5:23 PM, Chris Angelico wrote: > > On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list > > > > wrote: > >> My phone my accounts my home network have all been affected because > >> of someone using coding

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
The 80 column limit probably helps protect us from the singularity. Once the robots take over we will have code with a digestible amount of logic per line and can fix what we have caused. In other words, Java is only armoring the robots against us for the inevitable battle. On Sat, Apr 16, 2016

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Dan Sommers
On Sun, 17 Apr 2016 07:34:20 +1000, Chris Angelico wrote: > On Sun, Apr 17, 2016 at 7:22 AM, Dan Sommers wrote: >> On Sat, 16 Apr 2016 16:44:30 -0400, Random832 wrote: >> >>> On Sat, Apr 16, 2016, at 16:21, Ben Finney wrote: * Oh, come on, no-one would use U+000C FORM FEED in source code. >>

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 9:25 AM, Ben Bacarisse wrote: > Dennis Lee Bieber writes: > >> I still miss the Amiga -- in which one could /push/ a window to the >> back of the stack while still retaining input focus! Made it nice for >> transcribing stuff from a visible window to a text input re

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Ben Bacarisse
Dennis Lee Bieber writes: > I still miss the Amiga -- in which one could /push/ a window to the > back of the stack while still retaining input focus! Made it nice for > transcribing stuff from a visible window to a text input region while it > was obscured. That was commonly available on

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Grant Edwards
On 2016-04-16, Dennis Lee Bieber wrote: > I still miss the Amiga -- in which one could /push/ a window to the > back of the stack while still retaining input focus! Made it nice for > transcribing stuff from a visible window to a text input region while it > was obscured. I do that all the time

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 9:02 AM, Dennis Lee Bieber wrote: > I still miss the Amiga -- in which one could /push/ a window to the > back of the stack while still retaining input focus! Made it nice for > transcribing stuff from a visible window to a text input region while it > was obscured.

Installation problem

2016-04-16 Thread Jurell
Dear Sir/Madam I installed the Python program version 3.5.1 32 bit and the IDE I am going to use is Wing IDE 101. The problem when I tried installing the python program was as follows: "The program can`t start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your computer. Try reinstal

Re: how to setup for localhost:8000

2016-04-16 Thread wrh8609
On Friday, April 15, 2016 at 3:04:09 PM UTC-4, Pierre Quentel wrote: > Le jeudi 14 avril 2016 22:50:33 UTC+2, wrh...@gmail.com a écrit : > > On Thursday, April 14, 2016 at 2:23:36 PM UTC-4, Andrew Farrell wrote: > > > What happens when you type > > > > > > http://localhost:8000 > > > > > > Into t

Re: Fraud

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 8:21 AM, Erik wrote: > On 16/04/16 23:02, Joel Goldstick wrote: >>> >>> On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list >>> wrote: My phone my accounts my home network have all been affected because of someone using coding from Python and Li

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Marko Rauhamaa
Tim Delaney : > Personally, I've given up on 80 characters (or even 120 in rare cases) > for Java code (esp method declarations), where just specifying the > generics can often take almost that much. Java generics ruined a perfectly good language. I mean: Map> customersOfAccountManager =

Re: Fraud

2016-04-16 Thread Michael Torrie
On 04/16/2016 04:21 PM, Erik wrote: > On 16/04/16 23:02, Joel Goldstick wrote: >>> On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list >>> wrote: My phone my accounts my home network have all been affected because of someone using coding from Python and Linux and GitHub and

Re: Fraud

2016-04-16 Thread Erik
On 16/04/16 23:02, Joel Goldstick wrote: On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list wrote: My phone my accounts my home network have all been affected because of someone using coding from Python and Linux and GitHub and json. I don't even know what this stuff is but how do I

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Tim Delaney
On 17 April 2016 at 07:50, Tim Chase wrote: > On 2016-04-17 06:08, Ben Finney wrote: > > Larry Martell writes: > > > if we still had 1970's 80 character TTYs that would matter but on > > > my 29" 1920x1080 screen it doesn't. > > > > Larry, you've been around long enough to know that's not an arg

Re: Fraud

2016-04-16 Thread Joel Goldstick
On Sat, Apr 16, 2016 at 5:23 PM, Chris Angelico wrote: > On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list > wrote: >> >> My phone my accounts my home network have all been affected because of >> someone using coding from Python and Linux and GitHub and json. I don't even >> know what

Python2.7 win64 --- cannot install the package of scipy

2016-04-16 Thread ykt2271707491
I failed to install the package of scipy on Python2.7(win64). 1. I tried the direct way that use cmd--pip install scripy. The result shows that it failed with error code 1 in c:\tyk\appdata\local\temp\pip-build-an9fye\scipy\. 2. I tried to install in another way. I download the scipy-0.17.0-cp

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Tim Chase
On 2016-04-17 06:08, Ben Finney wrote: > Larry Martell writes: > > if we still had 1970's 80 character TTYs that would matter but on > > my 29" 1920x1080 screen it doesn't. > > Larry, you've been around long enough to know that's not an argument > against a limited line length for code. It is not

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 7:22 AM, Dan Sommers wrote: > On Sat, 16 Apr 2016 16:44:30 -0400, Random832 wrote: > >> On Sat, Apr 16, 2016, at 16:21, Ben Finney wrote: >>> * Oh, come on, no-one would use U+000C FORM FEED in source code. >> >> Some text editors have shortcuts to navigate to the previous/

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Dan Sommers
On Sat, 16 Apr 2016 16:44:30 -0400, Random832 wrote: > On Sat, Apr 16, 2016, at 16:21, Ben Finney wrote: >> * Oh, come on, no-one would use U+000C FORM FEED in source code. > > Some text editors have shortcuts to navigate to the previous/next line > that begins with a form feed. Add these to the

Re: Fraud

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 3:12 AM, Mel Drosis via Python-list wrote: > > My phone my accounts my home network have all been affected because of > someone using coding from Python and Linux and GitHub and json. I don't even > know what this stuff is but how do I get rid of it all. It's ruined my li

Fraud

2016-04-16 Thread Mel Drosis via Python-list
My phone my accounts my home network have all been affected because of someone using coding from Python and Linux and GitHub and json. I don't even know what this stuff is but how do I get rid of it all. It's ruined my life. Sent from my iPhone -- https://mail.python.org/mailman/listinfo/pytho

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Random832
On Sat, Apr 16, 2016, at 16:21, Ben Finney wrote: > * Oh, come on, no-one would use U+000C FORM FEED in source code. Some text editors have shortcuts to navigate to the previous/next line that begins with a form feed. -- https://mail.python.org/mailman/listinfo/python-list

Re: How to parameterize unittests

2016-04-16 Thread Antoon Pardon
Op 15-04-16 om 18:47 schreef Steven D'Aprano: > On Fri, 15 Apr 2016 10:48 pm, Antoon Pardon wrote: > >> Starting from this: >> >> class Test_AVLTree(unittest.TestCase): >> >> def test_empty_tree_is_false(self): >> instance = avltree() >> self.assertFalse(insta

Re: Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Chris Angelico
On Sun, Apr 17, 2016 at 6:21 AM, Ben Finney wrote: > Great suggestion. (Do you have a blog on which you could post an article > like this?) I do. I'll let people contribute for a while, and then I'll post it on rosuav.blogspot.com. Thanks for the additions! ChrisA -- https://mail.python.org/ma

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-16 Thread Ben Finney
Dennis Lee Bieber writes: > On Sat, 16 Apr 2016 16:56:10 +1000, Ben Finney > declaimed the following: > > >It seems strange that even the constant for “no error” exit status > >should be defined only for Unix :-/ > > VMS had a whole slew of "no error" status values That's fine; those valu

Falsehoods People Believe about PEP 8 (was: Guido sees the light: PEP 8 updated)

2016-04-16 Thread Ben Finney
Chris Angelico writes: > Maybe we need a blog post "Falsehoods Programmers Believe About PEP > 8", along the lines of the ones about time and names. Great suggestion. (Do you have a blog on which you could post an article like this?) > Remember, every one of these is false. > > * All Python cod

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Ben Finney
Larry Martell writes: > if we still had 1970's 80 character TTYs that would matter but on my > 29" 1920x1080 screen it doesn't. Larry, you've been around long enough to know that's not an argument against a limited line length for code. It is not about the technology of your terminal. It's about

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread alex wright
We employ a pretty hard limit of 100. This way I can reliably have 1 module split vertically with a test or configuration file open or 3 separate modules, etc. I find 80 to be a bit strict, although in the past I've been in unfortunate environments where it was helpful. The rest of PEP8 is large

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Ethan Furman
On 04/16/2016 10:25 AM, Terry Reedy wrote: On 4/16/2016 12:58 PM, Larry Martell wrote: On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote: Larry Martell wrote: I have worked for many companies where you are required to get a clean run of pep8 on your code before your pull request will

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Larry Martell
On Sat, Apr 16, 2016 at 2:18 PM, BartC wrote: > On 16/04/2016 17:58, Larry Martell wrote: >> >> On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote: >>> >>> Larry Martell : >>> I have worked for many companies where you are required to get a clean run of pep8 on your code before your

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Marko Rauhamaa
Terry Reedy : > On 4/16/2016 12:58 PM, Larry Martell wrote: >> if we still had 1970's 80 character TTYs that would matter but on my >> 29" 1920x1080 screen it doesn't. > > It depends on whether one prefers to use the extra width to have long > lines or side-by-side windows. I prefer the latter.

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread BartC
On 16/04/2016 17:58, Larry Martell wrote: On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote: Larry Martell : I have worked for many companies where you are required to get a clean run of pep8 on your code before your pull request will even be considered for approval. I don't agree with t

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Terry Reedy
On 4/16/2016 12:58 PM, Larry Martell wrote: On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote: Larry Martell : I have worked for many companies where you are required to get a clean run of pep8 on your code before your pull request will even be considered for approval. I don't agree with

Re: Dynamic inputs

2016-04-16 Thread Terry Reedy
On 4/16/2016 3:35 AM, durgadevi1 wrote: what does dynamic inputs mean and how is it implemented in python programming? 'dynamic input' is new to me. I would take it to mean input that is not available until the program is running. Inputs from people and sensors would qualify. But maybe wh

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Larry Martell
On Sat, Apr 16, 2016 at 12:51 PM, Marko Rauhamaa wrote: > Larry Martell : > >> I have worked for many companies where you are required to get a clean >> run of pep8 on your code before your pull request will even be >> considered for approval. I don't agree with this at all, as I think it >> makes

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Marko Rauhamaa
Larry Martell : > I have worked for many companies where you are required to get a clean > run of pep8 on your code before your pull request will even be > considered for approval. I don't agree with this at all, as I think it > makes the code very ugly, especially enforcing the max line length.

Re: Python 2.7

2016-04-16 Thread Stephen Hansen
On Fri, Apr 15, 2016, at 03:48 PM, a3a95797 wrote: > > Sirs(s) > > I wish to have python 2.7 on a computer. I have not been able to get a > working copy to work on my machine. I am prepared to follow instructions > or to pay someone to install Python on my computer. Either the Debian or > the

Does get-pip work under sudo?

2016-04-16 Thread Steven D'Aprano
I tried to install pip following the instructions here: https://pip.pypa.io/en/stable/installing/ but whenever I tried to run the installer, I got an error. If I ran as a regular user: python2.7 get-pip.py I'd get a permission denied error (as expected) trying to write to the site-packages dire

EuroPython 2016: Schedule online

2016-04-16 Thread M.-A. Lemburg
We are happy to announce the schedule for EuroPython 2016 in Bilbao. The program WG has been working hard trying to fit all the sessions in the last few weeks. With over 180 sessions, over 150 speakers, one day for workshops, 5 days of talks, training, keynotes, lightning talks and open spaces, fo

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Larry Martell
On Sat, Apr 16, 2016 at 8:32 AM, Stephen Hansen wrote: > On Sat, Apr 16, 2016, at 01:51 AM, Marko Rauhamaa wrote: >> Chris Angelico : >> >> > On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: >> >> It doesn't really matter one way or another. The true WTF is that it's >> >> been changed. >>

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Stephen Hansen
On Sat, Apr 16, 2016, at 01:51 AM, Marko Rauhamaa wrote: > Chris Angelico : > > > On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: > >> It doesn't really matter one way or another. The true WTF is that it's > >> been changed. > > > > Why? Was PEP 8 inscribed on stone tablets carried down fr

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Steven D'Aprano
On Sat, 16 Apr 2016 06:51 pm, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: >>> It doesn't really matter one way or another. The true WTF is that it's >>> been changed. >> >> Why? Was PEP 8 inscribed on stone tablets carried down from a moun

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Michael Selik
On Sat, Apr 16, 2016, 10:56 AM Marko Rauhamaa wrote: > Chris Angelico : > > > On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa > wrote: > >> It doesn't really matter one way or another. The true WTF is that it's > >> been changed. > > > > Why? Was PEP 8 inscribed on stone tablets carried down fro

Re: Dynamic inputs

2016-04-16 Thread Michael Selik
On Sat, Apr 16, 2016, 9:41 AM durgadevi1 < srirajarajeswaridevikr...@gmail.com> wrote: > what does dynamic inputs mean and how is it implemented in python > programming? > In what context did you hear or read the phrase "dynamic inputs"? > -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Chris Angelico
On Sat, Apr 16, 2016 at 6:51 PM, Marko Rauhamaa wrote: > Chris Angelico : > >> On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: >>> It doesn't really matter one way or another. The true WTF is that it's >>> been changed. >> >> Why? Was PEP 8 inscribed on stone tablets carried down from a mo

RE: How to print a part of a string?

2016-04-16 Thread Joaquin Alzola
list_append = [] with open('filename') as f: for line in f: t_line = line.split(' ') if (t_line[0] == 'ABC'): print(t_line[1]) list_append.append(t_line[1]) -Original Message- From: Python-list [mailto:python-list-bounces+joaquin.alzola=lebara@python.org] On Behalf Of durgadevi1 Se

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Marko Rauhamaa
Chris Angelico : > On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: >> It doesn't really matter one way or another. The true WTF is that it's >> been changed. > > Why? Was PEP 8 inscribed on stone tablets carried down from a mountain? In a way, yes. I don't follow PEP 8 to the tee; probab

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Chris Angelico
On Sat, Apr 16, 2016 at 6:06 PM, Marko Rauhamaa wrote: > It doesn't really matter one way or another. The true WTF is that it's > been changed. Why? Was PEP 8 inscribed on stone tablets carried down from a mountain? ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Marko Rauhamaa
Bob Martin : > in 758117 20160416 053809 Steven D'Aprano wrote: >>Until now, PEP 8 has recommended that multi-line expressions should >>break *after* infix operators: >> >> >>result = (this_value * >>some_value + >>another_value - >>excess

Dynamic inputs

2016-04-16 Thread durgadevi1
Hi guys, what does dynamic inputs mean and how is it implemented in python programming? -- https://mail.python.org/mailman/listinfo/python-list

Re: How to print a part of a string?

2016-04-16 Thread durgadevi1
On Friday, April 15, 2016 at 8:13:17 PM UTC+8, durgadevi1 wrote: > Hello all, > > I have another homework problem. > > I have a textfile. It contains lines of string. > > I am required to only print out a certain part of the string. > > For example the textfile contain: > > ABC X N > B

Re: Guido sees the light: PEP 8 updated

2016-04-16 Thread Bob Martin
in 758117 20160416 053809 Steven D'Aprano wrote: >Until now, PEP 8 has recommended that multi-line expressions should break >*after* infix operators: > > >result = (this_value * >some_value + >another_value - >excess_value or >default_value >) > > &g

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-16 Thread Chris Angelico
On Sat, Apr 16, 2016 at 4:56 PM, Ben Finney wrote: > Stephen Hansen writes: > >> > * You can use named constants from ‘os’ for the purpose of specifying >> > exit status numbers. >> >> Only on *nix. > > Hmm, I didn't see that. It seems strange that even the constant for “no > error” exit status

Re: sys.exit(1) vs raise SystemExit vs raise

2016-04-16 Thread Ben Finney
Stephen Hansen writes: > > * You can use named constants from ‘os’ for the purpose of specifying > > exit status numbers. > > Only on *nix. Hmm, I didn't see that. It seems strange that even the constant for “no error” exit status should be defined only for Unix :-/ -- \ “Geeks like