Re: How to install matplotlib in Debian 9

2018-06-08 Thread Jim Lee
On 06/08/2018 11:54 AM, Markos wrote: Hi, I'm starting my studies with Python 3 on Debian 9 that I just installed. I have to install the matplotlib module, but I am in doubt what is the difference of the commands: pip3 install matplotlib or apt-get install python3-matplotlib Is there

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 12:52 PM, Rhodri James wrote: On 18/06/18 19:34, Jim Lee wrote: Type hints are just that - hints.  They have no syntactic meaning to the parser, This is plainly not true, otherwise the parser would be throwing syntax errors at you all the time.  Whether they have semantic

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 11:01 AM, Ian Kelly wrote: On Mon, Jun 18, 2018 at 11:39 AM Jim Lee wrote: On 06/18/2018 07:03 AM, Steven D'Aprano wrote: As a human programmer, you surely perform your own ad hoc type checking when you write and debug code. Of course. And, I use linting tools and other

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 11:18 AM, Chris Angelico wrote: What, fundamentally, is the difference between type hints and assertions, such that - in your view - one gets syntax and the other is just comments? Type hints are just that - hints.  They have no syntactic meaning to the parser, and do not

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 11:49 AM, Chris Angelico wrote: On Tue, Jun 19, 2018 at 4:34 AM, Jim Lee wrote: On 06/18/2018 11:18 AM, Chris Angelico wrote: What, fundamentally, is the difference between type hints and assertions, such that - in your view - one gets syntax and the other is just comments

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 10:46 AM, Chris Angelico wrote: On Tue, Jun 19, 2018 at 3:34 AM, Jim Lee wrote: On 06/18/2018 07:03 AM, Steven D'Aprano wrote: As a human programmer, you surely perform your own ad hoc type checking when you write and debug code. Of course. And, I use linting tools

Re: Python list vs google group

2018-06-15 Thread Jim Lee
On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN Really? I always thought it didn't scan. Having spent way WAY too many hours trying to turn documents

Re: Python list vs google group

2018-06-15 Thread Jim Lee
On 06/15/2018 07:08 PM, Richard Damon wrote: On 6/15/18 9:00 PM, Jim Lee wrote: On 06/15/2018 05:00 PM, Chris Angelico wrote: On Sat, Jun 16, 2018 at 4:52 AM, Rob Gaddi wrote: On 06/15/2018 11:44 AM, Larry Martell wrote: My favorite acronym of all time is TWAIN Really?  I always

Re: Python list vs google group

2018-06-16 Thread Jim Lee
On 06/16/2018 12:38 PM, Rick Johnson wrote: On Friday, June 15, 2018 at 9:14:13 PM UTC-5, Richard Damon wrote: if the Windows driver broke some specification but still sort of worked [...] ...that's when the engineers in the Redmond, WA area know it's time to package and ship the product!

Re: Python list vs google group

2018-06-16 Thread Jim Lee
On 06/16/2018 08:36 AM, Richard Damon wrote: On 6/15/18 11:07 PM, Jim Lee wrote: [snip] I once had a Mustek color scanner that came with a TWAIN driver.  If the room temperature was above 80 degrees F, it would scan in color - otherwise, only black & white.  I was *sure* it was a hard

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 07:03 AM, Steven D'Aprano wrote: As a human programmer, you surely perform your own ad hoc type checking when you write and debug code. Of course.  And, I use linting tools and other forms of static type checking.  What I don't like is adding the *syntax* for static type

Re: syntax difference

2018-06-18 Thread Jim Lee
On 06/18/2018 02:36 PM, Schachner, Joseph wrote: Now that you know that 1) You are not required to modify your source code at all, even if you want to get full utility from typing, and 2) you really don't have use typing at all, nothing forces you to, and 3) it's been developed by the

Re: Folk etymology, was Re: Python list vs google group

