[issue27546] Integrate tkinter and asyncio (and async)

2016-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: OK, in the context of IDLE it probably doesn't matter (though I recall that IDLE was given a hard time many years ago by people complaining about that same busy-waiting -- I guess batteries have improved somewhat since then). --

[issue17599] mingw: detect REPARSE_DATA_BUFFER

2016-07-26 Thread Martin Panter
Martin Panter added the comment: Here is a patch implementing my suggestion to unconditionally define everything, prefixed with Py_ instead. Not tested on a normal Windows build. -- versions: +Python 3.6 -Python 3.4 Added file: http://bugs.python.org/file43907/Py_REPARSE.patch

[issue27626] Spelling fixes

2016-07-26 Thread Xiang Zhang
Xiang Zhang added the comment: LGTM. -- nosy: +xiang.zhang ___ Python tracker ___ ___ Python-bugs-list

[issue27626] Spelling fixes

2016-07-26 Thread Martin Panter
Martin Panter added the comment: Here is a patch that fixes some more related misspellings. This includes some test method names, and one internal C function variable. FWIW nonexistant vs nonexistent may be a bit controversial (and neither look particularly wrong to me), so I didn’t change

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread Martin Panter
Changes by Martin Panter : Added file: http://bugs.python.org/file43905/ending-dot.v2.patch ___ Python tracker ___

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread Martin Panter
Changes by Martin Panter : Removed file: http://bugs.python.org/file43904/ending-dot.v2.patch ___ Python tracker ___

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread Martin Panter
Martin Panter added the comment: This version actually works :P -- Added file: http://bugs.python.org/file43904/ending-dot.v2.patch ___ Python tracker

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread Martin Panter
Martin Panter added the comment: I played with the server and group that is apparently used in the test: >>> server = NNTP_SSL("nntp.aioe.org") >>> [_, _, first, last, _] = server.group("fr.comp.lang.python") >>> first 2900 >>> last 2915 >>> server.body(last)[1].lines[-1] b'' >>>

[issue27576] An unexpected difference between dict and OrderedDict

2016-07-26 Thread Xiang Zhang
Xiang Zhang added the comment: I write a new version restoring the fast path for dict. It now uses PyDict_Next and seems to be much faster than the path using keys. [cpython]$ ./python -m timeit -s 'from collections import OrderedDict; d = {"a":1,"c":2,"b":3,"d":4}' 'OrderedDict(d)' 100

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread Martin Panter
Martin Panter added the comment: A few other buildbots shared this failure. It would be nice to see what the article is that is causing the failure, but I’m fairly confident we should just remove this part of the test. -- stage: -> needs patch ___

[issue11048] "import ctypes" causes segfault on read-only filesystem

2016-07-26 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag versions: +Python 3.5, Python 3.6 -Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue23085] update internal libffi copy to 3.2.1

2016-07-26 Thread koobs
koobs added the comment: Forgive me for asking a question that may have already been asked, or beaten to death, but what is preventing Python from requiring libffi as an external/required dependency, rather than keeping it and taking on the burden of fixes/backporting in lieu of updates or

[issue27630] Generator._encoded_EMTPY misspelling in email package

2016-07-26 Thread Martin Panter
New submission from Martin Panter: In the Generator.flatten() (Lib/email/generator.py), the code sets, among others, the instance attributes _EMPTY (correct spelling) and _encoded_EMTPY (misspelling). Further down in that class, _encoded_EMPTY (correct spelling) is set as a class attribute,

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread koobs
Changes by koobs : -- versions: +Python 3.6 ___ Python tracker ___ ___

[issue19613] test_nntplib: sporadic failures, test_article_head_body()

2016-07-26 Thread koobs
koobs added the comment: This just failed on 3.x (default) on koobs-freebsd{9,10} bots: == FAIL: test_article_head_body (test.test_nntplib.NetworkedNNTP_SSLTests)

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-26 Thread Yury Selivanov
Yury Selivanov added the comment: > A proper solution IMO should somehow merge the selectors so that a > single select() or whatever wakes up when either network I/O happens > or a UI event comes in (which could be something that Tk transparently > handles but it still needs to be given the

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: > wasting battery power ?! We live in slightly different computing universes > ;-). But I get the point. The last two files I uploaded use call_later and > I should stick with that. I should also add a note that the innermost > asyncio loop function

[issue27629] Cannot create ssl.SSLSocket without existing socket

2016-07-26 Thread Emanuel Barry
Emanuel Barry added the comment: Thank you for the report and the patch! :) This will need a test in Lib/test/test_ssl.py to check for this particular case. I've removed 3.3 and 3.4 from the Versions field, since these versions no longer get regular bugfixes (only security bugfixes may go in

[issue27629] Cannot create ssl.SSLSocket without existing socket

2016-07-26 Thread nemunaire
Changes by nemunaire : -- title: Cannot create raw ssl.SSLSocket -> Cannot create ssl.SSLSocket without existing socket ___ Python tracker

[issue27629] Cannot create raw ssl.SSLSocket

2016-07-26 Thread nemunaire
New submission from nemunaire: I got this stacktrace: File "test_ssl.py", line 3, in sock = ssl.SSLSocket(server_hostname="docs.python.org") File "/usr/lib/python3.4/ssl.py", line 536, in __init__ if sock.getsockopt(SOL_SOCKET, SO_TYPE) != SOCK_STREAM: AttributeError: 'NoneType'

[issue16353] add function to os module for getting path to default shell

2016-07-26 Thread Michael Felt
Michael Felt added the comment: An interesting read, but I am lost in what the goal is. e.g., on AIX, which I know well, the system default is /bin/ksh (aka /usr/bin/ksh). However, /bin/sh (/usr/bin/sh) is available as well. My expectation is that on Linux the default shell is /bin/bash, and

[issue25825] AIX shared library extension modules installation broken

2016-07-26 Thread Michael Felt
Michael Felt added the comment: hmm. needs patch. For what? One comment says a change will be undone. If a patch is expected for src/builddir issue: a) I sinned - that is a new issue, and should be posted seperately. b) i do not know autotools well enough to solve the srcdir and builddir

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread Doug Hoskisson
Doug Hoskisson added the comment: My suggestion for this documentation: """ Return the number of items in the queue. Note, in multi-threading this mostly just serves as an approximation, and information from this doesn’t guarantee that a subsequent get() or put() will not block. """

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread Doug Hoskisson
Doug Hoskisson added the comment: One thing that is important to recognize in considering this, is which information is specific to what is being documented, and which information is more general. Some people may think that documentation should only give information specific to what is being

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like th Morocco issue has been reported to CentOS recently but they kicked it upstream. https://sourceware.org/ml/libc-help/2016-04/msg0.html -- ___ Python tracker

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Also reported for Ubuntu: https://bugs.launchpad.net/ubuntu/+source/glibc/+bug/1587128 -- ___ Python tracker ___

[issue24214] Exception with utf-8, surrogatepass and incremental decoding

2016-07-26 Thread RalfM
RalfM added the comment: I just tested Python 3.6.0a3, and that (mis)behaves exactly like 3.4.3. -- versions: +Python 3.6 ___ Python tracker ___

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-26 Thread Steve Dower
Steve Dower added the comment: It's core Python, but it's specifically intended for producing redistributable installers containing Python packages. This is not something that the embedded distro is meant for, and it neatens things up to omit them. There is very little information because

[issue27346] Implement os.readv() / os.writev() in Windows port

2016-07-26 Thread Марк Коренберг
Changes by Марк Коренберг : -- title: Implement os.readv() / os.writev() -> Implement os.readv() / os.writev() in Windows port ___ Python tracker

[issue27617] Compiled bdist_wininst missing from embedded distribution

2016-07-26 Thread Michael Smith
Michael Smith added the comment: Thanks so much Steve I got it working right away! I peeked into the bdist_wininst.py and saw that it also depended on some local exe files. Copied both of those to the embedded and everything worked like a charm. I did read the documentation previously so I

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread Doug Hoskisson
Doug Hoskisson added the comment: The way that this whole page of documentation is written does not suggest that this class is ONLY for use in a multi-threaded setting. This class can be used without multi-threading, right? Wouldn't it be useful to know whether this function does give the

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Berker Peksag
Berker Peksag added the comment: See also issue 25431. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue25431] implement address in network in ipaddress module

2016-07-26 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the report and for the patch, Aleksandr. This is a duplicate of issue 20825. See also issue 27628 for a similar report. -- dependencies: -speed up ipaddress __contain__ method nosy: +berker.peksag resolution: -> duplicate stage: patch

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread R. David Murray
R. David Murray added the comment: What if we just replaced the period with a colon? That is, the definition of "approximate" is the two rules in the second sentence. -- nosy: +rhettinger ___ Python tracker

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread Doug Hoskisson
Doug Hoskisson added the comment: Some strategies for approximating might report a size the the queue has never been and never will be. For example, a strategy could gather data and find the size is increasing at some rate, and approximate based on that rate, but then the rate of increase

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread R. David Murray
R. David Murray added the comment: I realized some time after I posted that my comment about it emulating C getopt needed a gloss. What I meant was that C getopt is the model, so there should be a sufficient argument that adding a feature is worthwhile. You are making that argument, but

[issue27622] int.to_bytes(): docstring is not precise

2016-07-26 Thread Марк Коренберг
Марк Коренберг added the comment: Ok. This is minor fix, I will not fight for my point of view :) -- resolution: -> rejected status: open -> closed ___ Python tracker

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This issue looks as a duplicate of issue20825. I think that if consider a network as a set of addresses, the operation "address in network" has the same meaning as for sets, but the operation "network in network" doesn't make a sense. Instead you should use

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: C getopt doesn't strip trailing spaces. What you mistook for stripping trailing spaces is actually a feature of GNU getopt that allows you to use shortened variant of long option. $ ./getopdemo "-- sp" 1 --eg 2 "-- ch" 3 option spam with arg 1 option

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread pmoody
Changes by pmoody : -- assignee: pmoody -> ___ Python tracker ___ ___ Python-bugs-list

[issue27628] ipaddress incompatibility with ipaddr: __contains__ between networks

2016-07-26 Thread Łukasz Langa
New submission from Łukasz Langa: ipaddr historically let users compare if one network is within another network: https://github.com/google/ipaddr-py/blob/master/ipaddr.py#L643 ipaddress specifically prohibits this comparison: https://hg.python.org/cpython/file/tip/Lib/ipaddress.py#l675 What

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: This afternoon, I realized that I would replace the async for loops with while loops with await sleep and eliminate the Timer class. I presume the tutorial will have other examples of how to write an async iterator. (If not, I would put is back in.) I also

[issue26226] Test failures with non-ascii character in hostname on Windows

2016-07-26 Thread STINNER Victor
STINNER Victor added the comment: Please keep it ok. I don't say that we are going to fix all issues, but it's good to have an issue which collects as much as possible information about the bug and how we can fix it. -- ___ Python tracker

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-26 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: It looks like PPC64 Fedora 3.x builder [1] also has a problem with a transition in 2037. [1]: http://buildbot.python.org/all/builders/PPC64%20Fedora%203.x -- ___ Python tracker

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: On Tue, Jul 26, 2016 at 03:27:29PM +, R. David Murray wrote: [...] > getopt is explicitly emulating the C getopt There are lots of differences between the C getopt and the Python version, and the Python version is described as offering an API "designed

[issue27626] Spelling fixes

2016-07-26 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +martin.panter, r.david.murray ___ Python tracker ___

[issue3119] pickle.py is limited by python's call stack

2016-07-26 Thread Tomas Gavenciak
Tomas Gavenciak added the comment: The issue is still present in Python 2.7.12 and Python 3.5.2, and the implementation has not been changed in the master branch either. You can test it with the attached program constructing a graph (simplified, but a realistic application), or with the

[issue24773] Implement PEP 495 (Local Time Disambiguation)

2016-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 95df96aa2f5a by Alexander Belopolsky in branch 'default': Issue #24773: Fixed tests failures on systems with 32-bit time_t. https://hg.python.org/cpython/rev/95df96aa2f5a -- ___ Python tracker

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Nice, the patch fixes the problem when python is built with gcc :) Running test_ctypes on the Android emulator when python is built for the arm architecture or the armv7 architecture gives in both cases the same successfull result: Ran 456 tests in

[issue26226] Test failures with non-ascii character in hostname on Windows

2016-07-26 Thread Emanuel Barry
Emanuel Barry added the comment: Since non-ASCII characters are not really supported in hostnames, I changed mine to a saner alternative. This issue can be closed then, since any test failure I encounter can no longer be because of this. One last thing: is it safe to say "Don't use non-ASCII

[issue23085] update internal libffi copy to 3.2.1

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: > Cross-compile CPython for ARM with clang fails in _ctypes due to > https://llvm.org/bugs/show_bug.cgi?id=20595. This bug is already fixed in > libffi. I have entered issue 27627 for this problem. -- nosy: +xdegaye

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: See also msg 269907 and msg269908. -- ___ Python tracker ___ ___

[issue27627] clang fails to build ctypes on Android armv7

2016-07-26 Thread Xavier de Gaye
New submission from Xavier de Gaye: The build is done with: clang --sysroot=/opt/android-ndk/platforms/android-21/arch-arm -target armv7-none-linux-androideabi -gcc-toolchain /opt/android-ndk/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 The error message: clang

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread R. David Murray
R. David Murray added the comment: koobs' results are also interesting, since they indicate that *something* changed on the python side that affected this for freebsd. -- ___ Python tracker

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

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: issue #27627: clang fails to build ctypes on Android armv7 -- dependencies: +clang fails to build ctypes on Android armv7 ___ Python tracker

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread R. David Murray
R. David Murray added the comment: Since we're talking about multi-threaded operations, the concept of "exact size at an arbitrary time" isn't operationally different from "a strategy used for approximating". The subsequent text clarifies what "approximately" means operationally. Specifying

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread R. David Murray
R. David Murray added the comment: There's also the fact that Eryk pointed out that there are different ways to implement this on Windows, so there might be something we want to "fix" there. It seems like we're not consistent in how we handle addresses in the various socket module functions.

[issue27626] Spelling fixes

2016-07-26 Thread Emanuel Barry
New submission from Emanuel Barry: LGTM. -- nosy: +ebarry stage: patch review -> commit review ___ Python tracker ___

[issue27622] int.to_bytes(): docstring is not precise

2016-07-26 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg271381 ___ Python tracker ___

[issue27622] int.to_bytes(): docstring is not precise

2016-07-26 Thread R. David Murray
R. David Murray added the comment: Looks correct to me as well. If you can think of a wording that would be clearer, Марк, that would be great, but it shouldn't make the docstring much wordier (we strive for conciseness in docstrings). That last phrase can't be just removed without omitting

[issue27622] int.to_bytes(): docstring is not precise

2016-07-26 Thread R. David Murray
R. David Murray added the comment: Looks correct to me as well. If you can think of a wording that would be clearer, Марк, that would be great, but it shouldn't make the docstring much wordier (we strive for conciseness in docstrings). That the last phrase can't be just removed without

[issue27546] Integrate tkinter and asyncio (and async)

2016-07-26 Thread Guido van Rossum
Guido van Rossum added the comment: Isn't this going to busy-wait, esp. with the loop.call_soon() version? Even with loop.call_later(0.1, tk_update) you're wasting battery power even if no network activity and no UI activity is happening. I'm not eager to document this as the right way to do

[issue27604] More details about `-O` flag

2016-07-26 Thread R. David Murray
R. David Murray added the comment: It might be better to reduce redundancy (ie: minimize the places that would need changing) by creating a cross link from the option description to the technical details in veryhigh.rst. You could make the existing words 'basic optimizations' the link text.

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread R. David Murray
R. David Murray added the comment: I agree with Serhiy. Python is a programming language, not a shell. It seems to me that it should not be second guessing a constant specified by the programmer. If the programmer puts spaces in the specification string, Python should respect that. I have

[issue27461] Optimize PNGs

2016-07-26 Thread Ville Skyttä
Changes by Ville Skyttä : Removed file: http://bugs.python.org/file43653/pngs.patch ___ Python tracker ___

[issue27461] Optimize PNGs

2016-07-26 Thread Ville Skyttä
Ville Skyttä added the comment: Updated patch against tip. Before: 289426 total After: 194638 total -- Added file: http://bugs.python.org/file43896/pngs.patch ___ Python tracker

[issue27626] Spelling fixes

2016-07-26 Thread SilentGhost
Changes by SilentGhost : -- assignee: -> docs@python components: +Documentation nosy: +SilentGhost, docs@python stage: -> patch review type: enhancement -> behavior versions: +Python 3.5 ___ Python tracker

[issue27626] Spelling fixes

2016-07-26 Thread Ville Skyttä
Changes by Ville Skyttä : -- files: spelling.patch keywords: patch nosy: scop priority: normal severity: normal status: open title: Spelling fixes type: enhancement versions: Python 3.6 Added file: http://bugs.python.org/file43895/spelling.patch

[issue27614] Race in test_docxmlrpc.py

2016-07-26 Thread R. David Murray
R. David Murray added the comment: OK, that's a good point. So I don't know the answer to your question. In some cases it may be mostly that the tests are old and written when the tooling was not as good. -- ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread Ned Deily
Ned Deily added the comment: Building python without zlib is support is pretty unusual today and certainly not recommended. I agree that it is not worth adding more complexity to the Python configure script or Makefile to cover this edge case dependency in pip. There are other potential

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread SilentGhost
SilentGhost added the comment: Well, there isn't anything to build in case of pip. I presume that was the decision made during the PEP implementation, so I'm adding the two core developers responsible. -- nosy: +dstufft, ncoghlan ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread Palm Kevin
Palm Kevin added the comment: Ok, but shouldn't it fail earlier? During "configure" or "make", not on "make install"... Perhaps with a message like "Unable to compile with pip because dependency zlib is missing" -- ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread SilentGhost
SilentGhost added the comment: I wouldn't consider that an issue to be honest, the zlib is a dependency of pip and this failure is not unexpected. -- resolution: -> not a bug stage: -> resolved status: open -> closed ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread Palm Kevin
Palm Kevin added the comment: Yes. You are right. This solves the problem for me since I don't need pip. Do you think I should close the issue or rename it into '"make install" fails with pip when missing zlib dependency' ? -- ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread Denny Weinberg
Changes by Denny Weinberg : -- nosy: +Denny Weinberg ___ Python tracker ___

[issue27516] Wrong initialization of python path with embeddable distribution

2016-07-26 Thread Denny Weinberg
Changes by Denny Weinberg : -- nosy: +Denny Weinberg ___ Python tracker ___

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread SilentGhost
SilentGhost added the comment: Seems like the issue is caused by pip installation, so you should be able to fix it using --without-ensurepip switch for configure. -- nosy: +SilentGhost ___ Python tracker

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread STINNER Victor
STINNER Victor added the comment: > I didn't, but an attacker leveraged this to bypass security. Ah, that's a real use case. Can you please rephrase the issue title to make it more explicit? Because in this issue, it's not obvious to me if octal addressses must be accepted on all platforms,

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Test results against patched libffi in Modules/_ctypes: shell@ASUS_Z00E_2:/data/local/tmp $ python3.6 -m test.test_ctypes

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: By msg264746, only ARM fails, so I patch libffi for arm and aarch64 triplets only -- keywords: +patch Added file: http://bugs.python.org/file43894/libffi-pr240.patch ___ Python tracker

[issue27625] "make install" fails when no zlib support available

2016-07-26 Thread Palm Kevin
New submission from Palm Kevin: It seems that on linux (red hat), the "make install" fails when no zlib support is available. (I have no zlib installed and I don't want to do so) I reproduced the problem with both python 3.5.1 and python 3.5.2 The command 'configure' and 'make' produced no

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread Matt Robenolt
Matt Robenolt added the comment: > Why do you need octal addresses? What is your use case? :-p I didn't, but an attacker leveraged this to bypass security. We had checks against `127.0.0.1`, but this resolved to `177.0.0.1` incorrectly, bypassing the check. We were using

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread STINNER Victor
STINNER Victor added the comment: > However, if someone wants to investigate further and finds a fix, we will > evaluate it. IMHO the best fix is to document that the exact behaviour depends on the platform, and that only IPv4 decimal and IPv6 hexadecimal are portable. Corner cases like IPv4

[issue27612] socket.gethostbyname resolving octal IP addresses incorrectly

2016-07-26 Thread STINNER Victor
STINNER Victor added the comment: I don't understand the point of the issue. Is it a documentation issue? Python doesn't parse anything: it's a thin wrapper on top of the standard C library. If you want to complain, report the issue to the maintainers of your C library ;-) -- nosy:

[issue27624] unclear documentation on Queue.qsize()

2016-07-26 Thread Doug Hoskisson
New submission from Doug Hoskisson: The documentation for Queue.qsize(): "Return the approximate size of the queue." "approximate" is unclear. It might suggest some strategy used for approximating, or it might be the exact size at an arbitrary time. It should be made more clear. --

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Who would want options --f o o, --f�oo, or --fоо? -- ___ Python tracker ___

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is against the convention. -- ___ Python tracker ___ ___

[issue27619] getopt should strip whitespace from long arguments

2016-07-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: Serhiy Storchaka added the comment: > It makes Python getopt behave less like the C getopt. Exactly! If C getopt allows whitespace in long options, it's a GOOD thing to avoid such a poor design. Who would want a option --foo (note the trailing space)?

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: I expect that ESC should always cancel, and RETURN/ENTER should always accepts (OK or Save or whatever the "main" button is) regardless of where the focus is. If you want a keyboard shortcut to push the button with focus, use SPACE, not ENTER. --

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: Thanks for looking into that problem. Can you provide a patch ? -- ___ Python tracker ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-26 Thread koobs
Changes by koobs : -- nosy: +koobs ___ Python tracker ___ ___ Python-bugs-list

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-26 Thread Xavier de Gaye
Changes by Xavier de Gaye : -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___

[issue26662] configure/Makefile doesn't check if "python" command works, needed to build Objects/typeslots.inc

2016-07-26 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5aff28f33b2a by Xavier de Gaye in branch '3.5': Issue #26662: Set PYTHON_FOR_GEN in configure https://hg.python.org/cpython/rev/5aff28f33b2a New changeset a290f992e69a by Xavier de Gaye in branch 'default': (merge from 3.5) Issue #26662: Set

[issue26942] android: test_ctypes crashes on armv7

2016-07-26 Thread Chi Hsuan Yen
Chi Hsuan Yen added the comment: Found libffi PR240 that fixes closures on Android: shell@ASUS_Z00E_2:/data/local/tmp $ python3.6 -m test.test_ctypes

[issue20948] -Wformat=2 -Wformat-security findings

2016-07-26 Thread Martin Panter
Martin Panter added the comment: GCC’s -Wformat options are documented at . We already enable -Wall by default, which implicitly enables -Wformat, but not -Wformat=2. Apparently, -Wformat=2 enables -Wformat-security,

[issue26851] android compilation and link flags

2016-07-26 Thread Xavier de Gaye
Xavier de Gaye added the comment: New patch. The sed commands used to evaluate ANDROID_API_LEVEL and _arm_arch do not need to discard comment lines and empty lines in the output of the preprocessor. -- Added file: http://bugs.python.org/file43893/build-flags_4.patch

[issue20948] -Wformat=2 -Wformat-security findings

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Seems warnings are gone after adding the const qualifier to static constant arrays (issue25923). -- ___ Python tracker

[issue26462] Patch to enhance literal block language declaration

2016-07-26 Thread Julien
Julien added the comment: @martin I reviewed my changes on `decimal.rst` and I now just fixing the indentation problem, so I don't change anything unrealated to fixing warnings, and don't break doctests. -- ___ Python tracker

[issue26462] Patch to enhance literal block language declaration

2016-07-26 Thread Julien
Julien added the comment: Here a new patch after reviewing comments on rietveld. -- Added file: http://bugs.python.org/file43892/issue26462.v5.diff ___ Python tracker

[issue20948] -Wformat=2 -Wformat-security findings

2016-07-26 Thread Jeffrey Walton
Jeffrey Walton added the comment: On Tue, Jul 26, 2016 at 4:31 AM, Martin Panter wrote: > > Martin Panter added the comment: > > The Modules/main.c cases are not errors. They are just long strings defined > as static constants, rather than literals passed in directly. >

  1   2   >