Re: Error 0x80070643

2020-04-29 Thread Bob Gailer
On Apr 29, 2020 5:17 PM, "Antonis13XD" wrote: > > On Wed, Apr 29, 2020, 1:59 PM Antonis13XD > > > Hello python team! > > > > My name is antonis and I am a new fella who wants to be a programmer in > > python language. However, my thirst for learning I faced with an issue. > > More specifically

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
On 4/29/2020 5:29 PM, Chris Angelico wrote: > Try opening the file in binary mode instead. Changed: f = open(postfile,'r')to : f = open(postfile,'rb') and it worked. Thanks man! -- https://mail.python.org/mailman/listinfo/python-list

[RELEASE] Python 3.8.3rc1 is now ready for testing

2020-04-29 Thread Łukasz Langa
Python 3.8.3rc1 is the release candidate of the third maintenance release of Python 3.8. Go get it here: https://www.python.org/downloads/release/python-383rc1/ Assuming no critical problems are found prior to 2020-05-11, the scheduled

Re: [RELEASE] Python 3.9.0a6 is now available for testing

2020-04-29 Thread Paul Moore
m[-1]!= '\n'and'\n'or' ' This is '\n' if m[-1] != '\n' else ' ' ... just written in a way that was common before the if-expression was invented, using and and or. In itself, it's fine. The problem is that the space in "and '\n'" is omitted (presumably for brevity for some reason?) leav

Re: Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread Chris Angelico
On Thu, Apr 30, 2020 at 7:18 AM G Connor wrote: > > module: python\3.8.2\Lib\nntplib.py > lines 903-907 > --- > for line in f: > if not line.endswith(_CRLF): > line = line.rstrip(b"\r\n") + _CRLF > if line.startswith(b'.'): > line = b

SSL Certificate Verify Failed (_ssl.c:600) using Windows Server 2019

2020-04-29 Thread separated via Python-list
hello python-list and the subsribers, I just bought a rdp from someone and try to install python in order to running youtube-dl but when I just run a simple youtube-dl command like 'youtube-dl [youtube video url]' it got me this message : ERROR: Unable to download webpage: (caused by URLError

Errors in python\3.8.3\Lib\nntplib.py

2020-04-29 Thread G Connor
module: python\3.8.2\Lib\nntplib.py lines 903-907 --- for line in f: if not line.endswith(_CRLF): line = line.rstrip(b"\r\n") + _CRLF if line.startswith(b'.'): line = b'.' + line --- When I try

Re: Error 0x80070643

2020-04-29 Thread Antonis13XD
On Wed, Apr 29, 2020, 1:59 PM Antonis13XD > Hello python team! > > My name is antonis and I am a new fella who wants to be a programmer in > python language. However, my thirst for learning I faced with an issue. > More specifically, when I try to install 3.8.2 version of python, it > shows me

Re: [RELEASE] Python 3.9.0a6 is now available for testing

2020-04-29 Thread Rhodri James
On 29/04/2020 20:23, Schachner, Joseph wrote: norm=lambda m: m+(m and(m[-1]!= '\n'and'\n'or' ')or'\n') Parentheses 1 2 1 0 quotes 1 0 1 0 1 0

RE: [RELEASE] Python 3.9.0a6 is now available for testing

2020-04-29 Thread Schachner, Joseph
> norm=lambda m: m+(m and(m[-1]!= '\n'and'\n'or' ')or'\n') Parentheses 1 2 1 0 quotes 1 0 1 0 1 01 0 OK I don't se

Re: Function to avoid a global variable

2020-04-29 Thread Tony Flury via Python-list
On 28/04/2020 06:49, jf...@ms4.hinet.net wrote: bvdp於 2020年4月28日星期二 UTC+8上午9時46分35秒寫道: Oh my, that is very cool! So, I can do this: def foo(i): if not 'bar' in foo.__dict__: foo.bar = 5 foo.bar += i You can have function attribute created this way if you like: def foo

Re: [RELEASE] Python 3.9.0a6 is now available for testing

2020-04-29 Thread Peter J. Holzer
On 2020-04-28 17:52:58 +0200, Łukasz Langa wrote: > Many new features for Python 3.9 are still being planned and written. Among > the new major new features and changes so far: [...] > PEP 617 , New PEG parser for > CPython [...] On 2020-04-29 15:51:37

Re: Techniques to extend code without modifying it? (besides modules and decorators)

2020-04-29 Thread Christian Seberino
> > a pattern like: > if : > elif : > > Thanks. I really like this simple yet powerful suggestion you made. See this... import new_code ... if foo: new_code.do_new_stuff(..) We can massively modify existing code by *ONLY* adding one import and a 2 line if snippet!!! Very nice! cs -

Re: Techniques to extend code without modifying it? (besides modules and decorators)

2020-04-29 Thread Christian Seberino
If you want to know, I'm trying to add metaprogramming (macros!) to a tiny Lisp interpreter I wrote. I'm hesitant to mess with all that nice debugged code to add this new stuff. -- https://mail.python.org/mailman/listinfo/python-list

Re: [RELEASE] Python 3.9.0a6 is now available for testing

2020-04-29 Thread Robin Becker
On 28/04/2020 16:52, Łukasz Langa wrote: On behalf of the entire Python development community, and the currently serving Python release team in particular, I’m pleased to announce the release of Python 3.9.0a6. Get it here: thanks for the release; I tried to reply in the dev list, but fa

Techniques to extend code without modifying it? (besides modules and decorators)

2020-04-29 Thread Christian Seberino
I have some code I'd like to extend without modifying it. I'm sure this is a common pattern. I wondered what the options were for "extending without modifying (much)". I'm aware one can import a module and add functions to decorators. Are there other ways? Thanks! chris -- https://mail.python