Commit Graph

168 Commits

Author SHA1 Message Date
Noah
6da8b937da Add freebsd support 2021-03-08 08:08:54 -06:00
Noah
7d99e49fd9 Parse address tuple based on socket family 2021-02-20 21:04:30 -06:00
Noah
fb2efa95f9 Make getaddrinfo return a full tuple for inet6 2021-02-20 21:04:30 -06:00
Noah
e6d9af43ca Miscellaneous fixes for aiohttp 2021-02-20 21:04:29 -06:00
Noah
4a26d13481 Fix do_handshake method 2021-02-07 19:39:36 -06:00
Noah
160505d0cf Use helper type for deadlines 2021-02-03 10:54:12 -06:00
Noah
235c384f49 Remove py_io::write_all, fix windows 2021-01-29 11:47:09 -06:00
Noah
d6eeed9770 Yeah sure lets just reimplement _all_ the timeout code 2021-01-29 11:47:09 -06:00
Noah
ca912fcf27 Fix BufferedReader over a SocketIO to properly read the right amount 2021-01-29 11:45:29 -06:00
Noah
9647fce6d5 Add some more socket methods + other misc fixes 2021-01-11 17:32:29 -06:00
Noah
13ea0efa9f sock.recv_into takes any rw buffer 2020-12-17 16:29:44 -06:00
Noah
a4aef93327 Make all builtin functions have names 2020-12-17 16:29:43 -06:00
Noah
881b280c46 Fix compilation on redox 2020-12-14 12:12:44 -06:00
Noah
b1144b773d Merge branch 'master' into socket/resolve-right-ip-family 2020-10-26 08:56:21 -05:00
Arthur Woimbée
b74a057ec9 socket/get_addr: remove IpAddrFmt 2020-10-26 11:26:44 +01:00
Arthur Woimbée
9504bc469f socket: resolve addresses according to socket family (ipv4/6) 2020-10-24 17:52:02 +02:00
Noah
dbed94fe87 socket.{gaierror,timeout} as static types(?) 2020-10-22 14:41:23 -05:00
Noah
2d8534cb7b Misc changes for socket 2020-10-22 14:40:31 -05:00
Jeong YunWon
ecf1120bee Clean up static-type affected apis 2020-10-20 02:29:28 +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
9e6dfca9e9 Fix build with new builtins path 2020-10-11 21:16:16 +09:00
Jeong YunWon
4da1b62c18 PyFuncArgs -> FuncArgs
which does not represent a single python object
2020-10-11 09:38:07 +09:00
Noah
e2bc53f625 Merge pull request #2239 from RustPython/coolreader18/unified-common-locks
Unified lock types for rustpython_common
2020-10-07 19:36:06 -05:00
hyperbora
5b6ca1e96d implement socket.getservbyname 2020-10-04 15:23:32 +09:00
Noah
acd0bf5434 Make the FromArgs derive less verbose 2020-10-01 17:42:07 -05:00
Noah
dbbdd75b31 Rename rustpython_common::{cell -> lock} 2020-09-26 23:39:10 -05:00
Jeong YunWon
59db19d1ea PyClass -> PyType 2020-09-26 07:32:38 +09:00
Jeong YunWon
f81ad04ce3 PyString -> PyStr 2020-09-26 00:20:02 +09:00
Noah
89df598fa1 Fix ipv6 localhost issue 2020-09-19 00:20:51 -05:00
Noah
1d2043558f Try fixing sock and windows tests 2020-09-19 00:20:50 -05:00
Jeong YunWon
0f7ed21eda remove vm.get_none and clean up its use cases 2020-09-19 10:20:20 +09:00
hyperbora
97f9b7a7ec implement socket.getnameinfo and add constants 2020-09-12 20:03:44 +09:00
Noah
435d364cb4 Merge pull request #2188 from hyperbora/extend-the-socket-module
implement socket.getprotobyname
2020-09-05 19:23:22 -05:00
Jeong YunWon
a1a8d0320d Merge pull request #2163 from RustPython/coolreader18/immutable-slots
Make class.slots completely immutable
2020-09-06 01:09:41 +09:00
hyperbora
3ff0647365 implement socket.getprotobyname 2020-09-05 23:36:28 +09:00
hyperbora
51d6785ff1 implement socket.inet_pton, socket.inet_ntop 2020-09-02 21:17:15 +09:00
Noah
619f1a1de9 Make PyStructSequence a derive macro 2020-08-30 15:46:04 -05:00
hyperbora
c30fabddee add gethostbyname function 2020-08-30 09:30:13 +09:00
Jeong YunWon
dded3ffc53 Remove redundant clone from new_class 2020-08-23 19:10:46 +09:00
Jeong YunWon
c9c1ac9532 Give module names for classes 2020-08-23 18:24:46 +09:00
Jeong YunWon
f497c99ec7 Give correct names to types 2020-08-22 06:32:39 +09:00
Jeong YunWon
23c2c58140 Move out read-only flags of slots. 2020-08-21 09:47:02 +09:00
Jeong YunWon
7b6ab8da72 Replace vm.new_{int,str,bool} with vm.new_pyobj 2020-08-10 02:16:29 +09:00
Jeong YunWon
a846338395 BorrowValue for PyTuple 2020-08-09 14:55:09 +09:00
Jeong YunWon
ab37e455f3 BorrowValue for PyString 2020-08-09 14:14:55 +09:00
Jeong YunWon
ee90f7cfbd IntoPyException 2020-08-05 16:45:06 +09:00
Jeong YunWon
61455ce261 Separate IntoPyObject and IntoPyResult 2020-08-04 22:59:34 +09:00
Jeong YunWon
84b5475d4c obj::objbyteinner::PyByteInner -> bytesinner::PyBytesInner 2020-07-27 08:38:53 +09:00
Noah
39303f0567 Transition more files to use PyMutex/PyRwLock 2020-07-25 15:22:03 -04:00