This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: __future__.barry_as_FLUFL.getMandatoryRelease() is wrong
Type: behavior Stage: resolved
Components: Library (Lib) Versions: Python 3.10, Python 3.9, Python 3.8, Python 3.7
process
Status: closed Resolution: wont fix
Dependencies: Superseder:
Assigned To: Nosy List: barry, christian.heimes, serhiy.storchaka, wyz23x2
Priority: normal Keywords:

Created on 2020-07-09 01:59 by wyz23x2, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Messages (5)
msg373369 - (view) Author: wyz23x2 (wyz23x2) * Date: 2020-07-09 01:59
__future__.barry_as_FLUFL turns x!=y into x<>y.
But the doc by help() says:
Help on _Feature in module __future__ object:                                                                                                                                                                                                               class _Feature(builtins.object)
--snip--
|  getMandatoryRelease(self)                                                                                                  |      Return release in which this feature will become mandatory.                                                            |                                                                                                                             |      This is a 5-tuple, of the same form as sys.version_info, or, if                                                        |      the feature was dropped, is None. 
--snip--

Since <> is dropped, __future__.barry_as_FLUFL.getMandatoryRelease() should be None. But it instead returns (4, 0, 0, 'alpha', 0), which
means it will become default in Python 4 and drop != (!= is invalid
after the __future__ import).
That shouldn't be right.
msg373370 - (view) Author: wyz23x2 (wyz23x2) * Date: 2020-07-09 02:01
Help on _Feature in module __future__ object:                                                                                                                                                                                                               class _Feature(builtins.object)
--snip--
|  getMandatoryRelease(self)
|      Return release in which this feature will become mandatory.
|
|      This is a 5-tuple, of the same form as sys.version_info, or, if
|     the feature was dropped, is None. 
--snip--
msg373375 - (view) Author: Serhiy Storchaka (serhiy.storchaka) * (Python committer) Date: 2020-07-09 04:59
It was not officially dropped. It was kept as a joke.
msg373387 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2020-07-09 09:59
It's an easter egg and internal joke. Barry would be disapointed if we would deprive him of his title.
msg373423 - (view) Author: Barry A. Warsaw (barry) * (Python committer) Date: 2020-07-09 19:31
Thanks for keeping the first 'F' in FLUFL!  :D
History
Date User Action Args
2022-04-11 14:59:33adminsetgithub: 85423
2020-07-09 19:31:46barrysetmessages: + msg373423
2020-07-09 09:59:07christian.heimessetstatus: open -> closed

nosy: + barry, christian.heimes
messages: + msg373387

resolution: wont fix
stage: resolved
2020-07-09 04:59:56serhiy.storchakasetnosy: + serhiy.storchaka
messages: + msg373375
2020-07-09 02:02:46wyz23x2settype: behavior
2020-07-09 02:01:02wyz23x2setmessages: + msg373370
2020-07-09 01:59:40wyz23x2setcomponents: + Library (Lib)
versions: + Python 3.7, Python 3.8, Python 3.9, Python 3.10
2020-07-09 01:59:15wyz23x2create