[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Christian Heimes

Change by Christian Heimes :


--
resolution:  -> third party
stage:  -> resolved
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan

Balakrishnan Unnithan  added the comment:

Yes, I am using this 3rd party library. Okay, I shall withdraw the issue from 
here.
I'm new to Python and hence do not know the various groups and their purpose.
Apologies!
Thanks for the support.

Version info:
ObjectListView 1.3.1
Python 3.5.4 (v3.5.4:3f56838, Aug  8 2017, 02:07:06) [MSC v.1900 32 bit 
(Intel)] on win32

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Ronald Oussoren

Ronald Oussoren  added the comment:

This appears to be an issue with a 3th-party library 
(https://pypi.python.org/pypi/ObjectListView), not CPython itself.

The repository (and issue tracker) for that library is at 
. 

@Balakrishnan: could you confirm that you are using this library? And if so, 
please file an issue with that project.

--
nosy: +ronaldoussoren

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan

Balakrishnan Unnithan  added the comment:

Issue:
On Python3.5, ObjectListView object crashes when double-clicked in cell to edit 
int type.
-
Traceback (most recent call last):
  File "C:\DevEnv\Python35\lib\site-packages\ObjectListView\ObjectListView.py", 
line 1726, in _HandleLeftClickOrDoubleClick
self._PossibleStartCellEdit(rowIndex, subItemIndex)
  File "C:\DevEnv\Python35\lib\site-packages\ObjectListView\ObjectListView.py", 
line 2048, in _PossibleStartCellEdit
self.StartCellEdit(rowIndex, subItemIndex)
  File "C:\DevEnv\Python35\lib\site-packages\ObjectListView\ObjectListView.py", 
line 2114, in StartCellEdit
self.cellEditor.SetValue(evt.cellValue)
  File "C:\DevEnv\Python35\lib\site-packages\ObjectListView\CellEditor.py", 
line 268, in SetValue
if isinstance(value, (long, int, float)):
NameError: name 'long' is not defined
-
On debugging, I found that the actual root-cause of this bug lies in below code:
File: ..lib\site-packages\ObjectListView\CellEditor.py
Line: 100
-
def __init__(self):
self.typeToFunctionMap = {}

# Standard types and their creator functions
self.typeToFunctionMap[str] = self._MakeStringEditor
self.typeToFunctionMap[six.text_type] = self._MakeStringEditor
self.typeToFunctionMap[bool] = self._MakeBoolEditor

if six.PY2:
self.typeToFunctionMap[int] = self._MakeIntegerEditor
self.typeToFunctionMap[long] = self._MakeLongEditor
else:
#Line:100   
self.typeToFunctionMap[int] = self._MakeLongEditor

self.typeToFunctionMap[float] = self._MakeFloatEditor
self.typeToFunctionMap[datetime.datetime] = self._MakeDateTimeEditor
self.typeToFunctionMap[datetime.date] = self._MakeDateEditor
self.typeToFunctionMap[datetime.time] = self._MakeTimeEditor
-
Modified code:
-
if six.PY2:
self.typeToFunctionMap[int] = self._MakeIntegerEditor
self.typeToFunctionMap[long] = self._MakeLongEditor
else:
#Line:100 
self.typeToFunctionMap[int] = self._MakeIntegerEditor
-
In place of integer type editor, long type editor is being created.
As Python3.x does not support long type, the programme crashes here.

--
status: pending -> open

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Serhiy Storchaka

New submission from Serhiy Storchaka :

Could you provide more information Balakrishnan?

--
nosy: +serhiy.storchaka
status: open -> pending

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32111] ObjectListView crashes on python3.5

2017-11-22 Thread Balakrishnan Unnithan

Change by Balakrishnan Unnithan :


--
components: Extension Modules
nosy: Balakrishnan Unnithan
priority: normal
severity: normal
status: open
title: ObjectListView crashes on python3.5
type: crash
versions: Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com