Stefan Richthofer

Results 228 comments of Stefan Richthofer

Hello @abhi18av, note that JyNI is not yet another Java FFI, but actually emulates the existing CPython C-extension API. This API is very involved and needs rather special treatment in...

This is a nice one. Are you making progress with this idea? Could you roughly sketch how you plan to implement it? "Numpy without Python" sounds like you see a...

I never found time to deal with `@overload`, and pytypes might crash on loading stub files that contain it. So typeshed may be problematic. Further, stubfiles are searched in the...

>`cpython-36m-x86_64-linux-gnu` Interesting. Do you have an idea where this string comes from? Is a C-extension involved? Pytypes locates the stubfile based on the `__file__` attribute of the module object. The...

Okay, perfect. Then we need better code to clean the filename, right? Can you suggest a genuine line of Python to accomplish this?

I wonder why I used `rpartition` in first place. Can there be a case where the proper module name would contain a dot? Anyway, thanks for spotting this! If you...

I remember there were issues with `__name__`. It was certainly also *my* first choice. At very least, the main module has `__main__` as its `__name__` which is useless for finding...

Maybe in `os` there is a platform-specific alias? However, querying such aliases would be tedious if possible at all. I guess the best solution would be a user-configurable lookup table...

I committed the change you suggest in https://github.com/Stewori/pytypes/issues/78#issuecomment-528857260. Does it fix that particular aspect of this issue for you? (Certainly the overall solution of this issue is WIP...)

Yes that's right. Or at least invisible unless some debug flag is set. I would cure this in `type_str`. However this won't fix before Python 3.7 compatibility is achieved because...