pyupgrade VS placeholder

Compare pyupgrade vs placeholder and see what are their differences.

pyupgrade

A tool (and pre-commit hook) to automatically upgrade syntax for newer versions of the language. (by asottile)

placeholder

Fork of Python 2.7 with new syntax, builtins, and libraries backported from Python 3. (by naftaliharris)
Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
pyupgrade placeholder
23 9
3,326 667
- -
7.9 4.6
15 days ago 4 months ago
Python Python
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

pyupgrade

Posts with mentions or reviews of pyupgrade. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-12.

placeholder

Posts with mentions or reviews of placeholder. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-10-14.
  • Gnome developer proposes removing the X11 session
    3 projects | news.ycombinator.com | 14 Oct 2023
    This guy wasn't maintaining Python, he as creating a new version incompatible with either Python 2.7 or Python 3.

    Red Hat and other large companies have maintained Python for years after 2.7 died (EOL date was January 1st, 2020). IBM/Red Hat offer Python 2.7 including security fixes and bug fixes until 2024 (https://access.redhat.com/solutions/4455511).

    Had he just provided patches to Python 2.7, nobody would've batted an eye. Instead, they created an alternative language that was completely different (https://web.archive.org/web/20161210161837/https://www.nafta...).

    Founders and core devs indicated that the name was the only problem (https://github.com/naftaliharris/tauthon/issues/47#issuecomm...) and that even things like the header file names could continue to be named Python because of API compatibility.

    You can fork any open source project you like, but you still need to stick follow trademark law. You can't just release Linux 2.7 because you disagree with breaking changes in 3.0 either, but you're free to take the Linux code and release Twonux if you really care.

  • Debian 12 python2 install
    1 project | /r/debian | 16 Jun 2023
    If that doesn't work for some reason, there's this project which claims to be an "active" fork of Python 2, but it also has a lot of backports and additions so I worry a bit about backward compatibility and stability: https://github.com/naftaliharris/tauthon You would have to build this from source as well.
  • Don't carelessly rely on fixed-size unsigned integers overflow
    7 projects | /r/C_Programming | 24 Jan 2023
    Without developers of the compilers all others groups are pretty much irrelevant. There were lots of people who were telling that Python3 is abomination and some even attempted to fork it but fork haven't caught enough interest thus Python2 is, for all intends and purposes, dead.
  • Blog post: Rust in 2023
    4 projects | /r/rust | 12 Dec 2022
    Python developers noticed that people are not in any hurry to switch but instead of trying to understand “why” they have drawn the line in the sand and spent their efforts trying to kill unofficial attempts to create a fork.
  • Ubuntu Pro
    3 projects | news.ycombinator.com | 5 Oct 2022
    WinAmp 2 (1998) was widely liked. WinAmp 3 (2002) was considered bloated, and flopped.

    So Nullsoft followed it up with WinAmp 5 – because 2+3=5 – in 2003, which was very broadly the codebase of WinAmp 2 (small and lean) plus the skin support from WinAmp 3 (the only part people liked).

    This won people back, and WinAmp is still around and got an update this year, 20 years on.

    I think it's too late for there to be a Python 5, but I did read a blog post long ago – which I can't find again, or I'd link to it – which proposed a similar compromise fix to Python, in considerable technical detail.

    I am with @blagie on this: the Python world handled the 2→3 transition spectacularly badly. V3 didn't deliver enough, and strong-arming people by just end-of-lifing Python 2 and expecting the world to move on was foolhardy and short-sighted.

    (And I don't even use the language myself. I'm just observing.)

    It's a real shame Tauthon didn't get more traction and support.

    https://github.com/naftaliharris/tauthon

    If it had got enough support and continued, maybe the Python maintainers would have learned something, but I've not seen any sign that they have.

    This is nothing new. For comparison, Perl 6 went so badly that Perl 5 now looks likely to continue as Perl 7:

    https://www.perl.com/article/announcing-perl-7/

    And PHP 6 didn't really happen -- AFAICT as a total outsider, Unicode support proved too hard and it was never released; the community backported the important bits to PHP 5, and then a new PHP 7, more modest in scope, developed from PHP 5.

    The Python world could have done the same, and Tauthon was an effort in that direction.

    It's too late now. I suspect that, just as Perl has lost a massive amount of interest and use, partly from the nearly-two-decade-long effort to release Perl 5, Python has done the same -- sabotaged its own community with this high-handed "your leaders know best" approach.

  • Will GIL ever be gone?
    1 project | /r/Python | 25 May 2022
    I just can't see a major fork happening (see: Tauthon, a fork of 2.7 to keep it alive, but no updates in a year or so).
  • What happens if we don't migrate Python 2 code to python 3
    2 projects | /r/Python | 6 May 2021
  • Pip has dropped support for Python 2
    2 projects | news.ycombinator.com | 1 Feb 2021
    If you want forks there are forks. Off the top of my head, Redhat is supporting Python 2 for several more years and there's a project called Tauthon [1] that is "Python 2.8" in spirit. I'm sure there's more efforts I'm not aware of.

    [1] https://github.com/naftaliharris/tauthon

What are some alternatives?

When comparing pyupgrade and placeholder you can also consider the following projects:

pre-commit-hooks - Some out-of-the-box hooks for pre-commit

awesome-buttplug - A list of awesome projects that use the Buttplug Sex Toy Control Library

flynt - A tool to automatically convert old string literal formatting to f-strings

AntiqueAtlas - A Minecraft mod that adds a fancy interactive map item.

black - The uncompromising Python code formatter

CraftTweaker - Tweak your minecraft experience

pep585-upgrade - Pre-commit hook for upgrading type hints

xdg-desktop-portal - Desktop integration portal

autoflake - Removes unused imports and unused variables as reported by pyflakes

kpatch - kpatch - live kernel patching

black - The uncompromising Python code formatter [Moved to: https://github.com/psf/black]

linux - Linux kernel source tree