[issue41653] About the use of cpython console mode problem

2020-08-27 Thread twoone3
New submission from twoone3 <3197653...@qq.com>: When I use the Py_Initialize function in cpython, the console is forced to become gbk encoding, hoping to be compatible with UTF-8 -- components: C API files: Screenshot_2020_0828_104656.png messages: 376019 nosy: twoone3 priority:

[issue41652] An Advice on Turning Ellipsis into Keyword

2020-08-27 Thread Alex
New submission from Alex <2423067...@qq.com>: In early versions of python, programmers can simply swap True and False by >>> True, False = False, True Then True and False and None become keywords so programmers can't change their value. ... is also a keyword, but Ellipsis is not. So the code

Re: Output showing "None" in Terminal

2020-08-27 Thread Py Noob
Thank you so much for the help. I'm self-studying and watching tutorials on youTube. The problem was given as an exercise after the tutorial. I did modify my code based on the suggestions here and it helps. Thank you! On Tue, Aug 25, 2020 at 4:31 PM Schachner, Joseph <

[issue41651] Pip: Wrong Showing of Progressbar when Downloading Modules

2020-08-27 Thread Alex
New submission from Alex <2423067...@qq.com>: 1. Abstract Command line in Windows the progress bar doesn't work like usual after about half of the downloading process. Another remarkble bug is the length of the progressbar seems to be lengthened. 2. Reason(my opinion) I noticed that this bug

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Guido van Rossum
Guido van Rossum added the comment: I'm with Raymond. Closing. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: The current code makes sense to me and also mirrors the actual implementation of setdefault() for regular dictionaries. While I can see what you're trying do, it is a feature that __getitem__() is not called. And for regular dicts, that is the only way

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-27 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21095 pull_request: https://github.com/python/cpython/pull/21986 ___ Python tracker ___

[issue1635741] Py_Finalize() doesn't clear all Python objects at exit

2020-08-27 Thread mohamed koubaa
Change by mohamed koubaa : -- pull_requests: +21094 pull_request: https://github.com/python/cpython/pull/21985 ___ Python tracker ___

Re: How do I do this in Python 3 (string.join())?

2020-08-27 Thread Cameron Simpson
On 27Aug2020 14:36, Chris Green wrote: >Cameron Simpson wrote: >> I do ok, though most of my message processing happens to messages >> already landed in my "spool" Maildir by getmail. My setup uses getmail >> to get messages with POP into a single Maildir, and then I process the >> message files

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-27 Thread Cameron Simpson
On 27Aug2020 23:54, Marco Sulla wrote: >Are you sure you want `str()`? > str(b'aaa') >"b'aaa'" > >Probably you want: > >map(lambda x: x.decode(), bbb) _And_ you need to know the encoding of the text in the bytes. The above _assumes_ UTF-8 because that is the default for bytes.decode, and

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-27 Thread Marco Sulla
Are you sure you want `str()`? >>> str(b'aaa') "b'aaa'" Probably you want: map(lambda x: x.decode(), bbb) -- https://mail.python.org/mailman/listinfo/python-list

[issue32313] Wrong inspect.getsource for datetime

2020-08-27 Thread Paul Ganssle
Paul Ganssle added the comment: I think that we should re-examine this issue after GH-20472 is merged. I'm not really sure how that will affect this and indeed *how* it should affect this. I am not sure whether people are relying on the current behavior, or what use cases would be improved

Re: Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-27 Thread Chris Angelico
On Fri, Aug 28, 2020 at 6:36 AM Chris Green wrote: > > This sounds quite an easy thing to do but I can't find how to do it > elegantly. > > I have a list of bytes class objects (i.e. a list containing sequences > of bytes, which are basically text) and I want to convert it to a list > of string

Python 3 how to convert a list of bytes objects to a list of strings?

2020-08-27 Thread Chris Green
This sounds quite an easy thing to do but I can't find how to do it elegantly. I have a list of bytes class objects (i.e. a list containing sequences of bytes, which are basically text) and I want to convert it to a list of string objects. One of the difficulties of finding out how to do this is

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread MRAB
On 2020-08-27 17:29, Barry Scott wrote: On 26 Aug 2020, at 16:10, Chris Green wrote: UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in position 4: ordinal not in range(128) So what do I need to do to the message I'm adding with mbx.add(msg) to fix this? (I assume

[issue37149] link to John Shipman's Tkinter 8.5 documentation fails: website no longer available

