[pypy-commit] [Git][pypy/pypy][branch/py3.9] bpo-46762: fix corner case in f-strings where < or > is the last char, with a

2022-03-28 Thread Carl Friedrich Bolz-Tereick (@cfbolz)


Carl Friedrich Bolz-Tereick pushed to branch branch/py3.9 at PyPy / pypy


Commits:
67e260a6 by Carl Friedrich Bolz-Tereick at 2022-03-28T10:47:43+02:00
bpo-46762: fix corner case in f-strings where < or > is the last char, 
with a
missing trailing }

--HG--
branch : py3.9

- - - - -


2 changed files:

- pypy/interpreter/astcompiler/fstring.py
- pypy/objspace/std/test/apptest_fstring.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/67e260a6f70f0375a38d3ee75d3558c21351904e

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/67e260a6f70f0375a38d3ee75d3558c21351904e
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] adapt test_syntax to PyPy, but now the test crashes at "__debug__: int"

2022-03-28 Thread Matti Picus (@mattip)


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


Commits:
882191af by Matti Picus at 2022-03-28T14:53:55+03:00
adapt test_syntax to PyPy, but now the test crashes at "__debug__: 
int"

--HG--
branch : py3.9

- - - - -


1 changed file:

- lib-python/3/test/test_syntax.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/882191af1839a8b16ffb40fe438eb61004610022

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/882191af1839a8b16ffb40fe438eb61004610022
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] (cfbolz, mattip): fix '__debug__ : int' not raising a SyntaxError

2022-03-28 Thread Carl Friedrich Bolz-Tereick (@cfbolz)


Carl Friedrich Bolz-Tereick pushed to branch branch/py3.9 at PyPy / pypy


Commits:
db8a5aad by Carl Friedrich Bolz-Tereick at 2022-03-28T16:37:36+02:00
(cfbolz, mattip): fix '__debug__ : int' not raising a SyntaxError

--HG--
branch : py3.9

- - - - -


2 changed files:

- pypy/interpreter/astcompiler/codegen.py
- pypy/interpreter/astcompiler/test/test_compiler.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/db8a5aade34cec2a54c306beaaeafa94f8e8c8de

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/db8a5aade34cec2a54c306beaaeafa94f8e8c8de
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] 2 commits: test for __debug__ += 1 not raising, fix

2022-03-28 Thread Matti Picus (@mattip)


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


Commits:
64c17495 by Matti Picus at 2022-03-28T18:42:51+03:00
test for __debug__ += 1 not raising, fix

(probably the wrong fix, but it stopped the assert from triggering)

--HG--
branch : py3.9

- - - - -
6ac00127 by Matti Picus at 2022-03-28T18:43:13+03:00
finish fixing the exception message differences.

--HG--
branch : py3.9

- - - - -


3 changed files:

- lib-python/3/test/test_syntax.py
- pypy/interpreter/astcompiler/codegen.py
- pypy/interpreter/astcompiler/test/test_astbuilder.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/db8a5aade34cec2a54c306beaaeafa94f8e8c8de...6ac001277b855d5a43478835e5d8f2acea499fd7

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/db8a5aade34cec2a54c306beaaeafa94f8e8c8de...6ac001277b855d5a43478835e5d8f2acea499fd7
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] 4 commits: add __ror__ and block __ior__ on dictproxy

2022-03-28 Thread Matti Picus (@mattip)


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


Commits:
2b09e0ad by Matti Picus at 2022-03-28T20:31:05+03:00
add __ror__ and block __ior__ on dictproxy

--HG--
branch : py3.9

- - - - -
47faf41c by Matti Picus at 2022-03-28T21:35:56+03:00
fix for different order of fields in namespace __repr__

--HG--
branch : py3.9

- - - - -
2b1cae11 by Matti Picus at 2022-03-28T21:36:30+03:00
resync with CPython error messsages now that ours are fixed

--HG--
branch : py3.9

- - - - -
d0ef681a by Matti Picus at 2022-03-28T22:06:19+03:00
in pypy, _frozen_importlib and zipimport have __loader__=None and __spec__=None

