Commit Graph

294 Commits

Author SHA1 Message Date
Aviv Palivoda
9954361df9 Move more socket methods to new arg style 2019-04-21 17:28:41 +03:00
Aviv Palivoda
206ba4dbfb Change socket to new args style 2019-04-21 17:20:33 +03:00
Aviv Palivoda
2bc72dae9f Move fileno logic to Connection impl 2019-04-19 16:10:55 +03:00
Aviv Palivoda
e7b059ed9c Add socket.fileno for windows 2019-04-19 16:00:00 +03:00
Aviv Palivoda
cf0a920743 Add socket.fileno for unix 2019-04-19 15:50:06 +03:00
coolreader18
cc76bf7a1f Add weakproxy class 2019-04-14 20:09:43 -05:00
Darren Kaste
a8e064b1c0 Import TypeProtocol before use in type_check! 2019-04-14 17:19:44 -04:00
ben
d24dd170e9 Changes to RustPython to support importing and running unittest 2019-04-14 12:09:54 +12:00
ben
6650ad895a Fix a bunch of clippy warnings 2019-04-14 10:07:50 +12:00
Aviv Palivoda
4293b11429 Add environ class 2019-04-11 18:55:53 +03:00
Aviv Palivoda
c33593efa9 Remove getenv and add environ 2019-04-11 18:55:53 +03:00
Aviv Palivoda
951659a54d Add os.unsetenv 2019-04-11 18:55:53 +03:00
Aviv Palivoda
9b475a2c41 Add os.putenv 2019-04-11 18:55:53 +03:00
Aviv Palivoda
72467069be Add os.getenv 2019-04-11 18:55:53 +03:00
Adam Kelly
8569145751 Define classes for all the ast types. 2019-04-11 16:41:47 +01:00
Adam Kelly
8a14665575 Ast refactor: Everything can fail. 2019-04-11 16:41:44 +01:00
Adam Kelly
d7e0ceec12 New (PyRef<T>) style types. 2019-04-11 16:40:54 +01:00
Adam Kelly
aa38a1aa51 Start refactor of ast. 2019-04-11 16:40:49 +01:00
Adam Kelly
8f840d5376 Pick code review nits. 2019-04-10 09:28:54 +01:00
Adam Kelly
ec5fd550de Implement IntoIterator for PyDictRef. 2019-04-09 11:30:52 +01:00
Aviv Palivoda
401ca08b65 Use map_err 2019-04-06 21:11:58 +03:00
Aviv Palivoda
a21aa6eac9 Add os.listdir 2019-04-06 19:14:23 +03:00
Aviv Palivoda
bf6b12266a Add os.rmdir 2019-04-06 18:30:40 +03:00
Aviv Palivoda
2ec6afeb11 Add os.mkdirs 2019-04-06 18:24:06 +03:00
Aviv Palivoda
eb9378fe90 Add os.mkdir 2019-04-06 18:20:18 +03:00
Windel Bouwman
d577bb7ac9 Merge pull request #787 from palaviv/os-fd
Add os.{read,write,remove,unlink}
2019-04-06 17:02:31 +02:00
Aviv Palivoda
1f0fd39722 Change os new funcs to new arg style 2019-04-06 17:29:40 +03:00
Adam Kelly
7b2d92f495 Delete DictProtocol. impl ItemProtocol for PyDictRef. 2019-04-06 10:15:29 +01:00
Aviv Palivoda
1f19951ece Add os.{remove,unlink} 2019-04-05 19:51:38 +03:00
Aviv Palivoda
28c3ef1ae3 Add os.write 2019-04-05 19:50:24 +03:00
Aviv Palivoda
37e7972dcd Add os.read 2019-04-05 19:49:13 +03:00
Adam Kelly
ec94168a15 Remove objdict::get_key_value_pairs. 2019-04-05 16:16:55 +01:00
Adam Kelly
9ed051e3b7 Module Initialisation takes VirtualMachine rather than PyContext. 2019-04-05 09:50:31 +01:00
Adam Kelly
c8eda3733d Eliminate ctx.set_attr. 2019-04-05 09:50:31 +01:00
Adam Kelly
25c17b4829 Change all the ctx.set_attr in ast. 2019-04-05 09:50:31 +01:00
Adam Kelly
bce4f1e483 Simplify/shrink the dict interface. 2019-04-05 09:39:59 +01:00
Windel Bouwman
23f57f757c Improve trailing comma situation 2019-04-03 14:08:12 +02:00
Adrian Wielgosik
2fb3fc92ec Support chained comparisons 2019-04-02 23:22:54 +02:00
Adrian Wielgosik
792c6a103e Convert re to new style args 2019-03-28 21:32:18 +01:00
Adam Kelly
c644176547 Modules have attributes, not items. 2019-03-27 10:53:08 +00:00
Joey Hain
cc4f3fdb40 Clean up TypeProtocol 2019-03-25 19:18:01 -07:00
Adam Kelly
55e0fb1f19 AST class for nodes instead of just using object everywhere. 2019-03-25 16:39:25 +00:00
Adam Kelly
bbb7162472 Various dictionary changes.
* vm.ctx.new_dict returns a PyDictRef
* Special case for module goes away.
* Instances get a real dictionary.
2019-03-25 16:37:20 +00:00
ben
db8e648646 Make PyFunction.code a PyCodeRef, PyGenerator.frame a FrameRef, and
other improvements to increase use of specific ref types.
2019-03-24 13:41:37 +13:00
ben
dc68101577 Refactor type_new_class to use more specific ref types 2019-03-24 12:08:15 +13:00
ben
6fa059fd6c Make PyObject.typ a PyClassRef 2019-03-24 10:51:52 +13:00
Joey
3177824474 Fix test- 2019-03-23 12:57:17 -07:00
Joey
e4e7da3d54 Some socket cleanups 2019-03-23 12:21:55 -07:00
Joey
2aee2981e3 Remove FromPyObjectRef, replace with downcast 2019-03-23 09:38:03 -07:00
Adam Kelly
386f90fa25 Remove PyContext.get_attr. 2019-03-23 11:29:22 +00:00