Re: Python indentation (3 spaces)

2018-10-14 Thread Christian Gollwitzer
Am 14.10.18 um 02:45 schrieb Grant Edwards: On 2018-10-13, Peter J. Holzer wrote: For "just use tabs" to work, all of those tools would have to magically recognize that they're looking at Python source and adjust the tab size accordingly. That isn't going to happen. Well, no. The idea of "

Re: Python indentation (3 spaces)

2018-10-14 Thread Peter J. Holzer
On 2018-10-14 00:45:49 +, Grant Edwards wrote: > On 2018-10-13, Peter J. Holzer wrote: > > > >> For "just use tabs" to work, all of those tools would have to > >> magically recognize that they're looking at Python source and adjust > >> the tab size accordingly. That isn't going to happen. >

Re: [Python-Dev] [RELEASE] Python 3.7.1rc2 and 3.6.7rc2 now available for testing

2018-10-14 Thread Ray Donnelly
Hi Ned, I tried to report this on bpo, but it's not letting me log in for some reason. I ran into a problem trying to build 3.7.1-rc2 on macOS for Anaconda Distribution. I debugged it a little so hopefully this is useful? The error is: checking whether float word ordering is bigendian... unknow

Re: Python indentation (3 spaces)

2018-10-14 Thread Grant Edwards
On 2018-10-14, Christian Gollwitzer wrote: > Am 14.10.18 um 02:45 schrieb Grant Edwards: >> On 2018-10-13, Peter J. Holzer wrote: >>> For "just use tabs" to work, all of those tools would have to magically recognize that they're looking at Python source and adjust the tab size acco

Fwd: socket: Too many open files

2018-10-14 Thread Shakti Kumar
>On 13Oct2018 14:10, Shakti Kumar wrote: >>I’m running a script which basically does a traceroute to the list of >>hosts >>provided, and then pulls up some info by logging in to gateways in the path. >>I am running this script for a list of almost 40k hosts in our data centers. >>Also, I am using

Re: Python indentation (3 spaces)

2018-10-14 Thread Chris Angelico
On Mon, Oct 15, 2018 at 1:35 AM Grant Edwards wrote: > > On 2018-10-14, Christian Gollwitzer wrote: > > Am 14.10.18 um 02:45 schrieb Grant Edwards: > >> On 2018-10-13, Peter J. Holzer wrote: > >>> > For "just use tabs" to work, all of those tools would have to > magically recognize tha

Re: Python indentation (3 spaces)

2018-10-14 Thread Marko Rauhamaa
Chris Angelico : > Tabs for indentation have semantic meaning. Top-level has zero tabs. > One indentation level is represented by one tab. Two indentation > levels? Two tabs. It's about as perfect a representation as you could > hope for. If you like your indentation levels to be as wide as four >

Re: Python indentation (3 spaces)

2018-10-14 Thread Chris Angelico
On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: > > Chris Angelico : > > > Tabs for indentation have semantic meaning. Top-level has zero tabs. > > One indentation level is represented by one tab. Two indentation > > levels? Two tabs. It's about as perfect a representation as you could > > h

Re: Python indentation (3 spaces)

2018-10-14 Thread Peter J. Holzer
On 2018-10-15 09:06:11 +1100, Chris Angelico wrote: > On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: > > Chris Angelico : > > > Tabs for indentation have semantic meaning. Top-level has zero tabs. > > > One indentation level is represented by one tab. Two indentation > > > levels? Two tabs.

Re: Python indentation (3 spaces)

2018-10-14 Thread Cameron Simpson
On 15Oct2018 00:33, Peter J. Holzer wrote: On 2018-10-15 09:06:11 +1100, Chris Angelico wrote: On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: > Chris Angelico : > > Tabs for indentation have semantic meaning. Top-level has zero tabs. > > One indentation level is represented by one tab.

Re: Python indentation (3 spaces)

2018-10-14 Thread Alan Bawden
Chris Angelico writes: > On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: > > Chris Angelico : ... > > That *could* be the situation. However, it is trumped by an older > > convention whereby the indentation levels go as follows: > > > >0: > >1: SPC SPC > >2: SPC SPC SPC SPC > >

Re: Fwd: socket: Too many open files

2018-10-14 Thread Cameron Simpson
On 14Oct2018 20:24, Shakti Kumar wrote: On 13Oct2018 14:10, Shakti Kumar wrote: I’m running a script which basically does a traceroute to the list of hosts provided, and then pulls up some info by logging in to gateways in the path. I am running this script for a list of almost 40k hosts in

Re: Python indentation (3 spaces)

2018-10-14 Thread Chris Angelico
On Mon, Oct 15, 2018 at 9:56 AM Alan Bawden wrote: > In my experience this is a very common way to assume that tabs will be > interpreted. Virtually every source-code file I have encountered since the > mid 1970s (for any programming language or operating system) has assumed > either this convent

Re: Python indentation (3 spaces)

2018-10-14 Thread Alan Bawden
Chris Angelico writes: > On Mon, Oct 15, 2018 at 9:56 AM Alan Bawden wrote: > > In my experience this is a very common way to assume that tabs will be > > interpreted. Virtually every source-code file I have encountered since the > > mid 1970s (for any programming language or operating system) h

Re: Python indentation (3 spaces)

2018-10-14 Thread Chris Angelico
On Mon, Oct 15, 2018 at 2:51 PM Alan Bawden wrote: > > Chris Angelico writes: > > On Mon, Oct 15, 2018 at 9:56 AM Alan Bawden wrote: > > > In my experience this is a very common way to assume that tabs will be > > > interpreted. Virtually every source-code file I have encountered since > > > t

Re: Python indentation (3 spaces)

2018-10-14 Thread Marko Rauhamaa
Chris Angelico : > I'm saying I have never seen is this: > > On Mon, Oct 15, 2018 at 8:56 AM Marko Rauhamaa wrote: >> However, it is trumped by an older >> convention whereby the indentation levels go as follows: >> >>0: >>1: SPC SPC >>2: SPC SPC SPC SPC >>3: SPC SPC SPC SPC SPC SP

Re: Python indentation (3 spaces)

2018-10-14 Thread Chris Angelico
On Mon, Oct 15, 2018 at 3:51 PM Marko Rauhamaa wrote: > The two-space indentation is the out-of-the-box default for emacs. > However, the tab collapsing principle is a universal default. If you go > against it, you will have to educate more tools than your editor. For > example, try running this P

Re: ESR "Waning of Python" post

2018-10-14 Thread dieter
Marko Rauhamaa writes: > dieter : > ... >> Definitely. The application concerned was a long running web application; >> caching was an important feature to speed up its typical use cases. > > As an optimization technique, I suggest turning the cache into a "binary > blob" opaque to GC, or using so