Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #106446 > unrolled thread
| Started by | Random832 <random832@fastmail.com> |
|---|---|
| First post | 2016-04-04 11:19 -0400 |
| Last post | 2016-04-04 11:19 -0400 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: Set type for datetime intervals Random832 <random832@fastmail.com> - 2016-04-04 11:19 -0400
| From | Random832 <random832@fastmail.com> |
|---|---|
| Date | 2016-04-04 11:19 -0400 |
| Subject | Re: Set type for datetime intervals |
| Message-ID | <mailman.22.1459783682.32530.python-list@python.org> |
On Mon, Apr 4, 2016, at 06:15, Nagy László Zsolt wrote: > If you define the intersection operation on interval sets only, then you > need to write something like this: > > if IntervalSet(i1)*IntervalSet(i2): > pass > > which is both uglier and an overkill. I guess what I don't understand in this situation is why aren't i1 and i2 already IntervalSets? I'm not sure I see why user code would be working directly with Intervals at all. Any use for it could be replaced with an IntervalSet constructor to directly make a set of one interval.
Back to top | Article view | comp.lang.python
csiph-web