Jeong YunWon
b1946f0074
fix broken zlib.Compress
2020-08-20 03:17:58 +09:00
Jeong YunWon
a5f73452d6
io.FileIO into #[pyclass]
2020-08-19 11:09:47 +09:00
Jeong YunWon
74253e2c56
Remove redundant clone
2020-08-19 10:00:48 +09:00
Jeong YunWon
c6c1ec52fb
defer remove by actual variable name, not _
2020-08-19 07:40:23 +09:00
Jeong YunWon
55eb5974b0
Merge pull request #2127 from youknowone/frugal-dict
...
Dict/set deletes existed element after returning borrow
2020-08-18 19:14:03 +09:00
Jeong YunWon
3728bc84dc
Use drop instead of |_| ()
2020-08-18 18:15:39 +09:00
Jeong YunWon
8949e7cd1e
Defer deletes from list
2020-08-18 18:13:33 +09:00
Jeong YunWon
a839034338
Defer decrease frame
2020-08-18 18:13:33 +09:00
Jeong YunWon
7df8f1793e
defer rc for dict/set delete
2020-08-18 18:13:31 +09:00
Jeong YunWon
d1e782154f
Dict deletes the existed element after returning borrow
2020-08-18 17:37:33 +09:00
Youngchan Lee
ec5d168de2
Implement objcomplex::parse_str() to replace Complex64::from_str()
2020-08-18 02:19:58 +09:00
Youngchan Lee
7693b47fb0
Allow keyword arguments in complex()
2020-08-17 23:59:19 +09:00
Minjun Shin
d992eec95a
check for '=' in environment variable name in os.execve
2020-08-17 02:30:26 +09:00
ugaemi
1d554eb065
Fix fmt
2020-08-16 03:25:37 +09:00
ugaemi
b1eb20275d
Add crate BorrowValue
2020-08-16 03:19:12 +09:00
ugaemi
6abb67398d
Modify return type
2020-08-16 02:59:40 +09:00
ugaemi
148e6cc5bc
Fix ne for objbyteinner
2020-08-16 02:59:27 +09:00
ugaemi
620e4b93ea
Add __ne__ for array, bytearray
2020-08-16 02:59:15 +09:00
Jeong YunWon
b57d943031
Merge pull request #2117 from youknowone/pymodule-attr-use
...
Allow `use` for `#[pyattr]`
2020-08-16 02:11:47 +09:00
Jeong YunWon
cf10a34e2e
Merge pull request #2114 from edwardycl/complex
...
Allow complex numbers as arguments of complex()
2020-08-16 02:03:59 +09:00
Jeong YunWon
fef9bbbcf6
Merge pull request #2116 from clemado1/itertools
...
Fix index and overflow error in itertools
2020-08-16 02:03:01 +09:00
Jeong YunWon
fa46ab1c04
Merge pull request #2115 from minoring/support-__all__
...
Support __all__
2020-08-16 02:00:07 +09:00
Youngchan Lee
3f4234de8d
Allow complex numbers as arguments of complex()
2020-08-15 21:29:02 +09:00
Jeong YunWon
33bb4e1dc0
Adapt pyattr use for zlib
2020-08-15 18:58:02 +09:00
Jeong YunWon
1c0b6e9d81
pyattr use for zlib
2020-08-15 18:56:06 +09:00
clemado1
5f8fa320b9
Fix value and overflow error in itertools
2020-08-15 18:49:04 +09:00
Jeong YunWon
3ba8dcb621
pymodule for zlib
2020-08-15 17:23:42 +09:00
Jeong YunWon
cd6b3212c2
pymodule for _warnings
2020-08-15 17:23:42 +09:00
Jeong YunWon
7df01d3f21
pymodule tokenize
2020-08-15 17:23:42 +09:00
Jeong YunWon
4728ff555d
pymodule for symtable
2020-08-15 17:23:41 +09:00
minoring
c3cb5b9349
Modify method call as_str() -> as_ref()
...
as_str() was removed at commit ab37e455f
2020-08-15 16:21:56 +09:00
Bolun Thompson
cfa7121382
Module dict star import error checking
...
This changes it so that with star imports (e.g from foo import *), if an
item in the module.__dict__ isn't a string, raises a type error.
This can be caused by modifying globals(), adding a non string key. e.g:
>>>>> globals()[b"invalid"] = "invalid"
2020-08-15 15:37:33 +09:00
Bolun Thompson
13c6045b15
Add support for __all__ in modules
2020-08-15 15:37:07 +09:00
Jeong YunWon
f651980c87
Merge pull request #2111 from youknowone/avoid-pystr
...
avoid to_pystr to generate type name
2020-08-14 05:53:52 +09:00
Jeong YunWon
f45d2f03ef
avoid to_pystr to generate type name
2020-08-14 02:34:36 +09:00
Jeong YunWon
12c8af6065
Prevent recursive reference by cutting down PyClass debug fmt
2020-08-14 02:23:00 +09:00
Noah
0550bb19a5
Set __doc__ to None on lambdas
2020-08-12 16:04:13 -05:00
Noah
cc4ae0831c
Make HAVE_DICT a type flag
2020-08-12 16:04:13 -05:00
Noah
1385c06e25
Fix some minor things required for unittest
2020-08-12 16:03:20 -05:00
Yiqun Ling
230f91582f
Add nested and optimized for symtable
2020-08-13 04:12:28 +09:00
Noah
55d940620d
Merge branch 'support-pdb' into master
2020-08-12 14:02:42 -05:00
Alan Justino
0122837126
No .unwrap() is needed on PyRef !!
2020-08-12 14:00:01 -05:00
Alan Justino
e55e27c3b8
Comment on incompatibility on Frame.__delattr__
2020-08-12 14:00:01 -05:00
Alan Justino
018bf505ca
Merge branch 'master' into support-pdb
2020-08-12 13:59:58 -05:00
clemado1
6523abcac1
Fix error message in objsequence.get_item
2020-08-12 23:21:03 +09:00
Minjun Shin
1011f48012
Implement os.execve for unix system
2020-08-12 14:19:22 +09:00
Noah
c351fb3f6b
Merge pull request #2104 from RustPython/coolreader18/downcast-exact
...
Make it a safety invariant that PyRef<T>.obj has a payload of T
2020-08-11 17:01:08 -05:00
Noah and Jeong YunWon
30831eb3bb
Update vm/src/obj/objtuple.rs
...
Co-authored-by: Jeong YunWon <youknowone@users.noreply.github.com >
2020-08-11 16:28:12 -05:00
Noah
ee124eb85d
Make ReprGuard vm-local
2020-08-11 11:07:51 -05:00
Noah
076bab9f15
Use a thread local variable for ReprGuard
2020-08-11 11:06:06 -05:00