Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Gregory Ewing
Rustom Mody wrote: On Wednesday, April 20, 2016 at 6:33:33 AM UTC+5:30, Steven D'Aprano wrote: Anyone who thinks that we're heading back to hieroglyphics simply isn't paying attention. Which are just text in the range 13000-1342F: http://unicode.org/charts/PDF/U13000.pdf Moreover, the Egyp

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Stephen Hansen
On Tue, Apr 19, 2016, at 11:09 PM, Ethan Furman wrote: > On 04/19/2016 10:51 PM, Stephen Hansen wrote: > > I use 1) more to be less 'nicer' and more, er, 'more specific'. Since I > > don't like exceptions to rise to the user level where niceness is > > needed. > > Yeah, that's a better phrasing fo

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Terry Reedy
On 4/19/2016 11:41 PM, Chris Angelico wrote: On Wed, Apr 20, 2016 at 1:23 PM, Terry Reedy wrote: It kinda looks like Hypertalk syntax, which some of you may remember I'm exceedingly fond of. There's no reason why a GUI editor couldn't display Python code using such "building block" structure. E

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Ethan Furman
On 04/19/2016 10:51 PM, Stephen Hansen wrote: But that's a fuzzy question, there's no solid and clear answer. Did you see Ethan's response? I largely agree with his trinity: On Sun, Apr 17, 2016, at 10:26 PM, Ethan Furman wrote: I sanity check for three reasons: 1) raise a nicer error message

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Stephen Hansen
On Sun, Apr 17, 2016, at 12:34 PM, Christopher Reimer wrote: > if color not in [VARS['COLOR_BLACK'], VARS['COLOR_WHITE']]: > raise Exception("Require \'{}\' or \'{}\' for input value, got > \'{}\' instead.".format(VARS['COLOR_BLACK'], VARS['COLOR_WHITE'], color)) Do you think it lik

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Michael Selik
On Tue, Apr 19, 2016 at 11:23 PM Christopher Reimer < christopher_rei...@icloud.com> wrote: > On 4/19/2016 1:02 AM, Michael Selik wrote: > > > Why relocate rather than remove? What message would you provide that's > > better than ``KeyError: 42`` with a traceback that shows exactly which > > dicti

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Wednesday, April 20, 2016 at 6:33:33 AM UTC+5:30, Steven D'Aprano wrote: > Anyone who thinks that we're heading back to hieroglyphics simply isn't > paying attention. Which are just text in the range 13000-1342F: http://unicode.org/charts/PDF/U13000.pdf -- https://mail.python.org/mailman/listi

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Wednesday, April 20, 2016 at 12:25:09 AM UTC+5:30, Random832 wrote: > On Tue, Apr 19, 2016, at 13:43, Tim Chase wrote: > > Well, let's take a look at their native file formats: > > > > Inkscape: SVG > > > > Libreoffice: compressed XML > > > > Firefox: HTML+CSS+JS > > > > Musescore: compresse

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 12:20 PM, Christopher Reimer wrote: > I think you misread my code. No dictionary exception occurs in the sanity > checks. Below is the full function with the revised sanity check for > positions that compares the input list with the two valid lists of board > positions. > >

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 1:23 PM, Terry Reedy wrote: >> It kinda looks like Hypertalk syntax, which some of you may remember I'm >> exceedingly fond of. There's no reason why a GUI editor couldn't display >> Python code using such "building block" structure. E.g. indented blocks >> could use colour

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Terry Reedy
On 4/19/2016 9:38 PM, Steven D'Aprano wrote: So-called "visual programming environments" (think: Visual Basic) are well-suited to laying out the interface of GUI applications. They might even be useful for extremely limited mini-languages like regexes. I'm told that there are still people who th

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Christopher Reimer
On 4/19/2016 1:02 AM, Michael Selik wrote: Why relocate rather than remove? What message would you provide that's better than ``KeyError: 42`` with a traceback that shows exactly which dictionary is being used and how? I think you misread my code. No dictionary exception occurs in the sanity

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 11:38 AM, Steven D'Aprano wrote: > As for "visual programming languages" (languages with an inherent visual > form which lacks any simple or obvious text equivalent), they've been a > dead-end. Even languages like Scratch cannot do without text. Look at > the "Hello World"

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 20:34, Steven D'Aprano wrote: > That's not the sense of being discussed here. Yes it is - this started as a discussion of whether indentation and alignment should be based on fixed spaces (as text editors support) or dynamic tab stops (as any word processing format support

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 20:02, Tim Chase wrote: > Well, my preferred method of "viewing" python code is /usr/bin/python > > Authoring, editing, and consuming are all distinct actions. Viewing and executing are also distinct. > > You could, for example, design a programming language that uses X

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 04:54 am, Random832 wrote: > You could, for example, design a programming language that uses XML > markup to associate comments with specific positions in the code and the > editor displays them in little callout boxes when you hover over them > with the mouse. That's not done

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 07:35 am, Marko Rauhamaa wrote: > The "plain text" content type is used less and less. Really it is > reserved mostly to programmers. Even texters routinely field animated > emojies nowadays. Who cares about "plain text" content type? That is not the beginning or end of what c

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 04:54 am, Random832 wrote: > None of those are "text" in the sense being discussed here, which is > "preferred method of viewing and editing is a text editor". That's not the sense of being discussed here. How absurd. Why should a letter containing nothing but text be classif

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 02:46 am, Rustom Mody wrote: > On Tuesday, April 19, 2016 at 9:44:39 PM UTC+5:30, Steven D'Aprano wrote: >> On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: >> >> > And more generally that programmers sticking to text when rest of world >> > has moved on is rather backward: >>

Re: Python path and append

2016-04-19 Thread Matthew Barnett
On 2016-04-19 23:38, Chris Angelico wrote: On Wed, Apr 20, 2016 at 8:29 AM, Seymore4Head wrote: handle = open("\\Winmx\New$\q.txt") for line in handle: line=line.strip() print line Traceback (most recent call last): File "\\Winmx\New$\add viewed.py", line 2, in handle = open("

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Tim Chase
On 2016-04-19 14:54, Random832 wrote: > On Tue, Apr 19, 2016, at 13:43, Tim Chase wrote: > > Well, let's take a look at their native file formats: > > Inkscape: SVG > > Libreoffice: compressed XML > > Firefox: HTML+CSS+JS > > Musescore: compressed text > > Dia: compressed XML > > None of those are

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 9:22 AM, Grant Edwards wrote: > On 2016-04-19, Chris Angelico wrote: >> On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney >> wrote: > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: > > And more generally that programmers sticking to text when rest of world > >

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Grant Edwards
On 2016-04-19, Chris Angelico wrote: > On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney > wrote: >>> > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: >>> > > And more generally that programmers sticking to text when rest of world >>> > > has moved on is rather backward: >> >> You haven't supported

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Grant Edwards
On 2016-04-19, Random832 wrote: > It does look like some attention may need to be given to gmane > (either to allow posts to continue to be submitted, or to notify > gmane that the list should be put in "Non-public (posting through > Gmane allowed for list members)" mode. While there is such a m

Re: Python path and append

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 8:29 AM, Seymore4Head wrote: > > handle = open("\\Winmx\New$\q.txt") > for line in handle: > line=line.strip() > print line > > > Traceback (most recent call last): > File "\\Winmx\New$\add viewed.py", line 2, in > handle = open("\\Winmx\New$\q.txt") > IOErro

Python path and append

2016-04-19 Thread Seymore4Head
This doesn't work. Does Python recognize hidden directories? handle = open("\\Winmx\New$\q.txt") for line in handle: line=line.strip() print line Traceback (most recent call last): File "\\Winmx\New$\add viewed.py", line 2, in handle = open("\\Winmx\New$\q.txt") IOError: [Err

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread sohcahtoa82
On Tuesday, April 19, 2016 at 1:59:48 PM UTC-7, Chris Angelico wrote: > On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney > wrote: > >> > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: > >> > > And more generally that programmers sticking to text when rest of world > >> > > has moved on is rather bac

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Marko Rauhamaa
Chris Angelico : > On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney > wrote: >>> > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: >>> > > And more generally that programmers sticking to text when rest >>> > > of world has moved on is rather backward: >> >> You haven't supported that claim at all, an

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 6:50 AM, Ben Finney wrote: >> > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: >> > > And more generally that programmers sticking to text when rest of world >> > > has moved on is rather backward: > > You haven't supported that claim at all, and I see endless text everyd

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Ben Finney
Rustom Mody writes: > On Tuesday, April 19, 2016 at 9:44:39 PM UTC+5:30, Steven D'Aprano wrote: > > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: > > > > > And more generally that programmers sticking to text when rest of world > > > has moved on is rather backward: > > > > I'm pretty sure t

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Tim Golden
On 19/04/2016 18:30, Random832 wrote: On Tue, Apr 19, 2016, at 12:05, Steven D'Aprano wrote: It's worse than that. There are many other places that mirror this group, such as gmane, Activestate, bytes.com, gossamer-threads.com, and of course Google Groups. Google groups goes through Usenet,

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Ethan Furman
On 04/19/2016 12:05 PM, Random832 wrote: On Tue, Apr 19, 2016, at 15:01, Ethan Furman wrote: The only thing changing is what happens if someone posts /directly/ to the mailing list (not through gmane, etc). Is the mailing list software able to make that distinction? I thought that was on gmane

Re: Failed install scipy lib

2016-04-19 Thread Andrew Farrell
Hi Liran, If your goal is simply to install SciPy on windows and not have to worry about python packaging, your best bet is to go ahead and install Anaconda , which comes with SciPy and a bunch of other libraries for scientif

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 15:01, Ethan Furman wrote: > The only thing changing is what happens if someone posts /directly/ to > the mailing list (not through gmane, etc). Is the mailing list software able to make that distinction? I thought that was on gmane's end. -- https://mail.python.org/mail

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Ethan Furman
On 04/19/2016 10:55 AM, Jon Ribbens wrote: On 2016-04-19, Steven D'Aprano wrote: And yet, we manage to muddle on. We've muddled on so far, but apparently we're just about to have a significant change in moderation policy which sounds like it may very well add to the confusion. The only thi

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 13:55, Jon Ribbens wrote: > On 2016-04-19, Steven D'Aprano wrote: > > It's worse than that. There are many other places that mirror this group, > > such as gmane, Activestate, bytes.com, gossamer-threads.com, and of course > > Google Groups. They all have their own moderat

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 13:43, Tim Chase wrote: > Well, let's take a look at their native file formats: > > Inkscape: SVG > > Libreoffice: compressed XML > > Firefox: HTML+CSS+JS > > Musescore: compressed text > > Dia: compressed XML None of those are "text" in the sense being discussed here

Re: Failed install scipy lib

2016-04-19 Thread eryk sun
On Tue, Apr 19, 2016 at 12:05 PM, Oscar Benjamin wrote: > On 19 Apr 2016 17:01, wrote: >> >> i'm trying to use: >> "py -m pip install scipy" >> and after couple of lines a get an error saying: > > I thought that binary wheels for scipy would be available on pypi for each > OS now. Try updating pi

Re: Failed install scipy lib

2016-04-19 Thread liran . maymoni
On Tuesday, April 19, 2016 at 8:06:06 PM UTC+3, Oscar Benjamin wrote: > On 19 Apr 2016 17:01, wrote: > > > > Hello, > > i'm trying to use: > > "py -m pip install scipy" > > and after couple of lines a get an error saying: > > I thought that binary wheels for scipy would be available on pypi for e

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 11:17:23 PM UTC+5:30, Tim Chase wrote: > On 2016-04-19 09:46, Rustom Mody wrote: > > inkscape > > gimp > > blender > > libreoffice writer/calc/prese > > wireshark > > skype > > firefox > > audacity > > musescore > > totem > > vlc > > dia > > > > Do these look like tex

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Marko Rauhamaa
Steven D'Aprano : > On Mon, 18 Apr 2016 03:32 pm, Marko Rauhamaa wrote: >> Did you get the CC, Steven. > > Yes I did. I frequently have people CCing me. But that's not the > problem for me -- as I said above, it's a pain for me to SEND (not > receive) via both email and news. GNUS does both at on

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Jon Ribbens
On 2016-04-19, Steven D'Aprano wrote: > On Tue, 19 Apr 2016 08:43 pm, Jon Ribbens wrote: >> Are you saying that Usenet posts skip the moderation entirely? >> >> This whole thing seems a bit of a mess. What you really need to be >> doing is changing the Usenet group to be moderated, otherwise you'

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Tim Chase
On 2016-04-19 09:46, Rustom Mody wrote: > inkscape > gimp > blender > libreoffice writer/calc/prese > wireshark > skype > firefox > audacity > musescore > totem > vlc > dia > > Do these look like text-based apps to you? Well, let's take a look at their native file formats: Inkscape: SVG Libreof

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 12:05, Steven D'Aprano wrote: > It's worse than that. There are many other places that mirror this group, > such as gmane, Activestate, bytes.com, gossamer-threads.com, and of > course > Google Groups. Google groups goes through Usenet, and would be affected equally by a

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread alister
On Wed, 20 Apr 2016 01:50:00 +1000, Steven D'Aprano wrote: > Anyone who has played (say) Dungeons and Dragons, or other role-playing > games, will know that events with a probability of 1 in 20 occur very > frequently. To be precise, they occur one time in twenty. > Million to 1 chances happen 9 t

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Larry Martell
On Tue, Apr 19, 2016 at 11:50 AM, Steven D'Aprano wrote: > On Wed, 20 Apr 2016 12:54 am, Rustom Mody wrote: > > >> I wonder who the joke is on: >> >> | A study comparing Canadian and Chinese students found that the latter >> | were better at complex maths > > Most published studies are wrong. > >

Re: Failed install scipy lib

2016-04-19 Thread Oscar Benjamin
On 19 Apr 2016 17:01, wrote: > > Hello, > i'm trying to use: > "py -m pip install scipy" > and after couple of lines a get an error saying: I thought that binary wheels for scipy would be available on pypi for each OS now. Try updating pip and then using it to install scipy. I'm not on Windows t

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 9:44:39 PM UTC+5:30, Steven D'Aprano wrote: > On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: > > > And more generally that programmers sticking to text when rest of world > > has moved on is rather backward: > > I'm pretty sure that the rest of the world has not mo

ANN: Python Meeting Düsseldorf - 27.04.2016

2016-04-19 Thread eGenix Team: M.-A. Lemburg
[This announcement is in German since it targets a local user group meeting in Düsseldorf, Germany] ANKÜNDIGUNG Python Meeting Düsseldorf http://pyddf.de/ Ein Treffen

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Steven D'Aprano
On Mon, 18 Apr 2016 03:32 pm, Marko Rauhamaa wrote: > Steven D'Aprano : > >> On Mon, 18 Apr 2016 10:27 am, Random832 wrote: >> >>> As an alternative, when you send them through can you put a note on >>> the bottom saying they're not subscribed, to remind people to CC them >>> in responses? >> >>

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Tue, 19 Apr 2016 01:04 pm, Rustom Mody wrote: > And more generally that programmers sticking to text when rest of world > has moved on is rather backward: I'm pretty sure that the rest of the world has not moved on from text. Text still makes up by far the bulk of human communication. It's com

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Steven D'Aprano
On Tue, 19 Apr 2016 08:43 pm, Jon Ribbens wrote: > Are you saying that Usenet posts skip the moderation entirely? > > This whole thing seems a bit of a mess. What you really need to be > doing is changing the Usenet group to be moderated, otherwise you're > going to end up with two different view

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 01:50 am, Steven D'Aprano wrote: > - Is the effect due to chance? Remember, with a p-value of 0.05 (the > so-called 95% significance level), one in twenty experiments will > give a positive result just by chance. A p-value of 0.05 does not > mean "these results are proven

Re: Failed install scipy lib

2016-04-19 Thread liran . maymoni
This is the full Log: C:\Users\Liran>py -m pip install scipy Collecting scipy Using cached scipy-0.17.0.tar.gz Installing collected packages: scipy Running setup.py install for scipy ... error Complete output from command C:\Users\Liran\AppData\Local\Programs\Python\Python35-32\python.exe

Failed install scipy lib

2016-04-19 Thread liran . maymoni
Hello, i'm trying to use: "py -m pip install scipy" and after couple of lines a get an error saying: Command "C:\Users\Liran\AppData\Local\Programs\Python\Python35-32\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\Liran\\AppData\\Local\\Temp\\pip-build-er8bfsou\\scipy\\setup.

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Steven D'Aprano
On Wed, 20 Apr 2016 12:54 am, Rustom Mody wrote: > I wonder who the joke is on: > > | A study comparing Canadian and Chinese students found that the latter > | were better at complex maths Most published studies are wrong. http://www.ncbi.nlm.nih.gov/pmc/articles/PMC1182327/ - Has that study

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Tim Chase
On 2016-04-19 23:41, Chris Angelico wrote: > The only time I'll "wrap" that kind of comment is when it actually > applies to both lines of code: > > width = bar * 3 + 2 # we have 3x2 bars, plus one... > height = bar * 2 + 2 # ... pixel of margin on all sides And even then in that exceptional case

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 7:46:21 PM UTC+5:30, Grant Edwards wrote: > On 2016-04-19, Pete Forman wrote: > > > My question asks why monospace is used for the text. > > Well, I always use a monospaced font for code because I find it helps > readability for things like tables of data, block com

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Alice Bevan–McGregor
On 2016-04-18 21:14:02 +, Pete Forman said: Why is it that Python continues to use a fixed width font and therefore specifies the maximum line width as a character count? An essential part of the language is indentation which ought to continue to mandate that lines start with a multiple of

Re: Problem with textblob lib

2016-04-19 Thread liran . maymoni
On Tuesday, April 19, 2016 at 5:08:58 PM UTC+3, Peter Otten wrote: > liran.maym...@gmail.com wrote: > > > Hey, > > Using windows 10 > > I've install textblob using "py -m pip install textblob". > > I can import textblob, or from textblob import blob,word > > But i cant: from textblobl import Textb

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 12:15 AM, Grant Edwards wrote: >> And more generally that programmers sticking to text when rest of >> world has moved on is rather backward: >> http://blog.languager.org/2012/10/html-is-why-mess-in-programming-syntax.html > > The same reason humans use written and spoken l

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 7:30:18 PM UTC+5:30, Tim Chase wrote: > On 2016-04-19 04:37, Rustom Mody wrote: > > > No, they will not, because they'll make your code proprietary. > > > > Pragmatically yes; theoretically no because its like saying > > "If one dont want to get locked down to MSWor

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Grant Edwards
On 2016-04-19, Pete Forman wrote: > My question asks why monospace is used for the text. Well, I always use a monospaced font for code because I find it helps readability for things like tables of data, block comments, and lines of code that have some sort of parallel structure that I want to be

Re: Why are my files in in my list - os module used with sys argv

2016-04-19 Thread Sayth Renshaw
On Tuesday, 19 April 2016 23:46:01 UTC+10, Peter Otten wrote: > Sayth Renshaw wrote: > > > Thanks for the insight, after doing a little reading I found this post > > which uses both argparse and glob and attempts to cover the windows and > > bash expansion of wildcards, > > http://breathmintsforp

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Wed, Apr 20, 2016 at 12:05 AM, Random832 wrote: > Source file contains: > ### Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam > ### ut mattis leo. In sed arcu gravida, consequat tellus placerat, > ### ullamcorper metus. > if foo: > if bar: > do stuff > ### > some othe

Re: Problem with textblob lib

2016-04-19 Thread Peter Otten
liran.maym...@gmail.com wrote: > Hey, > Using windows 10 > I've install textblob using "py -m pip install textblob". > I can import textblob, or from textblob import blob,word > But i cant: from textblobl import Textblob. > The error i get is: > Traceback (most recent call last): > File "", line

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Random832
On Tue, Apr 19, 2016, at 08:55, Rustom Mody wrote: > > Like, it ends up looking like this: > > > > if foo("what if it's a much longer condition"):# comment > > do something # > > comm

Problem with textblob lib

2016-04-19 Thread liran . maymoni
Hey, Using windows 10 I've install textblob using "py -m pip install textblob". I can import textblob, or from textblob import blob,word But i cant: from textblobl import Textblob. The error i get is: Traceback (most recent call last): File "", line 1, in from textblob import Textblob Import

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Tim Chase
On 2016-04-19 04:37, Rustom Mody wrote: > > No, they will not, because they'll make your code proprietary. > > Pragmatically yes; theoretically no because its like saying > "If one dont want to get locked down to MSWord proprietary tools > and formats one should use latex" > Refuted by the fact

Re: Why are my files in in my list - os module used with sys argv

2016-04-19 Thread Peter Otten
Sayth Renshaw wrote: > Thanks for the insight, after doing a little reading I found this post > which uses both argparse and glob and attempts to cover the windows and > bash expansion of wildcards, > http://breathmintsforpenguins.blogspot.com.au/2013/09/python-crossplatform-handling-of.html I ho

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Tue, Apr 19, 2016 at 11:31 PM, Tim Chase wrote: > Likewise, I detest aligning comments and almost always prefer to put > them in a neighboring line if there's continuation: > > foo = bar * 3 + 2 # we have 3 bars > # plus one for margin on either side > > changing the l

Re: Why are my files in in my list - os module used with sys argv

2016-04-19 Thread Sayth Renshaw
On Tuesday, 19 April 2016 23:21:42 UTC+10, Sayth Renshaw wrote: > On Tuesday, 19 April 2016 18:17:02 UTC+10, Peter Otten wrote: > > Steven D'Aprano wrote: > > > > > On Tue, 19 Apr 2016 09:44 am, Sayth Renshaw wrote: > > > > > >> Hi > > >> > > >> Why would it be that my files are not being foun

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Tim Chase
On 2016-04-19 14:47, Marko Rauhamaa wrote: > We need a PEP to distinguish also between: > - typefaces (Times New Roman vs Garamond) > - weights (bold vs thin) > - serifs (with or without) > - sizes (8pt vs 11pt) > - colors (goldenrod vs maroon) Like HTML & CSS, the goal should be to separate

Re: Why are my files in in my list - os module used with sys argv

2016-04-19 Thread Sayth Renshaw
On Tuesday, 19 April 2016 18:17:02 UTC+10, Peter Otten wrote: > Steven D'Aprano wrote: > > > On Tue, 19 Apr 2016 09:44 am, Sayth Renshaw wrote: > > > >> Hi > >> > >> Why would it be that my files are not being found in this script? > > > > You are calling the script with: > > > > python jqxml

Re: Python packages for hydrology and DEM

2016-04-19 Thread Michael Selik
On Tue, Apr 19, 2016 at 2:21 AM Xristos Xristoou wrote: > I want to ask for hydrology python packages with complete function to > calculate hydrology tasks like fill,flow direction,flow accumulator and > more?or how can i find genetic algorithms for to do this tasks to finaly > create a complete

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Antoon Pardon
Op 19-04-16 om 13:47 schreef Marko Rauhamaa: > Prehistoric programming languages considered uppercase/lowercase > differences insignificant variations. Most modern languages preserve the > distinction and in fact invite us to make a difference between: > >BLACK >Black >black > > Why sto

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 9:41:24 AM UTC+5:30, Random832 wrote: > On Mon, Apr 18, 2016, at 23:54, Rustom Mody wrote: > > Start no tabs: > > if foo# comment that is aligned > > do some stuff# across multiple indent levels > > > > Add tabs as leading indents with second line indented 1 tab more

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Marko Rauhamaa
Rustom Mody : > In the same way and like colorforth, it would be better to distinguish > identifier from > identifier rather than the current status of > distinguishing identifier from Identifier But then we have a slippery > slope: Should be same/distinct from ? In a past life of mine, a devel

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 5:18:07 PM UTC+5:30, Marko Rauhamaa wrote: > Paul Rudin : > > > Pete Forman writes: > >> Why is it that Python continues to use a fixed width font and > >> therefore specifies the maximum line width as a character count? > > > > Python doesn't require the use of any

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Marko Rauhamaa
Paul Rudin : > Pete Forman writes: >> Why is it that Python continues to use a fixed width font and >> therefore specifies the maximum line width as a character count? > > Python doesn't require the use of any particular font for editing your > code. > > However programmers tend to use fixed widt

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Rustom Mody
On Tuesday, April 19, 2016 at 1:47:48 PM UTC+5:30, Chris Angelico wrote: > On Tue, Apr 19, 2016 at 6:09 PM, Marko Rauhamaa wrote: > > Now, descending back on earth, I don't believe the advantages of rich > > source code will outweigh those of plain text in the foreseeable future. > > No, they wil

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Paul Rudin
Pete Forman writes: > Why is it that Python continues to use a fixed width font and therefore > specifies the maximum line width as a character count? Python doesn't require the use of any particular font for editing your code. However programmers tend to use fixed width fonts when editing code

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Jon Ribbens
On 2016-04-19, Tim Golden wrote: > On 19/04/2016 10:03, Jon Ribbens wrote: >> But from what you described, it sounds like all Usenet posts will >> now be prevented from reaching the list. If so you should probably >> consider rmgrouping comp.lang.python or at least abandoning the >> idea of it bei

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Tim Golden
On 19/04/2016 10:03, Jon Ribbens wrote: On 2016-04-17, Tim Golden wrote: On 17/04/2016 18:21, Wildman via Python-list wrote: On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote: [... snip my explanation of new moderation for non-subscribers ...] How will this change affect posts to comp.l

Re: Moderation and slight change of (de facto) policy

2016-04-19 Thread Jon Ribbens
On 2016-04-17, Tim Golden wrote: > On 17/04/2016 18:21, Wildman via Python-list wrote: >> On Sun, 17 Apr 2016 17:57:51 +0100, Tim Golden wrote: > > [... snip my explanation of new moderation for non-subscribers ...] > >> How will this change affect posts to comp.lang.python? > > Not at all, in the

Re: ReST: link bookmark

2016-04-19 Thread Sergio Spina
Il giorno domenica 17 aprile 2016 12:14:57 UTC+2, Sergio Spina ha scritto: > Il giorno domenica 17 aprile 2016 12:04:38 UTC+2, Sergio Spina ha scritto: > > I would know what is the way to implement in ReST a link bookmark like in > > this example: > > > > > > > > > > > > > > This text stand for

Re: Python packages for hydrology and DEM

2016-04-19 Thread Xristos Xristoou
Τη Τρίτη, 19 Απριλίου 2016 - 9:19:33 π.μ. UTC+3, ο χρήστης Xristos Xristoou έγραψε: > I want to ask for hydrology python packages with complete function to > calculate hydrology tasks like fill,flow direction,flow accumulator and > more?or how can i find genetic algorithms for to do this tasks t

Django - tastypie - jqgrid Wrapper (installation - manual)

2016-04-19 Thread asimkon .
I would like to use the following wrapper in one of my Django models, but unfortunately i do not know how to do it due to the lack of sufficient information. I run on my machine Djnago 1.9, tastypi via easy_install, Apache via mod_wsgi and MySQ

building python for qnx 6.5

2016-04-19 Thread rasikasriniva...@gmail.com
friends I am interested in python3 for QNX 6.5. Since i have not found a prebuilt distribution, I would like to build it. I wanted to find out how I could use Momentics IDE to build python for different targets. I want to build only for x86 right now but may want to build for the ARM target as

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Chris Angelico
On Tue, Apr 19, 2016 at 6:09 PM, Marko Rauhamaa wrote: > Now, descending back on earth, I don't believe the advantages of rich > source code will outweigh those of plain text in the foreseeable future. No, they will not, because they'll make your code proprietary. Suddenly *nothing* else will via

Re: Why are my files in in my list - os module used with sys argv

2016-04-19 Thread Peter Otten
Steven D'Aprano wrote: > On Tue, 19 Apr 2016 09:44 am, Sayth Renshaw wrote: > >> Hi >> >> Why would it be that my files are not being found in this script? > > You are calling the script with: > > python jqxml.py samples *.xml > > This does not do what you think it does: under Linux shells, t

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Marko Rauhamaa
Pete Forman : > I like that Nick separates out the concept of alignment with implicit > semantics from the n spaces v tabs arguments. My question asks why > monospace is used for the text. Because the so-called "plain text" is the age-old lowest common denominator for formal syntax. Python is esp

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Ben Finney
Pete Forman writes: > My question asks why monospace is used for the text. Used by whom? Python the programming language (and that includes PEP 8) has nothing to say about what font you use in your text editor. -- \ “Why should I care about posterity? What's posterity ever done | `\

Re: How much sanity checking is required for function inputs?

2016-04-19 Thread Michael Selik
On Mon, Apr 18, 2016 at 1:05 AM Christopher Reimer < christopher_rei...@icloud.com> wrote: > On 4/17/2016 3:18 PM, Michael Selik wrote: > > > I'd rather turn the question around: how much sanity checking is > > necessary or useful? You'll find the answer is "surprisingly little" > > compared to yo

Re: Guido sees the light: PEP 8 updated

2016-04-19 Thread Pete Forman
Rustom Mody writes: > On Tuesday, April 19, 2016 at 6:49:34 AM UTC+5:30, sohcatoa wrote: >> On Monday, April 18, 2016 at 2:14:17 PM UTC-7, Pete Forman wrote: >> > Why is it that Python continues to use a fixed width font and therefore >> > specifies the maximum line width as a character count? >>

Re: Python packages for hydrology and DEM

2016-04-19 Thread Ben Finney
Xristos Xristoou writes: > I want to ask for hydrology python packages with complete function to > calculate hydrology tasks like fill,flow direction,flow accumulator > and more?or how can i find genetic algorithms for to do this tasks to > finaly create a complete hydro model with python. I kno