Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Dan Stromberg
On Mon, Jul 2, 2018 at 6:10 PM, Jim Lee wrote: > On 07/02/18 17:34, Dan Stromberg wrote: > > The fact of the matter is the economics have changed a lot since then. > Machine time used to be really expensive compared to developer time. > Today, it's the opposite: developer time is really expensive

Re: Multi-threading with a simple timer?

2018-07-02 Thread Gregory Ewing
David D wrote: Is there a SIMPLE method that I can have a TIMER count down at a user input prompt - if the user doesn't enter information within a 15 second period, it times out. import signal, sys def timeout(*args): print("Too late!") sys.exit(0) signal.signal(signal.SIGALRM, timeou

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread Gregory Ewing
Marko Rauhamaa wrote: Nevertheless, the later socket object cannot unilaterally take over a socket using SO_REUSEADDR. The earlier socket object must have set the same option previously. I just did an experiment that suggests that's not the case. I created a socket without SO_REUSEADDR, made a

Re: .replace("a" or "b")

2018-07-02 Thread Cameron Simpson
On 03Jul2018 07:52, Abdur-Rahmaan Janhangeer wrote: that's another oddity i wanted to clear how do i know that string methods accept or and and in like .replace("a" or "b") i can't figure out how to deduce that it can accept that Well, it accepts an expression like that, but it doesn't do wh

.replace("a" or "b")

2018-07-02 Thread Abdur-Rahmaan Janhangeer
that's another oddity i wanted to clear how do i know that string methods accept or and and in like .replace("a" or "b") i can't figure out how to deduce that it can accept that Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Tim Daneliuk
On 07/02/2018 06:22 PM, Gregory Ewing wrote: > A > truly good programmer will be able to learn about the language > being used on the job. Except that the current attempt is to use techniques like agile, scrum, pair programming, and so forth to turn programming into a factory activity. High degre

Re: Python 3.7 Windows Help Behaviour

2018-07-02 Thread Terry Reedy
On 7/2/2018 8:57 PM, Steven D'Aprano wrote: On Fri, 29 Jun 2018 12:53:15 -0400, Terry Reedy wrote: On 6/29/2018 6:14 AM, BlindAnagram wrote: In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust its line length when the user expands the

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
On 07/02/18 17:51, Steven D'Aprano wrote: For most of us mere mortals, the "ten thousand hours" rule of thumb applies. Ten thousand hours should be read as an indefinitely large number A truly good programmer will be able to learn about the language being used on the job. Indeed, if you d

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
On 07/02/18 17:34, Dan Stromberg wrote: The fact of the matter is the economics have changed a lot since then. Machine time used to be really expensive compared to developer time.  Today, it's the opposite: developer time is really expensive compared to machine time. If you go back far

Re: Python 3.7 Windows Help Behaviour

2018-07-02 Thread Steven D'Aprano
On Fri, 29 Jun 2018 12:53:15 -0400, Terry Reedy wrote: > On 6/29/2018 6:14 AM, BlindAnagram wrote: >> In Python 3.7.0 on Windows the help file (python370.chm) displays with >> a fixed line length and does not adjust its line length when the user >> expands the help window horizontally. This behav

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Steven D'Aprano
On Tue, 03 Jul 2018 11:22:56 +1200, Gregory Ewing wrote: > Someone who is familiar with a > variety of languages is also very likely to be self-motivated and have > enough passion and curiosity to have acquired a broad and deep knowledge > of other aspects of the craft. "Jack of all trades, maste

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Dan Stromberg
On Sun, Jul 1, 2018 at 8:51 PM, Jim Lee wrote: > Languages that used to be small, lean, and exceptional at doing things > really well in a given domain have morphed into large, monolithic, bloated > language *systems* that do many things in many domains, and have many ways > to do the *same* thin

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
On 07/02/18 16:22, Gregory Ewing wrote: Ian Kelly wrote: Just because somebody knows a dozen languages doesn't mean that they can come up with the correct algorithm, That doesn't mean there's no correlation. Someone who is familiar with a variety of languages is also very likely to be self-m

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Gene Heskett
On Monday 02 July 2018 18:29:17 Grant Edwards wrote: > On 2018-07-02, Gene Heskett wrote: > > On Monday 02 July 2018 17:17:21 Grant Edwards wrote: > >> On 2018-07-02, T Berger wrote: > >> > Is there any way to set posts to appear chronologically in tree > >> > view? > >> > >> http://slrn.sourcef

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Gregory Ewing
Ian Kelly wrote: Just because somebody knows a dozen languages doesn't mean that they can come up with the correct algorithm, That doesn't mean there's no correlation. Someone who is familiar with a variety of languages is also very likely to be self-motivated and have enough passion and curios

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Ben Finney
T Berger writes: > Here is another question. I replied to this email in my inbox. But > it's not showing here. Please understand that the “here” you mention is subjective, for your particular view of this forum. This forum is distributed over many servers, and the participants here use various

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Ben Finney
T Berger writes: > Is there any way to set posts to appear chronologically in tree view? Yes, depending on what software you use to interact with this forum. See the documentation for that software. In the case of Gnus, that ordering is the default when viewing the group summary. -- \

