Kit Choi

Results 38 issues of Kit Choi

Given a fixed grammar file to generate a standalone parser using `lark.tools.standalone`, the resulting generated code is not always identical despite setting PYTHONHASHSEED. Note that the syntax tree given by...

This came up a few times in the past (e.g. #886): Currently default value is not validated upon trait initialization, so one could do this ``` from traits.api import Int,...

type: discussion

Currently `trait_added` and `trait_modified` are reported by public methods `HasTraits.traits` and `HasTraits.class_traits`. Both of these traits are defined by `traits` for internal use and are typically not useful for downstream...

type: enhancement

Consider this: ```python from traits.api import HasTraits, Instance, Str class Foo(HasTraits): name = Str() def handler(object, name, old, new): print("Changed!", (object, name, old, new)) foo = Foo() foo.add_trait("child", Instance(Foo)) foo.on_trait_change(handler,...

type: bug

I came across the following base class and subclass: ``` class Base(HasTraits): a = Str("a") class Child(Base): a = "overridden" ``` If you try to inspect the default value for...

When an attribute has a `Date` type, then it is meant to be just *Date*, not *Date and Time*. So I would expect assigning a `datetime` object to a Date...

good first issue

The existing behaviour for `on_trait_change` (and `observe`) is that if equality check fails, the error will be swallowed and the change handler is fired. This issue is about whether we...

type: discussion

Currently `TraitListObject`, `TraitSetObject` and `TraitDictObject` are exposed in the `api` module, but their corresponding base classes `TraitList`, `TraitSet` and `TraitDict` are NOT exposed in the `api` module. I am not...

type: discussion

#1110 marks the following event objects as provisional as of version 6.1: - DictChangeEvent - ListChangeEvent - SetChangeEvent - TraitChangeEvent In some future release, we should finalize the event object...

type: cleanup

In downstream projects using Traits, one often needs to add the following code in their test cases setUp and tearDown: ``` from traits.api import pop_exception_handler, push_exception_handler class TestSomethingWithTraits(unittest.TestCase): def setUp(self):...

type: enhancement