Issue1791931

classification
Title: slice should be a type
Type: Severity: normal
Components: Core Versions:
Milestone:
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: cgroves, leosoto
Priority: normal Keywords:

Created on 2007-09-10.19:55:51 by leosoto, last changed 2007-12-02.07:22:58 by cgroves.

Messages
msg1903 (view) Author: Leonardo Soto (leosoto) Date: 2007-09-10.19:55:51
On current Jython (SVN trunk) slice is not a type:

>>> type(slice)
<type 'builtin_function_or_method'>

This makes harder to test for an instance of slice, because isinstance(x, slice) won't work. 

The workaround (in python code) is:

slice = type(slice(0))




msg1904 (view) Author: Charlie Groves (cgroves) Date: 2007-12-02.07:22:58
Fixed in r3749.
History
Date User Action Args
2007-09-10 19:55:51leosotocreate