[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Brett Cannon
Brett Cannon added the comment: I think if you're up for doing individual issues, Armin, that's preferred. But if it's too much work we will take it all in this single issue instead of risking the loss of the information. And if you want to use this issue as a meta one to track everything you

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Armin Rigo
Armin Rigo added the comment: > Armin, it would help if you report all cases as separate issues. I asked on python-dev before creating these three issues, and got the opposite answer. If you decide it was a bad idea after all, I will open separate issues in the future. -- __

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Armin, it would help if you report all cases as separate issues. Some of them are already resolved, some can be closed with "won't fix" resolution, others need special discussions. This issue can be left as a metaissue. -- __

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2017-01-10 Thread Armin Rigo
Armin Rigo added the comment: (S6) 'xxx' % b'foo' == 'xxx' b'xxx' % b'foo' raises TypeError The first case is because PyMapping_Check() is true on b'foo', so it works like 'xxx' % {...}, which always just returns 'xxx'. The second case is because _PyBytes_Format() contains more special c

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-18 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (S3) is a side effect of implementing __eq__ in dict_keys and dict_items. Since __eq__ is not implemented in dict_values, __hash__ is inherited from object. -- nosy: +rhettinger ___ Python tracker

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Make sure exceptions raised in __aiter__ are properly chained in ceval ___ Python tracker ___ ___

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-07 Thread Armin Rigo
Armin Rigo added the comment: (S5) gregory: actually there is also fchown/chown in the same situation. -- ___ Python tracker ___ ___ P

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Yury Selivanov
Yury Selivanov added the comment: I created an issue to track S1: http://bugs.python.org/issue28893 -- ___ Python tracker ___ ___ Pyth

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Larry Hastings
Larry Hastings added the comment: I assert that Argument Clinic's / PyArg_ParseTuple's handling of bool is correct. * Python has a well-established concept of "truth": https://docs.python.org/3/library/stdtypes.html#truth-value-testing The C equivalent is, indeed, PyObject_IsTrue(). * Wh

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: attaching a proposed fix for (S5). os.chmod should have the same EINTR retry treatment as everything else. That it does not appears to have been an oversight. -- keywords: +patch Added file: http://bugs.python.org/file45781/os-chmod-EINTR-retry.gps

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Gregory P. Smith
Gregory P. Smith added the comment: +larry for (S2) regarding argument clinic's treatment of bool. -- nosy: +gregory.p.smith, larry ___ Python tracker ___ ___

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Yury Selivanov
Yury Selivanov added the comment: I'll take a look at s1 later tonight -- ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Brett Cannon
Brett Cannon added the comment: Victor & Yury for S1. -- nosy: +haypo, yselivanov ___ Python tracker ___ ___ Python-bugs-list mailing

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (S2) is related not to Argument Clinic itself, but to the 'p' format unit added in 3.3 (issue14705). -- ___ Python tracker ___ __

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: (S4) was fixed in 3.6 (issue18018). But the fix was not applied to 3.5. -- dependencies: +SystemError: Parent module '' not loaded, cannot perform relative import nosy: +brett.cannon, serhiy.storchaka ___ Python tr

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Changes by Armin Rigo : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyth

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Changes by Armin Rigo : -- versions: +Python 3.5 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Armin Rigo added the comment: (S2) argument clinic turns the "bool" specifier into PyObject_IsTrue(), accepting any argument whatsoever. This can easily get very confusing for the user, e.g. after messing up the number of arguments. For example: os.symlink("/path1", "/path2", "/path3")

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Armin Rigo added the comment: (S1) ceval.c: GET_AITER: calls _PyCoro_GetAwaitableIter(), which might get an exception from calling the user-defined __await__() or checking what it returns; such an exception is completely eaten. -- ___ Python track

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Armin Rigo added the comment: (S5) pep 475: unclear why 'os.fchmod(fd)' retries automatically when it gets EINTR but the otherwise-equivalent 'os.chmod(fd)' does not. (The documentation says they are fully equivalent, so someone is wrong.) -- __

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Armin Rigo added the comment: (S3) hash({}.values()) works (but hash({}.keys()) correctly gives TypeError). That's a bit confusing and, as far as I can tell, always pointless. Also, related: d.keys()==d.keys() but d.values()!=d.values(). -- __

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
Armin Rigo added the comment: (S4) if you write ``from .a import b`` inside the Python prompt, or in a module not in any package, then you get a SystemError(!) with an error message that is unlikely to help newcomers. -- ___ Python tracker

[issue28885] Python 3.5.2 strange-behavior issues (from PyPy)

2016-12-06 Thread Armin Rigo
New submission from Armin Rigo: As discussed on python-dev, I am creating omnibus issues from the lists of crashers, of wrong-according-to-the-docs, and of strange-behavior-only issues that I found while developing Python 3.5.2 support for PyPy. These occur with CPython 3.5.2 but most of them