Movatterモバイル変換


[0]ホーム

URL:


[Python-Dev] folding cElementTree behind ElementTree in 3.3

Nick Coghlanncoghlan at gmail.com
Fri Feb 17 23:04:01 CET 2012


On Fri, Feb 17, 2012 at 4:29 AM, Ezio Melotti <ezio.melotti at gmail.com> wrote:> I'm assuming that eventually the module will be removed (maybe for Python> 4?), and I don't expect nor want to seen it removed in the near future.> If something gets removed it should be deprecated first, and it's usually> better to deprecate it sooner so that the developers have more time to> update their code.Not really - as soon as we programmatically deprecate something, itmeans anyone with a strict warnings policy (or with customers thathave such a policy) has to update their code *now*. (Previously it waseven worse than that, which is why deprecation warnings are no longerdisplayed by default).For things that we have no intention of deprecating in 3.x, but willlikely ditch in a hypothetical future Python 4000, we'll almostcertainly do exactly what we did with Pyk: later in the 3.x series,add a "-4" command line switch and a sys.py4kwarning flag to triggerconditional deprecation warnings.So, assuming things continue as they have for the first couple ofdecades of Python's existence, we can probably start worrying about itsome time around 2020 :)Cheers,Nick.-- Nick Coghlan   |  ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-Devmailing list

[8]ページ先頭

©2009-2025 Movatter.jp