2020-08-27 Thread Mark Roseman
Mark Roseman added the comment: I've posted a copy at https://tkdocs.com/shipman/ I've lightly modified it to add a site header and explanation of where the material comes from and caveats about age to each page, and have removed or crossed out dead links, requests for feedback, etc. I

[issue40553] Python 3.8.2 Mac freezing/not responding when saving new programs

2020-08-27 Thread Alexander Boeckmann
Alexander Boeckmann added the comment: So over the past week the issue resolved its self. I unfortunately did not get a video or a screenshot but thought you might want to know this So maybe Apple did something or you guys fixed it. Anyways, have a good day! --

Re: Video file to subtitles file

2020-08-27 Thread Barry Scott
> On 27 Aug 2020, at 18:00, Muskan Sanghai wrote: > > I would be really thankful if someone can suggest me how can I generate > subtitles file (srt format) from a video or audio without using Google cloud > and AWS. What do you know about how subtitles work with video? Do you mean you

Re: ABC with abstractmethod: kwargs on Base, explicit names on implementation

2020-08-27 Thread Dieter Maurer
Samuel Marks wrote at 2020-8-27 15:58 +1000: >The main thing I want is type safety. I want Python to complain if the >callee uses the wrong argument types, and to provide suggestions on >what's needed and info about it. > >Without a base class I can just have docstrings and type annotations >to

[issue41642] RHEL and fedora buildbots fail due to disk space error

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: The buildbot server migrated to a new machine and is now behind a load balancer. tcp/80 (buildbot web page, HTTP) and tcp/9020 (used by buildbot workers) are both behind the load balancer. Maybe the load balancer closes TCP connections which are idle for 60

Video file to subtitles file

2020-08-27 Thread Muskan Sanghai
I would be really thankful if someone can suggest me how can I generate subtitles file (srt format) from a video or audio without using Google cloud and AWS. -- https://mail.python.org/mailman/listinfo/python-list

[issue41642] RHEL and fedora buildbots fail due to disk space error

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: On the worker (client) side, I see many "lost remote step" every 1 to 3 minutes. Example with the PPC64LE Fedora Stable (cstratak-fedora-stable-ppc64le) worker: 2020-08-27 01:30:09-0400 [Broker,client] lost remote step 2020-08-27 01:31:57-0400

[issue41642] RHEL and fedora buildbots fail due to disk space error

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: > I have found a large number of un-removed files in /tmp. Right. I found many /tmp/cc.XXX and /tmp/tmpX files. Around 20 GB of these files! Maybe using passing "-pipe" to gcc/clang would avoid the /tmp/cc.XXX files when a build is interrupted.

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: 27 buildbot workers are detached. They are are detached every minute! Affected workers: aixtools-aix-power6 billenstein-macos bolen-ubuntu bolen-windows10 bolen-windows7 cstratak-RHEL7-aarch64 cstratak-RHEL7-ppc64le cstratak-RHEL7-x86_64

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Barry Scott
> On 26 Aug 2020, at 16:10, Chris Green wrote: > > UnicodeEncodeError: 'ascii' codec can't encode character '\ufeff' in > position 4: ordinal not in range(128) > > So what do I need to do to the message I'm adding with mbx.add(msg) to > fix this? (I assume that's what I need to do). >>>

[issue41642] RHEL and fedora buildbots fail due to disk space error

2020-08-27 Thread David Edelsohn
David Edelsohn added the comment: I have found a large number of un-removed files in /tmp. Things seem to function better with Buildbots running older 0.x "buildslave" as opposed to newer "builtbot-worker" instances. -- nosy: +David.Edelsohn title: Buildbot: workers detached every

[issue41642] Buildbot: workers detached every minute and "no space left on device" issue

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: I closed bpo-41648 "edelsohn-* buildbot worker failing with: No space left on device" as a duplicate of this issue. -- ___ Python tracker

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: Hum, there are many affected workers. I will reuse bpo-41642 instead. -- resolution: -> duplicate stage: -> resolved status: open -> closed superseder: -> RHEL and fedora buildbots fail due to disk space error

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Barry
> On 27 Aug 2020, at 10:40, Chris Green wrote: > > Karsten Hilbert wrote: >>> Terry Reedy wrote: > On 8/26/2020 11:10 AM, Chris Green wrote: > >> I have a simple[ish] local mbox mail delivery module as follows:- > ... >> It has run faultlessly for many years under

[issue41650] .pyc file not running in cross python versions

2020-08-27 Thread Ammar Askar
Ammar Askar added the comment: .pyc files aren't meant to be portable, they contain raw bytecode and data specific to the version of Python they were compiled on. For example, search for "Changed in version 3.6" here and you'll see all the little changes to the bytecode format:

[issue41650] .pyc file not running in cross python versions

2020-08-27 Thread Princy katlana
New submission from Princy katlana : When I tried to compile the python source code from python version 3.5 and run the .pyc file on python version 3.6 then it shows the following exception: RuntimeError: Bad magic number in .pyc file -- components: Build messages: 376003 nosy:

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: > I would appreciate a discussion of the underlying issue and not "edelsohn-* > buildbot workers failing". FYI Charalampos, Pablo and me are investigating the root issues. -- ___ Python tracker

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread David Edelsohn
David Edelsohn added the comment: If they want to discuss here, fine, but the failing bot is a symptom not the problem. The Buidlbot infrastructure is unstable, causing disconnects and leaving un-removed files. If one looks at the workers, one can see many of the architectures in

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: > It really would be better to discuss this in the builtbot mailing list and > not Python issue tracker. Pablo, me and a few otheres are using the Python bug tracker to track buildbot issues. But I'm fine with also discussing these issues on python-buildbot

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread David Edelsohn
David Edelsohn added the comment: It really would be better to discuss this in the builtbot mailing list and not Python issue tracker. I have been seeing problems with many buildbots for the past few weeks, not just the s390x bots. I receive messages that all of the bots disconnected, but

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread Charalampos Stratakis
Charalampos Stratakis added the comment: Note: I found that all my Fedora and RHEL8 buildbots have issues with connecting to the master buildbot server. Not sure if a related package got updated and prompts the disconnects (as the RHEL7 ones are fine), or if it's relevant to the master

[issue35228] Index search in CHM help crashes viewer

2020-08-27 Thread Václav Dvořák
Václav Dvořák added the comment: I have just apparently discovered a workaround! (Thanks to @chrullrich whose comment gave me the hint.) Maybe it's been obvious to everybody this whole time but I have only now found out that when I delete the file %APPDATA%\Microsoft\HTML Help\hh.dat (in my

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: "xtreak set nosy: + David.Edelsohn" Strange. I'm quite sure that I added him to the nosy list when I wrote my previous comment. -- ___ Python tracker

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +David.Edelsohn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41649] Can't pass Path like objects to subprocess api's on Windows.

2020-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: See also https://bugs.python.org/issue31961 -- nosy: +serhiy.storchaka, xtreak ___ Python tracker ___

[issue35228] Index search in CHM help crashes viewer

2020-08-27 Thread Ma Lin
Ma Lin added the comment: > More realistically, including the docs as unbundled HTML files > and relying on the default browser is probably an all-around better idea. CHM's index function is very convenient, I almost always use this feature when I use CHM. How about use tkinter to write a

[issue41649] Can't pass Path like objects to subprocess api's on Windows.

2020-08-27 Thread Jani Mikkonen
New submission from Jani Mikkonen : Following code: ``` from pathlib import Path import os import subprocess dir_name = os.environ.get("WORKSPACE", None) or "." output_directory = Path(dir_name) / "results" res = subprocess.run(["mytest", "--output", output_directory]) ``` Works on macos and

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Richard Damon wrote: > On 8/27/20 4:31 AM, Chris Green wrote: > > While an E-Mail body possibly *shouldn't* have non-ASCII characters in > > it one must be able to handle them without errors. In fact haven't > > the RFCs changed such that the message body should be 8-bit clean? > > Anyway I

Re: How do I do this in Python 3 (string.join())?

2020-08-27 Thread Chris Green
Cameron Simpson wrote: > On 27Aug2020 09:16, Chris Green wrote: > >Cameron Simpson wrote: > >> But note: joining bytes like strings is uncommon, and may indicate > >> that > >> you should be working in strings to start with. Eg you may want to > >> convert popmsg from bytes to str and do a

Aw: Re: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> > > Because of this, the Python 3 str type is not suitable to store an email > > > message, since it insists on the string being Unicode encoded, > > > > I should greatly appreciate to be enlightened as to what > > a "string being Unicode encoded" is intended to say ? > > > > A Python 3 "str" or

[issue39375] Document os.environ[x] = y and os.putenv() as thread unsafe

2020-08-27 Thread Daniel Martin
Daniel Martin added the comment: See also https://bugs.python.org/issue40961 - that bug is not about thread safety, but another quirk around env. variable setting that needs to be documented in the documentation for os.putenv and os.getenv, and so anyone addressing this bug should probably

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-08-27 Thread Petr Viktorin
Petr Viktorin added the comment: New changeset d9a966ae08258da2ce2a432c943d8194760f09c4 by Petr Viktorin in branch 'master': bpo-38787: Clarify docs for PyType_GetModule and warn against common mistake (GH-20215)

