- 07 Apr, 2017 2 commits
-
-
Dylan Trotter authored
This test is causing too many Travis failures. Will re-enable when https://github.com/google/grumpy/issues/282 is addressed.
-
Mansour Rahimi authored
-
- 05 Apr, 2017 1 commit
-
-
Long Ang authored
-
- 03 Apr, 2017 6 commits
-
-
Dylan Trotter authored
In bc04caf4 I moved a bunch of tests into imputil_test.py but I failed to add a __main__ check so the tests were never run. This change remedies that and fixes the tests that were broken the whole time.
-
Dylan Trotter authored
-
Dylan Trotter authored
-
Dylan Trotter authored
-
Dylan Trotter authored
-
Dong-hee Na authored
-
- 28 Mar, 2017 3 commits
-
-
Dylan Trotter authored
-
Dong-hee Na authored
-
Dylan Trotter authored
genmake looks in the src/__python__ subdir of a dir specified on the command line and generates a makefile that describes how to build Go packages from the .py sources. The project Makefile now uses genmake to generate targets for the stdlib.
-
- 25 Mar, 2017 1 commit
-
-
Dylan Trotter authored
-
- 24 Mar, 2017 8 commits
-
-
Dylan Trotter authored
-
Dylan Trotter authored
-
Dylan Trotter authored
-
Dylan Trotter authored
Modules being imported are now detected at compile time. So it's possible to determine whether "from x import y" is importing module y or a member y of module x. This change uses this capability to choose whether to import a module or a member. This fixes https://github.com/google/grumpy/issues/99
-
Dylan Trotter authored
-
Dylan Trotter authored
Previously, grumpc assumed that all imports were valid Python modules. So there was no way to distinguish between, for example, importing a module within a package, or a package member of the same name. This change makes it so that during code generation, Python source files corresponding to the modules being imported exist on the GOPATH. If no such Python source file exists, then an ImportError is raised. Additionally, this change fixes an issue where imports within packages or within modules within packages were not first checking for the named import within the package directory. Now, package-relative imports work as expected.
-
Dylan Trotter authored
-
Dylan Trotter authored
-
- 23 Mar, 2017 2 commits
-
-
Dong-hee Na authored
-
Dong-hee Na authored
-
- 22 Mar, 2017 5 commits
-
-
Dylan Trotter authored
Import logic is currently embedded in the StatementVisitor class which makes it difficult to reuse. This change factors that logic out into an ImportVisitor class in util.py. The newly exposed logic can now be used by other tools.
-
Dylan Trotter authored
Python code compiled by grumpc will be staged in GOPATH/__python__ so that modules can be detected at compile time.
-
Dylan Trotter authored
Previously add_import(), add_native_import() and intern() were Block methods that delegated to the root ModuleBlock internally. Now that the ModuleBlock is accessible from any Block via the root attr, move those methods to ModuleBlock.
-
Dylan Trotter authored
-
Yash Patel authored
-
- 18 Mar, 2017 1 commit
-
-
Mansour Rahimi authored
-
- 16 Mar, 2017 1 commit
-
-
Dylan Trotter authored
-
- 12 Mar, 2017 1 commit
-
-
Dylan Trotter authored
-
- 23 Feb, 2017 1 commit
-
-
Dong-hee Na authored
-
- 19 Feb, 2017 1 commit
-
-
Dylan Trotter authored
Per the docs, mktime expects a time struct in local time, not UTC: https://docs.python.org/2/library/time.html#time.mktime This mismatch was causing TestDate.test_fromtimestamp in test_datetime.py to fail on some systems.
-
- 18 Feb, 2017 3 commits
-
-
YOU authored
-
Dylan Trotter authored
dictNE was checking v.isInstance(DictType) instead of checking w. This causes a variety of undefined behavior including segfault, invalid mutex state, etc.
-
Dong-hee Na authored
-
- 17 Feb, 2017 1 commit
-
-
YOU authored
-
- 16 Feb, 2017 1 commit
-
-
YOU authored
-
- 15 Feb, 2017 1 commit
-
-
Dong-hee Na authored
-
- 13 Feb, 2017 1 commit
-
-
Dylan Trotter authored
Addresses https://github.com/google/grumpy/issues/56
-