[pypy-commit] [Git][pypy/pypy][branch/py3.7] 74 commits: A branch to remove all implicit str-unicode conversions in RPython

Matti Picus foss at heptapod.net
Wed Jul 8 15:41:06 EDT 2020



Matti Picus pushed to branch branch/py3.7 at PyPy / pypy


Commits:
a8a77a88 by Ronan Lamy at 2020-06-24T18:27:24+01:00
A branch to remove all implicit str-unicode conversions in RPython

--HG--
branch : no-str-unicode-union

- - - - -
0840cd16 by Ronan Lamy at 2016-09-04T16:27:31+01:00
Disallow unions of char and unichar, since they make the annotator inconsistent

--HG--
branch : no-str-unicode-union

- - - - -
6005b031 by Ronan Lamy at 2016-09-04T19:31:19+01:00
Add test for constants

--HG--
branch : no-str-unicode-union

- - - - -
89853656 by Ronan Lamy at 2016-09-05T00:16:24+01:00
Explicitly forbid comparisons between str and unicode

--HG--
branch : no-str-unicode-union

- - - - -
f839e5b7 by andrewjlawrence at 2019-05-27T10:27:57+01:00
Started implementing winconsoleio

--HG--
branch : winconsoleio

- - - - -
f02dd911 by andrewjlawrence at 2019-05-27T21:06:55+01:00
Add winconsoleio to init

--HG--
branch : winconsoleio

- - - - -
72549d0c by andrewjlawrence at 2019-05-27T21:07:35+01:00
Merged py3.6

--HG--
branch : winconsoleio

- - - - -
088bae54 by andrewjlawrence at 2019-05-27T23:33:29+01:00
Initial implementation of winconsoleio

--HG--
branch : winconsoleio

- - - - -
19449882 by andrewjlawrence at 2019-06-01T17:40:46+01:00
Added testconsole, further implementation of winconsoleio.

--HG--
branch : winconsoleio

- - - - -
303e8a64 by andrewjlawrence at 2019-06-01T22:48:37+01:00
Work in progress.

--HG--
branch : winconsoleio

- - - - -
e9c2e733 by andrewjlawrence at 2019-06-02T22:36:07+01:00
Further implementation of winconsoleio. Work in progress.

--HG--
branch : winconsoleio

- - - - -
b80a9cdb by andrewjlawrence at 2019-06-03T23:13:40+01:00
Fixed a few translation issues

--HG--
branch : winconsoleio

- - - - -
b9d88514 by andrewjlawrence at 2019-06-08T21:55:03+01:00
Implemented _testconsole. Fixed translation issues.

--HG--
branch : winconsoleio

- - - - -
7d4c857a by andrewjlawrence at 2019-06-08T23:12:11+01:00
Implemented a couple more methods.

--HG--
branch : winconsoleio

- - - - -
8be18af5 by andrewjlawrence at 2019-08-11T23:17:40+01:00
Added a few more functions

--HG--
branch : winconsoleio

- - - - -
1dfd9899 by andrewjlawrence at 2019-08-19T08:17:48+01:00
A bit more implementation

--HG--
branch : winconsoleio

- - - - -
34c5ae7e by andrewjlawrence at 2019-08-23T19:22:48+01:00
work in progress

--HG--
branch : winconsoleio

- - - - -
ee1ad83b by andrewjlawrence at 2019-09-01T21:42:49+01:00
Added global sigint event

--HG--
branch : winconsoleio

- - - - -
77e33a90 by andrewjlawrence at 2019-09-06T05:55:21+01:00
work in progress

--HG--
branch : winconsoleio

- - - - -
95b8e23c by andrewjlawrence at 2019-09-07T08:03:22+01:00
merged latest py3.6 changes

--HG--
branch : winconsoleio

- - - - -
32427de8 by andrewjlawrence at 2019-09-07T23:02:11+01:00
Implemented read_console_w

--HG--
branch : winconsoleio

- - - - -
0eade1f1 by andrewjlawrence at 2019-09-08T22:16:38+01:00
Added additional read methods

--HG--
branch : winconsoleio

- - - - -
f1e083b2 by andrewjlawrence at 2019-09-10T22:54:49+01:00
Implemented a bit more of readall. Fixed memory allocation in
read_console_w

--HG--
branch : winconsoleio

- - - - -
e39c65b4 by andrewjlawrence at 2019-09-10T23:11:42+01:00
Fix translation

--HG--
branch : winconsoleio

- - - - -
c622e680 by andrewjlawrence at 2019-09-16T11:27:35+01:00
Fixed a bunch of translation issues

--HG--
branch : winconsoleio

- - - - -
b0d13d6e by Matti Picus at 2019-09-16T17:20:45+03:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
572838b6 by andrewjlawrence at 2019-09-16T16:52:50+01:00
Implemented write method for the Windows console io class.

--HG--
branch : winconsoleio

- - - - -
452c792f by Matti Picus at 2019-09-16T20:25:59+03:00
fix copy-paster

--HG--
branch : winconsoleio

- - - - -
35fc0a30 by Matti Picus at 2019-09-16T21:17:20+03:00
rewrite in pure python. "decoded" is a ascii string AFAICT

--HG--
branch : winconsoleio

- - - - -
b52c276b by andrewjlawrence at 2019-09-16T19:35:01+01:00
Fixed issues

--HG--
branch : winconsoleio

- - - - -
7f4b13bd by andrewjlawrence at 2019-09-16T19:37:33+01:00
Merge

--HG--
branch : winconsoleio

- - - - -
1b3ecd10 by andrewjlawrence at 2019-09-16T20:02:42+01:00
Merged discarded changes back in.

--HG--
branch : winconsoleio

- - - - -
d47881c7 by andrewjlawrence at 2019-09-17T11:56:46+01:00
Fixed a few more things and implemented another test.

--HG--
branch : winconsoleio

- - - - -
4033d45e by Matti Picus at 2019-09-17T14:15:49+03:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
7f8bd9f8 by andrewjlawrence at 2019-09-17T14:41:14+01:00
Switched fsdecode call to fspath following other pypy io modules

--HG--
branch : winconsoleio

- - - - -
1290166d by andrewjlawrence at 2019-09-17T14:42:36+01:00
merged heads

--HG--
branch : winconsoleio

- - - - -
83cabe16 by andrewjlawrence at 2019-09-17T22:10:00+01:00
Fixed construction

--HG--
branch : winconsoleio

- - - - -
32819eaf by Matti Picus at 2019-09-18T14:41:23+03:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
1d785d10 by Matti Picus at 2019-09-18T14:51:48+03:00
bad copy paste?

--HG--
branch : winconsoleio

- - - - -
7e15431b by Matti Picus at 2019-09-18T15:39:18+03:00
help flow analysis

--HG--
branch : winconsoleio

- - - - -
06ae61ae by Matti Picus at 2019-09-18T16:48:47+03:00
fix 58e969594b31

--HG--
branch : winconsoleio

- - - - -
a6e12b8c by andrewjlawrence at 2019-09-20T06:58:49+01:00
Added some more tests

--HG--
branch : winconsoleio

- - - - -
bb708557 by andrewjlawrence at 2019-09-20T07:11:25+01:00
Removed extraneous frees

--HG--
branch : winconsoleio

- - - - -
269a7433 by andrewjlawrence at 2019-09-28T18:54:08+01:00
Implemented more tests for winconsole io.
Add interp tests for get_console_type method.
Fixed a few things.

--HG--
branch : winconsoleio

- - - - -
ac1bee47 by Ronan Lamy at 2020-06-19T16:32:56+01:00
Avoid str-unicode comparisons in runicode

--HG--
branch : no-str-unicode-union

- - - - -
35eb5004 by Armin Rigo at 2020-07-01T10:31:41+02:00
Issue #3255

