tiflolinux.org - GNU Social
  • Login

Bienvenido

  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Aurélien Bompard (abompard@piaille.fr)'s status on Monday, 13-Mar-2023 17:48:46 CET Aurélien Bompard Aurélien Bompard
    in reply to
    • Hynek Schlawack

    @hynek It is also 4 times slower until Python 3.11: https://github.com/python/cpython/issues/91603

    In conversation Monday, 13-Mar-2023 17:48:46 CET from piaille.fr permalink

    Attachments

    1. Speed up isinstance on union types · Issue #91603 · python/cpython
      PEP 604 allows isinstance on union types but it much slower compared to a tuple of types. This can be speed up with a fast path. Currently it is almost 4x slower, so there is room for improvement. ...
    • Hynek Schlawack (hynek@mastodon.social)'s status on Monday, 13-Mar-2023 17:48:47 CET Hynek Schlawack Hynek Schlawack

      TIL I can use `|` instead of tuples in isinstance() checks since #Python 3.10.

      In conversation Monday, 13-Mar-2023 17:48:47 CET permalink

      Attachments


      1. https://files.mastodon.social/media_attachments/files/110/014/566/176/837/015/original/9c786b522bd559a0.png
      Ekaitz Zárraga 👹 repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

tiflolinux.org - GNU Social is a social network, courtesy of tiflolinux.org. It runs on GNU social, version 2.0.1-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All tiflolinux.org - GNU Social content and data are available under the Creative Commons Attribution 3.0 license.