Jeong YunWon
d94f638784
Fix nightly clippy warnings
2022-10-16 02:38:50 +09:00
Jeong YunWon
e002191a48
pyproperty -> pygetset
...
Though it actually create a getset descriptor,
we didn't change the name because its concept was a property for writers.
Now we have `pymember`, another property-like descriptor. So naming them under
same level would be less confusing instead of telling everybody
"it is a getset but we call it pyproperty"
2022-09-18 14:18:49 +09:00
Noa
ead2a392cc
Update nix and rustyline
2022-08-18 20:02:17 -05:00
Noa
d146cdb7df
Remove nullable_socket impl now that socket2::Socket has a niche
2022-08-18 20:01:56 -05:00
Jeong YunWon
c073a611a1
Merge pull request #3598 from hwi-ya/timeout
...
Modify timeout print message
2022-08-05 02:09:40 +09:00
hwi-ya
53a74a1f2d
Modify timeout print message
...
Co-Authored-By: Jeong YunWon <jeong@youknowone.org >
2022-08-05 01:25:53 +09:00
Jeong Yunwon
055c5cfb97
pyimpl -> pyclass
2022-08-05 01:18:10 +09:00
Jeong YunWon
2d1158b271
remove vm.try_index
2022-07-24 15:05:29 +09:00
Padraic Fanning
97db88560a
Resolve ambiguous imports on Windows
2022-07-04 19:17:54 -04:00
Padraic Fanning
4e87250ba2
Fix compilation errors on macOS and Windows
2022-07-04 19:03:22 -04:00
Padraic Fanning
ca90bf3be6
Add _socket constants from CPython 3.10
2022-07-04 18:34:34 -04:00
Jeong Yunwon
667ad7593d
distinguish ToPyException and IntoPyException
2022-06-04 11:12:45 +09:00
Jeong Yunwon
9b2a9d2377
TypeZoo uses &'static Py<PyType>
2022-05-27 10:35:01 +09:00
Jeong Yunwon
9db69d628f
{Type,Exception}Zoo holds static ref
2022-05-27 10:23:33 +09:00
Noa
9903bbceb5
Change PyResult<T, E> back to PyResult<T>
2022-05-19 00:58:56 -05:00
Jeong Yunwon
f15c51bb8d
clean up socket based on ToPyException
2022-05-18 06:03:03 +09:00
Noa
77495a2b2d
Move stdlib::os::errno to common
2022-04-30 13:35:43 -05:00
Noa
ec266c43e4
Merge pull request #3641 from coolreader18/mini-fixes
...
Small fixes
2022-04-28 17:06:58 -05:00
Jeong Yunwon
32aab6b148
DefaultConstructor
2022-04-27 03:29:47 +09:00
Jeong Yunwon
797e8ab724
Constructor/Initializer for PySocket
2022-04-27 02:59:16 +09:00
Jeong YunWon
88080505e4
Add PyTypSlot::init
2022-04-27 02:22:05 +09:00
Jeong Yunwon
a7135024a5
&PyTuple and &PyTupleRef works like &[PyObjectRef]
2022-04-24 12:26:48 +09:00
Jeong Yunwon
0535077631
either is a function utility
2022-04-23 20:49:31 +09:00
Jeong Yunwon
e52a5f99f3
remove PyPayload::into_pyresult_with_type
2022-04-23 09:47:53 +09:00
Noa
85888c577f
Vec::spare_capacity_mut is stabilized
2022-04-22 17:30:43 -05:00
Noa
56e816caf7
Switch from deprecated widestring function
2022-04-22 17:30:43 -05:00
Jeong Yunwon
66b6a06997
PyValue -> PyPayload
2022-04-23 05:20:31 +09:00
Jeong Yunwon
1b5348a7f4
Fix _socket.socket naming
2022-04-19 15:07:04 +09:00
Jeong Yunwon
fee3bf2722
AsPyObject -> AsObject because fn as_object
2022-04-18 07:19:35 +09:00
Jeong Yunwon
e356d51af1
move ToPy* to convert
2022-04-18 07:17:24 +09:00
Jeong Yunwon
f6d70c8176
Into{PyObject,PyException,Pyresult} -> To{..}
...
The naming convention was wrong
2022-04-18 06:04:47 +09:00
Jeong Yunwon
a22341787a
remove socket.IPPROTO_MAX
2022-04-18 00:23:23 +09:00
Jeong Yunwon
75e589cbc1
isinstance -> fast_isinstance
2022-04-17 20:32:34 +09:00
Jeong Yunwon
aa76a34963
merge TypeProtocol in AsPyObject
2022-04-17 19:26:10 +09:00
Jeong Yunwon
6357a1acbe
clean up imports and useless allow attributes
2022-04-15 23:58:20 +09:00
hwi-ya
dcbaecab9a
add missing constants
2022-04-10 10:20:04 +09:00
jeon-yongjun
aa8a3afb81
Add missing constants
2022-04-09 21:00:32 +09:00
himmelmin
735856fabc
Add missing constants
2022-04-09 19:29:51 +09:00
simbajisu
6117d3ab5a
add missing constants
2022-04-09 17:07:45 +09:00
Padraic Fanning
88e0f13993
Fix unnecessary_lazy_evaluations Clippy warning
2022-02-25 19:33:52 -05:00
snowapril
ab1693e131
Replace new_class to new_exception_type
...
Replace `new_class` method call for module-level exceptions to newly
added `new_exception_type`
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-11-12 21:40:26 +09:00
snowapril
5e8d3bcacb
Remove duplicated static_cell! stmts in each modules
...
Signed-off-by: snowapril <sinjihng@gmail.com >
2021-11-12 21:40:26 +09:00
David Carlier
d6e89301a5
netbsd/openbsd build fix
2021-11-07 12:48:34 +00:00
Daniel Watkins
9dce9bf0b9
correctly set __module__ and __name__ for builtin exceptions
...
In CPython's PyErr_NewException[0], the dotted "module.name" passed in is
split on that dot: the content before the dot is set as __module__ in
the created exception class, and the content after it is set as
__name__.
This commit mirrors that behaviour, by introducing a `module` argument
to `PyContext.new_class`: if Some("module_name") is passed, it will be
set as `__module__`. All exception-creating uses of `new_class` are
updated to pass in their module and class names separately.
[0] https://github.com/python/cpython/blob/main/Python/errors.c#L1082-L1087
2021-11-02 18:28:02 -04:00
David Carlier
f56514d61b
netbsd build fix proposal
2021-10-31 08:41:14 +00:00
Noa
09e9ea91e7
TryFrom, TryInto, FromIterator are in prelude now
2021-10-21 17:04:19 -05:00
Jeong YunWon
617e524556
clean up windows socket attrs
2021-10-14 16:36:01 +09:00
Jeong YunWon
141ff2bb2f
_socket uses #[pymodule]
2021-10-14 14:11:21 +09:00
varun-krishnan
f5c4c0b4c0
added gethostbyname_ex function
2021-10-13 05:56:54 +09:00
Jeong YunWon
05dca7a7c8
ctx.new_list returns PyLsitRef
2021-10-12 01:22:36 +09:00