littletable-support Mailing List for littletable
Status: Alpha
Brought to you by:
ptmcg
You can subscribe to this list here.
| 2017 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
|---|
|
From: Janne H. <jan...@ik...> - 2017-10-06 16:21:35
|
Hey,
Documentation of Table.remove() says that it doesn't throw an exception if
object is not in table, however it does.
Code:
from littletable import Table, DataObject
nosuchitems = Table("nosuchitems")
nosuchitems.create_index("id")
nosuchitems.remove(DataObject(id=1))
Outputs:
Traceback (most recent call last):
File ".\test.py", line 4, in <module>
nosuchitems.remove(DataObject(id=1))
File "C:\Tiedostot\Henkilokohtainen\Projektit\World of
Tanks\Modit\TessuMod\littletable\littletable.py", line 557, in remove
self.obs.remove(ob)
ValueError: list.remove(x): x not in list
Using littletable version 0.9.
Best Regards,
Janne
|