--HG--
branch : py3.9

- - - - -


5 changed files:

- lib-python/3/test/test_importlib/test_api.py
- lib-python/3/test/test_types.py
- lib-python/3/test/test_unpack_ex.py
- pypy/objspace/std/dictproxyobject.py
- pypy/objspace/std/test/test_dictproxy.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/6ac001277b855d5a43478835e5d8f2acea499fd7...d0ef681a0ed99a374e2afb97e73851d5fe9a6eec

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/compare/6ac001277b855d5a43478835e5d8f2acea499fd7...d0ef681a0ed99a374e2afb97e73851d5fe9a6eec
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/py3.9] don't require an items method, keys is sufficient

2022-03-28 Thread Carl Friedrich Bolz-Tereick (@cfbolz)


Carl Friedrich Bolz-Tereick pushed to branch branch/py3.9 at PyPy / pypy


Commits:
6daa16b3 by Carl Friedrich Bolz-Tereick at 2022-03-28T21:52:24+02:00
don't require an items method, keys is sufficient

--HG--
branch : py3.9

- - - - -


1 changed file:

- pypy/interpreter/pyopcode.py


View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/6daa16b35ebfde16844bbf205441fde749ad59fe

-- 
View it on Heptapod: 
https://foss.heptapod.net/pypy/pypy/-/commit/6daa16b35ebfde16844bbf205441fde749ad59fe
You're receiving this email because of your account on foss.heptapod.net.


___
pypy-commit mailing list -- pypy-commit@python.org
To unsubscribe send an email to pypy-commit-le...@python.org
https://mail.python.org/mailman3/lists/pypy-commit.python.org/
Member address: arch...@mail-archive.com


[pypy-commit] [Git][pypy/pypy][branch/release-pypy3.9-v7.x] 98 commits: fix test corner case around line continuations: lines that only contain line

2022-03-28 Thread Matti Picus (@mattip)


Matti Picus pushed to branch branch/release-pypy3.9-v7.x at PyPy / pypy


Commits:
077272e5 by Carl Friedrich Bolz-Tereick at 2022-03-16T20:31:31+01:00
fix test corner case around line continuations: lines that only contain line
continuations are usually skipped. however, that shouldn't happen if 
that's the
very last line of a file.

--HG--
branch : py3.9

- - - - -
34d3b9ee by Carl Friedrich Bolz-Tereick at 2022-03-16T20:41:40+01:00
fix test (not a real problem, just a different interaction with ast rewriting)

--HG--
branch : py3.9

- - - - -
19a22e88 by Carl Friedrich Bolz-Tereick at 2022-03-16T20:42:51+01:00
update magic here

--HG--
branch : py3.9

- - - - -
b7f561c9 by Matti Picus at 2022-03-18T11:10:50+02:00
add failing test required for PEP 3123 (stric-aliasing) (issue 3706)

- - - - -
895f5727 by Matti Picus at 2022-03-18T12:39:59+02:00
add override=True and rearrange declarations to get test to pass

- - - - -
c14d5741 by Carl Friedrich Bolz-Tereick at 2022-03-21T11:36:04+01:00
#3709 fixed: add PyModule_AddType

--HG--
branch : py3.9

- - - - -
b440e148 by Ronan Lamy at 2022-03-22T03:37:13+00:00
Backed out changeset 1baa930ff7e9

- - - - -
2159ef87 by Ronan Lamy at 2022-03-22T04:12:39+00:00
cparser: Handle the case of structs requiring other structs to be configured 
first.

Fixes issue #3706.

- - - - -
9b377a08 by Carl Friedrich Bolz-Tereick at 2022-03-22T09:18:46+01:00
(Serhiy Storchaka, Michał Górny, cfbolz applying)

bpo-46756: Fix authorization check in urllib.request (GH-31353)

Fix a bug in urllib.request.HTTPPasswordMgr.find_user_password() and
urllib.request.HTTPPasswordMgrWithPriorAuth.is_authenticated() which
allowed to bypass authorization. For example, access to URI 
"example.org/foobar"
was allowed if the user was authorized for URI "example.org/foo".