[issue38787] PEP 573: Module State Access from C Extension Methods

2020-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +21093 pull_request: https://github.com/python/cpython/pull/21984 ___ Python tracker ___

Re: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Angelico
On Thu, Aug 27, 2020 at 11:10 PM Karsten Hilbert wrote: > > > Because of this, the Python 3 str type is not suitable to store an email > > message, since it insists on the string being Unicode encoded, > > I should greatly appreciate to be enlightened as to what > a "string being Unicode encoded"

Aw: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> Because of this, the Python 3 str type is not suitable to store an email > message, since it insists on the string being Unicode encoded, I should greatly appreciate to be enlightened as to what a "string being Unicode encoded" is intended to say ? Thanks, Karsten --

Re: Python installer hangs in Windows 7

2020-08-27 Thread mikkow34ify
poniedziałek, 16 kwietnia 2018 o 10:51:37 UTC+2 jtsh...@gmail.com napisał(a): > On Monday, February 6, 2017 at 10:46:24 AM UTC+5:30, Jean-Claude Roy wrote: > > I am trying to install Python 3.6.0 on a Windows 7 computer. > > The download of 29.1 MB is successful and I get the nextwindow. I

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: Example of affected workers. edelsohn-fedora-rawhide-z: s390x Fedora Rawhide Refleaks 3.8 https://buildbot.python.org/all/#/builders/56/builds/8 -- ___ Python tracker

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Richard Damon
On 8/27/20 4:31 AM, Chris Green wrote: > While an E-Mail body possibly *shouldn't* have non-ASCII characters in > it one must be able to handle them without errors. In fact haven't > the RFCs changed such that the message body should be 8-bit clean? > Anyway I think the Python 3 mail handling

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
STINNER Victor added the comment: David: Would you mind to have a look? -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue41648] edelsohn-* buildbot worker failing with: No space left on device

2020-08-27 Thread STINNER Victor
New submission from STINNER Victor : Issue similar to bpo-41642 "RHEL and fedora buildbots fail due to disk space error", multiple edelsohn-* buildbot worker are failing with: No space left on device. -- components: Tests messages: 375988 nosy: vstinner priority: normal severity:

[issue41646] shutil.copy documentation should clarify support for path-like objects

2020-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: copy uses copyfile and copymode. Both were updated to support path-like objects in https://github.com/python/cpython/pull/15141 . It makes sense to update copy's documentation too. -- nosy: +steve.dower, xtreak title: Outdated shutil.copy

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41624] typing.Coroutine documentation

2020-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +21092 pull_request: https://github.com/python/cpython/pull/21983 ___ Python tracker ___

[issue41624] typing.Coroutine documentation

2020-08-27 Thread Karthikeyan Singaravelan
Change by Karthikeyan Singaravelan : -- pull_requests: +21091 pull_request: https://github.com/python/cpython/pull/21982 ___ Python tracker ___

[issue41634] Typo in curses documentation

2020-08-27 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: New changeset 398575c210f79627830c5c470184f54ace950ac6 by Zackery Spytz in branch 'master': bpo-41634: Fix a typo in the curses documentation (GH-21958) https://github.com/python/cpython/commit/398575c210f79627830c5c470184f54ace950ac6 --

[issue41634] Typo in curses documentation

2020-08-27 Thread miss-islington
Change by miss-islington : -- pull_requests: +21090 pull_request: https://github.com/python/cpython/pull/21981 ___ Python tracker ___

[issue41634] Typo in curses documentation

2020-08-27 Thread miss-islington
Change by miss-islington : -- nosy: +miss-islington nosy_count: 4.0 -> 5.0 pull_requests: +21089 pull_request: https://github.com/python/cpython/pull/21980 ___ Python tracker

[issue41594] Intermittent failures of loop.subprocess_exec() to capture output

2020-08-27 Thread Kyle Meyer
Kyle Meyer added the comment: I should have thought to provide the output of when debug=True is passed to asyncio.run(). Here it is, with the python on my Debian system: $ python3 -V Python 3.7.3 $ python3 reproducer.py Iteration: 1 of 100 Failed on iteration 1

Re: How do I do this in Python 3 (string.join())?

