Commit Graph
4519 Commits
Author SHA1 Message Date
coolreader18 577cea92fe Add coroutines, async/await functionality, and gen.close() 2019-11-07 00:04:50 -06:00
Noah 52f1965c1c Merge pull request #1525 from alanjds/dummy_threading
`threading` support via dummy implementation
2019-11-06 22:23:55 -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 72989cdfd1 Merge pull request #1580 from seeeturtle/doc-f
Set docstring of function as None if not declared
2019-11-02 19:18:11 +02:00
joshua1b 538181791b Set docstring of function as None if not declared
In cpython, if there is no docstring declared in function definition,
the `__doc__` attribute of the function is None.
So this implements the behavior.

Fix #1523
2019-11-02 23:47: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 1fb868a08a Add test for exception with_traceback 2019-11-01 14:29:58 +02: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
Alan Justino 2e36df0acd Minimal test for threading module 2019-10-31 21:25:19 +01: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 d0b39f9f1d Add select test 2019-10-28 22:27:23 -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
Noah 0b50c21eff Merge pull request #1574 from RustPython/coolreader18/socket-socket2-pre
socket2 Part 1, some necessary but miscellaneous changes that aren't directly related to socket
2019-10-28 12:54:05 -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
Aviv Palivoda 91bd78d8ca Change test so it would not print traceback 2019-10-27 22:47:18 +02:00
Aviv Palivoda 1c4e501814 Add TODO 2019-10-27 19:33:41 +02:00
Aviv Palivoda 256b8ed4b2 Fix clippy warnings 2019-10-27 19:32:15 +02:00
Aviv Palivoda 9f714e8c32 Change remove_importlib_frames to work with tb object 2019-10-27 19:25:20 +02:00
Aviv Palivoda c0bade2535 Change exception print to work with traceback object 2019-10-27 19:25:20 +02:00
Aviv Palivoda b41f871151 Add tests for traceback 2019-10-27 19:25:20 +02:00
Aviv Palivoda 556582264a Temporary fix for linecache 2019-10-27 19:25:20 +02:00
Aviv Palivoda 2a60fbce8c Add MemoryError 2019-10-27 19:25:20 +02:00
Aviv Palivoda a9c2f5f711 Add traceback object 2019-10-27 19:25:20 +02:00
Noah 914299a4bf Merge pull request #1565 from yanganto/whats_left_error
test.not_impl_gen ignore py module w/ import error
2019-10-26 16:40:06 -05:00
Noah 1a00ebd855 Merge pull request #1567 from HyeockJinKim/issue1527
Modify str to float
2019-10-26 15:45:44 -05:00
Noah 61d6270630 Merge pull request #1570 from Riey/update-chrono
Update chrono to 0.4.9
2019-10-26 13:20:15 -05:00
Noah de02824c58 Merge pull request #1553 from RustPython/coolreader18/select
Add the select and selectors modules
2019-10-26 13:14:00 -05:00
Riey 69aa0526ed Using wasmbind feature in chrono 2019-10-26 23:15:36 +09:00
Riey 52846e42bb Update chrono to 0.4.9 2019-10-26 23:05:44 +09:00
HyeockJinKim bc67dd1d91 Add tests for float 2019-10-26 14:19:48 +09:00
HyeockJinKim ed8573e2a6 Modify str to float
Fix to receive a string value with '_' when creating a float value

Fixes #1527
2019-10-26 14:19:30 +09:00
coolreader18 407e4b2e86 Remove kernel32-sys dependency 2019-10-24 13:51:10 -05:00