File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Mikhail V
[Chris A] > [Mikhail] > > So Imo default syntax should be something like: > > > > S = "A:{x41}B:{x42}" > > > > instead of backslashes and Co. > > So how do you represent brace characters in a string? \{ and \} just kidding :-D I would be ok with {L} and {R} - easy on eye and easy to rememb

Re: Python 3.7 Windows Help Behaviour

2018-07-02 Thread Roel Schroeven
BlindAnagram schreef op 30/06/2018 15:50: On 30/06/2018 10:43, Steven D'Aprano wrote: On Fri, 29 Jun 2018 12:53:15 -0400, Terry Reedy wrote: On 6/29/2018 6:14 AM, BlindAnagram wrote: In Python 3.7.0 on Windows the help file (python370.chm) displays with a fixed line length and does not adjust

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Grant Edwards
On 2018-07-02, Gene Heskett wrote: > On Monday 02 July 2018 17:17:21 Grant Edwards wrote: > >> On 2018-07-02, T Berger wrote: >> > Is there any way to set posts to appear chronologically in tree >> > view? >> >> http://slrn.sourceforge.net/docs/slrn-manual.html > > That s/b the default if threadi

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Gene Heskett
On Monday 02 July 2018 17:17:21 Grant Edwards wrote: > On 2018-07-02, T Berger wrote: > > Is there any way to set posts to appear chronologically in tree > > view? > > http://slrn.sourceforge.net/docs/slrn-manual.html That s/b the default if threading is turned off. It is in T-bird and kmail. B

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Grant Edwards
On 2018-07-02, T Berger wrote: > Is there any way to set posts to appear chronologically in tree > view? http://slrn.sourceforge.net/docs/slrn-manual.html -- Grant Edwards grant.b.edwardsYow! Now we can become at alcoholics!

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 2:36:00 PM UTC-4, Dan Stromberg wrote: > On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > > > Is there any way to set posts to appear chronologically in tree view? And > > why is the tree view completely out of order? My last two posts in this > > view are from 6/27 a

Multi-threading with a simple timer?

2018-07-02 Thread David D
Is there a SIMPLE method that I can have a TIMER count down at a user input prompt - if the user doesn't enter information within a 15 second period, it times out. I am going to be using pycharm and not the shell. Thanks in advance. -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Ian Kelly
On Sun, Jul 1, 2018 at 10:53 PM Jim Lee wrote: > I did get one epiphany out of that. He's right - there are orders of > magnitude more programmers today than there were a couple of decades ago > - and they ARE almost all entry level, in that they are fluent in only > one (maybe two) languages. T

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Jim Lee
On 07/02/18 04:01, Steven D'Aprano wrote: On Sun, 01 Jul 2018 20:51:42 -0700, Jim Lee wrote: Back before the dot com boom, programmers (generally) knew at least 6, 7, 8 languages. You obviously didn't know (m)any of the hundreds of thousands of COBOL programmers.   I did know a handful, b

Re: I lost nearly all my modules installing 3.7

2018-07-02 Thread Elliott Roper
On 2 Jul 2018, Michael Torrie wrote (in article): > On 06/30/2018 11:10 AM, Elliott Roper wrote: > > I should have mentioned that none of this went wrong in 3.6. All I'm after > > are packages I can install with pip3. I really don't need to go down all the > > twisty passages installing Fortran >

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread MRAB
On 2018-07-02 19:02, T Berger wrote: Is there any way to set posts to appear chronologically in tree view? And why is the tree view completely out of order? My last two posts in this view are from 6/27 and 6/28. You haven't said what software you're using to view this list. Judging by your e

Re: Getting posts to sort chronologically in tree view

2018-07-02 Thread Dan Stromberg
On Mon, Jul 2, 2018 at 11:02 AM, T Berger wrote: > Is there any way to set posts to appear chronologically in tree view? And > why is the tree view completely out of order? My last two posts in this > view are from 6/27 and 6/28. > I'm thinking you may want to specify what software you're talkin

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread MRAB
On 2018-07-02 18:16, Richard Damon wrote: On 7/2/18 9:20 AM, Mikhail V wrote: [Richard Damon] The one major issue with backslashes is that they are a special character in string literals, so you either need to use raw literals a remember the few cases they still act as special characters, or r

