Commit Graph
6906 Commits
Author SHA1 Message Date
Jeong YunWon 2ebec89d9f Merge pull request #2238 from youknowone/static-type
Trait for static type
2020-10-20 12:33:45 +09:00
Jeong YunWon 0c505f9893 sys.windowsversion is now static type, no need to be owned somewhere 2020-10-20 02:29:35 +09:00
Jeong YunWon 57bf7afdd9 every PyStructSequence is StaticType 2020-10-20 02:29:33 +09:00
Jeong YunWon 3b78c6068b vm.class() only for non-static types 2020-10-20 02:29:31 +09:00
Jeong YunWon ecf1120bee Clean up static-type affected apis 2020-10-20 02:29:28 +09:00
Jeong YunWon f41124fddb Use unreachable_unsafe for static_type() 2020-10-20 02:29:21 +09:00
Jeong YunWon 4add0220ae PyValue::class() returns ref 2020-10-20 02:29:20 +09:00
Jeong YunWon 34a2038e17 Use StaticType::static_class() rather than vm.class 2020-10-20 01:47:53 +09:00
Jeong YunWon 5b32064cd6 trait StaticType 2020-10-20 01:43:39 +09:00
Jeong YunWon 91eb4d42e0 direct call io_open for initialization 2020-10-19 20:30:29 +09:00
Jeong YunWon d54cfaf3f4 Keep source code order for module items 2020-10-19 18:21:04 +09:00
Jeong YunWon 1f8213082c py* macro raises better error for duplicated item 2020-10-19 18:11:44 +09:00
Noah efa809bd17 Merge pull request #2290 from RustPython/coolreader18/update-browser
Update the browser module
2020-10-17 23:07:27 -05:00
Noah ee047b9c30 Merge pull request #2278 from evilpie/basic_block
Basic block support in JIT
2020-10-17 19:39:54 -05:00
Noah bef5b54ea1 Merge pull request #2292 from qingshi163/dev6
fix memoryview is not pickleable
2020-10-17 19:29:50 -05:00
Tom Schuster 9f24797bc8 basic loop support 2020-10-17 19:37:36 +02:00
Noah c61759bd92 Rework some of the _js module 2020-10-17 11:34:05 -05:00
Tom Schuster 7aebbc80e1 cargo fmt 2020-10-17 17:42:02 +02:00
Tom Schuster c4d4432666 JumpIfTrue 2020-10-17 17:42:02 +02:00
Tom Schuster 7b345d060c Add bool tests 2020-10-17 17:42:02 +02:00
Tom Schuster d8875cb660 constant boolean 2020-10-17 17:42:02 +02:00
Tom Schuster 682107ce81 factor out LoadConst 2020-10-17 17:42:02 +02:00
Tom Schuster 70b05cf620 bool support 2020-10-17 17:42:02 +02:00
Tom Schuster abf5ab467b implement bool conversion for float 2020-10-17 17:42:02 +02:00
Tom Schuster 80d168cc74 Implement Unary minus/plus 2020-10-17 17:42:02 +02:00
Tom Schuster 023bf6c3ba Basic block support in JIT 2020-10-17 17:42:02 +02:00
Kangzhi Shi ce097617f7 fix memoryview is not pickleable 2020-10-17 13:35:29 +02:00
Noah cb9c9ec4cf Add some utility methods to function::Args and PyBaseException 2020-10-16 20:49:57 -05:00
Noah 79d5872942 Expose PyGetSet in builtins 2020-10-16 20:49:20 -05:00
Noah b0f9589471 Update dependencies 2020-10-16 20:49:00 -05:00
Jeong YunWon fc0c8e331d Merge pull request #2288 from qingshi163/dev5
fix buffer resizable non-thread safe
2020-10-17 00:48:55 +09:00
Kangzhi Shi 64f4282ede fix error type 2020-10-16 09:34:35 +02:00
Kangzhi Shi c2d46b9df3 remove comment 2020-10-16 07:30:59 +02:00
Kangzhi Shi c3484c612c fix buffer resizable non-thread safe 2020-10-15 17:47:32 +02:00
Jeong YunWon 5a2e9a065e Merge pull request #2285 from youknowone/builtins
Clean up vm::builtins
2020-10-13 15:47:53 +09:00
Jeong YunWon e823d95ce5 split vm::builtins::iter utility functions to vm::iterator 2020-10-13 15:42:11 +09:00
Jeong YunWon 19ed4f85e7 clean up vm::builtins 2020-10-13 15:42:11 +09:00
Noah 61ded76298 Merge pull request #2286 from youknowone/cargo-update
cargo update
2020-10-12 13:58:26 -05:00
Noah 5ffabb404f Merge pull request #2282 from qingshi163/dev2
Reimplement bytes fromhex
2020-10-12 12:43:05 -05:00
Jeong YunWon ba82e31c8d cargo update 2020-10-13 02:15:57 +09:00
Kangzhi Shi d14b0cf93b bytes fromhex CPython compatible 2020-10-12 10:17:47 +02:00
Kangzhi Shi 21a9e05abc Reimplement bytes fromhex 2020-10-12 10:09:15 +02:00
Jeong YunWon b2c0a69386 Merge pull request #2281 from youknowone/builtins
vm::obj -> vm::builtins and expose types right under builtins rather than each objxxx submodules
2020-10-12 12:41:45 +09:00
Jeong YunWon ca9326f95d expose bulitins items on builtins module and hide submodules 2020-10-12 11:43:24 +09:00
Noah 9142bfb9b5 Merge pull request #2283 from qingshi163/dev3
test_bytes remove @skip for successed test
2020-10-11 12:26:30 -05:00
Kangzhi Shi a3243da0d6 test_bytes remove @skip for successed test 2020-10-11 15:24:41 +02:00
Jeong YunWon 9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon 13bde3d7b4 vm::obj -> vm::builtins (broken) 2020-10-11 20:59:50 +09:00
Steve Shi 2d9b1d0649 Implement bytes.hex() with optional sep 2020-10-11 18:34:08 +09:00
Jeong YunWon 708da5790b Merge pull request #2250 from youknowone/funcargs
PyFuncArgs from rust tuple
2020-10-11 15:07:15 +09:00