[issue37690] Simplify linking of shared libraries on the AIX OS
Eric N. Vander Weele added the comment: Thanks for the in-depth responses and feedback. When reinvestigating this in more detail that led me to create this patch, I discovered that the premise upon which I was operating upon was not the default (desired) compiler and linker flags. It turns out the environment I am working in builds all of the software using -bsvr4 and -brtl on AIX. I have a lot more to unravel now. I already closed the PR and will abandon this issue since it has been clearly illustrated that this is masking an underlying problem. Thanks for taking the time to provide feedback and detail of what is problematic with this change. -- stage: patch review -> resolved status: open -> closed ___ Python tracker <https://bugs.python.org/issue37690> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37690] Simplify linking of shared libraries on the AIX OS
Eric N. Vander Weele added the comment: > This is horrible and completely wrong. I'm not an expert in AIX and xlc, by any means. I would greatly appreciate your help to better understand so I can see the problem in the way you are to figure the best approach I can take. My primary motivation was to simplify/homogenize the mechanism by which Python C/C++ extensions are built. For background, I have Python applications and libraries that need to run on Linux, Solaris, and AIX. One of the challenges we ran into was how and when symbol resolution occurs, which is fundamentally different in AIX. > Python does not require dynamic linking. I understand Python does not require dynamic linking. However, the problem I am running into is how this should work/behave for Python C/C++ extensions, which are imported (loaded) at runtime of a Python application. Maybe this is where I have a fundamental misunderstanding, but it led me to believe that in AIX this should behave similarly to SVR4/Linux. When scouring how Python interplays with AIX for building Python C/C++ extensions, this problem piqued my interest. When conducting my self-research, I came across http://download.boulder.ibm.com/ibmdl/pub/software/dw/aix/es-aix_ll.pdf, which helped me in understanding the differences between dynamic loading run-time linking. Thus, I went down the path of run-time linking with the '-G' flag, which appeared similar to what was done in Python for other operating systems. > This simply is masking a symptom in a naive and incorrect manner. This is leading up to my misunderstanding of what I was observing during my initial investigation of what was going on. I'll need to revisit the symptom being observed, but I vaguely recall missing symbols when building Python C/C++ extensions when the interpreter is configured with '--enable-shared'. Let me go back, undo the patch I have, and recreate the symptom/issue that was observed. > Use of runtime linking causes many internal changes to the behavior of AIX > applications, severely affecting performance and potentially causing overflow > of data structures. I'm really curious about this one. What internal changes, performance concerns, and overflow of data structures could occur? Luckily, I have observed nor experienced anything egregiously negative, thus far. Understanding these concerns will help bolster my understanding. > I absolutely will not allow Python to go down this path and introduce this > type of mistake. No worries. I'm trying to solve a problem and appeared to have gone down an incorrect path. Being able to better understand what the desired expectation is for Python and associated C/C++ extensions, will help guide me to focus where the misunderstanding is and to redirect focus on where the problem is that needs to be addressed. -- ___ Python tracker <https://bugs.python.org/issue37690> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37690] Simplify linking of shared libraries on the AIX OS
New submission from Eric N. Vander Weele : Have the approach of building shared libraries on the AIX operating system be similar to that of a System V system. The primary benefit of this change is the elimination of custom AIX paths and reducing the changes at `./configure` to affect just the `LDSHARED` environment variable. For background context, AIX sees shared libraries as fully linked and resolved, where symbol references are resolved at link-time and cannot be rebound at load-time. System V resolves all global symbols by the run-time linker. Thus, conventional shared libraries in AIX cannot have undefined symbols, while System V can. However, AIX does allow for run-time linking in allowing symbols to be undefined until load-time. Therefore, this change affects how linking of shared libraries are performed on AIX to behave similarly to that of System V. Given that symbols are now going to be allowed to be undefined for AIX, all the code paths for generating exported symbols and the related wrapper scripts go away. The real magic is in the `-G` flag for `LDSHARED`. Effectively, `-G` is equivalent to specifying the following: * -berok: Suppress errors even if there are unresolved symbols * -brtl: Enable run-time linking * -bnortllib: Do not include a reference to the run-time linker * -bnosymbolic: Assigns 'nosymbolic' attribute to most symbols (i.e., can be rebound) * -bnoautoexp: Prevent auto exportation of any symbols * -bM:SRE: Set the module type to reusable (i.e., require a private copy of the data area for each process). I have been using this patch for Python 3.7, 3.6, and 2.7 (with appropriate backporting adaptations) without issue for being able to build and use Python C/C++ extensions on AIX for about 6 months now. Given that we haven't had any issues, I felt it was appropriate to see if this would be accepted upstream. -- components: Build, Extension Modules files: aix-extension-simplify.patch keywords: patch messages: 348511 nosy: ericvw priority: normal severity: normal status: open title: Simplify linking of shared libraries on the AIX OS type: enhancement versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9 Added file: https://bugs.python.org/file48508/aix-extension-simplify.patch ___ Python tracker <https://bugs.python.org/issue37690> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37690] Simplify linking of shared libraries on the AIX OS
Change by Eric N. Vander Weele : -- pull_requests: +14732 stage: -> patch review pull_request: https://github.com/python/cpython/pull/14965 ___ Python tracker <https://bugs.python.org/issue37690> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue37599] Remove a vague statement in documentation of Integer Objects
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue37599> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36912] Can't left-align strings using f-strings or format()
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue36912> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36820] Captured exceptions are keeping user objects alive unnecessarily in the stdlib
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue36820> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36782] Add tests for the datetime C API
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue36782> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36753] Python modules not linking to libpython causes issues for RTLD_LOCAL system-wide
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue36753> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue36540] PEP 570: Python Positional-Only Parameters
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue36540> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler
Eric N. Vander Weele added the comment: I discovered that `Makefile.in.pre` injects include paths for building the interpreter, itself, which should probably not be passed along via distutils for building C/C++ extensions . https://github.com/python/cpython/blob/842a2f07f2f08a935ef470bfdaeef40f87490cfc/Makefile.pre.in#L101 It seems like more investigation is required in determining the purpose of `CPPFLAGS` with respect to building the interpreter and if `distutils` should be passing along at`./configure` time of the interpreter. For now, specifying include paths via `CFLAGS` will still suffice until the scope of `CPPFLAGS` is better defined. -- ___ Python tracker <https://bugs.python.org/issue33990> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35912] _testembed.c fails to compile when using --with-cxx-main in the configure step
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue35912> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35723] Add "time zone index" cache to datetime objects
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue35723> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue35378] multiprocessing.Pool.imaps iterators do not maintain alive the multiprocessing.Pool objects
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue35378> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34416] PyCapsule_Import seems to release the GIL without acquiring it
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue34416> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue34103] Python3.7 places cwd instead of a scripts path in sys.path.
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue34103> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler
Change by Eric N. Vander Weele : -- keywords: +patch pull_requests: +7606 stage: -> patch review ___ Python tracker <https://bugs.python.org/issue33990> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33990] CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler
New submission from Eric N. Vander Weele : When specifying CPPFLAGS during `./configure`, `sysconfig.get_config_var('CPPFLAGS')` does capture the originally specified flags. However, when building a C/C++ extension, any flags specified via CPPFLAGS are not present during compilation of extension source files. Since preprocessor flags (e.g., '-I' rules) may be used during `./configure` instead of `CFLAGS`, it appears that the `CPPFLAGS` captured should also be injected when customizing the compiler executable to be invoked. I have PR that will be submitted and linked shortly. -- components: Build, Distutils messages: 320683 nosy: dstufft, eric.araujo, ericvw priority: normal severity: normal status: open title: CPPFLAGS during ./configure are not passed-through in sysconfig.customize_compiler type: behavior versions: Python 2.7, Python 3.4, Python 3.5, Python 3.6, Python 3.7, Python 3.8 ___ Python tracker <https://bugs.python.org/issue33990> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33902] entry_points/console_scripts is too slow
Change by Eric N. Vander Weele : -- nosy: +ericvw ___ Python tracker <https://bugs.python.org/issue33902> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33586] 2.7.15 missing release notes on download page
New submission from Eric N. Vander Weele <eri...@gmail.com>: When visiting https://www.python.org/downloads/ and attempting to look at the 2.7.15 release notes, the 'Release Notes' link on the far right of the table, it resolves to https://www.python.org/downloads/. -- assignee: docs@python components: Documentation messages: 317185 nosy: docs@python, ericvw priority: normal severity: normal status: open title: 2.7.15 missing release notes on download page versions: Python 2.7 ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33586> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue33346] Syntax error with async generator inside dictionary comprehension
Change by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue33346> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32512] Add an option to profile to run library module as a script
Change by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32512> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix
Eric N. Vander Weele <eri...@gmail.com> added the comment: I can also confirm that OOT builds work as well. https://github.com/python/cpython/commit/395733d46bbc23d2f559eba4e5f75783f9bca6f1#diff-6fd819bc2460d3a50e561d2da6c09c02 addressed fixing this issue. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27632> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue32206] Run modules with pdb
Change by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue32206> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue31734] crash or SystemError in sqlite3.Cache in case it is uninitialized or partially initialized
Change by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue31734> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- pull_requests: +2464 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30769> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30769] [EASY (C)] test_execve_invalid_env() of test_os leaks references
Eric N. Vander Weele added the comment: I think I may have found it. $ git show 77703942c5997dff00c48f10df1b29b11645624c Appears to indicate key2 and val2 are *not* decremented in the error conditions. Should I PR a fix for this or let Serhiy resolve? -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30769> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue30541] Add restricted mocks to the python unittest mocking framework
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue30541> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28845] Clean up known issues for AIX
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- pull_requests: +1764 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29972] Skip tests known to fail on AIX
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29972> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29545] Python behavioral difference between Linux and AIX
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29545> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28845] Clean up known issues for AIX
Eric N. Vander Weele added the comment: > I request that you review issue27435 - in particular msg284557 - as I feel > ctypes implementation for AIX is broken - at least as far as the supporting > routines are concerned. I believe this request is outside the scope of this particular issue. > [...] AIX to test it. It appears there is an AIX system in Python's buildbot farm to validate the curses example. Is the next step have a core maintainer conduct the validation on an AIX system before this can move forward? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18235] _sysconfigdata.py wrong on AIX installations
Eric N. Vander Weele added the comment: > Hmm, the patch seems to be incomplete, as it just removes all the AIX support > scripts and mentions, without adding anything new to accommodate for the > removal. The new changes to accommodate for the script removal are in https://github.com/ericvw/cpython/commit/e889f5fd04c1b73ef06e9f6e60108b2a7718b7d6#diff-e2d5a00791bce9a01f99bc6fd613a39dR9159 and https://github.com/ericvw/cpython/commit/e889f5fd04c1b73ef06e9f6e60108b2a7718b7d6#diff-67e997bcfdac55191033d57a16d1408aR2403. > Please note that building with both xlc_r and gcc needs to be supported. I'll need to double check gcc, I have it working with xlc_r already. > Please open a new issue for this to discuss this change there. Absolutely, I'll clean up the patch and provide more details for the changes in another issue. Thanks. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18235> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18235] _sysconfigdata.py wrong on AIX installations
Eric N. Vander Weele added the comment: I have a (large) patch that completely eliminates the need for ld_so_aix and makeexp_aix. I've applied and been using this with for Python 2.7 and 3.5+, but I still need to go back and validate the tests to ensure everything passes as expected. It's still a work in progress, but the patch can be found at https://github.com/ericvw/cpython/commit/e889f5fd04c1b73ef06e9f6e60108b2a7718b7d6. If this is out of context for this particular issue, I'm happy to raise a new issue to have a focus discussion about potentially landing this. Ignore changes for README.AIX since I am addressing that in issue28845. I believe if we can eliminate the wrapper scripts, it will simplify the build and linking for AIX for the interpreter and C-extension modules. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18235> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29218] distutils: Remove unused install_misc class
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- components: -Build ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29218] distutils: Remove unused install_misc class
New submission from Eric N. Vander Weele: This class hasn't been used for quite some time. Seems safe to remove. -- components: Build, Distutils files: distutils-remove-install_misc-1.patch keywords: patch messages: 285080 nosy: dstufft, eric.araujo, ericvw, gward priority: normal severity: normal status: open title: distutils: Remove unused install_misc class type: enhancement versions: Python 3.7 Added file: http://bugs.python.org/file46235/distutils-remove-install_misc-1.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29218> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29172] blake2: Use lowest-common denominator signature of #pragma pack
New submission from Eric N. Vander Weele: Solaris Studio emits the following during compilation: "/tmp/Python-3.6.0/Modules/_blake2/impl/blake2.h", line 89: warning: ignoring malformed #pragma pack(n) "/tmp/Python-3.6.0/Modules/_blake2/impl/blake2.h", line 119: warning: ignoring malformed #pragma pack(n) To make the usage of '#pragma pack' more portable, change to the optional, single argument form. -- components: Build files: blake2-pragma-pack-1.patch keywords: patch messages: 284784 nosy: christian.heimes, ericvw priority: normal severity: normal status: open title: blake2: Use lowest-common denominator signature of #pragma pack type: compile error versions: Python 3.6 Added file: http://bugs.python.org/file46167/blake2-pragma-pack-1.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29172> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29171] blake2: Remove unused function to avoid undefined references
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- title: Remove unused blake2 function to avoid undefined references -> blake2: Remove unused function to avoid undefined references ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue29171] Remove unused blake2 function to avoid undefined references
New submission from Eric N. Vander Weele: Compilers are not required to elide static functions which are unused. Some compilers, such as Solaris Studio, always emits the function, even if the function does not get called within the translation unit. This becomes problematic when a static inline function calls a non-existent function; thus, resulting in (dynamic or static) link time errors. Given that 'blake2' is never referenced nor called, remove the definition of this function to increase portability for non-Linux toolchains. https://blogs.oracle.com/d/entry/inline_functions_in_c also indicates that this is case for Solaris Studio as well. -- components: Build files: blake2-remove-unused-function-1.patch keywords: patch messages: 284781 nosy: christian.heimes, ericvw priority: normal severity: normal status: open title: Remove unused blake2 function to avoid undefined references type: behavior versions: Python 3.6 Added file: http://bugs.python.org/file46165/blake2-remove-unused-function-1.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue29171> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28845] Clean up known issues for AIX
Eric N. Vander Weele added the comment: I have been able to test the example without a segmentation fault. $ python3.5 Python 3.5.2 (default, Nov 17 2016, 10:45:58) [C] on aix7 Type "help", "copyright", "credits" or "license" for more information. >>> import curses >>> from curses import panel >>> def mkpanel(scr): ... win = curses.newwin(8,8,1,1) ... pan = panel.new_panel(win) ... >>> curses.wrapper(mkpanel) >>> -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28852] sorted(range(1000)) is slower in Python 3.7 compared to Python 3.5
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28852> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28845] Clean up known issues for AIX
Eric N. Vander Weele added the comment: > Having a few issues fixed does not mean that Python has been fully tested. I uploaded cleanup-readme-aix2.patch, which revives back the line removed in question and only removes lines which reference issues. I just noticed the results of Python's tests on my AIX box differ from Python's PPC64 Buildbot. I'll investigate separately and submit patches for getting the tests to pass, which then it may be more appropriate to remove that line. -- Added file: http://bugs.python.org/file45713/cleanup-readme-aix2.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28845] Clean up known issues for AIX
New submission from Eric N. Vander Weele: This patch cleans up Misc/README.AIX for addressed known issues. Issues that have been marked fixed: #11184, #11185 Issues resolved by new AIX version: #1745108 Issues resolved, but not yet marked fixed/closed: #11188 Additionally, it looks like #10709 can be closed out as well. For #1745108 and #11188, I have verified they are addressed as of Python 3.5.2 on AIX 7.1 locally. The Python Buildbot is failing to build the curses module, but I believe Setup.local is needed for _curses and _curses_panel. I have gotten the aforementioned curses modules building locally and will figure out the appropriate channels getting Python's PPC64 AIX Buildbot updated independently. -- assignee: docs@python components: Documentation files: cleanup-readme-aix.patch keywords: patch messages: 282105 nosy: David.Edelsohn, docs@python, ericvw priority: normal severity: normal status: open title: Clean up known issues for AIX type: enhancement versions: Python 2.7, Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7 Added file: http://bugs.python.org/file45712/cleanup-readme-aix.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28845> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27632] build on AIX fails when builddir != srcdir, more than bad path to ld_so_aix
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27632> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18235] _sysconfigdata.py wrong on AIX installations
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue18235> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19521] Parallel build race condition on AIX since python-2.7
Eric N. Vander Weele added the comment: I may be able to simplify the build on AIX by removing ld_so_aix and python.exp entirely. Would this be a preferred solution if I am able to get something working? If so, should I create a separate issue to track the change? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19521> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19521] Parallel build race condition on AIX since python-2.7
Eric N. Vander Weele added the comment: I also have found this goes back since Python 2.7. I have refreshed the patched for the tip of CPython. What can I do to help push this forward? -- title: parallel build race condition on AIX since python-3.2 -> Parallel build race condition on AIX since python-2.7 Added file: http://bugs.python.org/file45665/aix-parallel-build-race-refresh.patch ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19521> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19521] parallel build race condition on AIX since python-3.2
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw versions: +Python 2.7, Python 3.6, Python 3.7 ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19521> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28029] Replace and empty strings
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28029> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28016] test_fileio fails on AIX
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28016> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue28000] Build fails on AIX with _LINUX_SOURCE_COMPAT flag
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue28000> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27859] argparse - subparsers does not retain namespace
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27859> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27863] multiple issues in _elementtree module
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27863> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27855] 2to3: Wrong code output w/ has_key
Eric N. Vander Weele added the comment: > Eric, remove the space from after the has_key call to match OP: > $ cat test.py > a.has_key(b)and x Good catch. Disregard msg273622 from me - I am able to replicate what the OP has described. -- ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27855] 2to3: Wrong code output w/ has_key
Eric N. Vander Weele added the comment: I am unable to replicate this issue with '2to3' from Python 2.7.12, Python 3.4.5, nor Python 3.5.2. Below is what I get with the versions I mentioned above. --- $ cat test.py a.has_key(b) and x $ 2to3 test.py RefactoringTool: Skipping optional fixer: buffer RefactoringTool: Skipping optional fixer: idioms RefactoringTool: Skipping optional fixer: set_literal RefactoringTool: Skipping optional fixer: ws_comma RefactoringTool: Refactored test.py --- test.py (original) +++ test.py (refactored) @@ -1 +1 @@ -a.has_key(b) and x +b in a and x RefactoringTool: Files that need to be modified: RefactoringTool: test.py --- -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <https://bugs.python.org/issue27855> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27643] test_ctypes fails on AIX with xlc
Eric N. Vander Weele added the comment: I am able to replicate what Michael has provided (i.e., xlc does not support signed short). Sorry for the confusion: I overlooked that the compiler is emitting the error with may patch and assuming 'unsigned'. So it seems like there are two things to address: (1) The bit fields should be explicitly marked as 'signed', since that appears to be the desired intent. (2) What to do about the test case. It seems like we all agree on (1). For (2), is this something that should be stubbed out on AIX/xlc, resolved by xlc for supporting implementation-defined (short) bit-fields, or remove the short members in the struct since C99 (6.7.2.1) allows "a qualified or unqualified version of _Bool, signed int, unsigned int, or some other implementation-defined type"; thus removing the ambiguity for implementation-defined behavior? -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27843] Spaces in filenames in setuptools
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27843> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27643] test_ctypes fails on AIX with xlc
Changes by Eric N. Vander Weele <eri...@gmail.com>: Removed file: http://bugs.python.org/file44189/ctypes_test_sign_bitfields.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27643] test_ctypes fails on AIX with xlc
Eric N. Vander Weele added the comment: > I believe that there is a specific reason that M, N, O, P, Q, R and S are "short". [...] Oops - this was an oversight when I created the patch. I just uploaded ctypes_test_sign_bitfields_2.diff, which is what I originally intended. -- Added file: http://bugs.python.org/file44190/ctypes_test_sign_bitfields_2.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25825] AIX shared library extension modules installation broken
Eric N. Vander Weele added the comment: > Patch1 looks fine to me, though I will have to rely on you people to verify > that it does what it’s supposed to. Do you want me to commit it straight > away, or wait for your follow-up patch? Independently, I have created a similar patch as well and can also verify that it does what it's suppose to do. > The second of two patches. This patch changes the definition of LDSHARED for > AIX in configure to reference the matching installed location as defined in > Makefile.pre.in by Patch1. [...] I can also confirm that Patch2 is necessary as well and does what it's suppose to do, having creating this patch independently as well. -- ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25825> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27643] test_ctypes fails on AIX with xlc
Eric N. Vander Weele added the comment: I came across this issue while researching where to post my patch (having come across this while building Python 2.7 & 3.x on AIX via xlc). > In general in C, if a bit-field has type “int” without a signed or unsigned > qualifier, it is up to the implementation which mode is chosen. Unfortunately, the ISO C standard leaves it up to the compiler to decide whether to default to 'signed' or 'unsigned' for non-qualified bit-field declarations. gcc defaults to signed (https://gcc.gnu.org/onlinedocs/gcc-3.3.6/gcc/Non_002dbugs.html); however, xlc defaults to unsigned (https://www.ibm.com/support/knowledgecenter/SSGH2K_13.1.3/com.ibm.xlc1313.aix.doc/compiler_ref/opt_bitfields.html). > [...] having bitfields working regardless of the compiler should be preferred. However, ctypes_test assumes an unqualified bit-field will be signed. To achieve bit-fields working regardless of the compiler, declarations must explicitly qualifying the sign for bit-fields. This makes the intent of what is expected explicit and avoids implementation-defined behavior that will differ from one compiler to the next. With patch ctypes_test_sign_bitfields.diff provided, I have verified ctypes_test passes on Python 2.7, Python 3.4, and Python 3.5 (on AIX & Solaris). If need be, I'm happy to provide before-&-after output of ctypes_test with & without the patch applied (or verification from others would be greatly appreciated). -- Added file: http://bugs.python.org/file44189/ctypes_test_sign_bitfields.diff ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue27643] test_ctypes fails on AIX with xlc
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue27643> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue25825] AIX shared library extension modules installation broken
Changes by Eric N. Vander Weele <eri...@gmail.com>: -- nosy: +ericvw ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue25825> ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com