Re: Who are the "spacists"?

2017-03-18 Thread Chris Angelico
On Sun, Mar 19, 2017 at 4:53 PM, Pavol Lisy wrote: > Everyone has their own preferences how to display tabs (2, 3, 4 spaces?). Exactly, and they're welcome to them. > How could alignment look in case of mixed tabs and spaces? Everybody > will be happy? Don't do that. Ever. In any language. > I

Re: Who are the "spacists"?

2017-03-18 Thread Pavol Lisy
On 3/18/17, Nathan Ernst wrote: > My issue with using spaces instead of tabs, is that, as mentioned earlier > in the thread, everyone has their own preferences on indentation. I've > worked on teams where different developers used 2, 3 & 4 spaces as > indentation. Obviously, if you're using spaces

Redmonk language rankings

2017-03-18 Thread Steve D'Aprano
Redmonk have announced their language rankings for January 2017, and Python has moved up to third most popular language: http://redmonk.com/sogrady/2017/03/17/language-rankings-1-17/ Note that the way Redmonk calculate the rankings have changed, so you cannot directly compare the previous rankin

Where to start in the field of AI with Python

2017-03-18 Thread Robert O'Shea
Hi all, I've been given a good bit of free time at the moment and I really want to get into the field of AI with my time. I just want to get into the basics for the moment, eventually getting into stuff like machine learning and NLP (Natural Language Processing). I was wondering if any of you fi

Re: cryptography default_backend is "hazmat"?

2017-03-18 Thread Arthur Darcet
On Sat, 18 Mar 2017 at 23:29, Ian Pilcher wrote: > On 03/18/2017 05:15 PM, Chris Angelico wrote: > > So the question is: How well do you trust the examples? Are they > > likely to be instructing you in a safe way to use this > > potentially-dangerous module? > > But as far as I can tell, there's

Re: Who are the "spacists"?

2017-03-18 Thread Mikhail V
> On 19 March 2017 at 01:39, Steve D'Aprano wrote: >> On Sun, 19 Mar 2017 08:24 am, Mikhail V wrote: >> >> I've noticed a tendency that more and more users >> choose tabs. >Have you really? I've noticed the opposite. Not *really*, but on stackoverflow more and more answers recommending tabs are

Re: Who are the "spacists"?

2017-03-18 Thread Marko Rauhamaa
Chris Angelico : > On Sun, Mar 19, 2017 at 11:39 AM, Steve D'Aprano > wrote: >> Is it also ridiculous to use several newlines to space paragraphs >> vertically? > > At least with paragraphs, we don't have eternal debates between people > who think they should have four newlines, three newlines, o

Re: Who are the "spacists"?

2017-03-18 Thread Chris Angelico
On Sun, Mar 19, 2017 at 11:39 AM, Steve D'Aprano wrote: >> Indeed if you think about it, using several spaces for >> one level of indentation is ridiculous > > Is it? > > Is it also ridiculous to use several newlines to space paragraphs > vertically? At least with paragraphs, we don't have eterna

Re: Who are the "spacists"?

2017-03-18 Thread Marko Rauhamaa
Nathan Ernst : > emacs, like Vim is very configurable. I'm sure there's an appropriate > setting. > > Because 1 editor does it one way, doesn't mean the rest of the > numerous editors should follow suit. Correct. There's no universal standard so we have to declare a local one. I have defined:

Re: Who are the "spacists"?

2017-03-18 Thread Steve D'Aprano
On Sun, 19 Mar 2017 08:24 am, Mikhail V wrote: > There can be some problems, say in one class a teacher says: never > use tabs, in other class a teacher says: don't use spaces. > Who is right? Neither is right, both are wrong, and the students have just learned a valuable lesson: authority figure

Tabs are a security vulnerabilty [was Re: Who are the "spacists"?]

2017-03-18 Thread Steve D'Aprano
On Sun, 19 Mar 2017 03:30 am, Grant Edwards wrote: > tabs are a major security vulnerability and should be outlawed > in all source code. I've heard many arguments both in favour of and against tabs, but I've never heard them described as a security vulnerability before. Let alone a major one.

Re: Who are the "spacists"?

2017-03-18 Thread Nathan Ernst
emacs, like Vim is very configurable. I'm sure there's an appropriate setting. Because 1 editor does it one way, doesn't mean the rest of the numerous editors should follow suit. Personally, I dislike any editor that, by default, changes my input to something else. If I hit tab, I want a tab to b

Re: Who are the "spacists"?

2017-03-18 Thread Marko Rauhamaa
Nathan Ernst : > Tabs rectify this issue as you can configure them to appear how you > like to see your code without affecting or impacting any other > contributors to a code base. > > Personally, I used to be a 4-spacer. Now, I prefer 2 spaces. Guess > what? When I changed my preference, zero lin

Re: Who are the "spacists"?