- - - - -
2d231563 by Carl Friedrich Bolz-Tereick at 2022-03-22T11:20:30+01:00
missing JIT optimization: list.extend(tuple) always forced the list. stop doing 
that.

this helps #3649 for 3.9 in particular, because there list.extend(tuple) is
called from certain bytecodes, eg LIST_EXTEND for *args

- - - - -
7f00745b by Carl Friedrich Bolz-Tereick at 2022-03-22T11:33:07+01:00
merge default

--HG--
branch : py3.8

- - - - -
226f99b3 by Carl Friedrich Bolz-Tereick at 2022-03-22T11:33:26+01:00
merge py3.8

--HG--
branch : py3.9

- - - - -
8b52dfc9 by Carl Friedrich Bolz-Tereick at 2022-03-22T12:18:57+01:00
this function is no longer used on 3.9

--HG--
branch : py3.9

- - - - -
ccf2f7f4 by Matti Picus at 2022-03-22T17:54:43+02:00
adpot includes for PEP 3123, fix translation and some tests

--HG--
branch : pep-3123

- - - - -
9ca2e891 by Carl Friedrich Bolz-Tereick at 2022-03-22T19:51:07+01:00
tiny optimization: make space.len_w and space.hash_w more efficient, by not
unwrapping and rewrapping the results.

- - - - -
400478c9 by Carl Friedrich Bolz-Tereick at 2022-03-22T20:30:56+01:00
- call the correct function directly
- delete some dead and incorrect code. type checking of the arguments is done
  in argument.py

--HG--
branch : py3.9

- - - - -
2d879c52 by Matti Picus at 2022-03-22T22:48:45+02:00
fix tests, fix initialization warning

--HG--
branch : pep-3123

- - - - -
02fbb34e by Matti Picus at 2022-03-22T23:00:14+02:00
Merge with pep-3123

--HG--
branch : py3-pep-3123

- - - - -
80373a2c by Carl Friedrich Bolz-Tereick at 2022-03-23T10:28:47+01:00
kill the cpython_code_signature implementation in pycode. it is only called for
code objects on the underlying python implementation, so just use the one in
the flowspace

- - - - -
2ed5b70a by Carl Friedrich Bolz-Tereick at 2022-03-23T10:34:53+01:00
fix the fake obj space and test_ztranslation in various modules

- - - - -
f1a7d881 by Matti Picus at 2022-03-23T11:39:45+02:00
add space.len_w to fix micronumpy tests

- - - - -
80c55af3 by Carl Friedrich Bolz-Tereick at 2022-03-23T10:41:07+01:00
oops, like this of course

- - - - -
12ad8b8b by Carl Friedrich Bolz-Tereick at 2022-03-23T10:55:02+01:00
merge default

--HG--
branch : py3.8

- - - - -
f1ee4549 by Carl Friedrich Bolz-Tereick at 2022-03-23T11:02:23+01:00
fix test

--HG--
branch : py3.8

- - - - -
63ce0442 by Carl Friedrich Bolz-Tereick at 2022-03-23T11:03:24+01:00
and now we can change the code to this, because make_signature is only called
with wrapped code objects

--HG--
branch : py3.8

- - - - -
22347481 by Carl Friedrich Bolz-Tereick at 2022-03-23T11:16:06+01:00
merge py3.8

--HG--
branch : py3.9

- - - - -
77787c0f by Carl Friedrich Bolz-Tereick at 2022-03-23T11:27:44+01:00
don't need a SignatureBuilder for the orig_sig, really

- - - - -
b6947cdf by Carl Friedrich Bolz-Tereick at 2022-03-23T11:57:02+01:00
remove useless assert (it's implied by the earlier one)

--HG--
branch : py3.8

- - - - -
4ad6be67 by Carl Friedrich Bolz-Tereick at 2022-03-23T13:07:13+01:00
another refactoring of the signatures, only have a single list of argnames that
also includes the kwonly argnames

--HG--
branch : py3.8

- - - - -
9bb31587 by Car