Jonathan
Jonathan
> [/instance.py#192](https://github.com/Source-Python-Dev-Team/Source.Python/pull/478/files#diff-6e1be76ed3a47115938084bd685070dea86bb9c5a4a3992d3f06fdd0caee7132R192) will produce a `NameError`. Other than that; LGTM. I guess I didn't test with data that included digits, my bad.
> `char *` is really just a pointer to an array. Perhaps this can give you some hints: I understand how get/set_string_array works, it is set_string_pointer I am asking about....
I will change the question, who determines the lifetime of this string object? When does it end? ```python from memory import alloc s_p1 = alloc(4, False) s_p1.set_string_pointer("string") ```
> `s_p1.set_string_pointer("string")` is the exact equivalence of `s_p1.get_pointer().set_string_array("string")`. Which obviously is undefined, because your memory is uninitialized and your pointer holds an unknown address. The actual behavior is not like...
> This is not quite the equivalence. Let me bring some light into this topic by adding some comments to the very first example. set_string_pointer is actually a little bit...
No more questions. Thanks for the answers. I have created a fix(#474) for some of the problems, so if you have any comments, please let me know.
> I don't think this should raise unless `bValidate` is `true` and should simply return `0` otherwise. Main reason being for consistency with all the other functions exported (e.g. you...
> That's a callback, not a function. And that's by design, because `None` is automatically returned when you omit the `return` statement. I am not talking about the callback, I'm...
> It's by design. Calling a Python function that does not return anything, for example: > > ```python > def pre_give_named_item(args): > do_whatever_but_does_not_return_anything() > ``` > > Automatically return `None`....
Are there any other issues?