Sorry I'm late, but is there any replacement for the `2to3` command in Python > 3.11 ?
#Python #2to3 #py2to3

修好 Trac 1.6 上的 SlackIntegration

續上篇「修好 Trac 1.6 上的 TracSubtickets」提到的,反正 Trac 這個 community 的東西如果爛掉的話,自己修會比較快...

SlackIntegration 從字面上的意思就知道,是把 Trac 這邊的更新同步到 Slack 上的工具。

這包主要的問題是 Python 2 語法,所以在修的過程中間就不斷的在想起「啊,這是當初 Python 3 的 b

https://blog.gslin.org/archives/2023/11/09/11443/%e4%bf%ae%e5%a5%bd-trac-1-6-%e4%b8%8a%e7%9a%84-slackintegration/

#Computer #Murmuring #Network #Programming #Software #2 #2to3 #3 #integration #plugin #py #python #slack #trac #unicode #utf8 #utf8

修好 Trac 1.6 上的 SlackIntegration

續上篇「修好 Trac 1.6 上的 TracSubtickets」提到的,反正 Trac 這個 community 的東西如果爛掉的話,自己修會比較快... SlackIntegration 從字面上的意思就知道,是把 Trac 這邊的更新同步到 Slack 上的工具。 這包主要的問題是 Python 2 語法,...

Gea-Suan Lin's BLOG
🌗 Python Wheels
➤ Python Wheels是Python發行的新標準,用於取代eggs,提供更快的安裝速度和更一致的跨平臺安裝。
https://pythonwheels.com/
Python Wheels是Python發行的新標準,旨在取代eggs。它提供了更快的純Python和本地C擴展
#Python #Wheels #Python distribution #pip #setuptools #C extension #caching #.pyc files #PyPI #package #2to3 #sdist #bdist_wheel #universal wheel #license file #C extensions #platform-specific wheels #binary wheels #continuous integration #problem fixing #distutils-sig #Python Packaging Authority #contributors #javascript #meshy #GitHub
Python Wheels

@nickelson I would try:

A. finding a Python 3 version of the script
or
B. using 2to3 and some manual changes if needed to port it to Python 3

To do A. I did a search and found PyHyphen on PyPi, the Python package repo: https://pypi.org/project/PyHyphen/

You can do B. using https://docs.python.org/3/library/2to3.html

For example:
```
# edit a Python 2 file in-place
$ 2to3 -w softhyphen.py
```

#python #2to3 #SoftHyphens #TypeSetting

PyHyphen

The hyphenation library of LibreOffice and FireFox wrapped for Python

PyPI