Double calls to '__get__' are actually not happening on CPython.  Fix PyPy to
conform.

- - - - -
e5095655 by Ronan Lamy at 2020-07-01T14:17:25+00:00
Merge branch 'branch/no-str-unicode-union' into 'branch/default'

Remove all implicit str-unicode conversions in RPython

See merge request pypy/pypy!732

- - - - -
6794e84e by Armin Rigo at 2020-07-02T15:32:45+02:00
I *think* rbigint is broken if compiling on a 64-bit platform with no 128-bit
integer type.

- - - - -
d507b530 by Antonio Cuni at 2019-11-22T12:06:26+01:00
Introduce rffi.constcharp2str, and improve the repr of low-level array
types.

Previously, you got annotation errors like this, which were VERY confusing:

  * UnionError:
    - SomePtr(ll_ptrtype=<* Array of Char >)
    - SomePtr(ll_ptrtype=<* Array of Char >)

Now you get the much more meaningful:

  * UnionError:
    - SomePtr(ll_ptrtype=<* Array of Char {'nolength': True} >)
    - SomePtr(ll_ptrtype=<* Array of Char {'render_as_const': True, 'nolength': True} >)
(grafted from a8819c54139022030ec0590659baf30f2609314c)

- - - - -
11f2c966 by Antonio Cuni at 2019-11-23T12:06:05+01:00
fix these two tests which were failing after the change of the repr
(grafted from be27c10c92d185d336ffc57068f6b0ea9d28f802)

- - - - -
56bd787a by Antonio Cuni at 2020-03-25T17:55:23+01:00
Be more robust when defining w_* methods in applevel tests:

  - the old logic didn't work in case the function was defined at module level
    (i.e., when the function body was indented by 4 spaces)

  - the old logic assumed that the w_ method has the same name as its actual
    function
(grafted from 7bab68baace2f97e1fcea7abd966aaccae10dbd3)

- - - - -
a396de9b by Ronan Lamy at 2019-11-16T14:13:51+01:00
Fix cparser issue with struct types appearing in function arguments
(grafted from e2a687fd8ab37efd0d69808c1af4572834fbd549)

- - - - -
e39527a0 by Ronan Lamy at 2019-11-16T16:45:16+01:00
Add a cparser test
(grafted from 01381639f0d0c8658017a7d0a29e80800d337707)

- - - - -
be79be17 by Armin Rigo at 2019-11-16T17:55:57+01:00
(ronan, arigo)

Don't call PyErr_Occurred() when its result is not needed
(grafted from 30944126f7e1a268cc9a1ac6e24f9b014f46b362)

- - - - -
9a90c883 by Matti Picus at 2019-12-18T13:39:15+02:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
c999502a by Matti Picus at 2019-12-19T00:10:46+02:00
remove redundant declarations, more annotation/translation fixes

--HG--
branch : winconsoleio

- - - - -
7b40ef95 by Matti Picus at 2019-12-19T00:59:48+02:00
more fixes, this path should be tested?

--HG--
branch : winconsoleio

- - - - -
745dffde by Matti Picus at 2019-12-25T03:13:24+02:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
08ed56c9 by Matti Picus at 2019-12-25T17:33:26+02:00
add a test, but it hangs trying to read from stdio, even after copying cpython

--HG--
branch : winconsoleio

- - - - -
2c086f62 by Matti Picus at 2020-03-21T23:13:54+02:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
887afaae by Matti Picus at 2020-03-23T22:48:31+02:00
try to make progress, not sure why we cannot do a pure-cffi win32consoleio

--HG--
branch : winconsoleio

- - - - -
0ea12638 by Matti Picus at 2020-07-01T23:11:13+03:00
merge py3.6 into branch

--HG--
branch : winconsoleio

- - - - -
e203f571 by Matti Picus at 2020-07-02T16:20:39+03:00
fix translation

