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

2018-02-17 Thread Michael Torrie
On 02/17/2018 06:31 PM, bartc wrote: > It could well do all that. But it surely cannot need 18,000 lines' worth > to do it; that much should be obvious to anyone. And in fact, for > building with MS's Visual Studio, it doesn't use that file at all, but > something smaller. (Although the MS build

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

2018-02-17 Thread Chris Angelico
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 myriad platforms and variants >> t

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

2018-02-17 Thread bartc
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 myriad platforms and variants that Python has support for. It could well do all that. But it

Gmane seems to be gone

2018-02-17 Thread Grant Edwards
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 gateway continue to work -- un

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

2018-02-17 Thread Chris Angelico
On Sun, Feb 18, 2018 at 11:13 AM, bartc wrote: > On 17/02/2018 22:09, Chris Angelico wrote: >> >> On Sun, Feb 18, 2018 at 8:50 AM, bartc wrote: > > >>> That's a very interesting observation. >>> >>> I've frequently made the complaint about systems that I consider large >>> and >>> complex also le

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

2018-02-17 Thread bartc
On 17/02/2018 22:09, Chris Angelico wrote: On Sun, Feb 18, 2018 at 8:50 AM, bartc wrote: That's a very interesting observation. I've frequently made the complaint about systems that I consider large and complex also leading to such issues, where no one individual can see the whole picture.

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

2018-02-17 Thread Chris Angelico
On Sun, Feb 18, 2018 at 8:50 AM, bartc wrote: > On 17/02/2018 20:11, Chris Angelico wrote: >> >> On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote: > > >>> Okay, I'm curious. How did C# force you to make extra HTTP requests >>> that were no longer necessary when you rewrote in Python? >> >> >> It

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

2018-02-17 Thread bartc
On 17/02/2018 20:11, Chris Angelico wrote: On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote: Okay, I'm curious. How did C# force you to make extra HTTP requests that were no longer necessary when you rewrote in Python? It didn't *force* those requests to be made, but the code was so large a

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

2018-02-17 Thread Chris Angelico
On Sun, Feb 18, 2018 at 5:05 AM, Steven D'Aprano wrote: > On Sat, 17 Feb 2018 15:25:15 +1100, Chris Angelico wrote: > >> 1) Type safety. >> >> This is often touted as a necessity for industrial-grade software. It >> isn't. There are many things that a type system, no matter how >> sophisticated, c

Re: Replying on a tweet with Twython

2018-02-17 Thread Cecil Westerhof
Steven D'Aprano writes: > On Sat, 17 Feb 2018 12:53:08 +0100, Cecil Westerhof wrote: > >> Cecil Westerhof writes: >> >>> I just found Twython. I managed to post a tweet with: >>> from twython import Twython >>> twitter = Twython(APP_KEY, APP_SECRET, >>> OAUTH_TOKEN

Re: [Tkinter]Validation to multiple Entry widgets

2018-02-17 Thread Beppe
Il giorno sabato 17 febbraio 2018 20:21:53 UTC+1, Peter Otten ha scritto: > Beppe wrote: > > > I would validate values input, on key, in multiple Entry widgets create at > > run time > > > > I wrote this snip but even if the entry are created and the callback work > > well the relative value is m

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

2018-02-17 Thread Chris Angelico
On Sun, Feb 18, 2018 at 1:47 AM, Ian Kelly wrote: > On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote: >> You'd be surprised how rarely that kind of performance even matters. >> The author of that article cites C# as a superior language, but in the >> rewrite from C# to Python (the same one I

Re: [Tkinter]Validation to multiple Entry widgets

2018-02-17 Thread Peter Otten
Beppe wrote: > I would validate values input, on key, in multiple Entry widgets create at > run time > > I wrote this snip but even if the entry are created and the callback work > well the relative value is missing > my_list = (2.14,18.3,76.4,2.38,0.425,2.68,1.09,382,8.59,0.495)

[Tkinter]Validation to multiple Entry widgets

2018-02-17 Thread Beppe
hi all, I would validate values input, on key, in multiple Entry widgets create at run time I wrote this snip but even if the entry are created and the callback work well the relative value is missing #!/usr/bin/python3 import tkinter as tk class Application(tk.Frame): def __init__(self, m

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

2018-02-17 Thread Steven D'Aprano
On Sat, 17 Feb 2018 15:25:15 +1100, Chris Angelico wrote: > 1) Type safety. > > This is often touted as a necessity for industrial-grade software. It > isn't. There are many things that a type system, no matter how > sophisticated, cannot catch; The usual response to that is to make ever-finer-

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

2018-02-17 Thread Mark Lawrence
On 17/02/18 09:29, Gregory Ewing wrote: boB Stepp wrote: "Python is viewed as a ubiquitous programming language; however, its design limits its potential as a reliable and high performance systems language. Unfortunately, not every developer is aware of its limitations." "The Toyota Corolla is

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