2017-03-18 Thread Marko Rauhamaa
Chris Angelico : > My rule of thumb: tabs for indentation, and don't align stuff after > non-whitespace :) I always use the "Tab" key to indent, but I don't allow the file to contain any ASCII HT characters. The only control character in my files is the LF. The only exception would be plain text f

Re: Who are the "spacists"?

2017-03-18 Thread Nathan Ernst
On Sat, Mar 18, 2017 at 4:44 PM, ROGER GRAYDON CHRISTMAN wrote: > Just a couple minor notes from my experience: > > 1) > Some of the course management software I use doesn't like me typing tab > characters. > When I want to post sample code into a course page using this software, > tabs > are eit

Re: Who are the "spacists"?

2017-03-18 Thread Mikhail V
On 18 March 2017 at 21:19, Bob Gailer wrote: > On Mar 17, 2017 9:23 PM, "Mikhail V" wrote: >> >> So Python supports both spaces and tabs for indentation. >> >> I just wonder, why not forbid spaces in the beginning of lines? >> How would one come to the idea to use spaces for indentation at all? >

Re: Who are the "spacists"?

2017-03-18 Thread ROGER GRAYDON CHRISTMAN
Just a couple minor notes from my experience: 1) Some of the course management software I use doesn't like me typing tab characters. When I want to post sample code into a course page using this software, tabs are either ignored or does something really broken (like post an incomplete file). So,

Re: cryptography default_backend is "hazmat"?

2017-03-18 Thread Ian Pilcher
On 03/18/2017 05:15 PM, Chris Angelico wrote: So the question is: How well do you trust the examples? Are they likely to be instructing you in a safe way to use this potentially-dangerous module? But as far as I can tell, there's no way to use many of the non-hazmat functions (e.g. parsing a ce

Re: cryptography default_backend is "hazmat"?

2017-03-18 Thread Chris Angelico
On Sun, Mar 19, 2017 at 8:58 AM, Ian Pilcher wrote: > Yet another newbie question/observation ... > > So every example I can find of using python-cryptography includes a > call to cryptography.hazmat.backends.default_backend(). Of course, the > documentation at https://cryptography.io/en/latest/h

Re: Who are the "spacists"?

2017-03-18 Thread Chris Angelico
On Sun, Mar 19, 2017 at 8:59 AM, Nathan Ernst wrote: > I don't generally align stuff, either, but if you're going to, use spaces. The most interesting coder in the world. https://imgflip.com/i/1lo0wl ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Who are the "spacists"?

2017-03-18 Thread Nathan Ernst
I don't generally align stuff, either, but if you're going to, use spaces. On Sat, Mar 18, 2017 at 4:55 PM, Chris Angelico wrote: > On Sun, Mar 19, 2017 at 8:50 AM, Nathan Ernst > wrote: > > My rule of thumb: tabs for indentation, spaces for alignment (i.e. trying > > to line up anything after

cryptography default_backend is "hazmat"?

2017-03-18 Thread Ian Pilcher
Yet another newbie question/observation ... So every example I can find of using python-cryptography includes a call to cryptography.hazmat.backends.default_backend(). Of course, the documentation at https://cryptography.io/en/latest/hazmat/backends/ says: ! Danger This is a “Hazardous Mat

Re: Who are the "spacists"?

2017-03-18 Thread Chris Angelico
On Sun, Mar 19, 2017 at 8:50 AM, Nathan Ernst wrote: > My rule of thumb: tabs for indentation, spaces for alignment (i.e. trying > to line up anything after a non-whitespace character on a single line). My rule of thumb: tabs for indentation, and don't align stuff after non-whitespace :) ChrisA

Re: Who are the "spacists"?

2017-03-18 Thread Nathan Ernst
My issue with using spaces instead of tabs, is that, as mentioned earlier in the thread, everyone has their own preferences on indentation. I've worked on teams where different developers used 2, 3 & 4 spaces as indentation. Obviously, if you're using spaces, several of the members will be unhappy.

Re: Who are the "spacists"?

2017-03-18 Thread Mikhail V
On 18 March 2017 at 16:54, Lutz Horn wrote: > Am 18.03.17 um 16:18 schrieb Mikhail V: >> On 18 March 2017 at 05:02, Ben Finney >> wrote: >>> Mikhail V writes: >>> I think it would be a salvation to forbid spaces for indentation, did such attemps take place? >>> >>> Feel free to start y

Re: Who are the "spacists"?

2017-03-18 Thread Bob Gailer
On Mar 17, 2017 9:23 PM, "Mikhail V" wrote: > > So Python supports both spaces and tabs for indentation. > > I just wonder, why not forbid spaces in the beginning of lines? > How would one come to the idea to use spaces for indentation at all? One problem for me with tabs: there is no standard vi

Re: Who are the "spacists"?

2017-03-18 Thread Grant Edwards
On 2017-03-18, Jon Ribbens wrote: > On 2017-03-18, Grant Edwards wrote: >> On 2017-03-18, Mikhail V wrote: >>> How would one come to the idea to use spaces for indentation at all? >> >> Because tabs are a major security vulnerability and should be outlawed >> in all source code. > > You forgot t

Re: Who are the "spacists"?

2017-03-18 Thread Gary Herron
On 03/18/2017 06:46 AM, Mikhail V wrote: On 18 March 2017 at 03:09, Joel Goldstick wrote: On Fri, Mar 17, 2017 at 8:52 PM, Mikhail V wrote: So Python supports both spaces and tabs for indentation. I just wonder, why not forbid spaces in the beginning of lines? How would one come to the idea

Re: Who are the "spacists"?

2017-03-18 Thread Jon Ribbens
On 2017-03-18, Grant Edwards wrote: > On 2017-03-18, Mikhail V wrote: >> How would one come to the idea to use spaces for indentation at all? > > Because tabs are a major security vulnerability and should be outlawed > in all source code. You forgot to mention that tabs are carcinogenic, can be

Re: Who are the "spacists"?

2017-03-18 Thread Grant Edwards
On 2017-03-18, Mikhail V wrote: > So Python supports both spaces and tabs for indentation. Indeed. > I just wonder, why not forbid spaces in the beginning of lines? Because spaces are pure, clean, and secure. > How would one come to the idea to use spaces for indentation at all? Because tabs

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
On 2017-03-18 11:18 AM, Mikhail V wrote: On 18 March 2017 at 05:02, Ben Finney wrote: Feel free to start your own discussion forum for your new programming language that forbids spaces for indentation. That language will never be Python, so please don't ask us to discuss it here. Slight note

Re: Who are the "spacists"?

2017-03-18 Thread Michael Torrie
On 03/18/2017 09:18 AM, Mikhail V wrote: > Slight note of aggression in you words makes me think you > are a ... spacist? Please stop trolling. You obviously have an opinion and you are pursuing it aggressively, apparently attempting to bait people into an argument. Please stop. Your argument is

Re: Who are the "spacists"?

2017-03-18 Thread Lutz Horn
Am 18.03.17 um 16:18 schrieb Mikhail V: > On 18 March 2017 at 05:02, Ben Finney > wrote: >> Mikhail V writes: >> >>> I think it would be a salvation to forbid spaces for indentation, >>> did such attemps take place? >> >> Feel free to start your own discussion forum for your new >> programming

Re: Who are the "spacists"?

2017-03-18 Thread Mikhail V
On 18 March 2017 at 05:02, Ben Finney wrote: > Mikhail V writes: > >> I think it would be a salvation to forbid spaces for indentation, did >> such attemps take place? > > Feel free to start your own discussion forum for your new programming > language that forbids spaces for indentation. That la

EuroPython 2017: Welcome our new Logo

2017-03-18 Thread M.-A. Lemburg
Blue sea. Yellow sand. EuroPython goes to Rimini 2017 with a brand new logo. Colorful waves play with beach umbrellas to shape the foundation symbol with different patterns that visually immerse us in our new location, one of the most popular sea places in Italy. New place, new dates, new style and

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
On 2017-03-18 09:46 AM, Mikhail V wrote: Not to judge, but usually such opinions come from determined And he probably wasn't being facetious. Butyouareprobablyright.Spaceisawasteofspace. -- D'Arcy J.M. Cain Vybe Networks Inc. http://www.VybeNetworks.com/ IM:da...@vex.net VoIP: sip:da...@vyben

Re: Who are the "spacists"?

2017-03-18 Thread Mikhail V
On 18 March 2017 at 03:09, Joel Goldstick wrote: > On Fri, Mar 17, 2017 at 8:52 PM, Mikhail V wrote: >> So Python supports both spaces and tabs for indentation. >> >> I just wonder, why not forbid spaces in the beginning of lines? >> How would one come to the idea to use spaces for indentation at

Re: SimpleHTTPServer and CgiHTTPServer in practice

2017-03-18 Thread Chris Warrick
On 17 March 2017 at 01:28, Paul Rubin wrote: > Lutz Horn writes: >> We don't know *why* those people told you not to use these modules. We >> also don't know your use case. So it is very hard to advise you. > > The use case is to have a very easily set up way to serve basic pages > and files, wit

Re: Who are the "spacists"?

2017-03-18 Thread D'Arcy Cain
On 2017-03-17 10:09 PM, Joel Goldstick wrote: This is not a useful conversation. It has been had over and over in the past. Some people like tabs, some like spaces. In python you can use either, but you must stick to one or the other s/must/should/ Technically you can use both if you are ca

Re: Who are the "spacists"?

2017-03-18 Thread Christian Gollwitzer
Am 18.03.17 um 01:52 schrieb Mikhail V: So Python supports both spaces and tabs for indentation. I just wonder, why not forbid spaces in the beginning of lines? How would one come to the idea to use spaces for indentation at all? In the Python world it is the opposite - spaces are preferred an