Aviv Palivoda
698044b128
Add Module.__name__
2019-06-10 19:18:32 +03:00
Aviv Palivoda
e88d6ac1ef
Add init_importlib
2019-06-10 19:18:32 +03:00
Aviv Palivoda
7ff59b27d7
Add _bootsrap.py as frozen module
2019-06-10 19:18:32 +03:00
coolreader18
740e8387b8
Merge pull request #1027 from alanjds/format-bang
...
Feature: str.format accepting !r, !s and !a
2019-06-10 10:56:00 -05:00
Alan Justino
854bacf452
Fix the Rust tests
2019-06-09 18:45:08 -03:00
Alan Justino
f0a2b4c50b
Apply the {!r} on str.format calls
...
By the Python docs, the `!` forces a conversion of the argument before
applying the normal formating logic described after the `:` marker.
See: https://docs.python.org/3.4/library/string.html#format-string-syntax
2019-06-09 18:11:10 -03:00
Alan Justino
e19b674abf
FormatSpec got a preconversor:FormatPreconversor to handle !r, !s and !a
2019-06-09 16:22:22 -03:00
coolreader18
68011df6cb
Merge pull request #1024 from yanganto/str_isprintable
...
str.isprintable
2019-06-09 13:07:47 -05:00
Alan Justino
65d0093822
Dont fail on '{!r}'.format(...)
2019-06-09 13:46:13 -03:00
Antonio Yang
f76be43d26
str.isprintable
...
- check unicode type by unicode_categories
- rm redundant check of empty string
2019-06-09 23:33:38 +08:00
Windel Bouwman
1b968e9406
Merge pull request #1022 from RustPython/coolreader18/demo-repl-continuation
...
Add line continuation for the WASM demo terminal
2019-06-09 11:16:35 +02:00
coolreader18
d45c632f49
Add incompatibility issue template
2019-06-08 18:59:02 -05:00
coolreader18
b0db7c1096
Add RFC issue template
...
Structure taken from #771
2019-06-08 18:28:18 -05:00
coolreader18
cd61248635
Merge branch 'master' into coolreader18/demo-repl-continuation
2019-06-08 13:17:05 -05:00
Windel Bouwman
eb234ca3c5
Merge pull request #1021 from mkurnikov/speed-up-file-open
...
Get io reader/writer classes only when needed
2019-06-08 16:13:42 +02:00
Windel Bouwman
a1e2da6807
Merge pull request #1020 from RustPython/coolreader18/no-pwd-android
...
Disable the pwd module on android
2019-06-08 16:12:23 +02:00
Maxim Kurnikov
baf62d56d2
get io reader/writer classes only when needed
2019-06-08 02:49:45 +03:00
coolreader18
2b555cb40e
Merge pull request #1016 from mkurnikov/fix-io-open-r
...
Fix io.open("r") case and address some TODOs
2019-06-07 12:07:47 -05:00
coolreader18
50252b4e80
Disable the pwd module on android
2019-06-07 11:57:50 -05:00
coolreader18
d27840c11d
Merge pull request #1019 from palaviv/warnings
...
Add _warnings
2019-06-07 11:45:48 -05:00
Aviv Palivoda
8fccad1e09
Print warning to stderr
...
Co-Authored-By: coolreader18 <33094578+coolreader18@users.noreply.github.com >
2019-06-07 18:59:41 +03:00
Maxim Kurnikov
c0e1702869
split mode/type for io.open properly, fix open('r') case
2019-06-07 16:34:16 +03:00
Aviv Palivoda
d2a82b1acd
Add _warnings
2019-06-07 15:14:27 +03:00
Windel Bouwman
1b7088c353
Merge pull request #1017 from michelhe/memoryview_obj
...
Fix memoryview.obj misimplementation.
2019-06-05 13:22:49 +02:00
coolreader18
74d52ee82f
Merge pull request #1011 from palaviv/_imp2
...
More _imp
2019-06-05 00:43:10 -05:00
Michel Heily
b2cdeab0c6
Fix memoryview.obj misimplementation.
...
The memoryview skeleton did not correctly assign the "obj" attribute;
The "obj" attribute was assigned to the memoryview class and not the memryview object,
leading to a funny bug that can be reproduced as follows:
```python
m1 = memoryview(b'1234')
m2 = memoryview(b'abcd')
print(m1.obj)
```
the result would be the value inside `m2` instead that of `m1`
2019-06-05 02:36:45 +03:00
Windel Bouwman
0c9d3c8918
Merge pull request #1015 from mkurnikov/empty-exception-message
...
Make empty exception message format compatible with CPython
2019-06-04 15:52:47 +02:00
Maxim Kurnikov
bc33921fdb
make empty exception message format compatible with CPython
2019-06-04 14:59:28 +03:00
coolreader18
e871ab0673
Merge pull request #1013 from mkurnikov/source-line-in-traceback
...
Add indented source lines in traceback
2019-06-02 23:05:59 -05:00
coolreader18
7ddfa1c4ce
Merge pull request #1012 from mkurnikov/more-refactorings-2
...
More doc comments, split with_exit() method for __exit__ into two methods
2019-06-02 22:58:11 -05:00
Maxim Kurnikov
58b1f4a8ee
add indented source line in traceback
2019-06-02 18:21:52 +03:00
Maxim Kurnikov
3b5cc1ad2f
more doc comments, split with_exit() method for context manager __exit__ into two methods
2019-06-02 01:37:25 +03:00
Aviv Palivoda
106f5f7054
Add _imp.is_frozen_package
2019-06-01 15:15:16 +03:00
Aviv Palivoda
0acce07631
Add _imp.init_frozen
2019-06-01 15:11:55 +03:00
Aviv Palivoda
4faaf2d6ca
Add _imp.get_frozen_object
2019-06-01 15:03:45 +03:00
Aviv Palivoda
9a168b10d1
Add _imp.exec_builtin that does nothing
2019-06-01 14:49:12 +03:00
Aviv Palivoda
1294b56cbe
Add _imp.create_builtin
2019-06-01 14:32:23 +03:00
coolreader18
b6edd19331
Merge pull request #1010 from mkurnikov/fix-clippy-warnings
...
Fix most of clippy warnings
2019-05-31 20:19:49 -05:00
Maxim Kurnikov
bc35a64e54
fix most of clippy warnings
2019-06-01 03:19:22 +03:00
Windel Bouwman
e0dbfb553f
Merge pull request #1009 from mkurnikov/refactorings
...
Some cleanups and typo fixes
2019-05-31 22:25:52 +02:00
Maxim Kurnikov
1949239592
cleanups, type fixes and renames
2019-05-31 21:56:10 +03:00
Windel Bouwman
849c6eb1ee
Merge pull request #995 from stwen77/binascii
...
add binascii crc32
2019-05-31 09:30:19 +02:00
Windel Bouwman
8a9e6ef0de
Merge pull request #1008 from RustPython/coolreader18/cpython-libs1
...
Update Lib/operator.py and add Lib/heapq.py from cpython
2019-05-31 09:27:16 +02:00
stwen77
e9f3f4b89a
Merge branch 'master' into binascii
2019-05-31 14:22:42 +08:00
Shitong Wen
e452d5523e
use crate crc to replace crc table
2019-05-31 14:16:31 +08:00
coolreader18
39c63ef139
Update Lib/operator.py and add Lib/heapq.py from cpython
2019-05-30 23:04:09 -05:00
Aviv Palivoda
9e88b808dd
Add _imp.is_frozen
2019-05-30 18:50:46 +03:00
Windel Bouwman
15f94679c4
Merge pull request #988 from skinny121/sys_flags
...
Add sys.flags
2019-05-30 12:24:04 +02:00
ben
d2757a2680
Fix merge issue with PyTuple::fast_getitem
2019-05-30 21:22:30 +12:00
ben
c0c531d550
Merge branch 'master' into sys_flags
...
# Conflicts:
# tests/snippets/sysmod.py
# vm/src/sysmodule.rs
2019-05-30 21:12:57 +12:00