Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Steven D'Aprano
On Mon, 19 Feb 2018 04:26:32 +0100, Anders Wegge Keller wrote: > På Mon, 19 Feb 2018 08:47:14 +1100 > Tim Delaney skrev: >> On 18 February 2018 at 22:55, Anders Wegge Keller >> wrote: > > >> > That list is not only weakly typed, but rather untyped. There are no >> > safeguards in the language

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Steven D'Aprano
On Mon, 19 Feb 2018 02:14:26 +, bartc wrote: > On 19/02/2018 00:09, Steven D'Aprano wrote: > >> Sure, but only the most boring, uninteresting kinds of types can be so >> named. The point is that "sufficiently fine-grained types" can be >> arbitrarily complex. > > I don't think so. That's ni

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Steven D'Aprano
On Sun, 18 Feb 2018 19:38:03 -0500, Dennis Lee Bieber wrote: > On Mon, 19 Feb 2018 00:09:40 + (UTC), Steven D'Aprano > declaimed the following: > > >>Or more realistically, suppose you want your type system to ensure that >>you don't lay off the wrong workers: >> >>"employee records where t

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Anders Wegge Keller
På Mon, 19 Feb 2018 08:47:14 +1100 Tim Delaney skrev: > On 18 February 2018 at 22:55, Anders Wegge Keller wrote: > > That list is not only weakly typed, but rather untyped. There are no > > safeguards in the language, that enforce that all elements in a list or > > other container are in fact

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Chris Angelico
On Mon, Feb 19, 2018 at 1:14 PM, bartc wrote: > On 19/02/2018 00:09, Steven D'Aprano wrote: > >> Sure, but only the most boring, uninteresting kinds of types can be so >> named. The point is that "sufficiently fine-grained types" can be >> arbitrarily complex. > > > I don't think so. > > If a hum

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread bartc
On 19/02/2018 00:09, Steven D'Aprano wrote: Sure, but only the most boring, uninteresting kinds of types can be so named. The point is that "sufficiently fine-grained types" can be arbitrarily complex. I don't think so. If a human finds it hard to give it a meaningful name, no algorithm wil

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Ben Finney
Richard Damon writes: > Doesn't sound like the sort of thing that you should expect a Type > Checker to find. Yes, exactly. This point is evidently ignored by people who moan that Python, though it has strong types, is prone to bugs because it has dynamic binding. As Steven points out, and you

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Richard Damon
On 2/18/18 8:16 PM, Ben Finney wrote: Dennis Lee Bieber writes: On Mon, 19 Feb 2018 00:09:40 + (UTC), Steven D'Aprano declaimed the following: Or more realistically, suppose you want your type system to ensure that you don't lay off the wrong workers: "employee records where the length

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Ben Finney
Dennis Lee Bieber writes: > On Mon, 19 Feb 2018 00:09:40 + (UTC), Steven D'Aprano > declaimed the following: > > >Or more realistically, suppose you want your type system to ensure > >that you don't lay off the wrong workers: > > > >"employee records where the length of employment is greater

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Steven D'Aprano
On Sun, 18 Feb 2018 08:02:10 +1100, Chris Angelico wrote: [...] >> The usual response to that is to make ever-finer-grained types, until >> the type-system can prove the code is correct. >> >> integers >> positive integers >> positive integers greater than 10 >> positive integers greater than 10 b

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Tim Delaney
On 18 February 2018 at 22:55, Anders Wegge Keller wrote: > På Sat, 17 Feb 2018 15:05:34 +1100 > Ben Finney skrev: > > boB Stepp writes: > > > > He blithely conflates “weakly typed” (Python objects are not weakly, but > > very strongly typed) > > Python is more strongly typed than PHP, but that

Re: Gmane seems to be gone

2018-02-18 Thread Mark Lawrence
On 18/02/18 18:03, Grant Edwards wrote: On 2018-02-18, Dennis Lee Bieber wrote: On Sun, 18 Feb 2018 17:26:54 + (UTC), Grant Edwards declaimed the following: It was Yomura who picked up the archive and continued the gateway service a couple years ago, and they just renewed the domain for

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Michelle Konzack wrote: > Am 2018-02-18 hackte Grant Edwards in die Tasten: > >> Does anybody have any idea what it would take to set up a private NNTP >> server that served articles from a dozen or so IMAP mailboxes? > > Where is the problem? > > I have my own Root-Server am subscr

