[issue39729] stat.S_ISXXX can raise OverflowError for remote file modes

2020-02-23 Thread Arnon Yaari
Arnon Yaari added the comment: Maybe so, but IMHO it is a lesser concern - the operating systems that use "unsigned long" add bits on the right, and don't change the less significant bits that the S_ISXXX macros check (if I am not mistaken, those bits are POSIX standards).

[issue39729] stat.S_ISXXX can raise OverflowError for remote file modes

2020-02-23 Thread Arnon Yaari
New submission from Arnon Yaari : The C implementation of the "stat" module on Python 3 (_stat) is using the type "mode_t" for file modes, which differs between operating systems. This type can be defined as either "unsigned short" (for example, in macOS, or the

[issue38527] configure script fails to detect "float word ordering" on Solaris

2019-10-19 Thread Arnon Yaari
Change by Arnon Yaari : -- keywords: +patch pull_requests: +16395 stage: -> patch review pull_request: https://github.com/python/cpython/pull/16845 ___ Python tracker <https://bugs.python.org/issu

[issue38527] configure script fails to detect "float word ordering" on Solaris

2019-10-19 Thread Arnon Yaari
New submission from Arnon Yaari : When running the configure script on Solaris SPARC (versions 10 and 11), the script fails with the following error: checking whether float word ordering is bigendian... unknown configure: error: Unknown float word ordering. You need to manually

[issue28373] input() prints to original stdout even if sys.stdout is wrapped

2016-10-06 Thread Arnon Yaari
New submission from Arnon Yaari: When I wrap sys.stdout with a custom object that overrides the 'write' method, regular prints use the custom write method, but the input() function prints the prompt to the original stdout. This is broken on Python 3.5. Earlier versions work correct

[issue11215] test_fileio error on AIX

2015-09-29 Thread Arnon Yaari
Arnon Yaari added the comment: Some AIX systems have seekable /dev/tty, as is the case here and in msg90762, and on my system too. There is already an exemption in test_fileio.py for systems that have a seekable /dev/tty. AIX just needs to be exempt too. (from my experience, AIX and Solaris

[issue19006] UnitTest docs should have a single list of assertions

2015-09-29 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker <http://bugs.python.org/issue19006> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9917] resource max value represented as signed when should be unsigned

2015-09-28 Thread Arnon Yaari
Arnon Yaari added the comment: I'm submitting a patch for review. I tested this and verified the values on Redhat and Unbuntu (both x86 and x64), Mac OS X (x64) and AIX (32-bit process on ppc64). 'configure' and 'pyconfig.h.in' were auto-generated with autoconf and au

[issue678264] test_resource fails when file size is limited

2015-09-28 Thread Arnon Yaari
Arnon Yaari added the comment: This issue is still relevant and can be reproduced by running: ulimit -Hf 1000 ./python Lib/test/test_resource.py (On AIX, the default hard limit is not RLIM_INFINITY so it reproduces on that operating system without the first line) The patch is still

[issue9917] resource max value represented as signed when should be unsigned

2015-09-28 Thread Arnon Yaari
Arnon Yaari added the comment: getrlimit still returns -1 as 'max' when limit is unlimited and for RLIM_INFINITY because rlim_t is considered signed. The zshell project decides whether rlim_t is signed/unsigned (and also whether it is long or long long) in the configure st

[issue20523] global .pdbrc on windows 7 not reachable out of the box

2015-08-18 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker <http://bugs.python.org/issue20523> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue24886] open fails randomly on AIX

2015-08-18 Thread Arnon Yaari
New submission from Arnon Yaari: We are using Python 2.7.8 on AIX 7.1 TL 3. On rare occasions, calls to open files with mode "w" fail with: IOError: File exists. File "/root/jenkins/workspace/powertools/eggs/infi.credentials_store-0.1-py2.7.egg/infi/credentials_store/base

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-08-03 Thread Arnon Yaari
Arnon Yaari added the comment: * The removal of the 'kot' test is ok. That's what the fix is about. With longMessage set to False, we should only see the custom message, 'Message', and not the message about the regex that contains 'kot'. * Please update the p

[issue12485] textwrap.wrap: new argument for more pleasing output

2015-05-17 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker <http://bugs.python.org/issue12485> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20362] longMessage attribute is ignored in unittest.TestCase.assertRegexpMatches etc

2015-05-17 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker <http://bugs.python.org/issue20362> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue20769] Reload() description is unclear

2015-05-17 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +wiggin15 ___ Python tracker <http://bugs.python.org/issue20769> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-25 Thread Arnon Yaari
Arnon Yaari added the comment: minor updates to stdtypes.rst. I also want to add a line to whatsnew/3.5 but don't know how to put it in words - maybe it's better if someone with better english will add it. -- Added file: http://bugs.python.org/file39204/bytes.

[issue15625] Support u and w codes in memoryview

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: The documentation already specifies that 'u' is deprecated and doesn't mention the 'w' code. I think we can close this issue. -- nosy: +wiggin15 ___ Python tracker <http:

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: Adding a test that only calls the function. -- Added file: http://bugs.python.org/file39048/issue4254-2.diff ___ Python tracker <http://bugs.python.org/issue4

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: Sorry, I got confused (which proves the point of the ticket :)) * the "need more than 3 values" error message wasn't wrong, just confusing. * Including "into starred target" in the message was incorrect, I removed it. * The messag

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: I'm adding patch without the update to Misc/NEWS. I'm not sure why, but the curses doc refers to LINES and COLS as "environment variables". In the doc change I referred to them as just "variables" and used the notation that wo

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file39043/issue23949-3.diff ___ Python tracker <http://bugs.python.org/issue23949> ___ ___ Python-bugs-list m

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file39042/issue23949-2.diff ___ Python tracker <http://bugs.python.org/issue23949> ___ ___ Python-bugs-list m

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: I fixed the tests (that's important!) and changed the latter message to specify it is referring to the starred target (the term "starred target" appears in the docs in simple_stmts.rst). Looks like the number in that message was wrong before!

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: I couldn't find a way to add 'got %d' to the 'too many values' message. This would either require going over the rest of the iterator (which will take more time and may never return) or trying to figure out if it has a 'len'

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-15 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file39011/issue23949.diff ___ Python tracker <http://bugs.python.org/issue23949> ___ ___ Python-bugs-list m

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: Fixed David's comments -- versions: +Python 3.5 -Python 3.2 Added file: http://bugs.python.org/file39037/issue4254.diff ___ Python tracker <http://bugs.python.org/i

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-15 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file38973/patch_4254.diff ___ Python tracker <http://bugs.python.org/issue4254> ___ ___ Python-bugs-list m

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-15 Thread Arnon Yaari
Arnon Yaari added the comment: Fixed Martin's comments. -- Added file: http://bugs.python.org/file39036/issue13866.diff ___ Python tracker <http://bugs.python.org/is

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-15 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file39006/issue13866.patch ___ Python tracker <http://bugs.python.org/issue13866> ___ ___ Python-bugs-list m

[issue23949] Number of elements display in error message is wrong while unpacking in traceback

2015-04-14 Thread Arnon Yaari
Arnon Yaari added the comment: Adding alternative patch for suggestion. -- nosy: +wiggin15 versions: +Python 3.5 -Python 3.2 Added file: http://bugs.python.org/file39011/issue23949.diff ___ Python tracker <http://bugs.python.org/issue23

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2015-04-14 Thread Arnon Yaari
Arnon Yaari added the comment: Updated patch to the correct format, added a test and some more documentation. -- nosy: +wiggin15 versions: +Python 3.5 -Python 3.4 Added file: http://bugs.python.org/file39006/issue13866.patch ___ Python tracker <h

[issue9014] Incorrect documentation of the PyObject_HEAD macro

2015-04-14 Thread Arnon Yaari
Arnon Yaari added the comment: PEP 3123 is the one that describes this change. I'm submitting a file with the proposed changes to the docs. -- keywords: +patch nosy: +wiggin15 Added file: http://bugs.python.org/file38991/issue9014.diff ___ P

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file38973/patch_4254.diff ___ Python tracker <http://bugs.python.org/issue4254> ___ ___ Python-bugs-list mailin

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file38971/manual_test_4254.py ___ Python tracker <http://bugs.python.org/issue4254> ___ ___ Python-bugs-list m

[issue4254] _cursesmodule.c callable update_lines_cols()

2015-04-13 Thread Arnon Yaari
Arnon Yaari added the comment: Creating an automatic test for this issue proves difficult, as using curses to resize the terminal already updates the values, and using ioctls to try to bypass curses, doesn't work. I'm adding a manual test program (mostly taken from http://ww

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file38961/bytes.hex.diff ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list mailin

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file38947/bytes.hex.diff ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list m

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Arnon Yaari added the comment: I added the implementation for memoryview, updated to use PyUnicode_New etc., and moved the common implementation to its own file for code reuse. -- Added file: http://bugs.python.org/file38947/bytes.hex.diff

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file19175/bytes.hex.diff ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list m

[issue9951] introduce bytes.hex method (also for bytearray and memoryview)

2015-04-13 Thread Arnon Yaari
Changes by Arnon Yaari : -- nosy: +eric.smith ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16050] ctypes: callback from C++ to Python fails with Illegal Instruction call

2015-04-13 Thread Arnon Yaari
Arnon Yaari added the comment: libffi seem to have fixed this issue in their commit "4acf005 - Build fix for soft-float power targets". The fix is different than what Pavel suggested, but sounds like it should do the same. -- nosy:

[issue9951] introduce bytes.hex method

2013-09-13 Thread Arnon Yaari
Arnon Yaari added the comment: You can follow the discussion I linked in the ticket description for an answer: http://psf.upfronthosting.co.za/roundup/tracker/issue3532 Mainly the answer is: to conform to PEP 358 and to provide the opposite of bytes.fromhex. I agree that you can use binascii

[issue9951] introduce bytes.hex method

2013-07-14 Thread Arnon Yaari
Arnon Yaari added the comment: Hi, is there any chance to get this merged? This ticket has been open for almost 3 years... -- ___ Python tracker <http://bugs.python.org/issue9

[issue9951] introduce bytes.hex method

2010-10-09 Thread Arnon Yaari
Arnon Yaari added the comment: fixed to Py_UNICODE -- ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9951] introduce bytes.hex method

2010-10-09 Thread Arnon Yaari
Changes by Arnon Yaari : Removed file: http://bugs.python.org/file19018/bytes.hex.diff ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list m

[issue9951] introduce bytes.hex method

2010-10-09 Thread Arnon Yaari
Changes by Arnon Yaari : Added file: http://bugs.python.org/file19175/bytes.hex.diff ___ Python tracker <http://bugs.python.org/issue9951> ___ ___ Python-bugs-list mailin

[issue9996] binascii should convert unicode strings

2010-09-30 Thread Arnon Yaari
New submission from Arnon Yaari : binascii is currently bytes-only, although the "a" in a2b\b2a should refer to unicode strings. This patch fixes all a2b functions to take str type and all b2a functions to return str types. This was discussed several times, for example: http://ww

[issue9951] introduce bytes.hex method

2010-09-25 Thread Arnon Yaari
New submission from Arnon Yaari : Following up on these discussions: http://psf.upfronthosting.co.za/roundup/tracker/issue3532 http://www.gossamer-threads.com/lists/python/dev/863892 I'm submitting a patch to add bytes.hex method in accordance to PEP 358. The code was taken from binascii