--HG--
branch : winconsoleio

- - - - -
7660e3ca by Ronan Lamy at 2020-07-02T20:51:47+01:00
hg merge default

--HG--
branch : py3.6

- - - - -
9bb0d2bd by Matti Picus at 2020-07-07T01:40:55+03:00
simplify, fix translation

--HG--
branch : winconsoleio

- - - - -
d7f622a6 by Matti Picus at 2020-07-07T18:01:53+03:00
add PyType_GetFlags

--HG--
branch : py3.6

- - - - -
58fe52c6 by Matti Picus at 2020-07-07T20:55:15+03:00
test, implement PyType_GetSlot

--HG--
branch : py3.6

- - - - -
9d55e111 by Matti Picus at 2020-07-07T22:56:04+03:00
fix translation on non-windows

--HG--
branch : winconsoleio

- - - - -
af857aed by Matti Picus at 2020-07-07T23:11:08+03:00
close branch to be merged

--HG--
branch : winconsoleio

- - - - -
005750bd by Matti Picus at 2020-07-07T23:12:50+03:00
merge winconsoleio which provides an _io._WindowsConsoleIO module

--HG--
branch : py3.6

- - - - -
4c9e2375 by Matti Picus at 2020-07-08T21:59:45+03:00
refactor some unicode in interp_winreg to utf16 instead, flake8 fixes

--HG--
branch : py3.6

- - - - -
55814218 by Matti Picus at 2020-07-08T22:15:22+03:00
reformat exec statement

--HG--
branch : py3.6

- - - - -
4370f500 by Matti Picus at 2020-07-08T22:17:04+03:00
properly skip on non-windows

--HG--
branch : py3.6

- - - - -
029fbca0 by Matti Picus at 2020-07-08T22:40:40+03:00
merge py3.6 into branch

--HG--
branch : py3.7

- - - - -


30 changed files:

- lib_pypy/_pypy_winbase_build.py
- lib_pypy/_pypy_winbase_cffi.py
- + lib_pypy/_testconsole.py
- lib_pypy/_winapi.py
- pypy/doc/whatsnew-pypy3-head.rst
- pypy/module/_io/interp_bufferedio.py
- pypy/module/_io/interp_io.py
- + pypy/module/_io/interp_win32consoleio.py
- pypy/module/_io/moduledef.py
- + pypy/module/_io/test/_testconsole.py
- + pypy/module/_io/test/test_win32consoleio.py
- pypy/module/_winreg/interp_winreg.py
- pypy/module/_winreg/test/test_winreg.py
- pypy/module/cpyext/api.py
- pypy/module/cpyext/cparser.py
- pypy/module/cpyext/include/object.h
- pypy/module/cpyext/src/typeobject.c
- pypy/module/cpyext/stubs.py
- pypy/module/cpyext/test/test_cparser.py
- pypy/module/cpyext/test/test_typeobject.py
- pypy/module/cpyext/typeobject.py
- pypy/module/signal/interp_signal.py
- pypy/module/signal/moduledef.py
- pypy/module/signal/test/test_signal.py
- pypy/module/test_lib_pypy/test_structseq.py
- pypy/objspace/descroperation.py
- pypy/objspace/test/apptest_descriptor.py
- pypy/tool/pytest/apptest.py
- pypy/tool/pytest/test/test_pytestsupport.py
- rpython/annotator/binaryop.py


View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/ab4d513407f6ecfb8f9385c46a22d3b37dffb023...029fbca0ddc2678a37d05c6d8d0e2740265a1d35

-- 
View it on GitLab: https://foss.heptapod.net/pypy/pypy/-/compare/ab4d513407f6ecfb8f9385c46a22d3b37dffb023...029fbca0ddc2678a37d05c6d8d0e2740265a1d35
You're receiving this email because of your account on foss.heptapod.net.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-commit/attachments/20200708/4134c676/attachment-0001.html>


More information about the pypy-commit mailing list