Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jach Feng
Kushal Kumaran 在 2021年2月17日 星期三下午12:11:04 [UTC+8] 的信中寫道: > On Tue, Feb 16 2021 at 07:24:30 PM, Jach Feng wrote: > > I am experimenting with multithreading-socket these days. I build a > > server to handle each client in a separate thread. All are running on > > my local PC. It works fine except

School Python

2021-02-16 Thread Avi Gross via Python-list
I wonder if someone has come up with a sort of Python environment that lets kids play with more fundamental parts of the language that lets them get educated without the confusion. I mean a limited subset and with some additions/modifications. Someone mentioned how something like range(1,10) is

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Kushal Kumaran
On Tue, Feb 16 2021 at 07:24:30 PM, Jach Feng wrote: > I am experimenting with multithreading-socket these days. I build a > server to handle each client in a separate thread. All are running on > my local PC. It works fine except the listen() method. > > I set listen(2) and expect to see "error"

Re: What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jason Friedman
> > I set listen(2) and expect to see "error" when more clients than "the > maximum number of queued connections" trying to connect the server. But, no > error!! Even 4 clients can run normally without problem. > > Am I misunderstanding the meaning of this argument? > https://docs.python.org/3/lib

What's the meaning the "backlog" in the socket.listen(backlog) is?

2021-02-16 Thread Jach Feng
I am experimenting with multithreading-socket these days. I build a server to handle each client in a separate thread. All are running on my local PC. It works fine except the listen() method. I set listen(2) and expect to see "error" when more clients than "the maximum number of queued connect

Re: New Python implementation

2021-02-16 Thread Abdur-Rahmaan Janhangeer
Greetings, age: After university to retirement level: school, A Level is high school, not university -- https://mail.python.org/mailman/listinfo/python-list

Re: New Python implementation

2021-02-16 Thread Igor Korot
Hi, On Tue, Feb 16, 2021, 8:15 PM Abdur-Rahmaan Janhangeer wrote: > Greetings list, > > > Even if Python is my choice language for personal projects, I am not > certain it > is the right language to use in a classroom context. > > This sums the view of most teachers in my country. In here for

Re: [Python-Dev] Re: Python 0.9.1

2021-02-16 Thread Skip Montanaro
> Also mind > http://www.dalkescientific.com/writings/diary/archive/2009/03/27/python_0_9_1p1.html > for result comparison. Thanks, Paul. I had lost track of Andrew. Good to know he's still out there. I wonder why his tar file was never sucked up into the historical releases page. Whew! My stupid

Re: New Python implementation

2021-02-16 Thread Abdur-Rahmaan Janhangeer
Greetings list, > Even if Python is my choice language for personal projects, I am not certain it is the right language to use in a classroom context. This sums the view of most teachers in my country. In here for A level at Cambridge for Computer Studies you can choose either Java, or VB or Pyth

Re: [Python-Dev] Re: Python 0.9.1

2021-02-16 Thread Skip Montanaro
> If someone knows how to get the original Usenet messages from what Google > published, let me know. Seems the original shar is there buried in a Javascript string toward the end of the file. I think I've got a handle on it, though it will take a Python script to massage back into correct format

Re: Best practices for software architecture in Python

2021-02-16 Thread Peter J. Holzer
On 2021-02-11 08:54:11 -0500, Henning Follmann wrote: > On 2021-02-11, Oscar wrote: > > In article , > > Henning Follmann wrote: > >>On 2021-02-10, Python wrote: > >>> and would like to study in-depth an existing open source > >>> application in order to study how to organize classes hierarchy,

Re: [Python-Dev] Re: Python 0.9.1

2021-02-16 Thread Skip Montanaro
> > Wow. Was white-space not significant in this release of Python? I see the >> lack of indentation in the first Python programs. >> > > Indentation most certainly was significant from day 0. I suspect what > happened is that these files got busted somehow by the extraction process > used by Skip

Re: New Python implementation

2021-02-16 Thread Peter J. Holzer
On 2021-02-14 00:52:43 +, Alan Gauld via Python-list wrote: > On 14/02/2021 00:07, Mr Flibble wrote: > > The neos Python implementation will not be dealing > > with Python byte code in any form whatsoever. > > Ok but what do you do with the disassembler module? What do PyPy, Jython, IronPyt

Re: [Python-Dev] Re: Python 0.9.1

2021-02-16 Thread Guido van Rossum
On Tue, Feb 16, 2021 at 2:59 PM Senthil Kumaran wrote: > On Tue, Feb 16, 2021 at 1:58 PM Skip Montanaro > wrote: > >> >> I then pushed the result to a Github repo: >> >> https://github.com/smontanaro/python-0.9.1 >> > > Wow. Was white-space not significant in this release of Python? I see the >

Re: [Python-Dev] Python 0.9.1

2021-02-16 Thread Mats Wichmann
On 2/16/21 3:44 PM, Guido van Rossum wrote: Awesome, Skip! Was there a date somewhere? I can't recall if this would have been the first open source release (from just about 30 years ago, sometime in February 1991) or some time later in the same year? Guido van Rossum unread, Python 0.9.1 part

Re: New Python implementation

2021-02-16 Thread Roel Schroeven
Christian Gollwitzer schreef op 16/02/2021 om 8:25: Am 15.02.21 um 21:37 schrieb Roel Schroeven: So your claim is that your compiler is able to, or will be able to, compile any language just by specifying a small schema file. Great! Do you maybe have a proof-of-concept? A simple language with

Re: Python 2.7 and 3.9

2021-02-16 Thread Richard Damon
On 2/16/21 4:16 PM, Ethan Furman wrote: > Kevin, please reply to the list (preferably Reply-to-list, or > Reply-all), that way others can chime in with help. > > On 2/16/21 12:55 PM, Kevin M. Wilson wrote: > >> Windows 7 OS, and typically run in conjunction with testing SSD', as >> for stand alone

Re: [Python-Dev] Python 0.9.1

2021-02-16 Thread Guido van Rossum
Awesome, Skip! Was there a date somewhere? I can't recall if this would have been the first open source release (from just about 30 years ago, sometime in February 1991) or some time later in the same year? On Tue, Feb 16, 2021 at 1:57 PM Skip Montanaro wrote: > A note to webmas...@python.org f

Re: New Python implementation

2021-02-16 Thread boB Stepp
On 21/02/16 11:03AM, Alan Gauld wrote: Python v1 was a good teaching language. v2 complicated it a bit but it was still usable. v3 is no longer a good teaching language (unless maybe you are teaching CompSci at university.) [...] And that's just one example, the language is now full of meta

Python 0.9.1

2021-02-16 Thread Skip Montanaro
A note to webmas...@python.org from an astute user named Hiromi in Japan* referred us to Guido's shell archives for the 0.9.1 release from 1991. As that wasn't listed in the historical releases README file: https://legacy.python.org/download/releases/src/README I pulled the shar files (and a patc

Re: New Python implementation

2021-02-16 Thread Dan Stromberg
On Tue, Feb 16, 2021 at 1:23 PM Tarjei Bærland via Python-list < python-list@python.org> wrote: > Sure, Brainfuck is two steps too far, but Scheme or Logo I'd wager be > excellent languages to get the students into computational > thinking. Haskell might be a good choice as well, I do not have eno

Re: New Python implementation

2021-02-16 Thread Tarjei Bærland via Python-list
Christian Gollwitzer writes: > I agree to all the rest of your post, but this: > > Am 16.02.21 um 09:57 schrieb Tarjei Bærland: >> I am not sure I agree that a language like Scheme or Logo or Brainfuck, with >> their small number of building blocks, would be harder to learn. > > > is strange. I'm

Re: Python 2.7 and 3.9

2021-02-16 Thread Ethan Furman
Kevin, please reply to the list (preferably Reply-to-list, or Reply-all), that way others can chime in with help. On 2/16/21 12:55 PM, Kevin M. Wilson wrote: Windows 7 OS, and typically run in conjunction with testing SSD', as for stand alone scripts. Those require: python BogusFile.py. I too

Re: New Python implementation

2021-02-16 Thread Tarjei Bærland via Python-list
David Lowry-Duda writes: >> In Norway, where I try to teach mathematics to highschoolers, >> programming has recently entered the teaching of stem subjects. >> >> Even if Python is my choice language for personal projects, I am not >> certain it is the right language to use in a classroom cont

Re: Python 2.7 and 3.9

2021-02-16 Thread Ethan Furman
On 2/16/21 12:09 PM, Kevin M. Wilson via Python-list wrote: My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9! I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff, and I need to mod the path et al., to execute 3.7 w/o doing damage to the

Python 2.7 and 3.9

