Adrian Wielgosik
|
bbfca26b27
|
Move PyIteratorValue to objiter.rs
|
2019-04-01 19:45:10 +02:00 |
|
Adrian Wielgosik
|
cba8aa9be5
|
Drop iter_type_init, explicitly define __iter__ for iterators
|
2019-04-01 19:45:07 +02:00 |
|
Adrian Wielgosik
|
016ecf204d
|
Move iterator __contains__ to 'in' implementation
|
2019-04-01 19:45:00 +02:00 |
|
Aviv Palivoda
|
4e99350e5c
|
Use StoreAttr for __doc__
|
2019-03-31 18:52:27 +03:00 |
|
Aviv Palivoda
|
ab3cde77b4
|
Support class __doc__
|
2019-03-31 18:52:27 +03:00 |
|
Aviv Palivoda
|
f994f8660e
|
Function support __doc__
|
2019-03-31 18:51:57 +03:00 |
|
Joey Hain
|
83c1d4fe10
|
Merge remote-tracking branch 'origin/master' into joey/convert-bytes
|
2019-03-30 13:31:43 -07:00 |
|
Joey
|
c5c91818a5
|
Merge pull request #755 from skinny121/int_new_args
Use new style args for int.__new__
|
2019-03-29 09:13:25 -07:00 |
|
coolreader18
|
c724fdaabe
|
Merge pull request #761 from adrian17/re
Convert re to new style args
|
2019-03-29 10:58:11 -04:00 |
|
ben
|
ce9a909b9d
|
Change kind identifier to fully use python terminology
|
2019-03-29 19:03:13 +13:00 |
|
ben
|
b5dc5a28e7
|
Merge branch 'master' into int_new_args
# Conflicts:
# vm/src/function.rs
|
2019-03-29 18:51:19 +13:00 |
|
Adrian Wielgosik
|
8f1ec3dd23
|
Convert slice::{start, stop, stop} to new args style
|
2019-03-28 23:08:46 +01:00 |
|
Adrian Wielgosik
|
d5e2b3a8b6
|
Convert iterators next() to new args style
Except objiter, as it'll need to be reworked anyway
|
2019-03-28 23:08:46 +01:00 |
|
Adrian Wielgosik
|
792c6a103e
|
Convert re to new style args
|
2019-03-28 21:32:18 +01:00 |
|
Joey
|
149aefe470
|
Merge pull request #757 from RustPython/joey/convert-bytearray
bytearray: convert to new args style
|
2019-03-28 08:16:49 -07:00 |
|
ben
|
657d025592
|
Change syntax of attributes in FromArgs proc macro
|
2019-03-28 21:34:11 +13:00 |
|
Joey Hain
|
e0aca86473
|
bytes: convert methods to new args style
|
2019-03-27 19:23:23 -07:00 |
|
Joey Hain
|
e4272126cf
|
bytes: return NotImplemented where appropriate
|
2019-03-27 19:15:38 -07:00 |
|
Joey Hain
|
b0d7960cc5
|
bytes: move methods to impl block
|
2019-03-27 19:14:37 -07:00 |
|
Joey Hain
|
62842e6d19
|
convert some builtins
|
2019-03-27 19:01:13 -07:00 |
|
Joey
|
57fa041d08
|
bytearray: convert to new args style
|
2019-03-27 18:55:56 -07:00 |
|
Joey
|
e048037146
|
Merge pull request #756 from adrian17/objobject
Convert objobject.rs to new args style
|
2019-03-27 17:51:20 -07:00 |
|
Adrian Wielgosik
|
89f63e4c9a
|
Convert objobject.rs to new args style
|
2019-03-27 23:25:09 +01:00 |
|
ben
|
3ca387b509
|
Enhance FromArgs derive proc macro to allow positional, and positional
or keyword arguments.
|
2019-03-28 05:55:15 +13:00 |
|
Adam Kelly
|
c644176547
|
Modules have attributes, not items.
|
2019-03-27 10:53:08 +00:00 |
|
Adam Kelly
|
4cb7f026de
|
Remove unnecessary cast to pyobject in kwarg construction.
|
2019-03-27 10:53:08 +00:00 |
|
Adam Kelly
|
4a5592d461
|
Change types inside Scope to PyDictRef.
|
2019-03-26 15:16:49 +00:00 |
|
Joey Hain
|
8bdc766bed
|
Use name field directly
|
2019-03-25 19:32:58 -07:00 |
|
Joey Hain
|
6474a4a6ef
|
Remove objtype::get_type_name()
|
2019-03-25 19:18:07 -07:00 |
|
Joey Hain
|
cc4f3fdb40
|
Clean up TypeProtocol
|
2019-03-25 19:18:01 -07:00 |
|
Adam Kelly
|
17b816fbf8
|
Fix objset compilation error caused by merge race.
|
2019-03-25 20:37:47 +00:00 |
|
Adam
|
cac9da4c35
|
Merge pull request #748 from RustPython/attributes_and_dictionaries
Attributes and dictionaries
|
2019-03-25 20:30:46 +00:00 |
|
Windel Bouwman
|
6ae10ed938
|
Fix build and add extend_class macro usage for set and frozenset
|
2019-03-25 20:23:13 +01:00 |
|
Windel Bouwman
|
983be0f944
|
Merge pull request #725 from palaviv/frozen-set-2
frozenset
|
2019-03-25 19:54:52 +01: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 |
|
Adam Kelly
|
17c3f9f024
|
builtin_locals can just return a reference to the locals dict.
|
2019-03-25 16:34:07 +00:00 |
|
Adam Kelly
|
3562b8f59c
|
Store class attributes inside PyClass struct.
|
2019-03-25 11:21:01 +00:00 |
|
Joey
|
f2d562a4cc
|
pyint: use as_bigint() everywhere
|
2019-03-24 10:05:25 -07:00 |
|
Joey
|
9a0113deed
|
range: represent w/ int refs
|
2019-03-24 09:59:06 -07:00 |
|
Joey
|
c2e1e9b0dc
|
Convert range to new args style
|
2019-03-24 09:59:06 -07:00 |
|
coolreader18
|
3b582760b4
|
Merge pull request #733 from RustPython/coolreader18/wasm-browser-dom
[WASM] Add PyDocument and PyElement classes to browser
|
2019-03-24 10:47:46 -05:00 |
|
coolreader18
|
6450612bdf
|
Merge branch 'master' into coolreader18/wasm-browser-dom
|
2019-03-24 08:54:51 -05:00 |
|
Adrian Wielgosik
|
e39df6daef
|
Basic implementation of T.__subclasses__().
Ideally, the weak list should be updated whenever a type is removed,
and the list shouldn't be a Vec, but this should be good enough for
starters.
|
2019-03-24 12:49:04 +01:00 |
|
Adrian Wielgosik
|
a895ab35ae
|
Make PyWeak::downgrade take a reference
|
2019-03-24 11:56:15 +01:00 |
|
Adrian Wielgosik
|
9a6f7aa8a1
|
Make PyRef::clone not require T implementing Clone
It seems to be a weird consequence of using PhantomData,
so I just rolled a custom Clone.
|
2019-03-24 11:56:15 +01:00 |
|
Joey
|
fbd0860f1b
|
Merge pull request #740 from skinny121/into_object_cleanup
Use specific PyRef where possible - code object/type_new_class
|
2019-03-23 21:28:39 -07:00 |
|
coolreader18
|
12564da369
|
Rustfmt?
|
2019-03-23 22:46:21 -05:00 |
|
coolreader18
|
ec433cdbb9
|
Fix rustfmt again (?)
|
2019-03-23 22:17:21 -05:00 |
|
ben
|
3f363585e8
|
Panic if value poped of stack isn't a code object.
|
2019-03-24 16:08:17 +13:00 |
|