Noa
95a947d7e3
__class_getitem__ isn't a special method
2021-08-21 16:11:58 -05:00
Noa
4f0feef92f
Merge pull request #2633 from fanninpm/update-typing
...
Update typing to CPython 3.8
2021-08-21 15:00:44 -05:00
sobolevn
5f0cddee81
Fixes typos in vm/
2021-08-21 17:09:48 +03:00
Lee Dogeon
216b597155
Introduce __text_signature__ property
2021-08-21 02:03:39 +09:00
jfh
52149d0e70
Add remaining methods to sequence iterator.
2021-08-19 13:46:14 +03:00
Padraic Fanning
48de03506c
Implement "__class_getitem__" (barely working)
2021-08-18 20:08:18 -04:00
Jeong YunWon
7e3be9163d
Merge pull request #2860 from youknowone/try-from-int
...
TryFromBorrowedObject for int types
2021-08-17 17:12:56 +09:00
Jeong YunWon
4c9fa5a521
add_slot_wrappers must be called up to once
2021-08-14 17:57:02 +09:00
Jeong YunWon
5ff0e4e5de
TryFromBorrowedObject for ints
2021-08-14 16:48:56 +09:00
Jeong YunWon
ee09ef2bd2
TryFromBorrowedObject
2021-08-14 13:39:06 +09:00
sobolevn
e939346850
Adds class field to PyGetSet to fix __qualname__ and (in future) repr, refs #2790
2021-08-08 18:53:57 +03:00
Nikita Sobolev
73ae7a6116
Adds __qualname__ to PyBuiltinMethod
2021-08-01 09:16:27 +09:00
Jeong YunWon
ff4efd0f60
Fix unnessessary borrow
2021-07-30 02:32:16 +09:00
jfh
fdc08139a5
Make empty frozenset a singleton.
2021-06-17 17:30:51 +03:00
Noah
3d9812e748
Remove remaining borrow_value() uses
2021-05-20 10:30:42 -05:00
Noah
516eead348
Replace PyStr.borrow_value() with .as_str()
2021-05-20 10:29:48 -05:00
Noah
376ce87b76
Move Either to crate::utils
2021-05-20 10:29:48 -05:00
Noah
99104faaf7
Re-export pyobject::* from the root of the crate
2021-05-20 10:24:07 -05:00
Noah
f858d76433
Merge pull request #2621 from RustPython/coolreader18/socketstuff
...
Add a bunch of stuff to the socket module
2021-05-11 08:08:41 -05:00
Padraic Fanning
0174e386a1
Fix inconsistent_struct_constructor Clippy warning
2021-05-07 17:00:38 -04:00
Noah
2dbe4a9c9a
Add sock.recvfrom_into + other
2021-05-03 15:14:52 -05:00
Rob
b8259ff53d
Update vm/src/pyobject.rs
...
prepend unused parameters with underscores in special_retrieve function
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com >
2021-04-30 17:35:13 +09:00
Robert Booth
222d1776ae
rustfmt on pyobject.rs file
2021-04-26 10:01:39 +09:00
Robert Booth
dd50b252a8
use to_index instead of to_index_opt in int special_retrieve
2021-04-26 09:49:06 +09:00
Robert Booth
48d7c360b6
use call to to_index_opt in int special_retrieve
2021-04-26 08:35:06 +09:00
Robert Booth
6a293b2e47
replace unwrap_or with unwrap_or_else
2021-04-25 07:18:32 +09:00
Robert Booth
af6b230dad
Change int type checking, amend tests
...
- add a special_retrieve fudge function to the PyValue trait
- define the special_retrieve function for PyInt
- remove blocks on successful tests to reflect effect of changes
2021-04-25 01:18:57 +09:00
Noah
2a70fb2eed
Improve structsequence
2021-04-21 20:09:50 -05:00
Noah
f50f930255
Add setattro slot, split call_method and call_special_method
2021-03-15 09:45:06 -05:00
Noah
ac320f572d
wip descr_set
2021-03-14 14:38:15 -05:00
Noah
79fa1b104f
WIP getmethod
2021-03-14 14:38:00 -05:00
Noah
3f36dcdaef
Merge pull request #2426 from RustPython/fix-utime
...
Fix os.utime to be able to take floats
2021-02-11 10:16:35 -06:00
boris
ca9b8bad85
format namedtuples with = instead of :
2021-02-10 16:40:55 -05:00
Noah
ce8b5eed90
Enable dir_fd for utime, unskip a bunch of tests
2021-02-08 12:36:54 -06:00
Noah
8cdef9e1fa
Use ahash in the vm
2021-01-08 18:08:21 -06:00
Noah
be40a5d7b9
Fix clippy lints for Rust 1.49
2021-01-02 19:30:57 -06:00
Noah
a4aef93327
Make all builtin functions have names
2020-12-17 16:29:43 -06:00
Noah
3280a1655a
Optimize the size of Instruction
2020-12-14 14:25:19 -06:00
Noah
2bdbe6b804
Inline some hot functions
2020-12-05 16:36:37 -06:00
Noah
cd87f6da25
Try some mini-optimizations
2020-12-05 16:36:37 -06:00
Noah
92b8e59158
Fast locals part 2
2020-12-05 16:36:00 -06:00
Noah
97029af713
Fast locals part 1
2020-12-05 16:36:00 -06:00
Noah
3d4474413b
Add PyTupleTyped
2020-12-05 16:36:00 -06:00
Noah
2c29a33d00
Add support for deleter on getsets
2020-12-05 16:36:00 -06:00
Noah
31f4999dfd
Flatten PyObject/PyInner into one struct
2020-11-21 00:33:10 -06:00
Noah
2a427728a6
Use a custom vtable for PyObjectRef
2020-11-21 00:33:05 -06:00
Noah
6d7eae98b8
Add iter, iternext slots & Allow deleting slot magic methods
2020-11-17 23:47:48 +09:00
Noah
64b951e7d1
Merge pull request #2325 from RustPython/coolreader18/string-intern
...
Add string interning
2020-11-16 00:20:21 -06:00
Noah
9214f416a4
Use a more generic PyRefExact
2020-11-14 21:28:37 -06:00
carbotaniuman
7586543343
Add ability to use __trunc__ to int()
2020-11-11 09:58:26 -06:00