[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
Han added the comment: Thanks, I didn't notice the Deprecated sign on the Sets page. -- stage: -> resolved status: open -> closed ___ Python tracker ___ _

[issue36198] Misleading in library/sets document

2019-03-05 Thread Josh Rosenberg
Josh Rosenberg added the comment: The "returns" bit is accurate when referring to the in-place operator overloads (__ior__), so those lines may have been written referring to the overloads described on the same line (they shouldn't have been written that way, but that would explain why only

[issue36198] Misleading in library/sets document

2019-03-05 Thread Karthikeyan Singaravelan
Karthikeyan Singaravelan added the comment: To add to this is actually present in sets module documentation which has been deprecated since 2.6 though the report is true that the methods don't return a set. Link : https://docs.python.org/2/library/sets.html#set-objects -- nosy: +rhe

[issue36198] Misleading in library/sets document

2019-03-05 Thread Han
New submission from Han : Doc/library/sets.rst said operation s.update(t)'s result is "return set s with elements added from t". But update()'s return value is None. I think change it to "set s with elements added from t" would be better. So are operations intersection_update(), difference_upda