2020-08-27 Thread Cameron Simpson
On 27Aug2020 09:16, Chris Green wrote: >Cameron Simpson wrote: >> But note: joining bytes like strings is uncommon, and may indicate >> that >> you should be working in strings to start with. Eg you may want to >> convert popmsg from bytes to str and do a str.join anyway. It depends on >>

[issue41647] MutableMapping ".setdefault()" to return default value via __getitem__

2020-08-27 Thread Matias G
New submission from Matias G : Hi, This is more a question/proposal than a real issue. I apologize in advance if this has already been debated or if it is not relevant. I noticed `setdefault` method of mutable mapping objects is returning the default value as passed in the call, when

[issue41646] Outdated shutil.copy documentation

2020-08-27 Thread Jonatan Skogsfors
New submission from Jonatan Skogsfors : In the 3.8.5 documentation for shutil.copy it says that "src and dst should be strings". However, the implementation doesn't seem to have any problem with path objects. -- assignee: docs@python components: Documentation messages: 375983 nosy:

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Karsten Hilbert wrote: > > Terry Reedy wrote: > > > On 8/26/2020 11:10 AM, Chris Green wrote: > > > > > > > I have a simple[ish] local mbox mail delivery module as follows:- > > > ... > > > > It has run faultlessly for many years under Python 2. I've now > > > > changed the calling program to

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Cameron Simpson
On 27Aug2020 09:31, Chris Green wrote: >I can provoke the error simply by sending myself an E-Mail with >accented characters in it. I'm pretty sure my Linux system is set up >correctly for UTF8 characters, I certainly seem to be able to send and >receive these to others and I even get to see

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Peter Otten
Chris Green wrote: > To add a little to this, the problem is definitely when I receive a > message with UTF8 (or at least non-ascci) characters in it. My code > is basically very simple, the main program reads an E-Mail message > received from .forward on its standard input and makes it into an

Aw: Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Karsten Hilbert
> Terry Reedy wrote: > > On 8/26/2020 11:10 AM, Chris Green wrote: > > > > > I have a simple[ish] local mbox mail delivery module as follows:- > > ... > > > It has run faultlessly for many years under Python 2. I've now > > > changed the calling program to Python 3 and while it handles most > >

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Peter J. Holzer wrote: > The problem is that the message contains a '\ufeff' character (byte > order mark) where email/generator.py expects only ASCII characters. > > I see two possible reasons for this: > > * The mbox writing code assumes that all messages with non-ascii >characters are

Re: Another 2 to 3 mail encoding problem

2020-08-27 Thread Chris Green
Terry Reedy wrote: > On 8/26/2020 11:10 AM, Chris Green wrote: > > > I have a simple[ish] local mbox mail delivery module as follows:- > ... > > It has run faultlessly for many years under Python 2. I've now > > changed the calling program to Python 3 and while it handles most > > E-Mail OK I

Re: How do I do this in Python 3 (string.join())?

2020-08-27 Thread Chris Green
Cameron Simpson wrote: > On 26Aug2020 15:09, Chris Green wrote: > >2qdxy4rzwzuui...@potatochowder.com wrote: > >> Join bytes objects with a byte object: > >> > >> b"\n".join(popmsg[1]) > > > >Aaahhh! Thank you (and the other reply). > > But note: joining bytes like strings is uncommon, and

Re: ABC with abstractmethod: kwargs on Base, explicit names on implementation

2020-08-27 Thread Peter Otten
Samuel Marks wrote: > The main thing I want is type safety. I want Python to complain if the > callee uses the wrong argument types, and to provide suggestions on > what's needed and info about it. > > Without a base class I can just have docstrings and type annotations > to achieve that. > >

PyCA cryptography 3.1 released

2020-08-27 Thread Paul Kehrer
PyCA cryptography 3.1 has been released to PyPI. cryptography includes both high level recipes and low level interfaces to common cryptographic algorithms such as symmetric ciphers, asymmetric algorithms, message digests, X509, key derivation functions, and much more. We support Python 2.7, Python

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-08-27 Thread Greg Ewing
On 23/07/20 12:23 pm, dn wrote: You be sure to have a nice day, now! How do you feel about you be sure to have a nice day, now? -- Greg -- https://mail.python.org/mailman/listinfo/python-list

Re: ABC with abstractmethod: kwargs on Base, explicit names on implementation

2020-08-27 Thread Samuel Marks
The main thing I want is type safety. I want Python to complain if the callee uses the wrong argument types, and to provide suggestions on what's needed and info about it. Without a base class I can just have docstrings and type annotations to achieve that. What can I use that will require all