Skip to content

Sync Fork from Upstream Repo #518

Merged
sthagen merged 11 commits intosthagen:mainfrom
python:main
Jul 14, 2021
Merged

Sync Fork from Upstream Repo #518
sthagen merged 11 commits intosthagen:mainfrom
python:main

Conversation

@sthagen
Copy link
Copy Markdown
Owner

@sthagen sthagen commented Jul 14, 2021

No description provided.

donno2048 and others added 11 commits July 13, 2021 15:02
Co-authored-by: Jason Killen <jason.killen@windsorcircle.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Add testcleanup section to configparser and bz2 documentation which
removes temporary files created in the filesystem when 'make doctest'
is run.
Co-authored-by: Łukasz Langa <lukasz@langa.pl>
…sions (GH-6766)

Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
Fix incorrect handling of exceptions when interpreting dialect objects in
the csv module. Not clearing exceptions between calls to
PyObject_GetAttrString() causes assertion failures in pydebug mode (or with
assertions enabled).

Add a minimal test that would've caught this (passing None as dialect, or
any object that isn't a csv.Dialect subclass, which the csv module allows
and caters to, even though it is not documented.) In pydebug mode, the test
triggers the assertion failure in the old code.

Contributed-By: T. Wouters [Google]
…type. (GH-27120)

* Fix issubclass() for None.
  E.g. issubclass(type(None), int | None) returns now True.
* Fix issubclass() for virtual subclasses.
  E.g. issubclass(dict, int | collections.abc.Mapping) returns now True.
* Fix crash in isinstance() if the check for one of items raises exception.
if it is called with a sequence or set, but not list or tuple.
@sthagen sthagen merged commit 3fac250 into sthagen:main Jul 14, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants