Issue 34002: minor efficiency and clarity improvements in email package (original) (raw)
Issue34002
Created on 2018-06-29 19:02 by selik, last changed 2022-04-11 14:59 by admin. This issue is now closed.
Pull Requests | |||
---|---|---|---|
URL | Status | Linked | Edit |
PR 7999 | closed | selik,2018-06-29 19:02 |
Messages (3) | ||
---|---|---|
msg320730 - (view) | Author: Michael Selik (selik) * | Date: 2018-06-29 19:02 |
The primary motivation for these improvements was avoiding a while/pop pattern for looping. A for-loop is a big improvement over copying a list, then repeatedly popping the 0th element. A lesser improvement is the use of ``a.intersection(b)`` instead of ``c = set(b); len(c) > len(c - a)``. The check for intersection is more clear, and it avoids an unnecessary set construction. https://github.com/python/cpython/pull/7999/ | ||
msg352825 - (view) | Author: Abhilash Raj (maxking) * ![]() |
Date: 2019-09-20 03:25 |
New changeset 2702638eabe5f7b25f36d295f0ad78cb8d4eda05 by Abhilash Raj (Michael Selik) in branch 'master': bpo-34002: Minor efficiency and clarity improvements in email package. (GH-7999) https://github.com/python/cpython/commit/2702638eabe5f7b25f36d295f0ad78cb8d4eda05 | ||
msg352826 - (view) | Author: Abhilash Raj (maxking) * ![]() |
Date: 2019-09-20 03:26 |
PR is now merged. |
History | |||
---|---|---|---|
Date | User | Action | Args |
2022-04-11 14:59:02 | admin | set | github: 78183 |
2019-09-20 03:26:40 | maxking | set | status: open -> closedmessages: + nosy:barry, r.david.murray, maxking, selikstage: patch review -> resolved |
2019-09-20 03:26:00 | maxking | set | nosy: + maxkingmessages: + |
2018-06-29 19:04:33 | selik | set | nosy: + barry, r.david.murraycomponents: + emailversions: + Python 3.8 |
2018-06-29 19:02:59 | selik | set | keywords: + patchstage: patch reviewpull_requests: + <pull%5Frequest7620> |
2018-06-29 19:02:30 | selik | create |