mirror of
https://github.com/python/cpython.git
synced 2025-07-19 17:25:54 +00:00
XEvent.py: Added support for ExposeEvent.
profile.py: Some speed improvements (I hope). rect.py: Bug fix in union().
This commit is contained in:
parent
f64992e95d
commit
4fddf33c87
3 changed files with 35 additions and 18 deletions
|
@ -46,7 +46,7 @@ def intersect(list):
|
|||
# This works with a list or tuple argument.
|
||||
#
|
||||
def union(list):
|
||||
(left, top), (right, bottom) = empty
|
||||
(left, top), (right, bottom) = list[0]
|
||||
for (l, t), (r, b) in list[1:]:
|
||||
if not is_empty(((l, t), (r, b))):
|
||||
if l < left: left = l
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue