Movatterモバイル変換
[0]ホーム
[Python-Dev] RE: [Idle-dev] Forward progress with full backward compatibility
Barry A. Warsawbwarsaw@cnri.reston.va.us
Wed, 12 Apr 2000 15:29:11 -0400 (EDT)
>>>>> "FL" == Fredrik Lundh <effbot@telia.com> writes: FL> (ouch. python is definitely not what it used to be. wonder FL> if the right answer to this is "wouldn't a tuple be much more FL> python-like?" or "I'm outta here...")Yeah, pulling the micro version number out of sys.hexversion is uglyand undocumented, hence my subsequent message.The basically idea is pretty cool though, and I've adopted it toMailman. It allows me to do this: previous_version = last_hex_version() this_version = mm_cfg.HEX_VERSION if previous_version < this_version: # I'm upgrading-Barry
[8]ページ先頭