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
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 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
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
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
> 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
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
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
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:
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
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.
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
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
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
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
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?
>
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,
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
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
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
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
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
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
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.
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
40 matches
Mail list logo