2021-02-16 Thread Kevin M. Wilson via Python-list
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9! I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff, and I need to mod the path et al., to execute 3.7 w/o doing damage to the 'Legacy' stuff...IDEA' are Welcome! KMW John 1:4  "In him was

Re: New Python implementation

2021-02-16 Thread Michael Torrie
On 2/16/21 10:58 AM, Ben Bacarisse wrote: > Attempts at a universal compiler stalled in the 1980s (though there may > have been some new developments since I stopped looking) because > expressing the semantics of different languages is so very hard. In > fact, much of the interest in pursuing the

Re: New Python implementation

2021-02-16 Thread Christian Gollwitzer
I agree to all the rest of your post, but this: Am 16.02.21 um 09:57 schrieb Tarjei Bærland: I am not sure I agree that a language like Scheme or Logo or Brainfuck, with their small number of building blocks, would be harder to learn. is strange. I'm not sure, have you actually looked at Brai

Re: IDLE

2021-02-16 Thread Terry Reedy
On 2/16/2021 11:52 AM, Mats Wichmann wrote: On 2/16/21 8:09 AM, Will Anderson wrote:     Hi, I hope you are having a good day. I have a small IDLE problem and     can’t seem to fix it. I have a .py file that I want to open using IDLE but     there is no option I have even tried totally wiping

Re: New Python implementation

2021-02-16 Thread Ben Bacarisse
"Avi Gross" writes: > Thanks for sharing. I took a look and he does have a few schemas for Ada and > C from TWO YEARS ago. Nothing about the infinite number of other languages > he plans on supporting, let alone Python. And what he has is likely not > enough to do what he claims he can do easily

Re: IDLE

2021-02-16 Thread Mats Wichmann
On 2/16/21 8:09 AM, Will Anderson wrote: Hi, I hope you are having a good day. I have a small IDLE problem and can’t seem to fix it. I have a .py file that I want to open using IDLE but there is no option I have even tried totally wiping python and reinstalling it nothing seems to

RE: New Python implementation

2021-02-16 Thread Avi Gross via Python-list
Christian, Thanks for sharing. I took a look and he does have a few schemas for Ada and C from TWO YEARS ago. Nothing about the infinite number of other languages he plans on supporting, let alone Python. And what he has is likely not enough to do what he claims he can do easily and rapidly. What

Re: SSL/TLS certificate verification suddenly broken, Python 3 on Windows 10

2021-02-16 Thread Michał Jaworski
I’ve had similar issue today on macOS when trying to download something from PyPI with Python 3.9.1 but I didn’t try to debug it and just moved on to different things. Maybe we both have outdated ca bundles? Michał Jaworski > Wiadomość napisana przez Carlos Andrews w dniu > 16.02.2021, o godz

IDLE

2021-02-16 Thread Will Anderson
Hi, I hope you are having a good day. I have a small IDLE problem and can’t seem to fix it. I have a .py file that I want to open using IDLE but there is no option I have even tried totally wiping python and reinstalling it nothing seems to work. Please help.     Will Anders

SSL/TLS certificate verification suddenly broken, Python 3 on Windows 10

2021-02-16 Thread Carlos Andrews
Hi All, I ran into an error I, so far, cannot explain regarding Python's general ability to communicate via SSL/TLS. I'm using Python a lot to communicate with web servers and APIs, which worked just fine until yesterday (or somewhen late last week). I first noticed yesterday, when a requests-ba

Re: New Python implementation

2021-02-16 Thread Alan Gauld via Python-list
On 16/02/2021 07:35, Christian Gollwitzer wrote: > Am 16.02.21 um 06:36 schrieb dn: >> Pascal's value as a teaching language was that it embodied many aspects >> of structured programming, and like Python, consisted of a limited range >> of items which could be learned very quickly > > ROFL. Maybe

Re: New Python implementation

2021-02-16 Thread David Lowry-Duda
> In Norway, where I try to teach mathematics to highschoolers, > programming has recently entered the teaching of stem subjects. > > Even if Python is my choice language for personal projects, I am not > certain it is the right language to use in a classroom context. > ... > I am not sure I agr

Re: New Python implementation

2021-02-16 Thread Tarjei Bærland via Python-list
Christian Gollwitzer writes: > Am 16.02.21 um 06:36 schrieb dn: >> Pascal's value as a teaching language was that it embodied many aspects >> of structured programming, and like Python, consisted of a limited range >> of items which could be learned very quickly (in contrast to PL/I's many >> 'b