Commit Graph

  • 070f5aa322 Merge master into pyvaluepayload coolreader18 2019-03-12 18:36:10 -05:00
  • e49d7146a0 Add PyValuePayload trait and use it for PyObject.payload coolreader18 2019-03-12 18:31:59 -05:00
  • 83788b9d3c Merge pull request #667 from adrian17/no-option-typ Joey 2019-03-12 15:59:04 -07:00
  • 051b382356 Merge pull request #668 from adrian17/compile_opts Joey 2019-03-12 15:47:20 -07:00
  • a8f7c80e37 Use default opt-level for release builds. Adrian Wielgosik 2019-03-12 22:07:24 +01:00
  • b334689e55 Remove Option from PyObject.typ; Refactor type hierarchy initialization. Adrian Wielgosik 2019-03-12 21:15:22 +01:00
  • 3cfee902ab Merge pull request #630 from lili668668/dict_get Windel Bouwman 2019-03-12 19:59:25 +01:00
  • 048a9547ce Merge pull request #652 from palaviv/__import__ Windel Bouwman 2019-03-12 19:56:04 +01:00
  • 336aa53b13 Allow IdProtocol to compare PyRef and non-PyRef. Adam Kelly 2019-03-12 18:44:35 +00:00
  • 6a3e82efd9 Fix typo Aviv Palivoda 2019-03-12 20:21:59 +02:00
  • 17082942e4 Merge pull request #666 from RustPython/pyclassref_protocols Adam 2019-03-12 17:56:25 +00:00
  • 2c6baacbac Return ImportError __import__ is not in builtins Aviv Palivoda 2019-03-12 19:31:18 +02:00
  • e6c460fd97 Add import method to VirtualMachine Aviv Palivoda 2019-03-12 18:35:15 +02:00
  • 9f96b16624 Turn PyClass.mro into a Vec<PyClassRef> Adam Kelly 2019-03-12 14:59:12 +00:00
  • 3082f5faef Trivial implementations of IdProtocol and TypeProtocol for PyClassRef. Adam Kelly 2019-03-12 13:43:30 +00:00
  • 48fba05e20 Change .__mro__ to read-only attribute so type.__mro__ works. Adam Kelly 2019-03-12 11:27:42 +00:00
  • 5742e32669 PropertyBuilder: Constraint on setter type is too strong. Adam Kelly 2019-03-12 11:27:18 +00:00
  • de2b928676 Format the code Tzu-Yin Hong 2019-03-12 11:46:47 +08:00
  • a8c02105d1 Merge pull request #662 from adrian17/objint Joey 2019-03-11 19:39:32 -07:00
  • db7d736c68 Merge pull request #661 from RustPython/obj-improvements Joey 2019-03-11 19:34:35 -07:00
  • 88fff7102e cargo fmt coolreader18 2019-03-11 20:01:34 -05:00
  • 18f77cee42 Merge branch 'master' into wasm-explicit-stdout coolreader18 2019-03-11 19:25:13 -05:00
  • dac75019e5 Remove builtin_print_html, move functionality to JS coolreader18 2019-03-11 19:18:21 -05:00
  • e3a5ac1378 Make objint::get_value return a reference Adrian Wielgosik 2019-03-11 19:17:07 +01:00
  • a3823b4540 Test override __import__ Aviv Palivoda 2019-03-11 22:49:55 +02:00
  • 8ec1af52e8 Merge pull request #660 from RustPython/typetype_clean Adam 2019-03-11 20:34:26 +00:00
  • 8c92636a82 Fix wasm code Aviv Palivoda 2019-03-10 23:21:00 +02:00
  • 87e6d8d13d Add __import__ Aviv Palivoda 2019-03-10 21:25:59 +02:00
  • 633a9b0365 Move more methods onto PyClassRef. Adam Kelly 2019-03-11 17:54:14 +00:00
  • 1e39512e74 Convert _mro to iterator. Adam Kelly 2019-03-11 17:43:12 +00:00
  • 3d306fc3e4 Merge pull request #655 from coolreader18/mandelbrot-snippet-generator Windel Bouwman 2019-03-11 19:42:17 +01:00
  • c00d368448 Move classmethod and staticmethod to own files. Also use extend_class more. Windel Bouwman 2019-03-11 19:38:26 +01:00
  • 4cbb1a38f1 Convert most objint functions to new args style Adrian Wielgosik 2019-03-11 19:16:00 +01:00
  • 3711881a60 Add type_pyref() to TypeProtocol. Adam Kelly 2019-03-11 17:42:28 +00:00
  • 482025045f Rearrange mandelbrot.py coolreader18 2019-03-11 12:17:34 -05:00
  • 31c6df31dc Okay now it works without browser coolreader18 2019-03-11 12:14:37 -05:00
  • 5ab41f9c54 Make mandelbrot.py work without browser module coolreader18 2019-03-11 11:59:17 -05:00
  • caae69fc35 Merge pull request #658 from RustPython/mro Windel Bouwman 2019-03-11 17:40:09 +01:00
  • b8aa38db1a Merge pull request #653 from RustPython/joey/pyobject-2.0-prep Windel Bouwman 2019-03-11 17:33:51 +01:00
  • d7e1d69430 Avoid additional clone in objtype::subinstance. Adam Kelly 2019-03-11 11:44:25 +00:00
  • 4d779bbf98 isinstance/issubclass - avoid expensive construction of full mro. Adam Kelly 2019-03-11 10:31:22 +00:00
  • 7894627b9d Use extend_class in objtype. Adam Kelly 2019-03-11 10:22:53 +00:00
  • dfb24d7f11 Merge pull request #657 from skinny121/attribute_error Joey 2019-03-10 22:13:38 -07:00
  • 65c26a1f1b Use new_attribute_error in more places ben 2019-03-11 17:30:10 +13:00
  • a48340d591 Merge pull request #651 from RustPython/make_module_not_mk_module Joey 2019-03-10 21:25:31 -07:00
  • 2449c12bf9 Merge remote-tracking branch 'origin/master' into make_module_not_mk_module Joey Hain 2019-03-10 20:43:11 -07:00
  • 053ceb1a30 Move payload boxing into PyObject::new Joey Hain 2019-03-10 20:14:02 -07:00
  • cf659b80c0 Merge pull request #656 from adrian17/master Joey 2019-03-10 17:17:50 -07:00
  • 09ab6d1d7c Reformat coolreader18 2019-03-10 19:12:11 -05:00
  • b123e58c55 Support index in list.pop() Adrian Wielgosik 2019-03-11 00:31:26 +01:00
  • 40ef62db70 Use a generator for the mandelbrot demo snippet coolreader18 2019-03-10 17:42:39 -05:00
  • 29ec84ead9 Change main.js to print to the console coolreader18 2019-03-10 17:22:22 -05:00
  • 8407f7498e Change setStdout to take "console" instead of undefined coolreader18 2019-03-10 17:20:32 -05:00
  • 4510489bba Fix PyObjectPayload usage in wasm Joey Hain 2019-03-10 15:19:04 -07:00
  • 5971fc3bd4 rename PyObjectPayload2 to PyValue Joey Hain 2019-03-10 13:48:19 -07:00
  • e2e13af7ea Remove PyObjectPayload Joey Hain 2019-03-10 13:45:38 -07:00
  • 45bc8c8f7a Move PyRef to pyobject module Joey Hain 2019-03-10 12:17:50 -07:00
  • 8143adc837 Merge pull request #636 from skinny121/weakref_type Joey 2019-03-10 12:57:04 -07:00
  • 6024e3ea0c Fix irrefutable pattern errors Joey Hain 2019-03-10 12:43:25 -07:00
  • 7c5be7d6b7 Add proper weakref type ben 2019-03-09 17:17:59 +13:00
  • ded7acc427 Merge pull request #643 from palaviv/interactive-shell Windel Bouwman 2019-03-10 18:18:41 +01:00
  • 0ff5155af9 Rename mk_module to make_module. Adam Kelly 2019-03-10 17:10:51 +00:00
  • f27cb5b8ed Don't delete prompt Aviv Palivoda 2019-03-10 18:40:03 +02:00
  • 625e181fd8 Use snakeCase Aviv Palivoda 2019-03-10 18:38:17 +02:00
  • 264d218b70 Use seperate VM for interactive shell Aviv Palivoda 2019-03-10 18:36:29 +02:00
  • e8ec497b02 Merge pull request #637 from RustPython/scope_globals_locals Windel Bouwman 2019-03-10 17:13:03 +01:00
  • 1751333686 Merge pull request #650 from chylli/add_str__doc__ Windel Bouwman 2019-03-10 17:08:13 +01:00
  • e38a82e540 add __doc__ to str Chylli 2019-03-10 22:39:22 +08:00
  • 3fbf627582 Merge branch 'master' into scope_globals_locals Adam Kelly 2019-03-10 13:00:03 +00:00
  • 4a82c8fad5 Rename AttributeProtocol2 -> NameProtocol with method name changes. Adam Kelly 2019-03-10 12:48:33 +00:00
  • 15aaa6d3f6 Add builtin_globals. Adam Kelly 2019-03-09 20:39:29 +00:00
  • 372f09aaa3 Abstract rc linked list so we can just use a loop. Adam Kelly 2019-03-09 08:29:03 +00:00
  • ddf4f55af7 Enable tests that now pass thanks to new scope scheme. Adam Kelly 2019-03-09 07:10:20 +00:00
  • 6ad528c15c Reintroduce new_scope for the common case of an empty scope. Adam Kelly 2019-03-09 07:00:40 +00:00
  • 0e23e706c9 Restructure scope to distinguish between locals and globals. Adam Kelly 2019-03-09 06:44:29 +00:00
  • 9e5b76c9b6 Merge pull request #635 from skinny121/property_refactor Adam 2019-03-10 12:35:24 +00:00
  • eb19eaa6d6 Merge pull request #646 from RustPython/joey/memoryview-slice Windel Bouwman 2019-03-10 10:56:36 +01:00
  • f6765cf16e less explicit returns Joey Hain 2019-03-10 00:34:21 -08:00
  • eb14ada7ad Merge pull request #645 from RustPython/joey/convert-iterator Windel Bouwman 2019-03-10 09:18:14 +01:00
  • 79b4f62300 Merge pull request #642 from RustPython/joey/function-to-any Windel Bouwman 2019-03-10 09:12:20 +01:00
  • f57d2e22bf Merge pull request #649 from jaroel/context-manager-open Ryan Liddle 2019-03-10 13:41:26 +11:00
  • 6072954024 Merge pull request #647 from RustPython/joey/no-arg-functions Ryan Liddle 2019-03-10 13:34:53 +11:00
  • 8f6257b37f Make open a context manager Roel Bruggink 2019-03-10 03:11:28 +01:00
  • cd3ca16693 Allow functions that don't take any args Joey Hain 2019-03-09 16:45:19 -08:00
  • e1d728e81f slice Joey Hain 2019-03-09 15:10:44 -08:00
  • 776dd80591 memoryview Joey Hain 2019-03-09 14:58:33 -08:00
  • 157d18d7a1 Convert iterator Joey 2019-03-09 10:15:18 -08:00
  • 7d01323e09 Merge branch 'master' into property_refactor ben 2019-03-10 09:06:21 +13:00
  • 3c3c1f2b6f Fixed new_attribute_error and added more tests for property ben 2019-03-10 09:01:46 +13:00
  • 669aa70aab Support ':' in interactive shell Aviv Palivoda 2019-03-09 21:23:59 +02:00
  • 03d431ecac Support backspace in interactive shell Aviv Palivoda 2019-03-09 21:17:13 +02:00
  • ec3ace527b Change prompt to >>>>> Aviv Palivoda 2019-03-09 20:57:36 +02:00
  • 6eea40799b generator Joey 2019-03-09 09:27:58 -08:00
  • 53e4591911 frame Joey 2019-03-09 09:21:21 -08:00
  • c1180fc564 builtin_function_or_method Joey 2019-03-09 08:45:46 -08:00
  • 976c9e8b58 Add interactive shell to WASM demo Aviv Palivoda 2019-03-09 18:41:02 +02:00
  • 5a74121c76 method Joey Hain 2019-03-08 19:11:01 -08:00
  • dd56d1d5a2 function Joey Hain 2019-03-08 18:52:11 -08:00
  • 010969f2d2 Merge pull request #641 from RustPython/py_module_use Joey 2019-03-09 07:04:43 -08:00
  • 1444a1f98c Merge pull request #640 from RustPython/type_annotations2 Joey 2019-03-09 07:04:32 -08:00