Commit Graph

  • 4035f4da16 highlighting on code org rmliddle 2018-09-23 16:31:36 +10:00
  • c9fdc68937 readme and example change rmliddle 2018-09-23 16:25:48 +10:00
  • dd7b4a086a Merge pull request #143 from RustPython/with Windel Bouwman 2018-09-19 10:36:06 +02:00
  • d438ddcdfd Merge pull request #144 from rmliddle/added_builtins Daniel Watkins 2018-09-12 22:01:37 -04:00
  • e19c3c113b removed commented out function in builtins rmliddle 2018-09-13 08:07:52 +10:00
  • 1e1e9d2669 divmod builtin rmliddle 2018-09-13 08:00:52 +10:00
  • 1110bdeb79 Add prototype of context manager handling during exceptions. Windel Bouwman 2018-09-12 21:26:26 +02:00
  • e5615593bd Merge pull request #139 from RustPython/with Windel Bouwman 2018-09-12 20:35:14 +02:00
  • 013964549b Add example with two context managers in a single with statement Windel Bouwman 2018-09-12 19:25:21 +02:00
  • 638af166df Process review comments Windel Bouwman 2018-09-12 19:13:34 +02:00
  • 7b005c75a3 Merge branch 'master' of https://github.com/RustPython/RustPython into with Windel Bouwman 2018-09-12 19:05:29 +02:00
  • 8a28d1f2fc Merge pull request #142 from OddBloke/clippy Windel Bouwman 2018-09-12 19:05:12 +02:00
  • 77772abedf div_mod attribute on float and int rmliddle 2018-09-12 22:56:57 +10:00
  • 23910f78e7 Accept slices to function calls Daniel Watkins 2018-09-11 15:05:33 -04:00
  • 797e7f341f Merge branch 'master' of https://github.com/RustPython/RustPython into with Windel Bouwman 2018-09-11 19:21:13 +02:00
  • 6388891ac6 Merge pull request #141 from OddBloke/clippy Windel Bouwman 2018-09-11 19:20:43 +02:00
  • 28d58550df Merge pull request #140 from OddBloke/import Windel Bouwman 2018-09-11 19:19:36 +02:00
  • 256d518c4a floordiv, float mod rmliddle 2018-09-11 21:56:08 +10:00
  • 5a27e34e4c Pass label by value to VirtualMachine.jump() Daniel Watkins 2018-09-10 23:47:55 -04:00
  • 5a68005388 Remove needless .ok() calls in main.rs Daniel Watkins 2018-08-28 17:04:57 -04:00
  • d88917f5a2 Remove needless clone of scope in main.rs Daniel Watkins 2018-08-28 17:00:17 -04:00
  • ea7f6b4d37 Pass a string slice around in main.rs Daniel Watkins 2018-08-28 16:59:32 -04:00
  • c5e36e8530 Ignore clippy warnings in lalrpop generated code Daniel Watkins 2018-08-28 16:57:36 -04:00
  • a5b6f28167 Cache imported modules in sys.modules Daniel Watkins 2018-09-10 23:40:06 -04:00
  • 9bf1cb3db8 First simple variant of with-statement operational. Windel Bouwman 2018-09-10 21:20:23 +02:00
  • 0f148e1214 Merge branch 'master' of https://github.com/RustPython/RustPython into with Windel Bouwman 2018-09-10 20:10:38 +02:00
  • 1eab9165bf Initial work on 'with' context manager logic Windel Bouwman 2018-09-10 20:10:31 +02:00
  • 803a823d51 Merge pull request #138 from RustPython/assignment Windel Bouwman 2018-09-10 19:45:22 +02:00
  • 43489bed4c added abs builtin, __abs__ attributes on float and int objects rmliddle 2018-09-10 23:01:07 +10:00
  • d443c6428b Merge pull request #136 from RustPython/objtyp cthulahoops 2018-09-09 21:35:38 +01:00
  • a14b776a81 Add tuple packing/unpacking assignment. (tuples only) Adam Kelly 2018-09-09 21:19:56 +01:00
  • b48d77b78e Add tests to check assignment works with tuple unpacking. Adam Kelly 2018-09-09 21:19:27 +01:00
  • de9c11c7c5 Move nxt function from pyobject to objiter file. Also fix formatting issues. Windel Bouwman 2018-09-09 20:55:03 +02:00
  • 0acfc10a09 Merge with master branch Windel Bouwman 2018-09-09 20:36:42 +02:00
  • 9f06835ca0 Add built-ins next and iter Windel Bouwman 2018-09-09 20:35:48 +02:00
  • 903bf41a7a Merge pull request #135 from rmliddle/added_builtins Windel Bouwman 2018-09-09 19:43:45 +02:00
  • 06f3506b62 formatting fixes on builtin_pow rmliddle 2018-09-09 00:33:29 +10:00
  • abba4ae9cc implemented pow builtin rmliddle 2018-09-09 00:05:13 +10:00
  • 416e48b12e Merge pull request #134 from RustPython/objtyp cthulahoops 2018-09-07 09:45:23 +01:00
  • da7745cf27 Fix module type Windel Bouwman 2018-09-05 14:31:06 +02:00
  • ac3c18cf4a Add module type Windel Bouwman 2018-09-05 14:16:36 +02:00
  • 51885f29fc Added more ast to pyast transformations Windel Bouwman 2018-09-05 14:06:16 +02:00
  • f914b4848f Add two asserts to the ast snippets to check attributes of ast nodes. Windel Bouwman 2018-09-05 12:36:28 +02:00
  • 6293117886 Initial attempt at ast builtin module Windel Bouwman 2018-09-04 21:07:57 +02:00
  • ba78000fc0 Merge pull request #129 from RustPython/objtyp cthulahoops 2018-09-03 21:14:23 +01:00
  • 64b04d0a91 Move get_attributes to objtype file Windel Bouwman 2018-09-03 21:39:16 +02:00
  • 9fa10c7c1a Merge with master Windel Bouwman 2018-09-03 21:30:05 +02:00
  • e0609823b3 Merge pull request #133 from RustPython/bools_are_a_doubleton Daniel Watkins 2018-09-03 14:45:17 -04:00
  • 6068ef6a7a Update json tests to use is. Adam Kelly 2018-09-03 19:24:02 +01:00
  • 1bb7579f7c Add true_value and false_value to context. Adam Kelly 2018-09-03 19:20:47 +01:00
  • 9394fec620 Merge pull request #128 from OddBloke/json cthulahoops 2018-09-03 19:00:25 +01:00
  • 46b306848f Merge pull request #131 from OddBloke/int cthulahoops 2018-09-02 22:33:58 +01:00
  • 10f0ef33d6 Implement no-args int() construction Daniel Watkins 2018-09-02 17:00:35 -04:00
  • 8c167ac4f5 Clean up unwrapping of string objects in json.loads Daniel Watkins 2018-09-02 16:49:50 -04:00
  • 947c17eb84 Improve int type error Windel Bouwman 2018-09-02 21:49:56 +02:00
  • a9bc374fc0 Implement dir on object Windel Bouwman 2018-09-02 20:44:46 +02:00
  • 91a6989515 Remove completed TODO Daniel Watkins 2018-09-02 14:04:47 -04:00
  • 0e33aa397a Create objects with correct types in json.rs Daniel Watkins 2018-09-02 13:50:25 -04:00
  • a4a91f14d4 Convert PyObjectSerializer to store a PyContext Daniel Watkins 2018-09-02 11:25:30 -04:00
  • 82226bfea3 Merge pull request #127 from RustPython/objtyp Daniel Watkins 2018-09-02 14:11:03 -04:00
  • 1a2a4adcef Lets delete some clones Windel Bouwman 2018-09-02 19:41:37 +02:00
  • 3bf48b1c2a Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp Windel Bouwman 2018-09-02 19:34:58 +02:00
  • f7cae1e9db Change signature of isinstance to take a reference to a python reference Windel Bouwman 2018-09-02 19:34:54 +02:00
  • ab6c517091 Merge pull request #123 from RustPython/repr Windel Bouwman 2018-09-02 19:33:49 +02:00
  • a7af78be54 Merge branch 'master' into repr Adam Kelly 2018-09-02 18:11:37 +01:00
  • f8016dc38e Merge pull request #124 from RustPython/bools_are_ints Windel Bouwman 2018-09-02 18:38:04 +02:00
  • 04b73d4628 Bool is a subclass of int, so doesn't need a special kind. Adam Kelly 2018-09-02 14:10:36 +01:00
  • 8816e5d362 Implement more complete version of str_repr. Adam Kelly 2018-09-02 13:05:03 +01:00
  • 993634269e PrintExpr should print the repr. Adam Kelly 2018-09-02 11:52:45 +01:00
  • 7c3cd319b2 objbytes: str -> repr Adam Kelly 2018-09-02 11:47:04 +01:00
  • 7277e63a53 Add vm.to_repr and call for formatting list/tuple/dict elements. Adam Kelly 2018-09-02 11:43:00 +01:00
  • 70f6d73001 Add __repr__ to objstr. Adam Kelly 2018-09-02 11:35:20 +01:00
  • c8d8528bff object.__str__ delegates to __repr__. Adam Kelly 2018-09-02 11:26:50 +01:00
  • f42b8b114e Merge pull request #121 from RustPython/objtyp cthulahoops 2018-09-02 12:01:24 +01:00
  • 972b77aefa Merge pull request #122 from RustPython/int_new Windel Bouwman 2018-09-02 12:21:15 +02:00
  • fd805cb2ce Fix unittest Windel Bouwman 2018-09-02 12:18:03 +02:00
  • ec0eb47fc6 Add snippet to check that int.__init__ doesn't mutate int. Adam Kelly 2018-09-02 10:59:42 +01:00
  • 76344e5023 Add object.__init__ Adam Kelly 2018-09-02 10:57:30 +01:00
  • 8b3a95c562 Add code object name to traceback Windel Bouwman 2018-09-02 11:54:52 +02:00
  • e611533d02 Let getattribute fall through and attribute error on types with dicts. Adam Kelly 2018-09-02 10:51:05 +01:00
  • e68dbf6705 Ints aren't mutable, change int.__init__ to int.__new__ Adam Kelly 2018-09-02 10:50:03 +01:00
  • 608a8eadee Improve traceback of exception Windel Bouwman 2018-09-02 11:19:46 +02:00
  • 514fea8d3f Merge pull request #119 from RustPython/equality Windel Bouwman 2018-09-02 10:12:09 +02:00
  • dd24727c0e Use __eq__ methods inequality too. Adam Kelly 2018-09-01 22:29:20 +01:00
  • dc021fd1f2 Json library produces invalid objects - commenting broken tests. Adam Kelly 2018-09-01 21:08:26 +01:00
  • 8d8816ce04 Merge branch 'master' into equality Adam Kelly 2018-09-01 20:46:22 +01:00
  • 304c410412 Merge pull request #117 from RustPython/objtyp Windel Bouwman 2018-09-01 19:50:47 +02:00
  • 811fc2e9c8 Fix objsequence bug - returns the wrong type when slicing. Adam Kelly 2018-09-01 17:35:33 +01:00
  • 86ea663317 Bug-fix - False formats as True. Adam Kelly 2018-09-01 17:10:18 +01:00
  • 8780d58857 Define __eq__ for lists and tuples. Adam Kelly 2018-09-01 17:10:00 +01:00
  • 28f8cdbda9 Define __eq__ for basic types. Adam Kelly 2018-09-01 17:09:20 +01:00
  • c06c3efbd5 Switch vm _eq to use __eq__. Adam Kelly 2018-09-01 17:08:05 +01:00
  • 8c28e1e051 Call method needs &str not &String. Adam Kelly 2018-09-01 15:02:39 +01:00
  • bcf5e8acc9 Repair tuple get elements Windel Bouwman 2018-09-01 10:37:25 +02:00
  • f563856dc4 Add some tuple class methods Windel Bouwman 2018-09-01 10:19:51 +02:00
  • 40cf7f4579 Move more objects to obj folder Windel Bouwman 2018-09-01 10:00:55 +02:00
  • 5cdd0ab7b8 Check list elements on int type Windel Bouwman 2018-09-01 09:54:58 +02:00
  • 999c6258e6 Merge branch 'master' of https://github.com/RustPython/RustPython into objtyp Windel Bouwman 2018-09-01 09:26:08 +02:00
  • 4132f3371e Merge pull request #115 from OddBloke/kwargs Windel Bouwman 2018-09-01 08:45:44 +02:00
  • e98b89aa07 Merge pull request #118 from OddBloke/none Windel Bouwman 2018-09-01 08:42:49 +02:00