Noah
8267ea4624
Merge pull request #1599 from RustPython/coolreader18/asyncio-pre
...
Prerequisites for asyncio
2019-11-19 10:50:22 -06:00
Noah
576d89fdcf
Merge pull request #1563 from yanganto/byte.mod
...
bytes.mod implement with CFormat
2019-11-18 08:49:14 -06:00
yanganto
10ef5e56af
bytes.mod implement mod
...
implement byte formatting with CFormat
2019-11-18 08:39:36 +08:00
coolreader18
f7831491c5
Add stub implementation of atexit
2019-11-17 17:09:38 -06:00
coolreader18
ae0a343906
Add stub _winapi module
2019-11-17 17:09:13 -06:00
coolreader18
bed54e035c
Add some constants to native modules
2019-11-16 22:58:51 -06:00
coolreader18
5ca0e9a927
Add more IO exceptions
2019-11-16 22:57:49 -06:00
coolreader18
e612c0d7ab
Add the errno::errors module
2019-11-16 22:57:49 -06:00
coolreader18
edb84896bf
Make PyObject.dict an Option<RefCell<PyDictRef>>
2019-11-16 22:50:58 -06:00
Noah
28dfe957d4
Merge pull request #1489 from tcmal/master
...
Implement .indices(len) of slice
2019-11-13 10:14:25 -06:00
writtic
ed075cf71c
Update remainder module of math
...
- Implement remainder function with test case
- math.remainder was added to CPython in 3.7 and RustPython CI runs on 3.6
2019-11-11 22:27:46 +09:00
Noah
9a9e0dcaeb
Merge pull request #1591 from palaviv/MaybeUninit
...
Change mem::uninitialized to mem::MaybeUninit
2019-11-09 13:31:33 -06:00
Aviv Palivoda
721305911f
Use MaybeUninit::uninit().assume_init()
2019-11-09 09:44:54 +02:00
Aviv Palivoda
98d11f2ba9
Apply clippy suggestions
2019-11-08 23:07:35 +02:00
Aviv Palivoda
aebc0a42d8
Update format to Rust version 1.39
2019-11-08 23:03:24 +02:00
Aviv Palivoda
b1b028e4bd
Change mem::uninitialized to mem::MaybeUninit
2019-11-08 22:58:27 +02:00
Noah
b5a18fa908
Merge pull request #1542 from RustPython/coolreader18/asyncawait
...
Make async def/await actually functional
2019-11-07 22:19:21 -06:00
Noah
c7702bd6db
Merge pull request #1582 from palaviv/method-doc
...
Return function attributes in method
2019-11-07 22:14:34 -06:00
Aviv Palivoda
153ce3f3d7
Merge pull request #1581 from Writtic/writtic/improve_fromhex
...
Improve float.fromhex module representation case
2019-11-07 20:19:28 +02:00
coolreader18
6bc33fbca2
Add async for
2019-11-07 00:04:51 -06:00
coolreader18
30a2223c6f
Fix tests
2019-11-07 00:04:51 -06:00
coolreader18
5c26a25522
Add async with, reorganize how with blocks work
2019-11-07 00:04:51 -06:00
coolreader18
577cea92fe
Add coroutines, async/await functionality, and gen.close()
2019-11-07 00:04:50 -06:00
Noah
17b11a0855
Merge pull request #1578 from palaviv/with-traceback
...
with_traceback
2019-11-04 13:41:03 -06:00
Noah
82c4c9175b
Merge pull request #1577 from Regexp96/isupper-and-lower
...
Fix issue #1575 distinguish between 'cased' and 'non-cased' characters
2019-11-04 10:56:08 -06:00
Aviv Palivoda
83868f5f15
Remove __doc__ override in objtype
2019-11-02 19:37:29 +02:00
Aviv Palivoda
841e22434a
Return function attributs in method
2019-11-02 19:34:10 +02:00
johan.park
bbd274a498
Improve float.fromhex module representation case
...
- Embrace hexadecimal without '0x', '.', 'p'
- Embrace variety of 'nan', 'inf' case
- Still overflow and near min, max, 0, 1 case isn't handled
2019-11-03 02:06:44 +09:00
Aviv Palivoda
74b6d7c0f5
Allow None as with_tracebak arg
2019-11-02 12:23:57 +02:00
Noah
24cc67980c
Merge pull request #1572 from RustPython/coolreader18/socket-socket2
...
Update _socket to use the socket2 crate; similar to the C sockets api
2019-11-01 19:49:40 -05:00
Noah
e563945979
Address feedback
2019-11-01 17:42:36 -05:00
Aviv Palivoda
e8ed336c28
Add with_traceback for exception base
2019-11-01 14:15:31 +02:00
Aviv Palivoda
1341a551d1
Merge pull request #1573 from palaviv/tb-object
...
Traceback object
2019-11-01 13:41:34 +02:00
Johan
40a22f217d
Improve float.fromhex module of objfloat ( #1552 )
...
* Improve float.fromhex module of objfloat
- Python float.fromhex can handle string of float and hex without `.`
- For example '0.0', '-0.0', '0x0p0', '-0x0p0'
- Add test case mantioned
* Change unwrap to expect for error handling
* Improve error handling with pattern matching
- `expect` that can't express python vm error message changed to pattern match
- Erase duplicated test case
* Refactoring with or_else and map_err
- Use `or_else` instead of value condition and `match` statement
- For floating-point input
- Use `map_err` instead of `match ` statement
- For hexadecimal floating-point input without dot
* Add else condition
2019-10-31 19:54:28 +01:00
J Regex
0f1b337d28
check code style
2019-10-31 10:42:55 +09:00
J Regex
84999557cb
add some tests
2019-10-31 09:27:14 +09:00
J Regex
b4958bc029
check formet and remove unuesd commnet
2019-10-30 15:26:25 +09:00
J Regex
06ccf59172
#1575 use is_cased function
2019-10-30 14:46:43 +09:00
J Regex
71c7c61bf6
#1575 distinguish between 'cased' and 'non-cased' characters
2019-10-29 15:27:38 +09:00
coolreader18
460e1497ff
Fix some minor stuff
2019-10-28 22:29:28 -05:00
coolreader18
25a571a38b
Fix _socket.socket __new__/__init__, set timeout
2019-10-28 22:27:23 -05:00
coolreader18
f2d63723cc
Add socket constants
2019-10-28 22:27:23 -05:00
coolreader18
90e97c2baa
Add socket.py from CPython 3.6
2019-10-28 22:27:22 -05:00
coolreader18
435342bc32
Convert PySocket to new-style class
2019-10-28 22:27:22 -05:00
coolreader18
fcc796d6e1
Use socket2 crate for the socket module
...
It closely mirrors the unix C api for sockets, which is good because
Python does as well.
2019-10-28 22:27:22 -05:00
coolreader18
502f42b7cd
Use Duration::{from_secs_f64,as_secs_f64}
2019-10-28 11:40:18 -05:00
coolreader18
f58218e13d
Add mappingproxy iterator method
2019-10-28 10:55:32 -05:00
coolreader18
0297189af4
Fix super w/ attributes
2019-10-28 10:55:32 -05:00
coolreader18
4f73bec58e
Support dict.update with an object with a keys() method
2019-10-28 10:55:29 -05:00
coolreader18
368fe7294d
Fix underscores for isupper
2019-10-27 22:52:01 -05:00