Re: Gmane seems to be gone

2018-02-18 Thread breamoreboy
On Sunday, February 18, 2018 at 9:16:26 AM UTC, Chris Green wrote: > Grant Edwards wrote: > > I've been dreading this moment for a couple years: it looks like > > gmane.org is gone. The original operator/maintainer gave up a couple > > years ago and pulled the plug. Somebody else took over at tha

Re: Fw: [issue22167] iglob() has misleading documentation (does indeed store names internally)

2018-02-18 Thread Paul Moore
You're shown as nosy on that issue: 2014-08-08 01:24:52 Gumnos set nosy: + Gumnos Paul On 17 February 2018 at 13:47, Tim Chase wrote: > Has anybody else been getting unexpected/unsolicited emails from the > Python bug-tracker? > > I'm not associated with (didn't submit/lurk/follow/sign-up-for)

solve_ivp problem (scipy 1.0.0)

2018-02-18 Thread A.Brozi
Hello In new "scipy" (1.0.0) I've found procedure "solve_ivp", which makes it possible to use "events" in order to terminate the ode solution when some condition is satisfied. The precise moment of termination (the value of independent variable) is to be found in "t_events", but I cannot find

Re: Gmane seems to be gone

2018-02-18 Thread Marko Rauhamaa
Grant Edwards : > The problem is that I want to use an NNTP clinet, not an IMAP client. > I find NNTP clients are much better suited for following high-volume > lists. Well, GNUS makes *all* email look like NNTP. For example, email messages expire after grace period by default. Marko -- https:/

Re: Gmane seems to be gone

2018-02-18 Thread Chris Green
Grant Edwards wrote: > On 2018-02-18, Chris Green wrote: > > Grant Edwards wrote: > >> I've been dreading this moment for a couple years: it looks like > >> gmane.org is gone. The original operator/maintainer gave up a couple > >> years ago and pulled the plug. Somebody else took over at that p

Fwd: Re: Python on Android?

2018-02-18 Thread Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ -- Forwarded message -- From: "Abdur-Rahmaan Janhangeer" Date: 18 Feb 2018 14:17 Subject: Re: Python on Android? To: "Chris Angelico" Cc: mailed the developer sometimes back, told me to download a 3.4 included .apk on the

Re: Python on Android?

2018-02-18 Thread Johannes Findeisen
On Sun, 18 Feb 2018 20:29:02 +0300 Kirill Balunov wrote: > To mention another way to use Python on Android is Termux project > . From their site - Termux is an *Android terminal > emulator and Linux environment app* that works directly with no rooting or > setup required and

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Dennis Lee Bieber wrote: > On Sun, 18 Feb 2018 17:26:54 + (UTC), Grant Edwards > declaimed the following: > >> >>It was Yomura who picked up the archive and continued the gateway >>service a couple years ago, and they just renewed the domain for >>another year, so perhaps it's j

Re: Python on Android?

2018-02-18 Thread MRAB
On 2018-02-18 09:57, Chris Angelico wrote: Does anyone have experience with running Python scripts on Android phones? I have a brother (honestly! I'm not actually using a phone myself!) who's trying to run one of my scripts in QPython, which claims to be version 3.2.2. I think that really truly i

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread MRAB
On 2018-02-18 15:44, Michael Torrie wrote: On 02/18/2018 05:45 AM, Anders Wegge Keller wrote: På Sun, 18 Feb 2018 07:34:03 -0500 Richard Damon skrev: Python is much stronger typed than PHP, because in PHP you can do things like 1 + '2' and get 3, as string values will naturally convert thems

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread MRAB
On 2018-02-18 11:55, Anders Wegge Keller wrote: På Sat, 17 Feb 2018 15:05:34 +1100 Ben Finney skrev: boB Stepp writes: He blithely conflates “weakly typed” (Python objects are not weakly, but very strongly typed) Python is more strongly typed than PHP, but that doesn't really say much

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Grant Edwards wrote: > On 2018-02-18, Chris Green wrote: >> Grant Edwards wrote: >>> I've been dreading this moment for a couple years: it looks like >>> gmane.org is gone. The original operator/maintainer gave up a couple >>> years ago and pulled the plug. Somebody else took ove

Re: Python on Android?

2018-02-18 Thread Kirill Balunov
To mention another way to use Python on Android is Termux project . From their site - Termux is an *Android terminal emulator and Linux environment app* that works directly with no rooting or setup required and Python is a side-effect. There are still some restrictions but in

Re: Gmane seems to be gone

2018-02-18 Thread Grant Edwards
On 2018-02-18, Chris Green wrote: > Grant Edwards wrote: >> I've been dreading this moment for a couple years: it looks like >> gmane.org is gone. The original operator/maintainer gave up a couple >> years ago and pulled the plug. Somebody else took over at that point. >> The Web UI was never re

Re: Python on Android?

2018-02-18 Thread Johannes Findeisen
On Sun, 18 Feb 2018 20:57:02 +1100 Chris Angelico wrote: > Does anyone have experience with running Python scripts on Android > phones? I have a brother (honestly! I'm not actually using a phone > myself!) who's trying to run one of my scripts in QPython, which > claims to be version 3.2.2. I thin

Re: Python 2 to 3 Conversion

2018-02-18 Thread Wildman via Python-list
On Sun, 18 Feb 2018 20:51:18 +1100, Chris Angelico wrote: > On Sun, Feb 18, 2018 at 4:35 AM, Wildman via Python-list > wrote: >> Thanks to Chris and Ben. Your suggestions were slightly >> different but both worked equally well, although I don't >> understand how that can be so. >> >>> struct.pac

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Michael Torrie
On 02/18/2018 05:45 AM, Anders Wegge Keller wrote: > På Sun, 18 Feb 2018 07:34:03 -0500 > Richard Damon skrev: > >> Python is much stronger typed than PHP, because in PHP you can do things >> like 1 + '2' and get 3, as string values will naturally convert >> themselves to numbers, Python won't

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Abdur-Rahmaan Janhangeer
have the impression he is not a python coder Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ On 17 Feb 2018 07:22, "boB Stepp" wrote: > This article is written by Nathan Murthy, a staff software engineer at > Tesla. The article is found at: > https://medium.com/@natemurthy/all-the-t

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Anders Wegge Keller
På Sun, 18 Feb 2018 07:34:03 -0500 Richard Damon skrev: > Python is much stronger typed than PHP, because in PHP you can do things > like 1 + '2' and get 3, as string values will naturally convert > themselves to numbers, Python won't do this. Yes Python will freely > convert between numeric t

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Richard Damon
On 2/18/18 6:55 AM, Anders Wegge Keller wrote: På Sat, 17 Feb 2018 15:05:34 +1100 Ben Finney skrev: boB Stepp writes: He blithely conflates “weakly typed” (Python objects are not weakly, but very strongly typed) Python is more strongly typed than PHP, but that doesn't really say much. Ho

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Ned Batchelder
On 2/18/18 6:57 AM, bartc wrote: On 18/02/2018 11:45, Ned Batchelder wrote: Let's not go down this path yet again. We've heard it all before. Bart: stop it.  Everyone else: stop it. :) Well, this was a rare instance of someone admitting that a simple and smaller codebase has benefits in bein

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Anders Wegge Keller
På Sat, 17 Feb 2018 15:05:34 +1100 Ben Finney skrev: > boB Stepp writes: > He blithely conflates “weakly typed” (Python objects are not weakly, but > very strongly typed) Python is more strongly typed than PHP, but that doesn't really say much. However, compared to a language like C, there a

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread bartc
On 18/02/2018 11:45, Ned Batchelder wrote: Let's not go down this path yet again.  We've heard it all before. Bart: stop it.  Everyone else: stop it. :) Well, this was a rare instance of someone admitting that a simple and smaller codebase has benefits in being able to detect problems such as

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread Ned Batchelder
On 2/18/18 6:33 AM, bartc wrote: On 18/02/2018 01:39, Chris Angelico wrote: On Sun, Feb 18, 2018 at 12:31 PM, bartc wrote: On 18/02/2018 00:45, Chris Angelico wrote: On Sun, Feb 18, 2018 at 11:13 AM, bartc wrote: It's text, but it is an intermediate or "object" file. It's not doing poin

Re: Are the critiques in "All the things I hate about Python" valid?

2018-02-18 Thread bartc
On 18/02/2018 01:39, Chris Angelico wrote: On Sun, Feb 18, 2018 at 12:31 PM, bartc wrote: On 18/02/2018 00:45, Chris Angelico wrote: On Sun, Feb 18, 2018 at 11:13 AM, bartc wrote: It's text, but it is an intermediate or "object" file. It's not doing pointless stuff; it's coping with the

Re: Gmane seems to be gone

2018-02-18 Thread Chris Green
Marko Rauhamaa wrote: > Grant Edwards : > > > Does anybody have any idea what it would take to set up a private NNTP > > server that served articles from a dozen or so IMAP mailboxes? > > > > How hard would it be to write something like that in Python? I've got > > a pretty good handle on the IM

Python on Android?

2018-02-18 Thread Chris Angelico
Does anyone have experience with running Python scripts on Android phones? I have a brother (honestly! I'm not actually using a phone myself!) who's trying to run one of my scripts in QPython, which claims to be version 3.2.2. I think that really truly is a Python 3.2 implementation - probing for n

Re: Gmane seems to be gone

2018-02-18 Thread Michelle Konzack
Hi Grant, Am 2018-02-18 hackte Grant Edwards in die Tasten: > Does anybody have any idea what it would take to set up a private NNTP > server that served articles from a dozen or so IMAP mailboxes? Where is the problem? I have my own Root-Server am subscribed with 32 mail accounts to arround 120

Re: Gmane seems to be gone

2018-02-18 Thread Michelle Konzack
The Whois Registry was updated today for the next 12 month. Am 2018-02-18 hackte Grant Edwards in die Tasten: > I've been dreading this moment for a couple years: it looks like > gmane.org is gone. The original operator/maintainer gave up a couple > years ago and pulled the plug. Somebody else t

Re: Python 2 to 3 Conversion

2018-02-18 Thread Chris Angelico
On Sun, Feb 18, 2018 at 4:35 AM, Wildman via Python-list wrote: > Thanks to Chris and Ben. Your suggestions were slightly > different but both worked equally well, although I don't > understand how that can be so. > >> struct.pack('256s', ifname[:15].encode('ascii')) >> struct.pack('256s', ifname

Re: Mayavi website?

2018-02-18 Thread Martin Schöön
Den 2018-02-17 skrev Martin Schöön : > Anyone else having problems with interacting with > http://code.enthought.com/pages/mayavi-project.html > ? > Later yesterday I found this: http://docs.enthought.com/mayavi/mayavi/ and it works without a hitch. /Martin -- https://mail.python.org/mailman/list

Re: Gmane seems to be gone

2018-02-18 Thread Marko Rauhamaa
Grant Edwards : > Does anybody have any idea what it would take to set up a private NNTP > server that served articles from a dozen or so IMAP mailboxes? > > How hard would it be to write something like that in Python? I've got > a pretty good handle on the IMAP end of things, but I've got no clu

Re: Gmane seems to be gone

2018-02-18 Thread Chris Green
Grant Edwards wrote: > I've been dreading this moment for a couple years: it looks like > gmane.org is gone. The original operator/maintainer gave up a couple > years ago and pulled the plug. Somebody else took over at that point. > The Web UI was never revived, but the basic NNTP<->mailing-list

Re: Gmane seems to be gone

2018-02-18 Thread breamoreboy
On Sunday, February 18, 2018 at 1:18:20 AM UTC, Grant Edwards wrote: > I've been dreading this moment for a couple years: it looks like > gmane.org is gone. The original operator/maintainer gave up a couple > years ago and pulled the plug. Somebody else took over at that point. > The Web UI was ne

Re: Python 2 to 3 Conversion

2018-02-18 Thread Wildman via Python-list
Thanks to Chris and Ben. Your suggestions were slightly different but both worked equally well, although I don't understand how that can be so. > struct.pack('256s', ifname[:15].encode('ascii')) > struct.pack('256s', ifname.encode('ascii')) I was looking for a reliable way to determine the IP ad