[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for the response. I'm not too sure how to set the root directory for arm headers and libraries in the configure command line. So I've tried the below, but still not all of the extensions modules was not build (e.g math, socket, select) export

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Benjamin Peterson
Benjamin Peterson added the comment: Any different results with CFLAGS="-fno-gnu89-inline"? -- ___ Python tracker ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Could you please tell me if the decision to make the extension modules like math, socket, select etc taken in the configure step or is it left to the Makefile. Also could you please give me some hints on where to look for on how this decision is made (e.g file

[issue28428] Rename _futures module to _asyncio

2016-10-15 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9d06fdedae2b by INADA Naoki in branch '3.6': Issue #28428: Rename _futures module to _asyncio. https://hg.python.org/cpython/rev/9d06fdedae2b New changeset c2f3b7c56dff by INADA Naoki in branch 'default': Issue #28428: Rename _futures module to

[issue28428] Rename _futures module to _asyncio

2016-10-15 Thread INADA Naoki
Changes by INADA Naoki : -- status: open -> closed ___ Python tracker ___ ___

[issue28424] pkgutil.get_data() doesn't work with namespace packages

2016-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: For 3.4/5/6, I agree this is a documentation issue, where the data files need to be given a *non*-namespaced directory to live in. However, it's worth explicitly noting that subpackages of namespace packages can themselves be regular packages, so one possible

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Wierd. Modules like 'math', 'select' or '_socket' are added unconditionally in detect_modules() of setup.py. Did you disable modules in Modules/Setup.local or Modules/Setup or via the global variable `disabled_module_list` in setup.py? -- nosy: +Chi

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: I'm not able to access my work computer, I'll try later today at home. -- ___ Python tracker ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for your response. Please note that I haven't touched the Modules/Setup.local or Modules/Setup or the global variable `disabled_module_list` in setup.py However I'm noticing that the math is commented in the Modules/Setup on both cross compiling on

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Attaching the modules/set-up for natively building on x86_64 -- Added file: http://bugs.python.org/file45100/setup_x86_x86 ___ Python tracker

[issue28428] Rename _futures module to _asyncio

2016-10-15 Thread INADA Naoki
Changes by INADA Naoki : -- stage: commit review -> resolved ___ Python tracker ___

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Nick Coghlan
Changes by Nick Coghlan : -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker ___

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: Note: I'd be open to suggestions for comments in the pure Python implementation that would have helped you find its CPython counterpart in bltinmodule.c - it isn't immediately obvious from the current code that the actual __build_class__ code invoked by

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: I'm not clear on what discrepancy you're referring to, as I get the same (expected) exception for both the class statement and the dynamic type creation: >>> class MyDerived(MyClass, metaclass=metaclass_callable): ... pass ... Traceback (most recent call

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Nick Coghlan
Nick Coghlan added the comment: (I'll also note that my final comment there is rather different from my first draft, as I almost forgot myself that the namespace preparation logic lives in __build_class__ rather than type_new. Class definitions can actually bypass type entirely, even in

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also the clang cross compilation documentation at http://clang.llvm.org/docs/CrossCompilation.html. -- versions: +Python 3.7 -Python 3.6 ___ Python tracker

[issue28449] tarfile.open(mode = 'r:*', ignore_zeros = True) has 50% chance failed to open compressed tars?

2016-10-15 Thread Silver Fox
New submission from Silver Fox: Seems all `tarfile.open` will try all compress method(including `raw`) in random order, and `ignore_zeros` also hide the error during detecting compress method. So `raw` is used if tested before the rigth compress method, which is wrong. But there is no

[issue26851] android compilation and link flags

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: This new patch fixes the following: * Use BASECFLAGS instead of CCSHARED. * '-march=armv7-a' is not set in BASECFLAGS anymore as this is redundant: this option is already set in the configure command line or is implicitly set by the the first component of the

[issue28449] tarfile.open(mode = 'r:*', ignore_zeros = True) has 50% chance failed to open compressed tars?

2016-10-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +lars.gustaebel versions: +Python 2.7, Python 3.6, Python 3.7 -Python 3.4 ___ Python tracker

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: I assume from your logs that a native (not the cross-built one) python3.5 already exists and is on your PATH. What is the value of sys.builtin_module_names as given by this native python3.5 interpreter ? -- ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for your response Yes. There is a python 3.5 that is installed on the system (from apt-get) benny@whachamacallit:~$ which python3 /usr/bin/python3 benny@whachamacallit:~$ python3 Python 3.5.2 (default, Sep 10 2016, 08:21:44) [GCC 5.4.0 20160609] on

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: Your Setup file matches the one distributed with Python 3.5.2. Did you get the Python source from https://www.python.org/ ? -- ___ Python tracker

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for the response. Yes I've downloaded the XZ compressed source from python.org Based on your comment I've double checked the MD5 with https://www.python.org/downloads/release/python-352/ benny@whachamacallit:~/Downloads$ md5sum Python-3.5.2.tar.xz

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: please let me know if there is any additional steps I need to follow when building from the source downloaded from python.org -- ___ Python tracker

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: benjamin.peterson: I tried adding that option -fno-gnu89-inline conditionally for the 3.6.0b2 build, but it goes wrong in config with an error configure:3913: $? = 4 configure:3933: checking whether the C compiler works configure:3955: gcc -Wformat

[issue28450] Misleading/inaccurate documentation about unknown escape sequences

2016-10-15 Thread Lele Gaifax
New submission from Lele Gaifax: Python 3.6+ is stricter about escaped sequences in string literals. The documentation need some improvement to clarify the change: for example https://docs.python.org/3.6/library/re.html#re.sub first says that “Unknown escapes such as \& are left alone” then,

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: So the problem is that setup.py in build_extensions() does not build the extensions that have been already built statically into the native Ubuntu interpreter. The solution is to build first natively from source python3.5 and set the PATH environment

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- versions: +Python 3.6, Python 3.7 ___ Python tracker ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: To eliminate the issues introduced by the native python on the Ubuntu 16.04 host, I've set up a new Ubuntu Host with all the native python packages removed. But now when I try to build the make fails saying: arm-linux-gnueabihf-gcc -shared

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: @Xavier de Gaye : Thanks a lot for helping. Unfortunately I didn't notice your last post (Date: 2016-10-15 11:13). Kindly ignore my last quires on the native Python. I'll follow your steps and report back the results asap. --

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The cross-build uses a native python to run setup.py to build the extension modules, and to run 'python -S -m sysconfig --generate-posix-vars' and to byte compile the modules from the standard library. So you do need a native python. That is why you should

[issue28092] Build failure for 3.6 on Centos 5.11

2016-10-15 Thread Robin Becker
Robin Becker added the comment: After some searching I tried adding -std=gnu99 and the config goes through OK, but running make produces [root@d3cce9786c2e Python-3.6.0b2]# make -j2 gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -Wformat

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for the support and the detailed explanation on why the native python is necessary. I'm now able to successfully compile all the extension modules on an Ubuntu Machine where there isn't any Python packages installed. I'll go ahead and compile the python

[issue25571] Improve the lltrace feature with the Py_Debug mode

2016-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: I have to update my patch to python-3.7, I will provide a patch asap. -- ___ Python tracker ___

[issue24658] open().write() fails on 2 GB+ data (OS X)

2016-10-15 Thread Stéphane Wirtel
Stéphane Wirtel added the comment: Ned Deily, I added you because you are in the expert for the OSX platform. -- assignee: -> ned.deily ___ Python tracker

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-10-15 Thread Malthe Borch
Malthe Borch added the comment: You're right. The trailing comma just suppresses the newline. I updated the patch. -- Added file: http://bugs.python.org/file45105/0001-Allow-make-to-be-run-under-Python-3.patch ___ Python tracker

[issue15988] Inconsistency in overflow error messages of integer argument

2016-10-15 Thread Oren Milman
Changes by Oren Milman : Added file: http://bugs.python.org/file45108/testPatches.py ___ Python tracker ___

[issue15988] Inconsistency in overflow error messages of integer argument

2016-10-15 Thread Oren Milman
Oren Milman added the comment: Sorry for taking so long to come up with a patch.. proposed changes 1. in Python/getargs.c in seterror, the following patches: - add a parameter 'p_format_code' - a pointer to the format code whose conversion failed.

[issue28452] Remove _asyncio._init_module function

2016-10-15 Thread INADA Naoki
New submission from INADA Naoki: _asyncio._init_module() looks ugly. This patch imports external dependency when importing _asyncio. -- components: asyncio files: asyncio-speedup-refactoring.patch keywords: patch messages: 278731 nosy: gvanrossum, inada.naoki, yselivanov priority:

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-10-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: print in Python 2 doesn't add a space after whitespace characters except a space ('\t', '\n', '\r', etc). -- nosy: +serhiy.storchaka ___ Python tracker

[issue28143] ASDL compatibility with Python 3 system interpreter

2016-10-15 Thread Martin Panter
Martin Panter added the comment: Are you sure about adding the space after tab? I am no Python 2 expert, but I don’t see it: $ python2 -c 'print "\t", ""' | cat -A ^I$ Anyway, I’m not happy applying this patch unless it is clear that raising the Python version required to rebuild ASDL stuff

[issue28441] sys.executable is ambiguous on Cygwin without .exe suffix

2016-10-15 Thread Masayuki Yamamoto
Masayuki Yamamoto added the comment: This patch has impact to end user, thus I don't agree to apply as far as Cygwin to avoid user surprise. I think to need a consistency between other platforms having executable suffix (e.g. MSYS2), and also the patch needs short documentation of changing

[issue27815] Make SSL suppress_ragged_eofs default more secure

2016-10-15 Thread Martin Panter
Martin Panter added the comment: Patch v2 also adds a new attribute to context objects. With this I can work around my Google server bug: context = ssl.create_default_context(ssl.Purpose.SERVER_AUTH) context.suppress_ragged_eofs = True handler = urllib.request.HTTPSHandler(context=context)

[issue28447] socket.getpeername() failure on broken TCP/IP connection

2016-10-15 Thread Martin Panter
Martin Panter added the comment: I still think something is closing your socket object. I cannot see what it is from the code you posted though. If you update the print() call, I expect you will see that it is closed, and the file descriptor is set to -1: print("sock_err @ ", msg[1],

[issue26865] Meta-issue: support of the android platform

2016-10-15 Thread Ethan Smith
Changes by Ethan Smith : -- nosy: +Ethan Smith ___ Python tracker ___ ___ Python-bugs-list

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: The "removed_modules.patch" applied cleanly on the Python 3.6.0b2 sources downloaded from: https://www.python.org/ftp/python/3.6.0/Python-3.6.0b2.tar.xz and worked SUCCESSFULLY The environment is the same as in my last post Attached please find the build logs

[issue28453] SSLObject.selected_alpn_protocol() not documented

2016-10-15 Thread Alex Grönholm
New submission from Alex Grönholm: the ssl.SSLObject class supports selected_alpn_protocol() like ssl.SSLSocket, but it is not mentioned on the list of supported methods. -- assignee: christian.heimes components: SSL messages: 278739 nosy: alex.gronholm, christian.heimes priority:

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Changes by Benny K J : Added file: http://bugs.python.org/file45110/python_3_5_2_remove_modules.config.log ___ Python tracker ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: Thank you for the response and really appreciate the quick patch. The "removed_modules.patch" applied cleanly on the Python sources downloaded from: https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz and worked SUCCESSFULLY on HOST: Ubuntu 16.04 LTS

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Changes by Benny K J : Added file: http://bugs.python.org/file45112/python_3_6_0b2_remove_modules.config.log ___ Python tracker ___

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Neil Girdhar
Neil Girdhar added the comment: >From your comment: >>> MyDerivedDynamic = new_class("MyDerivedDynamic", (MyClass,), >>> dict(metaclass=metaclass_callable)) Traceback (most recent call last): File "", line 1, in File "/usr/lib64/python3.5/types.py", line 57, in new_class return

[issue28428] Rename _futures module to _asyncio

2016-10-15 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed ___ Python tracker ___ ___

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Benny K J
Benny K J added the comment: I've confirmed that the suggested steps works fine on Ubuntu 14.04 as well as 16.04 versions standard procedure for cross-compilation: * Configure the python source, for example update Modules/Setup. * Build python natively out of the source tree [1]. *

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Neil Girdhar
Neil Girdhar added the comment: The documentation suggests that you can have a metaclass that does is not the "most derived metaclass" provided you specify one that is not an instance of type. This doesn't work in CPython, so I would suggest fixing the documentation using the text I

[issue28437] Class definition is not consistent with types.new_class

2016-10-15 Thread Neil Girdhar
Neil Girdhar added the comment: "As a result of this, *both* implementations include a conditional check for a more derived metaclass in their namespace preparation logic, as well as an unconditional call to that metaclass derivation logic from type_new if the calculated metaclass is either

[issue28444] Missing extensions modules when cross compiling python 3.5.2 for arm on Linux

2016-10-15 Thread Xavier de Gaye
Xavier de Gaye added the comment: The attached patch fixes the problem and allows cross-building the extension modules independently of the configuration of the native interpreter that may have set some modules to be statically built. The patch also prints now the list of modules that are

[issue28442] tuple(a list subclass) does not iterate through the list

2016-10-15 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: fixed -> out of date stage: -> resolved ___ Python tracker ___

[issue28451] pydoc.safeimport() raises ErrorDuringImport() if __builtin__.__import__ is monkey patched

2016-10-15 Thread Joon-Kyu Park
New submission from Joon-Kyu Park: `pydoc.safeimport()` should return `None` if the module isn't found. If Python's default `__import__` is monkey patched, (e.g., by using gevent) the function misbehaves. According to the current implementation, the function returns `None` by checking the only