Commit Graph

  • bd12982b06 Implement None == None Daniel Watkins 2018-08-31 18:35:00 -04:00
  • 4333ce07ef kwarg_names should explicitly be strings so unwrap them directly Daniel Watkins 2018-08-31 16:52:04 -04:00
  • e69d4542da Convert PyFuncArgs.kwargs to a Vec Daniel Watkins 2018-08-31 16:42:02 -04:00
  • ad0d03b7cf Fix and expand function parsing Rust tests Daniel Watkins 2018-08-31 16:23:25 -04:00
  • f9538af3f2 Add bytes object class Windel Bouwman 2018-08-31 22:10:10 +02:00
  • 67b7cc2e45 Expand function snippet tests for kwargs Daniel Watkins 2018-08-31 16:00:09 -04:00
  • 003f99c70d Fix assertion messages in func_defaults snippet Daniel Watkins 2018-08-31 15:57:09 -04:00
  • d807ad0c77 Implement kwargs in function calls Daniel Watkins 2018-08-29 22:49:50 -04:00
  • e8afd0ad90 Use PyFuncArgs::default() when we want an empty struct Daniel Watkins 2018-08-29 21:38:42 -04:00
  • dcc3f30db9 Reject calls with positional arguments after keyword arguments Daniel Watkins 2018-08-29 19:46:34 -04:00
  • 764e0af433 Emit CallFunctionKw from compiler for kwarg calls Daniel Watkins 2018-08-29 18:50:11 -04:00
  • b4662925b7 Naively parse keyword arguments Daniel Watkins 2018-08-29 18:20:47 -04:00
  • 5f0c8a343f Merge pull request #114 from RustPython/objtyp Daniel Watkins 2018-08-31 15:37:37 -04:00
  • 8ed132cadb Fix issue #112 Windel Bouwman 2018-08-31 21:10:49 +02:00
  • b2ab49376a Change get_value to take a reference to a reference Windel Bouwman 2018-08-31 20:49:52 +02:00
  • f453c749ec Move builtin types to own directory Windel Bouwman 2018-08-31 20:31:25 +02:00
  • c687db079a Merge pull request #107 from OddBloke/stdlib Windel Bouwman 2018-08-31 19:47:47 +02:00
  • 59bf1cb348 Merge pull request #113 from OddBloke/json Windel Bouwman 2018-08-31 19:37:37 +02:00
  • a1a649c7c1 Merge pull request #106 from OddBloke/constant_tuple Windel Bouwman 2018-08-31 19:31:49 +02:00
  • 69a8592b0b Merge pull request #104 from OddBloke/macro Windel Bouwman 2018-08-31 19:29:43 +02:00
  • 406b9a1c57 Add PyObjectSerializer method to reduce clutter Daniel Watkins 2018-08-30 19:01:14 -04:00
  • 3dca52cc4a Rework json.dumps to support subclasses Daniel Watkins 2018-08-30 18:52:15 -04:00
  • 934612314b Add or make public get_elements for sequences/dicts Daniel Watkins 2018-08-30 18:51:54 -04:00
  • e0b71b8d93 Add JSON snippet tests for None Daniel Watkins 2018-08-30 18:26:04 -04:00
  • 98a93b477d Add tuple tests to json_snippet.py Daniel Watkins 2018-08-30 16:34:28 -04:00
  • 5e3c22e182 Only load Rust stdlib modules on import Daniel Watkins 2018-08-30 11:50:21 -04:00
  • 8756c04cfe Store Rust stdlib modules on VirtualMachine Daniel Watkins 2018-08-30 11:15:09 -04:00
  • 489a52cc2b Only emit defaults tuple if we have some Daniel Watkins 2018-08-29 22:57:01 -04:00
  • d4461d7703 Add bytecode::Constant::Tuple Daniel Watkins 2018-08-29 18:44:18 -04:00
  • c8c59cbafc Use arg_check! in objtype Daniel Watkins 2018-08-29 17:53:58 -04:00
  • 72a21a3440 Merge pull request #103 from RustPython/objtyp Daniel Watkins 2018-08-29 14:59:24 -04:00
  • 9fe8b68f22 Merge pull request #101 from OddBloke/nightly Windel Bouwman 2018-08-29 20:54:17 +02:00
  • adf04a5452 Minor fixes Windel Bouwman 2018-08-29 20:34:54 +02:00
  • 072a5182e5 Some style issues and add __len__ to str Windel Bouwman 2018-08-29 20:17:44 +02:00
  • 2f3947808e Change print to use __str__ and add __str__ to object Windel Bouwman 2018-08-29 19:25:12 +02:00
  • 3b1536277e Bump version of petgraph in Cargo.lock to 0.4.13 Daniel Watkins 2018-08-29 12:35:04 -04:00
  • 352c8a57c5 Run (non-voting) tests against Rust nightly in Travis Daniel Watkins 2018-08-29 12:06:36 -04:00
  • 26023c7317 Merge pull request #99 from RustPython/objtyp Daniel Watkins 2018-08-29 11:43:04 -04:00
  • af84076979 Add check to assert issue #92 is fixed Windel Bouwman 2018-08-29 17:39:20 +02:00
  • 0f8ba73777 Merge pull request #100 from OddBloke/kwargs Windel Bouwman 2018-08-29 15:20:57 +02:00
  • cb173c1fa8 Update and expand Rust tests for function parsing Daniel Watkins 2018-08-28 15:40:04 -04:00
  • 51e2db6097 Add snippet to test default arguments Daniel Watkins 2018-08-28 14:54:01 -04:00
  • 85d2dd2997 Add support for default argument syntax Daniel Watkins 2018-08-28 11:21:46 -04:00
  • 2cecd362fe Add support for defaults to bytecode, compiler and VM Daniel Watkins 2018-08-27 22:16:51 -04:00
  • 81cbe66085 Moved pow method Windel Bouwman 2018-08-29 13:23:42 +02:00
  • 201281554f Move common arithmatic into functions which check on object type Windel Bouwman 2018-08-29 12:44:45 +02:00
  • fb47ce36e9 Alternative operator implementation based on typ instead of kind Windel Bouwman 2018-08-28 20:26:02 +02:00
  • 0787115d07 Merge pull request #98 from OddBloke/ctx_getters Windel Bouwman 2018-08-28 19:33:32 +02:00
  • 1c0e1ed6b5 Implement getters for PyContext types Daniel Watkins 2018-08-27 16:54:45 -04:00
  • 4f14411a0f Merge pull request #97 from RustPython/objtyp Daniel Watkins 2018-08-27 16:53:46 -04:00
  • 819b88efb6 Move to more usage of type checking by typ Windel Bouwman 2018-08-27 22:40:29 +02:00
  • 12ebed8599 Move builtin_print to correct alphabetical position Daniel Watkins 2018-08-25 16:50:41 -04:00
  • fdcc4c8992 Merge pull request #95 from RustPython/bools_3 Windel Bouwman 2018-08-27 22:05:58 +02:00
  • 9b29ae058c Merge pull request #96 from OddBloke/macro Windel Bouwman 2018-08-27 21:59:22 +02:00
  • 9b1c44edac Merge pull request #86 from RustPython/exceptions Windel Bouwman 2018-08-27 21:52:46 +02:00
  • 970acbe47a Use optional arg_checks! for bool_new Daniel Watkins 2018-08-27 09:55:34 -04:00
  • f7b43ea617 Add optional positional arguments to arg_check! Daniel Watkins 2018-08-26 23:25:54 -04:00
  • 8f74759129 Modify arg_check! syntax to allow expansion of option types Daniel Watkins 2018-08-26 22:55:09 -04:00
  • a59c4536d9 unittests for compilation of if statements. Adam Kelly 2018-08-27 14:09:28 +01:00
  • 3590d150e3 Merge pull request #93 from OddBloke/macro cthulahoops 2018-08-27 14:23:23 +01:00
  • 1e6ed66019 Implement compile_test to avoid extra evaluations of bools. Adam Kelly 2018-08-27 14:04:53 +01:00
  • 55402e27ad Use arg_check! in json module Daniel Watkins 2018-08-26 20:37:21 -04:00
  • 5176ebd3ed Use arg_check! macro in objlist Daniel Watkins 2018-08-26 20:24:23 -04:00
  • 113f9be403 Move arg_check macro to a shared module Daniel Watkins 2018-08-26 17:03:51 -04:00
  • 09b89f95f4 Merge pull request #88 from OddBloke/macro Daniel Watkins 2018-08-26 21:55:18 -04:00
  • 87cf9ee0e6 Temporary fix for type elision in subtraction Daniel Watkins 2018-08-26 17:14:23 -04:00
  • d4693097d4 Use explicit types in arg type checking macro Daniel Watkins 2018-08-26 16:53:05 -04:00
  • 9db736e089 Update arg checking macro to perform type checking of arguments Daniel Watkins 2018-08-26 14:55:47 -04:00
  • 7105549c69 Add initial argument count checking macro Daniel Watkins 2018-08-26 12:38:10 -04:00
  • 3f7986c811 Address review comments Windel Bouwman 2018-08-26 22:01:00 +02:00
  • b8552a22e5 Merge branch 'master' of https://github.com/RustPython/RustPython into exceptions Windel Bouwman 2018-08-26 21:51:51 +02:00
  • 2c14e92e24 Merge pull request #89 from OddBloke/json Windel Bouwman 2018-08-26 21:46:57 +02:00
  • 7a80c04725 Basic json module implementation in rust Daniel Watkins 2018-08-25 00:58:40 -04:00
  • 3255a55837 Rename types snippet to avoid shadowing stdlib module Daniel Watkins 2018-08-25 13:20:28 -04:00
  • 57287c8878 Merge pull request #87 from OddBloke/import Windel Bouwman 2018-08-26 19:38:23 +02:00
  • 9a77f2d559 Un-mut some Frame/VirtualMachine methods Daniel Watkins 2018-08-25 19:58:51 -04:00
  • 96ee1cce60 Add filename and row to traceback Windel Bouwman 2018-08-26 12:17:16 +02:00
  • 71896fd2aa Merge branch 'master' of https://github.com/RustPython/RustPython into exceptions Windel Bouwman 2018-08-26 11:40:30 +02:00
  • a833526223 Add traceback and msg to exception objects Windel Bouwman 2018-08-26 11:40:23 +02:00
  • 6ce1dbce26 Add issiubclass Windel Bouwman 2018-08-26 10:54:03 +02:00
  • c295a4514c Merge pull request #82 from RustPython/bools_2 cthulahoops 2018-08-26 09:52:28 +01:00
  • 4ca3314d4c Merge pull request #83 from OddBloke/import Windel Bouwman 2018-08-26 10:49:10 +02:00
  • de0dde21f0 Don't create extra JumpIfOrPop instructions. Adam Kelly 2018-08-26 08:36:13 +01:00
  • e10dfa4f87 Compile and and or. Adam Kelly 2018-08-25 08:53:40 +01:00
  • fb2c959cc4 Missing __bool__ is truthy and None is falsey. Adam Kelly 2018-08-25 08:34:32 +01:00
  • 2053544199 Merge pull request #85 from RustPython/exceptions Windel Bouwman 2018-08-26 10:01:40 +02:00
  • a457153ce1 Consider imports relative to their source Daniel Watkins 2018-08-25 19:33:03 -04:00
  • 767ceaefb5 Start storing the source_path of a code object Daniel Watkins 2018-08-25 19:32:33 -04:00
  • eecddd417b Distinguish between a mutable and non-mutable borrow of vm.current_frame Daniel Watkins 2018-08-25 19:25:12 -04:00
  • a0edc4203f Check that raise command raises exception type Windel Bouwman 2018-08-26 00:30:01 +02:00
  • c41370a26f Merge pull request #84 from OddBloke/newline Windel Bouwman 2018-08-25 23:02:52 +02:00
  • 159a524f3f Don't double-count newlines in comments Daniel Watkins 2018-08-25 10:54:31 -04:00
  • 6aff83e2e5 Merge pull request #78 from RustPython/exceptions cthulahoops 2018-08-25 14:45:19 +01:00
  • 6aa9c01180 Merge branch 'master' of https://github.com/RustPython/RustPython into exceptions Windel Bouwman 2018-08-25 10:18:51 +02:00
  • 882606ba1a Move exceptions to own struct Windel Bouwman 2018-08-25 10:11:21 +02:00
  • 81546c6f94 Merge pull request #81 from OddBloke/newline Windel Bouwman 2018-08-25 08:25:38 +02:00
  • 33f5e7c632 Merge pull request #77 from OddBloke/import Windel Bouwman 2018-08-25 08:25:10 +02:00
  • a06044dc6b Reject newlines in single-quoted strings Daniel Watkins 2018-08-25 00:21:37 -04:00
  • 367806f845 Increment lexer row count for newlines in strings Daniel Watkins 2018-08-25 00:20:03 -04:00
  • da34b86a9c Implement PYTHONPATH Daniel Watkins 2018-08-24 15:42:40 -04:00