2018-06-18 Thread Jim Lee
On 06/18/2018 04:09 PM, Gregory Ewing wrote: Peter Otten wrote: "folk etymology" would be the retrofitting of the exotic "Schottky" into two familiar words "shot" and "key". Sometimes the writer assumes that these words are somehow related to the labeled object. Well, there is a thing

Re: mutable sequences

2018-06-13 Thread Jim Lee
On 06/13/2018 07:56 PM, Sharan Basappa wrote: The term mutable appears quite often in Python. Can anyone explain what is meant by mutable and immutable sequences. Mutable means changeable, and immutible means not mutable, or unchangeable. For example, Python lists are mutable. BTW, is the

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-14 Thread Jim Lee
On 06/13/2018 11:38 PM, Chris Angelico wrote: On Thu, Jun 14, 2018 at 11:07 AM, Jim Lee wrote: I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase software and then agree to wait 14 weeks

Re: Why an object changes its "address" between adjacent calls?

2018-06-17 Thread Jim Lee
On 06/17/2018 12:08 AM, Jach Fong wrote: C:\Python34\Doc>py Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter as tk >>> root = tk.Tk() >>> tk.Label(root,

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/16/2018 10:13 PM, Sharan Basappa wrote: I think I am now confused with format options in Python. I tried an example as below and both print proper value: age = 35 print "age is %s" % age print "age is %d" % age %run "D:/Projects/Initiatives/machine learning/programs/six.py" age is 35

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 11:10 AM, Rick Johnson wrote: Steven D'Aprano wrote: Bart Wrote: So what's a Type Hint associated with in Python? Since it is a type *hint*, not a type *declaration*, the interpreter can and does ignore it. But yet, the _programmer_ cannot ignore it. Does that make any sense

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 02:17 PM, Chris Angelico wrote: [snip] My apologies, stuff wrapped and I misread as I skimmed back. You were the one who used the word "shoehorned". In the same way, that sounds like you already knew the language, and then someone added extra features that don't fit. It's not

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 01:35 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:23 AM, Marko Rauhamaa wrote: Jim Lee : IMHO, trying to shoehorn static type checking on top of a dynamically typed language shows that the wrong language was chosen for the job. I'm also saddened by the type hinting

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 01:56 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:50 AM, Jim Lee wrote: On 06/17/2018 01:35 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 6:23 AM, Marko Rauhamaa wrote: Jim Lee : IMHO, trying to shoehorn static type checking on top of a dynamically typed

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 05:39 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 10:22 AM, Jim Lee wrote: On 06/17/2018 02:17 PM, Chris Angelico wrote: [snip] My apologies, stuff wrapped and I misread as I skimmed back. You were the one who used the word "shoehorned". In the same way, t

Re: syntax difference

2018-06-17 Thread Jim Lee
On 06/17/2018 10:04 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 2:59 PM, Jim Lee wrote: On 06/17/2018 05:39 PM, Chris Angelico wrote: On Mon, Jun 18, 2018 at 10:22 AM, Jim Lee wrote: On 06/17/2018 02:17 PM, Chris Angelico wrote: [snip] My apologies, stuff wrapped and I misread

Re: syntax difference

2018-06-19 Thread Jim Lee
On 06/19/2018 04:13 AM, Ed Kellett wrote: I think we're all--still--missing the larger point that "easy to remove" is a completely stupid metric for judging language features. Seriously. Not a little bit stupid. Not if you think of the feature as analogous to cancer. -Jim --

Re: Django-hotsauce 1.0 LTS (Commercial Edition) now available for preorder!!

2018-06-14 Thread Jim Lee
I haven't purchased commercial software in decades, so I'm not up on the prevailing business model, but I have to ask: Why would anyone purchase software and then agree to wait 14 weeks for it to be delivered?  I can see that model for hardware, where material resources are limited and a

leetv 1.12 released

2018-05-30 Thread Jim Lee
on YouTube, but that's it. I don't even have to stop or restart anything. It works so well that I added a wireless HDMI transmitter so that the signal is available on any TV in the house! --- Thanks for reading, --Jim Lee -- https://mail.python.org/mailman/listinfo/python-list

tkinter (ttk) combobox dropdown text is white on white

2018-06-03 Thread Jim Lee
the appearance of entries in the dropdown list. Any pointers? Thanks, -Jim Lee -- https://mail.python.org/mailman/listinfo/python-list

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-04 Thread Jim Lee
Oops, I hit "reply" instead of "reply-list" last time.  Trying again... On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import ttk root = tk.Tk() cb = ttk.Combobox(root) cb.grid(row=0, colu

Re: tkinter (ttk) combobox dropdown text is white on white

2018-06-05 Thread Jim Lee
On 06/05/2018 12:21 AM, Peter Otten wrote: Jim Lee wrote: Oops, I hit "reply" instead of "reply-list" last time. Trying again... On 06/03/2018 02:01 PM, Christian Gollwitzer wrote: Am 03.06.18 um 21:54 schrieb Jim Lee:> import tkinter as tk from tkinter import

Re: site package does not work

2018-06-06 Thread Jim Lee
On 06/05/2018 01:33 PM, Erik Martinson via Python-list wrote: I am trying to dynamically add a site-package to a script that is run as a cron job. The method adduseristepackages does not seem to do anything. import sys import site

Re: I lost nearly all my modules installing 3.7

2018-06-29 Thread Jim Lee
On 06/29/18 21:48, dieter wrote: I do not know "pkg-config". The name seems to indicate an operating system package; but, it might also be a Python extension package (less likely). I would start with the "matplotlib" installation instructions to look for information about it.

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-29 Thread Jim Lee
On 06/29/18 07:15, Dennis Lee Bieber wrote: On 6/28/2018 9:05 PM, Avon wrote: Being able to send messages by ham radio is useful in disasters as well as nostalgic. I just don't know what people are doing these days. Though I haven't heard much of the AX.25 Packet BBS systems in

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

2018-06-29 Thread Jim Lee
On 06/29/18 08:05, T Berger wrote: On Friday, June 29, 2018 at 10:45:10 AM UTC-4, T Berger wrote: On Thursday, June 28, 2018 at 1:21:32 AM UTC-4, T Berger wrote: Hi Guys, Thanks for all the suggestions. I found the problem. I had saved my program in IDLE and quit out of the shell, and then

Re: Should nested classes in an Enum be Enum members?

2018-06-29 Thread Jim Lee
On 06/29/18 16:02, Cameron Simpson wrote: On 29Jun2018 10:36, Ethan Furman wrote: On 06/28/2018 10:52 PM, Steven D'Aprano wrote: On Thu, 28 Jun 2018 18:33:31 -0700, Ethan Furman wrote: Perhaps I am using Enum incorrectly, but here is my FederalHoliday Enum.  Note that date(),

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

2018-07-01 Thread Jim Lee
On 07/01/18 18:21, Steven D'Aprano wrote: Guido has been talking about this for a LONG time: You keep bringing that up.  It's not an argument. People have been talking about taxes for a long, long time.  Does it surprise you that they still do?  None of us has a time machine that will

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-26 Thread Jim Lee
From: Jim Lee On 06/24/2018 04:35 AM, Steven D'Aprano wrote: > > Indeed. That's one of the beauties of Python -- even when there's an > advanced way to do it, there's generally a simple way too. > > What happened to the Python maxim "There should be oneΓ ÷and preferably on

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

2018-06-27 Thread Jim Lee
On 06/27/18 08:49, T Berger wrote: Why am I getting this error? I'm not sure what additional information I need to supply, so please let me know. You asked this question two weeks ago and got several answers.  Here is one of them: On 06/15/18 10:17, Percival John Hackworth wrote: On

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
On 06/27/18 11:45, Abdur-Rahmaan Janhangeer wrote: and that closes it, thanks !!! Abdur-Rahmaan Janhangeer https://github.com/Abdur-rahmaanJ Importing variables from a file is dangerous because it can execute arbitrary code. It should never be done with files provided by the user. Using

Re: configparser v/s file variables

2018-06-27 Thread Jim Lee
On 06/27/18 15:19, Steven D'Aprano wrote: On Wed, 27 Jun 2018 12:15:23 -0700, Jim Lee wrote:   It seems a bit silly to me to worry about arbitrary code execution   in an interpreted language like Python whose default runtime execution method is to parse the source code directly

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 11:16 PM, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 4:08 PM, Jim Lee wrote: >> There are three locals: a, b, and result. Since result cannot be assigned >> a value until the list comp has been evaluated, I would expect the comp to >> re

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 10:03 PM, Steven D'Aprano wrote: > I'd like to run a quick survey. There is no right or wrong answer, since > this is about your EXPECTATIONS, not what Python actually does. > > Given this function: > > > def test(): > a = 1 > b

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-25 Thread Jim Lee
From: Jim Lee On 06/23/2018 11:02 PM, Chris Angelico wrote: > On Sun, Jun 24, 2018 at 3:44 PM, Jim Lee wrote: >> >> On 06/23/2018 10:03 PM, Steven D'Aprano wrote: >>> I'd like to run a quick survey. There is no right or wrong answer, since >>> this is about y

Re: Python for beginners or not? [was Re: syntax difference]

2018-06-25 Thread Jim Lee
On 06/24/2018 04:35 AM, Steven D'Aprano wrote: Indeed. That's one of the beauties of Python -- even when there's an advanced way to do it, there's generally a simple way too. What happened to the Python maxim "There should be one—and preferably only one—obvious way to do it"? -Jim --

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-23 Thread Jim Lee
On 06/23/2018 10:03 PM, Steven D'Aprano wrote: I'd like to run a quick survey. There is no right or wrong answer, since this is about your EXPECTATIONS, not what Python actually does. Given this function: def test(): a = 1 b = 2 result = [value for key, value in

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-24 Thread Jim Lee
On 06/23/2018 11:16 PM, Chris Angelico wrote: On Sun, Jun 24, 2018 at 4:08 PM, Jim Lee wrote: There are three locals: a, b, and result. Since result cannot be assigned a value until the list comp has been evaluated, I would expect the comp to return a value of "None"

Re: Quick survey: locals in comprehensions (Python 3 only)

2018-06-24 Thread Jim Lee
On 06/23/2018 11:02 PM, Chris Angelico wrote: On Sun, Jun 24, 2018 at 3:44 PM, Jim Lee wrote: On 06/23/2018 10:03 PM, Steven D'Aprano wrote: I'd like to run a quick survey. There is no right or wrong answer, since this is about your EXPECTATIONS, not what Python actually does. Given

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

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

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

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

Re: error in os.chdir

2018-06-30 Thread Jim Lee
On 06/30/18 07:34, Sharan Basappa wrote: sorry. I mean why my code worked in one case but did not in the other one. This worked - os.chdir('D:\Projects\Initiatives\machine learning\programs') This did not work - os.chdir('D:\Projects\Initiatives\machine learning\programs\assertion') only

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

2018-06-30 Thread Jim Lee
On 06/28/18 18:04, Dan Stromberg wrote: [snip] Start an echo server process P that listens on tcp/. Initiate a connection from a client machine to process P at tcp/. It works as expected. Kill P. Initiate a connection from a client machine to process P at tcp/. It gives a

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

2018-07-03 Thread Jim Lee
On 07/03/18 16:51, Steven D'Aprano wrote: I love watching pedantically precise people panic and dig themselves into a hole. Since I'm an extremely pedantic person myself, I can recognise it in others -- especially when they're not as precisely correct as they think they're being. It was two

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

2018-07-03 Thread Jim Lee
On 07/03/18 19:58, Ben Finney via Python-list wrote: Jim Lee writes: If you were to say John had 2 apples, Jane had 4 apples, and Joe had an indefinite number of apples, how many numbers are we talking about? Three numbers. And “indefinite” is not one of those numbers. So, no, that doesn't

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

2018-07-03 Thread Jim Lee
On 07/03/18 21:35, Ben Finney wrote: Abdur-Rahmaan Janhangeer writes: apart from programming, other questions go like this : […] *cut at this point* Ooh, I like that last step! How do we make that happen on demand? You could start by not adding to the noise... :) --

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

2018-07-03 Thread Jim Lee
On 07/03/18 19:31, Chris Angelico wrote: I've had debates with people about whether "infinity" is a number or not, but I've never yet heard anyone say that "indefinite" is a number. Hmm. This could be interesting. ChrisA If you were to say John had 2 apples, Jane had 4 apples, and Joe had

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

2018-07-03 Thread Jim Lee
On 07/03/18 22:03, Ben Finney wrote: Jim Lee writes: I claimed that Steven was using three different numbers to refer to the time it takes to master a subject: 10,000 hours an indefinite number 2 years Yes. He did so in the context of showing that *there is no precise number

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

2018-07-03 Thread Jim Lee
On 07/03/18 21:25, Ben Finney wrote: Jim Lee writes: On 07/03/18 19:58, Ben Finney via Python-list wrote: Jim Lee writes: If you were to say John had 2 apples, Jane had 4 apples, and Joe had an indefinite number of apples, how many numbers are we talking about? Three numbers

Re: Is it possible to call a class but without a new instance created?

2018-06-19 Thread Jim Lee
On 06/18/2018 09:22 PM, Jach Fong wrote: Ben Finney at 2018/6/19 PM 10:20 wrote: Jach Fong writes: Although it passed the first examination, I have no idea if it can work correctly in the real application:-) Neither do I. What is the real-world problem you are trying to solve? Why do you

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 03:39, Steven D'Aprano wrote: Good for you. But Python is not a programming language written to satisfy the needs of people like you, and ONLY people like you. It is a language written to satisfy the needs of people from Uzbekistan, and China, and Japan, and India, and Brazil,

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 11:31, Steven D'Aprano wrote: On Mon, 16 Jul 2018 10:27:18 -0700, Jim Lee wrote: Had you actually read my words with *intent* rather than *reaction*, you would notice that I suggested the *option* of turning off Unicode. Yes, I know what you wrote, and I read it with intent

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 03:26, Steven D'Aprano wrote: But the thing is, that complexity is *inherent in the domain*. You can try to deal with it without Unicode, and as soon as you have users expecting to use more than one code page, you're doomed. No, I'm not doomed, because there *are* no other

Re: Unicode [was Re: Cult-like behaviour]

2018-07-16 Thread Jim Lee
On 07/16/18 10:40, Mark Lawrence wrote: On 16/07/18 18:27, Jim Lee wrote: Obviously, the most vocal representatives of the Python community are too sensitive about their language to enable rational discussion. Please moderators ban this person as he's going down the same line as bartc

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 13:09, Chris Angelico wrote: On Mon, Jul 16, 2018 at 4:22 AM, James Lee wrote: On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let alone

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 12:37, MRAB wrote: To me, Unicode and UTF-8 aren't things to be reserved for I18N. I use them as a matter of course because I find it a lot easier to stick with just one encoding, one that will work with _any_ text I have. Which is exactly the same rationale for using any other

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a platform for HUMANS to communicate with HUMANS. Ultimately, that is what matters. Pick any other web site or communication protocol you please. ChrisA Yes, and for *that*, language

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty much anything that talks to humans. You keep saying that ... well you keep

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters;  but, for a vast array of programming tasks that *don't* involve global communications, it's an added level of complexity with zero benefit.  It would be *nice* to be able to turn support on or off

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:13, Chris Angelico wrote: On Mon, Jul 16, 2018 at 9:08 AM, Jim Lee wrote: On 07/15/18 14:50, Marko Rauhamaa wrote: Jim Lee : Yes, and for *that*, language matters; but, for a vast array of programming tasks that *don't* involve global communications, it's an added level

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:24, Chris Angelico wrote: That is why this seems obtuse to me. There is no benefit to going to a pre-Unicode way of working with text. ChrisA In a word - simplicity. As I said, there are programming situations where the programmer only needs to deal with a single language

Re: Users banned

2018-07-15 Thread Jim Lee
On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:35 AM, Marko Rauhamaa wrote: Christian Gollwitzer : Am 15.07.18 um 19:25 schrieb Ethan Furman: The following users are now banned from Python List: ... BartC I don't really think that this is appropriate. Bart may have

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 16:55, Steven D'Aprano wrote: On Sun, 15 Jul 2018 11:22:11 -0700, James Lee wrote: On 7/15/2018 3:43 AM, Steven D'Aprano wrote: No. The real ten billion dollar question is how people in 2018 can stick their head in the sand and take seriously the position that Latin-1 (let

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:18, Steven D'Aprano wrote: On Sun, 15 Jul 2018 16:08:15 -0700, Jim Lee wrote: Python3 is intrinsically tied to Unicode for string handling. Therefore, the Python programmer is forced to deal with it (in all but trivial cases), rather than given a choice.  So I don't understand

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 17:17, MRAB wrote: On 2018-07-16 00:10, Jim Lee wrote: On 07/15/18 16:04, Chris Angelico wrote: You claimed that Unicode was insignificant to many programs. I'm trying to say that a Unicode text string is a vital part of any program that works with text, which is pretty much

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact that it is a platform for HUMANS to communicate with HUMANS. Ultimately, that is what matters. Pick any

Re: Cult-like behaviour [was Re: Kindness]

2018-07-15 Thread Jim Lee
On 07/15/18 15:07, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:57 AM, Jim Lee wrote: On 07/15/18 14:53, Chris Angelico wrote: On Mon, Jul 16, 2018 at 7:02 AM, Jim Lee wrote: On 07/15/18 13:30, Chris Angelico wrote: It doesn't matter what Twitch is, except for the fact

Re: Cult-like behaviour [was Re: Kindness]

2018-07-14 Thread Jim Lee
On 07/14/18 02:09, Christian Gollwitzer wrote: Am 14.07.18 um 10:00 schrieb Marko Rauhamaa: Steven D'Aprano : Apparently Marko didn't notice the irony of suggesting that we display excessive commitment to GvR The object of the "cult" isn't GvR, it's Python itself. I agree with this

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 05:14, Marko Rauhamaa wrote: Abdur-Rahmaan Janhangeer : * Create as many functions as you can performance? Python? Seriously, though. The principle of expressive encapsulation is one of the basic cornerstones of writing computer programs. Performance barely ever becomes a

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 10:15, Calvin Spealman wrote: On Thu, Jul 5, 2018 at 12:59 PM, Jim Lee <mailto:jle...@gmail.com>> wrote: On 07/05/18 05:14, Marko Rauhamaa wrote: Abdur-Rahmaan Janhangeer mailto:arj.pyt...@gmail.com>>: * Create as many funct

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 10:47, Calvin Spealman wrote: You say "pitfall", but I say "allow developers to focus on higher-level problems and enable developers to specialize among tasks so every single one of us doesn't have to be a jack of all trades just to build a todo list app". Sure, that's

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 12:58, Chris Angelico wrote: On Fri, Jul 6, 2018 at 4:27 AM, Jim Lee wrote: On 07/05/18 10:47, Calvin Spealman wrote: You say "pitfall", but I say "allow developers to focus on higher-level problems and enable developers to specialize among tasks so every s

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 14:15, MRAB wrote: On 2018-07-05 21:43, Jim Lee wrote: On 07/05/18 12:58, Chris Angelico wrote: On Fri, Jul 6, 2018 at 4:27 AM, Jim Lee wrote: On 07/05/18 10:47, Calvin Spealman wrote: You say "pitfall", but I say "allow developers to focus on higher

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 18:14, Michael Torrie wrote: On 07/05/2018 11:47 AM, Calvin Spealman wrote: That wasn't me, but I do agree with the sentiment in that its often silly to focus on them at the wrong time and without constraints that warrant that focus. Premature optimization is the root of all

Re: about main()

2018-07-05 Thread Jim Lee
On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food is so realistic. Even the Eskimos and Inuit, living in some of the harshest

Re: Feasibility of console based (non-Gui) Tkinter app which can accept keypresses?

2018-07-11 Thread Jim Lee
On 07/11/18 07:09, jkn wrote: Hi All This is more of a Tkinter question rather than a python one, I think, but anyway... I have a Python simulator program with a Model-View_Controller architecture. I have written the View part using Tkinter in the first instance; later I plan to use Qt.

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 11:25, Grant Edwards wrote: On 2018-07-06, Jim Lee wrote: Pedantics again. Didn't even get the point before tearing apart the *analogy* rather than the *point itself*. Jim Lee, this is the Internet. Intenet, this is Jim Lee. :) You have an inaccurate anthropomorphic

Re: about main()

2018-07-06 Thread Jim Lee
On 07/06/18 12:57, Terry Reedy wrote: On 7/5/2018 9:40 PM, Jim Lee wrote: On 07/05/18 18:25, Steven D'Aprano wrote: On Thu, 05 Jul 2018 11:27:09 -0700, Jim Lee wrote: Take a village of people.  They live mostly on wild berries. Because of course a community of people living on one food

Re: testing code

2018-07-08 Thread Jim Lee
On 07/07/18 21:21, Sharan Basappa wrote: sorry. there was a copy paste error when i posted. I pasted test_2.py for both the files: here are the files again. The issue remains. [...] output: %run "D:/Projects/Initiatives/machine learning/programs/test_2_test.py" 30 [11:24 PM jlee@kerndev

Re: Getting posts to sort chronologically in tree view

2018-07-03 Thread Jim Lee
On 07/03/18 08:49, T Berger wrote: It would help if my conversations showed up in my gmail, but they don't. I thought that would happen when I chose the "Automatically subscribe me to email updates when I post to a topic" option in the forum settings. Am I wrong? And is there some way to

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

2018-07-03 Thread Jim Lee
On 07/03/18 01:34, Steven D'Aprano wrote: I said *indefinite* not infinite. Yes, you did.  My bad. You did read the article I linked to, right? You know that people don't suddenly and instantly turn from "beginner" to "expert" when they exceed 9,999 hours 59 minutes and 59 seconds?

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

2018-07-03 Thread Jim Lee
On 07/03/18 06:32, Dennis Lee Bieber wrote: On Mon, 2 Jul 2018 19:51:29 -0500, Tim Daneliuk declaimed the following: 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 degrees of

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 16:44, Steven D'Aprano wrote: I agree with you that it's a bad idea. Aside from the little fact that you described concerns about using Python code for settings as "silly". Umm, no.  I said that worrying about arbitrary code execution in an interpreted language seemed silly. 

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 00:46, Steven D'Aprano wrote: Yes, attacks by trusted insiders are the hardest to defend against. Betrayal of trust sucks. Trusted users with sufficient privileges could just modify the source code of your application or of Python itself. They could also attack your system in a

Re: configparser v/s file variables

2018-06-28 Thread Jim Lee
On 06/28/18 07:30, Grant Edwards wrote: I still maintain it's a bad idea to run arbitrary code found in user-edited config files. There may be cases where somebody has figured out how to muck with a config file that's shared among multiple users, or has tricked somebody into including

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
On 06/28/18 07:34, Grant Edwards wrote: OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in POTS modem, but it's never been used.] BBS's are most often connected to via telnet these days.  There are

Re: [OT] Why are BBSes? [was Where's the junk coming from?]

2018-06-28 Thread Jim Lee
On 06/28/18 11:45, Grant Edwards wrote: On 2018-06-28, Jim Lee wrote: On 06/28/18 07:34, Grant Edwards wrote: OK, I've got to ask... Why are there still BBSes? Who even has a modem these days? [OK, I'll admit my 11 year old Thinkpad T500 has a built-in POTS modem, but it's never been