Re: Python Print Error

2016-07-26 Thread Jussi Piitulainen
Cai Gengyang writes: > How to debug this error message ? > > print('You will be ' + str(int(myAge) + 1) + ' in a year.') > Traceback (most recent call last): > File "", line 1, in > print('You will be ' + str(int(myAge) + 1) + ' in a year.') > ValueError: invalid literal for

[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

Python Print Error

2016-07-26 Thread Cai Gengyang
How to debug this error message ? print('You will be ' + str(int(myAge) + 1) + ' in a year.') Traceback (most recent call last): File "", line 1, in print('You will be ' + str(int(myAge) + 1) + ' in a year.') ValueError: invalid literal for int() with base 10: '' --

[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 ___

Re: reshape with xyz ordering

2016-07-26 Thread Nobody
On Tue, 26 Jul 2016 07:10:18 -0700, Heli wrote: > I sort a file with 4 columns (x,y,z, somevalue) and I sort it using > numpy.lexsort. > > ind=np.lexsort((val,z,y,x)) > > myval=val[ind] > > myval is a 1d numpy array sorted by x,then y, then z and finally val. > > how can I reshape correctly

Re: making executables smaller

2016-07-26 Thread Steven D'Aprano
On Wed, 27 Jul 2016 03:22 am, Carter Temm wrote: > Hi, > I’m writing a couple different projects at the moment, and when I compile > it into a single executable using pyinstaller, it becomes extremely large. What do you consider "extremely large"? Ten gigabytes? 500 kilobytes? Give us a clue.

[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

Re: Python environment on mac

2016-07-26 Thread Cameron Simpson
On 26Jul2016 06:52, Crane Ugly wrote: Mac OS X comes with its own version of python and structure to support it. So far it was good enough for me. Then I started to use modules that distributed through MacPorts and this is where I get lost. I do not quite understand how

Re: pyinstaller

2016-07-26 Thread Larry Martell
On Tue, Jul 26, 2016 at 8:49 PM, Tom Brown wrote: > I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs > and see if I can help if you have not solved it already. > > What is the issue you are having? If I import the requests module, then when I run the

[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

Re: pyinstaller

2016-07-26 Thread Tom Brown
I used pyinstaller quite a bit 3 years ago. I could brush off the cobwebs and see if I can help if you have not solved it already. What is the issue you are having? -Tom On Jun 21, 2016 16:57, "Larry Martell" wrote: > Anyone here have any experience with pyinstaller?

Re: making executables smaller

2016-07-26 Thread Carter Temm
OK. So I guess the question should be, how can I make these executables smaller in general? Sent from my iPhone > On Jul 26, 2016, at 5:13 PM, Dennis Lee Bieber wrote: > > On Tue, 26 Jul 2016 12:22:16 -0500, Carter Temm > declaimed the following:

[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

Re: Depending on enum34 from a library

2016-07-26 Thread Ethan Furman
On 07/24/2016 01:10 PM, Vasiliy Faronov wrote: I'm building a Python library where I want to use Python 3.4-style enums. Because I need to support Python 2.7, I'm considering using enum34 [1]. But I'm not sure how to do this: If I simply depend on enum34, it will install a module named `enum`

[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'

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread eryk sun
On Tue, Jul 26, 2016 at 6:31 PM, sth wrote: > > The restype is a ctypes Structure instance with a single __fields__ entry > (coords), which Watch the underscores with ctypes attributes. Your code spells it correctly as "_fields_". > is a Structure with two fields (len and

[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

Is there a documented pylibpd (pure data wrapper/library) API?

2016-07-26 Thread Michael Sperone
Hi everyone, I'm starting using the libpd wrapper/library for python (pylibpd), to load and use my pure data patches within Python. I was wondering if there was any online documentation for this python version? At the least I'm looking for a list of classes and methods. Thank you! Mike --

[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

ANN: PyQt v5.7 Released

2016-07-26 Thread Phil Thompson
PyQt v5.7 has been released. These are the Python bindings for the Qt application toolkit and runs on Linux, OS X, Windows, iOS and Android. Also released for the first time under the GPL are PyQtChart, PyQtDataVisualization and PyQtPurchasing. PyQtChart are the bindings for the Qt Charts

[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

Re: FW: error in python IDLE

2016-07-26 Thread Terry Reedy
On 7/26/2016 1:51 PM, Nakirekanti Jahnavi wrote: Sent from Mail for Windows 10 From: Nakirekanti Jahnavi The above is all I see. This is a text-only, no-attachment list. -- Terry Jan Reedy -- https://mail.python.org/mailman/listinfo/python-list

[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

Re: making executables smaller

2016-07-26 Thread Wildman via Python-list
On Tue, 26 Jul 2016 12:22:16 -0500, Carter Temm wrote: > Hi, > I’m writing a couple different projects at the moment, and when I > compile it into a single executable using pyinstaller, it becomes > extremely large. I’m guessing this is because of the modules used. > Because I’m not that skilled

[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

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread sth
On Tuesday, 26 July 2016 19:10:46 UTC+1, eryk sun wrote: > On Tue, Jul 26, 2016 at 12:06 PM, sth wrote: > > I'm using ctypes to interface with a binary which returns a void pointer > > (ctypes c_void_p) to a nested 64-bit float array: > > If this comes from a function result, are you certain

[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

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread eryk sun
On Tue, Jul 26, 2016 at 12:06 PM, wrote: > I'm using ctypes to interface with a binary which returns a void pointer > (ctypes c_void_p) to a nested 64-bit float array: If this comes from a function result, are you certain that its restype is ctypes.c_void_p? I commonly see

FW: error in python IDLE

2016-07-26 Thread Nakirekanti Jahnavi
Sent from Mail for Windows 10 From: Nakirekanti Jahnavi -- https://mail.python.org/mailman/listinfo/python-list

[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

making executables smaller

2016-07-26 Thread Carter Temm
Hi, I’m writing a couple different projects at the moment, and when I compile it into a single executable using pyinstaller, it becomes extremely large. I’m guessing this is because of the modules used. Because I’m not that skilled at python, I put stuff like for example, import sys. I imagine

[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

Re: Python 3.5 glob.glob() 2nd param (*) and how to detect files/folders beginning with "."?

2016-07-26 Thread Malcolm Greene
Hi Jussi, You answered my questions - thank you! Malcolm > 1. The signature for glob.glob() is "glob.glob(pathname, *, >recursive=False)". What is the meaning of the 2nd parameter listed >with an asterisk? It's not a parameter. It's special syntax to indicate that the remaining

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread sth
On Tuesday, 26 July 2016 16:36:33 UTC+1, Christian Gollwitzer wrote: > Am 26.07.16 um 17:09 schrieb sth: > > it's difficult to test a .dylib / .so using valgrind > > Why is it difficult? If you have a python script such that > > python mytests.py > > loads the .so and runs the tests,

Re: Python 3.5 glob.glob() 2nd param (*) and how to detect files/folders beginning with "."?

2016-07-26 Thread Peter Otten
Malcolm Greene wrote: > 2. Is there a technique for using glob.glob() to recognize files and >folders that begin with a period, eg. ".profile"? The documentation >states: "If the directory contains files starting with . they won’t >be matched by default.". Any suggestions on what the

Re: Python 3.5 glob.glob() 2nd param (*) and how to detect files/folders beginning with "."?

2016-07-26 Thread Jussi Piitulainen
Malcolm Greene writes: > In reading Python 3.5.1's glob.glob documentation[1] I'm puzzled by the > following: > > 1. The signature for glob.glob() is "glob.glob(pathname, *, >recursive=False)". What is the meaning of the 2nd parameter listed >with an asterisk? It's

[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

Python 3.5 glob.glob() 2nd param (*) and how to detect files/folders beginning with "."?

2016-07-26 Thread Malcolm Greene
In reading Python 3.5.1's glob.glob documentation[1] I'm puzzled by the following: 1. The signature for glob.glob() is "glob.glob(pathname, *, recursive=False)". What is the meaning of the 2nd parameter listed with an asterisk? 2. Is there a technique for using glob.glob() to recognize

[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.

Re: Possible to capture cgitb style output in a try/except section?

2016-07-26 Thread Malcolm Greene
Hi Steven and Peter, Steven: Interestingly (oddly???) enough, the output captured by hooking the cgitb handler on my system appears to be shorter than the default cgitb output. You can see this yourself via this tiny script: import cgitb cgitb.enable(format='text') x = 1/0 The solution I came

[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

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread Christian Gollwitzer
Am 26.07.16 um 17:09 schrieb sth: it's difficult to test a .dylib / .so using valgrind Why is it difficult? If you have a python script such that python mytests.py loads the .so and runs the tests, then valgrind --tool=memcheck python mytests.py should work. This should

Re: Python environment on mac

2016-07-26 Thread CFK
There are two variables you will need to set; PATH and PYTHONPATH. You set your PYTHONPATH correctly, but for executables like pip, you need to set the PATH as well. You MUST do that for each account! The reason it didn't work as root is because once you su to root, it replaces your PYTHONPATH and

[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

Re: NumPy frombuffer giving nonsense values when reading C float array on Windows

2016-07-26 Thread sth
On Tuesday, 26 July 2016 15:21:14 UTC+1, Peter Otten wrote: > > > I'm using ctypes to interface with a binary which returns a void pointer > > (ctypes c_void_p) to a nested 64-bit float array: > > [[1.0, 2.0], [3.0, 4.0], … ] > > then return the pointer so it can be freed > > > > I'm using the

[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

Re: reshape with xyz ordering

2016-07-26 Thread Peter Otten
Heli wrote: > I sort a file with 4 columns (x,y,z, somevalue) and I sort it using > numpy.lexsort. > > ind=np.lexsort((val,z,y,x)) > > myval=val[ind] > > myval is a 1d numpy array sorted by x,then y, then z and finally val. > > how can I reshape correctly myval so that I get a 3d numpy array

[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

Re: Why not allow empty code blocks?

2016-07-26 Thread Antoon Pardon
Op 24-07-16 om 21:00 schreef Chris Angelico: > A skilled craftsman in any field will choose to use quality tools. > They save time, and time is money.[/quote] Sure, but sometimes there is a flaw somewhere. A flaw whose consequences can be reduced by using an extra tool. If that is the case the

  1   2   >