Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > de.comp.lang.python > #5563
| From | Felix Schwarz <felix.schwarz@web.de> |
|---|---|
| Newsgroups | de.comp.lang.python |
| Subject | Re: [Python-de] Programming-Guidelines |
| Date | 2019-10-25 10:46 +0200 |
| Message-ID | <mailman.156.1571993199.32318.python-de@python.org> (permalink) |
| References | (3 earlier) <8f590d9a-981e-70c1-94d8-49c6baac5faf@goebel-consult.de> <mailman.139.1571908487.32318.python-de@python.org> <h1dkabFb0soU1@mid.individual.net> <099dc4a1-5c7b-14cd-dfaa-e0f8e9fc6a90@goebel-consult.de> <e46c01d5-0bd2-9764-1264-54e58902848e@web.de> |
Am 24.10.19 um 14:52 schrieb Hartmut Goebel:
> PYthon 2.x stirbt am 1. Januar
Dies ist so nicht ganz richtig:
1. RHEL (und andere Linux-Distributionen) unterstützen Python 2 noch einige
Jahre. "Maintenance Support 2 Phase" für RHEL 7 auf x86_64 endet erst im
Juni 2024.
2. Mich wundert, dass regelmäßig auch pypy ignoriert wird:
> How long will PyPy support Python2?
> Since RPython is built on top of Python2 and that is extremely unlikely
> to change, the Python2 version of PyPy will be around “forever”, i.e. as
> long as PyPy itself is around.
http://doc.pypy.org/en/latest/faq.html#how-long-will-pypy-support-python2
3. Außerdem gibt es noch Community-Projekte wie z.B. Tauthon:
https://github.com/naftaliharris/tauthon
Natürlich ist ein Umstieg auf Python 3 oft eine gute Idee (meine persönlichen
Favoriten sind "yield from", pathlib und fstrings), aber die Deadline "1.
Januar 2020" scheint mir nicht so absolut wie oft behauptet.
Zumal PyPy's Statement ja schon zeigt, wie problematisch der Umstieg für große
Code-Basen sein kann. Ich gehe davon aus, dass ich bei Kundenprojekten auch in
den nächsten Jahren noch Python 2-Code schreiben muss (die meisten Projekte
sind migriert, aber es gibt eben aus verschiedenen Gründen immer noch
"Altlasten").
>>> 3) Du möchtest "os.makedirs()" verwenden.
Hier empfehle ich eher "Path.mkdir(..., parents=True)" bzw. (unter Python 2)
den pathlib2 backport.
Felix
Back to de.comp.lang.python | Previous | Next — Previous in thread | Next in thread | Find similar
[Python-de] Programming-Guidelines Thomas Güttler <guettliml@thomas-guettler.de> - 2019-10-24 09:56 +0200
Re: [Python-de] Programming-Guidelines Hermann Riemann <nospam.ng@hermann-riemann.de> - 2019-10-24 11:04 +0200
Re: [Python-de] Programming-Guidelines Hartmut Goebel <h.goebel@goebel-consult.de> - 2019-10-24 11:14 +0200
Re: [Python-de] Programming-Guidelines Hermann Riemann <nospam.ng@hermann-riemann.de> - 2019-10-24 14:38 +0200
Re: [Python-de] Programming-Guidelines Hartmut Goebel <h.goebel@goebel-consult.de> - 2019-10-24 14:52 +0200
Re: [Python-de] Programming-Guidelines Hermann Riemann <nospam.ng@hermann-riemann.de> - 2019-10-24 17:56 +0200
Re: [Python-de] Programming-Guidelines Felix Schwarz <felix.schwarz@web.de> - 2019-10-25 10:46 +0200
Re: [Python-de] Programming-Guidelines Erich Schnoor <eschnoor@multi-matrix.de> - 2019-10-25 12:34 +0200
Re: [Python-de] Programming-Guidelines Erich Schnoor <eschnoor@multi-matrix.de> - 2019-10-25 12:27 +0200
csiph-web