Getting posts to sort chronologically in tree view

2018-07-02 Thread T Berger
Is there any way to set posts to appear chronologically in tree view? And why is the tree view completely out of order? My last two posts in this view are from 6/27 and 6/28. -- https://mail.python.org/mailman/listinfo/python-list

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Monday, July 2, 2018 at 1:22:59 PM UTC-4, T Berger wrote: > On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > > > The key point here from Jim is "simultaneously". Are you properly > > > shutting down

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread Marko Rauhamaa
Gregory Ewing : > Dan Stromberg wrote: >> On Thu, Jun 28, 2018 at 10:30 PM, Marko Rauhamaa wrote: >> >>>Well, the same security issue can be demonstrated without >>>SO_REUSEADDR: >>> >>>The security issue can be real but is not directly related with >>>SO_REUSEADDR. >> >> Yes, it can. It just ta

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Tim Daneliuk
On 07/01/2018 12:17 PM, MRAB wrote: > On 2018-07-01 18:06, Abdur-Rahmaan Janhangeer wrote: >> was viewing pep526, so, finally, python cannot do without hinting the type >> as other languages? >> will python finally move to >> int x = 3 where int is a pre annotation? >> >> i am not arguing it's usef

Re: EXTERNAL: OSError: [Errno 48] Address already in use

2018-07-02 Thread T Berger
On Saturday, June 30, 2018 at 6:02:06 PM UTC-4, T Berger wrote: > On Friday, June 29, 2018 at 7:00:15 PM UTC-4, Cameron Simpson wrote: > > > The key point here from Jim is "simultaneously". Are you properly shutting > > down > > the Flask instance in IDLE before running from Terminal, and vice v

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Richard Damon
On 7/2/18 9:20 AM, Mikhail V wrote: > [Richard Damon] > >> The one major issue with backslashes is that they are a special >> character in string literals, so you either need to use raw literals a >> remember the few cases they still act as special characters, or remember >> to convert them to doub

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Chris Angelico
On Tue, Jul 3, 2018 at 2:20 AM, Mikhail V wrote: > [Richard Damon] > >> The one major issue with backslashes is that they are a special >> character in string literals, so you either need to use raw literals a >> remember the few cases they still act as special characters, or remember >> to conver

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Mikhail V
[Richard Damon] > The one major issue with backslashes is that they are a special > character in string literals, so you either need to use raw literals a > remember the few cases they still act as special characters, or remember > to convert them to double back slashes, at a minimum for all the >

Re: I lost nearly all my modules installing 3.7

2018-07-02 Thread Terry Reedy
On 7/2/2018 9:50 AM, Michael Torrie wrote: If you're wanting to use SciPy and matplotlib, I suggest you stick with Python 3.6. There's little reason to immediately go to Python 3.7. Anytime you upgrade to the very latest version of Python, it's going to take some time for binary wheels to be bu

Re: I lost nearly all my modules installing 3.7

2018-07-02 Thread Michael Torrie
On 06/30/2018 11:10 AM, Elliott Roper wrote: > I should have mentioned that none of this went wrong in 3.6. All I'm after > are packages I can install with pip3. I really don't need to go down all the > twisty passages installing Fortran That's because there were likely binary packages available

ANN: OpenOpt Suite v 0.5627

2018-07-02 Thread dmitrey15
hello, OpenOpt Suite v 0.5627 (OpenOpt, FuncDesigner, SpaceFuncs, DerApproximator) is available for downloading from the link https://app.box.com/s/yubipvy5q91x8w3eoglhi0tn5d9i854a (unfortunately, I still cannot update it in PYPI entries because of problems with incorrect password) It fixes compat

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Grant Edwards
On 2018-07-02, Steven D'Aprano wrote: > In the long run, why do we always fear people coming from other > languages? Tribalism and fear of outsiders was bred into H. sapiens (and ancestors) millions of years ago? -- Grant Edwards grant.b.edwardsYow! My Aunt MAUREEN was a

Re: PEP 526 - var annotations and the spirit of python

2018-07-02 Thread Steven D'Aprano
On Sun, 01 Jul 2018 20:51:42 -0700, Jim Lee wrote: > Back before the dot com boom, programmers (generally) knew at least 6, > 7, 8 languages. You obviously didn't know (m)any of the hundreds of thousands of COBOL programmers. (A language conspicuous by its absence from your impressively large l

Re: File names with slashes [was Re: error in os.chdir]

2018-07-02 Thread Karsten Hilbert
Eryk, thanks for your to-the-point in-depth posts. Karsten -- GPG 40BE 5B0E C98E 1713 AFA6 5BC0 3BEA AC80 7D4F C89B -- https://mail.python.org/mailman/listinfo/python-list