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.
Created on 2008年07月06日 15:12 by vstinner, last changed 2022年04月11日 14:56 by admin. This issue is now closed.
| Files | ||||
|---|---|---|---|---|
| File name | Uploaded | Description | Edit | |
| bisect_lo.patch | vstinner, 2008年07月06日 15:12 | Patch workaround the bisect lo bug | ||
| Messages (4) | |||
|---|---|---|---|
| msg69334 - (view) | Author: STINNER Victor (vstinner) * (Python committer) | Date: 2008年07月06日 15:12 | |
"import bisect; bisect.insort(range(4), -1, -1)" goes into an unlimited loop. Workaround: replace negative lo value by zero. The function may raise an exception. |
|||
| msg69340 - (view) | Author: Georg Brandl (georg.brandl) * (Python committer) | Date: 2008年07月06日 17:01 | |
The same is true for all other _bisect functions. The pure Python versions from bisect work with negative indices by interpreting them as in slice notation. This should probably be harmonized. |
|||
| msg69344 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2008年07月06日 17:24 | |
Don't think negative indices make much sense in this context. Will put in a test to raise a ValueError for negative indices. |
|||
| msg69502 - (view) | Author: Raymond Hettinger (rhettinger) * (Python committer) | Date: 2008年07月10日 14:03 | |
Fixed in 64845. |
|||
| History | |||
|---|---|---|---|
| Date | User | Action | Args |
| 2022年04月11日 14:56:36 | admin | set | github: 47551 |
| 2008年07月10日 14:03:52 | rhettinger | set | status: open -> closed resolution: fixed messages: + msg69502 |
| 2008年07月06日 17:24:32 | rhettinger | set | priority: high messages: + msg69344 |
| 2008年07月06日 17:01:19 | georg.brandl | set | assignee: rhettinger messages: + msg69340 nosy: + rhettinger, georg.brandl |
| 2008年07月06日 15:12:21 | vstinner | create | |