Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] Python 3 design principles

Neal Norwitznnorwitz at gmail.com
Wed Aug 31 22:56:37 CEST 2005


On 8/31/05, Oren Tirosh <oren.tirosh at gmail.com> wrote:>> Writing programs that run on both 2.x and 3 may require ugly> version-dependent tricks like:>> try:>     compile> except NameError:>     from sys import compileNote we can ease this process a little by making a copy withoutremoving, e.g., adding compile to sys now without removing it.  Asprograms support only Python 2.5+, they could use sys.compile andwouldn't need to resort to the try/except above.I realize this is only a marginal improvement.  However, if we don'tstart making changes, we will be stuck maintain suboptimal behaviourforever.n


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp