typed_python icon indicating copy to clipboard operation
typed_python copied to clipboard

An llvm-based framework for generating and calling into high-performance native code from Python.

Results 72 typed_python issues
Sort by recently updated
recently updated
newest added

## Motivation and Context A typo in StringType.cpp causes a logical error in `StringType::cmpStatic` ## Approach Fix the typo, remove the `using namespace std` directive. See the commit messages for...

Using manylinux we can build wheels across different python versions. This makes it easier to create binary distributions of typed_python so that it doesn't always need to be built from...

Mac install for typed python (intel and M1) ## Motivation and Context Documentation and minor c++ dependency library catch which allows TP to be installed on OSX. ## Approach ##...

``` from typed_python import ListOf x = ListOf(str)(['a', 'b', 'c']) x.remove('b') ``` returns ``` AttributeError: 'ListOf(str)' object has no attribute 'remove' ```

``` from typed_python import NamedTuple Nt1 = NamedTuple(x=int) Nt2 = NamedTuple(x=int, y=str) i1 = Nt1() i11 = Nt1(i1) # this works, as it should i1 == i11 i1 is i11...

Am I doing this right? ``` class Number(Class, Final): value = Member(int) def __init__(self, val): self.value = val def __add__(self, other): value = self.value + other.value return Number(value) @Entrypoint def...

This is with python3.9 and llvm-10.1: gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -fPIC -D_FORTIFY_SOURCE=2 -I/usr/local/include/python3.9 -I/usr/local/lib/python3.9/site-packages/numpy/core/include -c typed_python/all.cpp -o build/temp.linux-x86_64-3.9/typed_python/all.o -O2 -fstack-protector-strong -Wformat -Wdate-time -Werror=format-security -std=c++14 -Wno-sign-compare...

Right now, we have an incomplete implementation that doesn't actually let you do much with const dicts. We should implement the full set of semantics, including adding, converting from typed...

Our methodology for serializing core python objects works for lots of things, but not certain kinds of types and methods. For instance ``` import numpy import typed_python.Codebase as Codebase sc...