2018-02-17 Thread bartc
On 17/02/2018 14:30, Steven D'Aprano wrote: And ironically, in a *modern* statically typed language, you may not even need the type declarations. After all, in a modern type-checker, the compiler can infer that since foo returns 'hello world', it must return a string; it can probably even infer

Re: How to run script from interpreter?

2018-02-17 Thread Steven D'Aprano
On Fri, 16 Feb 2018 14:18:16 -0800, windhorn wrote about running scripts from the interpreter: [...] > That works, but nothing is very convenient for debugging simple scripts. > If I run the script from a command prompt it works, but I lose all my > other stuff (debugging functions, variables, e

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

2018-02-17 Thread Ian Kelly
On Fri, Feb 16, 2018 at 9:32 PM, Chris Angelico wrote: > You'd be surprised how rarely that kind of performance even matters. > The author of that article cites C# as a superior language, but in the > rewrite from C# to Python (the same one I mentioned in the other > post), I sped the program up i

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

2018-02-17 Thread Steven D'Aprano
On Sat, 17 Feb 2018 03:29:49 -0500, Terry Reedy wrote: > His dreadful strawperson code snippet should not be allowed even in a > beginning programming class, let alone in professional programs. > > def foo(x): > if is_valid(x): > return "hello world" > else: > return b

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

2018-02-17 Thread Tim Chase
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) this bug or its notifications but somehow I'm getting messages on this particular issue. I've now received two notifications (both on this same

Re: Replying on a tweet with Twython

2018-02-17 Thread Steven D'Aprano
On Sat, 17 Feb 2018 12:53:08 +0100, Cecil Westerhof wrote: > Cecil Westerhof writes: > >> I just found Twython. I managed to post a tweet with: >> from twython import Twython >> twitter = Twython(APP_KEY, APP_SECRET, >> OAUTH_TOKEN, OAUTH_TOKEN_SECRET) >> posted

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

2018-02-17 Thread Chris Angelico
On Sat, Feb 17, 2018 at 10:28 PM, Ben Bacarisse wrote: > Marko Rauhamaa writes: > >> Many people think static typing is key to high quality. I tend to think >> the reverse is true: the boilerplate of static typing hampers >> expressivity so much that, on the net, quality suffers. > > I don't fin

Re: Replying on a tweet with Twython

2018-02-17 Thread Cecil Westerhof
Cecil Westerhof writes: > I just found Twython. I managed to post a tweet with: > from twython import Twython > twitter = Twython(APP_KEY, APP_SECRET, > OAUTH_TOKEN, OAUTH_TOKEN_SECRET) > posted = twitter.update_status(status = quote) > > But I want to send a rep

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

2018-02-17 Thread Ben Bacarisse
Marko Rauhamaa writes: > Many people think static typing is key to high quality. I tend to think > the reverse is true: the boilerplate of static typing hampers > expressivity so much that, on the net, quality suffers. I don't find that with Haskell. It's statically typed but the types are almo

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

2018-02-17 Thread Marko Rauhamaa
Gregory Ewing : > boB Stepp wrote: >> "Python is viewed as a ubiquitous programming language; however, its >> design limits its potential as a reliable and high performance >> systems language. Unfortunately, not every developer is aware of its >> limitations." > > "The Toyota Corolla is viewed as

Replying on a tweet with Twython

2018-02-17 Thread Cecil Westerhof
I just found Twython. I managed to post a tweet with: from twython import Twython twitter = Twython(APP_KEY, APP_SECRET, OAUTH_TOKEN, OAUTH_TOKEN_SECRET) posted = twitter.update_status(status = quote) But I want to send a reply on this tweet. I tried: post

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

2018-02-17 Thread Gregory Ewing
boB Stepp wrote: "Python is viewed as a ubiquitous programming language; however, its design limits its potential as a reliable and high performance systems language. Unfortunately, not every developer is aware of its limitations." "The Toyota Corolla is viewed as a ubiquitous family car; howev

Mayavi website?

2018-02-17 Thread Martin Schöön
Anyone else having problems with interacting with http://code.enthought.com/pages/mayavi-project.html ? All I can see is the front page. Clicking on anything in that page results in nothing or 404. I have tried several browsers. /Martin -- https://mail.python.org/mailman/listinfo/python-list

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

2018-02-17 Thread Terry Reedy
On 2/16/2018 10:22 PM, 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-things-i-hate-about-python-5c5ff5fda95e To add to what other have said: Here is what the author said about word

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

2018-02-17 Thread Christian Gollwitzer
Am 17.02.18 um 05:54 schrieb boB Stepp: And this is one I am still puzzling over: Are statically-typed languages inherently "safer" than properly implemented dynamically-typed languages? I can see the advantages of catching type errors at compile time versus run time. If you haven't tried s