[issue23457] make test failures

2015-02-12 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +David.Edelsohn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23457 ___ ___ Python-bugs-list mailing

[issue15590] --libs is inconsistent for python-config --libs and pkgconfig python --libs

2015-02-12 Thread Tim Smith
Tim Smith added the comment: On Darwin, it would be nice if LINKFORMODULE used -undefined dynamic_lookup instead of explicitly linking to a framework binary. Modules with explicit links to a framework cause segfaults when they are imported from a different, but compatible, framework

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-02-12 Thread Demian Brecht
Demian Brecht added the comment: Thanks for the clarification Martin. After giving this some further thought, I think that the best way to go is to /only/ calculate and add the Content-Length header if each element in the list or tuple is pre-encoded. If it's mixed or only strings, then there

Re: Bad text appearance in IDLE

2015-02-12 Thread Terry Reedy
On 2/12/2015 7:26 AM, ast wrote: Hello Here is how text appears in IDLE window http://www.cjoint.com/data/0BmnEIcxVAx.htm Do you get anything similar when running the console interpreter? Yesterday evening I had not this trouble. It appears this morning. I restarted my computer with no

[issue15914] multiprocessing.SyncManager connection hang

2015-02-12 Thread Nick Coghlan
Nick Coghlan added the comment: 3.2 is in security-fix only mode, so nothing's going to change there. For 3.3+, the per-module import lock design means the issue doesn't happen. However, I wonder if there may be some now dead code relating to the global import lock that could be deleted.

[issue23350] Content-length is incorrect when request body is a list or tuple

2015-02-12 Thread Martin Panter
Martin Panter added the comment: The length of an encoded Latin-1 string should equal the length of the unencoded text string, since it is a one-to-one character-to-byte encoding. So encoding should not actually be needed to determine the Latin-1 encoded length. Though I’m not particularly

[issue22430] Build failure if configure flags --prefix or --exec-prefix is set

2015-02-12 Thread Ned Deily
Ned Deily added the comment: Since there has been no followup to this issue, I'm going to close it. Feel free to reopen if you can document a reproducible problem with a Python source release. -- resolution: - works for me stage: - resolved status: open - closed

[issue23383] Clean up bytes formatting

2015-02-12 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23383 ___

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread Steve Dower
Steve Dower added the comment: Wow, I didn't expect that so quickly :) I'll check these out as soon as I can, but they look okay from a quick glance on my phone. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23450

[issue20503] super behaviour and abstract base classes (either implementation or documentation/error message is wrong)

2015-02-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +rhettinger title: super behavioru and abstract base classes (either implementation or documentation/error message is wrong) - super behaviour and abstract base classes (either implementation or documentation/error message is

[issue21107] Add pgen.vcxproj to allow regenerating grammar files on Windows

2015-02-12 Thread Zachary Ware
Zachary Ware added the comment: The patch is way out of date, pgen.vcxproj needs to be updated to match the rest of our projects. If nobody else takes this over (and it is low priority for a reason!), I'll get back to it eventually. -- nosy: +steve.dower

[issue20391] windows python launcher should support explicit 64-bit version

2015-02-12 Thread Steve Dower
Steve Dower added the comment: It may be useful if you want an error rather than the 32-bit version, though there are other ways to check that if it's critical and it probably is better in the script. Patches welcome :) -- ___ Python tracker

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: With #20079 closed but #20087 still open where do we stand with this issue? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20088

[issue23454] plistlib and xml.parsers.expat python3 problems with strings and bytes

2015-02-12 Thread Ulrich Dorsch
New submission from Ulrich Dorsch: TypeError: startswith first arg must be str or a tuple of str, not bytes In line 558 of plistlib.py at the beginnging of def _is_fmt_xml(header) is the problem, caused by the use of the byte arguments defined in line 555 (prefixes = (b'?xml', b'plist')).

[issue21568] Win32 pip doesn't use relative path to found site-packages.

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: I'm not certain exactly what is being asked for here so could the originator please clarify their needs? I also don't really know who owns this hence the changes to the nosy list. -- components: +Windows nosy: +BreamoreBoy, dstufft, steve.dower,

Re: Python discussed in Nature

2015-02-12 Thread Marko Rauhamaa
Fabien fabien.mauss...@gmail.com: But this was exactly my point! Today in 2015 it's incredibly easy to write py2/py3 code for a scientist. The whole SciPy track has done the transition. Not an issue anymore either, for me at least (python youngster ;-) I write both Py2 and Py3 code, but I

[issue23297] ‘tokenize.detect_encoding’ is confused between text and bytes: no ‘startswith’ method on a byte string

2015-02-12 Thread Pod
Pod added the comment: Not the OP, but I find this message a bug because it's confusing from the perspective of a user of the tokenize() function. If you give tokenize a readlines() that returns a str, you get this error message that confusingly states that something inside tokenize must be a

[issue23314] Disabling CRT asserts in debug build

2015-02-12 Thread Steve Dower
Steve Dower added the comment: _Py_verifyfd has to go away, unfortunately. It requires inside knowledge of the exact CRT version, and with VC14 the CRT will automatically upgrade so that we're always using the latest. I've gotten a function added to the CRT to make it unnecessary for release

[issue23146] Incosistency in pathlib between / and \

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Ping. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23146 ___ ___ Python-bugs-list mailing list

[issue21874] test_strptime fails on rhel/centos/fedora systems

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Have there been any recent reports of this test failing on these platforms? -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21874

[issue17306] Improve the way abstract base classes are shown in help()

2015-02-12 Thread Mark Lawrence
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17306 ___ ___

[issue23446] Use PyMem_New instead of PyMem_Malloc

2015-02-12 Thread Stefan Krah
Stefan Krah added the comment: Yes, but these (degenerate) arrays tend to arise only as a result of slicing. Last time I looked NumPy had MAX_NDIM=32, so we should be fine. -- ___ Python tracker rep...@bugs.python.org

Random forest and svm for remote sensing in python

2015-02-12 Thread Leo Kris Palao
Hi Python Users, Good day! I am currently using ENVI for my image processing/remote sensing work, but would love to divert into open source python programming for remote sensing. Can you give me some good sites where I can see practical examples of how python is used for remote sensing specially

[issue20699] Document that binary IO classes work with bytes-likes objects

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: The patch LGTM. But native speaker should check documentation part. -- title: Behavior of ZipFile with file-like object and BufferedWriter. - Document that binary IO classes work with bytes-likes objects ___

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: signal_cast_socket_t.patch LGTM. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23450 ___ ___

Re: Group by interval time

2015-02-12 Thread MRAB
On 2015-02-12 12:34, charles.sart...@gmail.com wrote: Hello there! I`m trying to group by a list of Row() objects in 12days interval and sum(). values. Here is an example of the list [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), Row(time=datetime.datetime(2013, 1, 2, 0,

Bad text appearance in IDLE

2015-02-12 Thread ast
Hello Here is how text appears in IDLE window http://www.cjoint.com/data/0BmnEIcxVAx.htm Yesterday evening I had not this trouble. It appears this morning. I restarted my computer with no effect. A windows Vista update has been done this morning, with about 10 fixes. I suspect something gone

Re: Group by interval time

2015-02-12 Thread alister
On Thu, 12 Feb 2015 04:34:03 -0800, charles.sartori wrote: Hello there! I`m trying to group by a list of Row() objects in 12days interval and sum(). values. Here is an example of the list [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), Row(time=datetime.datetime(2013,

Re: Group by interval time

2015-02-12 Thread Peter Otten
charles.sart...@gmail.com wrote: Hello there! I`m trying to group by a list of Row() objects in 12days interval and sum(). values. Here is an example of the list [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), [Row(time=datetime.datetime(2013, 1, 2, 0, 0),

[issue21107] Add pgen.vcxproj to allow regenerating grammar files on Windows

2015-02-12 Thread Mark Lawrence
Mark Lawrence added the comment: Would you guys please review the patch as it's Double Dutch to me. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21107 ___

Group by interval time

2015-02-12 Thread charles . sartori
Hello there! I`m trying to group by a list of Row() objects in 12days interval and sum(). values. Here is an example of the list [Row(time=datetime.datetime(2013, 1, 1, 0, 0), sum=4676557380615), Row(time=datetime.datetime(2013, 1, 2, 0, 0), sum=6549630855895),

Re: Alternative to multi-line lambdas: Assign-anywhere def statements

2015-02-12 Thread Ian Kelly
On Wed, Feb 11, 2015 at 8:56 PM, Chris Angelico ros...@gmail.com wrote: On Thu, Feb 12, 2015 at 1:57 PM, Ian Kelly ian.g.ke...@gmail.com wrote: The reason I don't like this replacing def isn't because the name is necessarily lost. It's because the lack of the well-defined def statement

[issue21568] Win32 pip doesn't use relative path to found site-packages.

2015-02-12 Thread Steve Dower
Steve Dower added the comment: Do you mean pip.exe? Does running 'python.exe -m pip install ...' work for you? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21568 ___

[issue20088] locale.getlocale() fails if locale name doesn't include encoding

2015-02-12 Thread eryksun
eryksun added the comment: For 3.5 this affects Windows as well, since the new CRT supports RFC1766 language codes, but only without a codepage spec: Python 3.5.0a1 (v3.5.0a1:5d4b6a57d5fd, Feb 7 2015, 18:15:14) [MSC v.1900 64 bit (AMD64)] on win32 Type help, copyright, credits or

[issue23450] Possible loss of data warnings building 3.5 Visual Studio Windows 8.1 64 bit

2015-02-12 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9e10c4255277 by Victor Stinner in branch 'default': Issue #23450: Fix signal.set_wakeup_fd() on Windows https://hg.python.org/cpython/rev/9e10c4255277 -- nosy: +python-dev ___ Python tracker

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Updated patch. Thanks for the review Serhiy. -- Added file: http://bugs.python.org/file38110/scandir-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524

[issue23447] Relative imports with __all__ attribute

2015-02-12 Thread Brett Cannon
Brett Cannon added the comment: If you put a print call after your `from . import *` call you will notice it never gets executed. Basically import is still in the middle of finishing imports when that import * is reached, including setting the module attributes on the package. Basically you

Re: Group by interval time

2015-02-12 Thread charles . sartori
Thank you Peter, I was doing wrong at get_key function... Thnak you so much! -- https://mail.python.org/mailman/listinfo/python-list

[issue15914] multiprocessing.SyncManager connection hang

2015-02-12 Thread Brett Cannon
Brett Cannon added the comment: I'm adding Nick to see if he has anything to add since he was the one that worked on the change that Richard said caused the problem. But in my opinion this is in the same realm as importing as a side-effect of spawning a thread; don't do it. -- nosy:

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file38110/scandir-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22524 ___

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: (I regenerated scandir-4.patch, I had a local private changeset. I removed it.) -- Added file: http://bugs.python.org/file38111/scandir-4.patch ___ Python tracker rep...@bugs.python.org

[issue23454] plistlib and xml.parsers.expat python3 problems with strings and bytes

2015-02-12 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: All correct. plistlib.load() requires binary file object as documented [1]. [1] https://docs.python.org/3/library/plistlib.html#plistlib.load -- nosy: +ronaldoussoren, serhiy.storchaka resolution: - not a bug status: open - closed

[issue23314] Disabling CRT asserts in debug build

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: An environment variable is an easy way to make sure that all subprocesses also have assert dialogs disabled. In release builds they are always disabled, hence the _DEBUG check. If _PyVerify_fd() must go, I would prefer to always disable CRT check. Otherwise,

Re: Python discussed in Nature

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 3:56 AM, Marko Rauhamaa ma...@pacujo.net wrote: $ python3 Python 3.4.1 (default, Nov 3 2014, 14:38:10) [GCC 4.9.1 20140930 (Red Hat 4.9.1-11)] on linux Type help, copyright, credits or license for more information. import sys sys.path = [ '/usr/lib64/python2.7' ] +

Re: Odd version scheme

2015-02-12 Thread Tim Chase
On 2015-02-12 17:45, Gisle Vanem wrote: I tried using Interactive Python with a PyQt4 console: IPython.exe qtconsole But got a ImportError: IPython requires PyQT4 = 4.7, found 4.10.4 Looking at Ipython's check (in site-packages\IPython\external\qt.py): if QtCore.PYQT_VERSION_STR

Re: Odd version scheme

2015-02-12 Thread Skip Montanaro
I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang decided that there would be no micro versions 9. There are too many similar assumptions about version numbers out in the real world. Skip -- https://mail.python.org/mailman/listinfo/python-list

[issue23447] Relative imports with __all__ attribute

2015-02-12 Thread Antonio Cota
Antonio Cota added the comment: I tried the following on python 3.5.0a1: #init.py __all__ = ['second', 'first'] print('i\'m starting the directory') #first.py print('hi, i\'m the first') from . import second #second.py print('hi, i\'m the second') from . import first import a.first i'm

[issue21568] Win32 pip doesn't use relative path to found site-packages.

2015-02-12 Thread Steve Dower
Steve Dower added the comment: In that case, this should be reported to the setuptools project, since they are responsible for creating the pip.exe launcher when pip is installed. -- ___ Python tracker rep...@bugs.python.org

Re: Python discussed in Nature

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa ma...@pacujo.net wrote: Fabien fabien.mauss...@gmail.com: But this was exactly my point! Today in 2015 it's incredibly easy to write py2/py3 code for a scientist. The whole SciPy track has done the transition. Not an issue anymore either, for me

[issue23314] Disabling CRT asserts in debug build

2015-02-12 Thread Steve Dower
Steve Dower added the comment: To be clearer (while still respecting the confidentiality agreement I'm under), previously this code would (if _DEBUG) display an assertion dialog and (regardless of _DEBUG) terminate the process: close(fd); // succeeds, assuming a good fd close(fd); //

[issue21568] Win32 pip doesn't use relative path to found site-packages.

2015-02-12 Thread 勇刚 罗
勇刚 罗 added the comment: yes python -m pip works for me but pip.exe doesn't work 2015年2月12日 下午10:55于 Steve Dower rep...@bugs.python.org写道: Steve Dower added the comment: Do you mean pip.exe? Does running 'python.exe -m pip install ...' work for you? --

[issue23314] Disabling CRT asserts in debug build

2015-02-12 Thread Steve Dower
Steve Dower added the comment: EBADF will still be returned; _PyVerify_fd is only there to prevent the assertion dialogs in debug builds. Release builds will not need _PyVerify_fd at all (though it's public, so it will remain, but it won't be necessary to protect calls into the CRT). As I

[issue10486] http.server doesn't set all CGI environment variables

2015-02-12 Thread Demian Brecht
Changes by Demian Brecht demianbre...@gmail.com: -- nosy: +demian.brecht ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10486 ___ ___

[issue23442] http.client.REQUEST_HEADER_FIELDS_TOO_LARGE renamed in 3.5

2015-02-12 Thread Demian Brecht
Demian Brecht added the comment: The attached patch fixes the name -- keywords: +patch Added file: http://bugs.python.org/file38112/issue23442.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23442

Async/Concurrent HTTP Requests

2015-02-12 Thread Ari King
Hi, I'd like to query two (or more) RESTful APIs concurrently. What is the pythonic way of doing so? Is it better to use built in functions or are third-party packages? Thanks. Best, Ari -- https://mail.python.org/mailman/listinfo/python-list

Re: Odd version scheme

2015-02-12 Thread Ian Kelly
On Thu, Feb 12, 2015 at 9:45 AM, Gisle Vanem gva...@yahoo.no wrote: I tried using Interactive Python with a PyQt4 console: IPython.exe qtconsole But got a ImportError: IPython requires PyQT4 = 4.7, found 4.10.4 Looking at Ipython's check (in site-packages\IPython\external\qt.py): if

Re: Odd version scheme

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 3:45 AM, Gisle Vanem gva...@yahoo.no wrote: Looking at Ipython's check (in site-packages\IPython\external\qt.py): if QtCore.PYQT_VERSION_STR '4.7': raise ImportError(IPython requires PyQt4 = 4.7, found %s%QtCore.PYQT_VERSION_STR) So even if '4.10' '4.7', my

[issue9698] When reusing an handler, urllib(2)'s digest authentication fails after multiple regative replies

2015-02-12 Thread Erick Jones
Erick Jones added the comment: This ended up biting me also. I had a list of URLs to fetch with authentication. One of the URLs was bad (returning 401 even with authentication), and that was causing all of the subsequent URLs to fail as well since the reset count wasn't getting reset. I

Odd version scheme

2015-02-12 Thread Gisle Vanem
I tried using Interactive Python with a PyQt4 console: IPython.exe qtconsole But got a ImportError: IPython requires PyQT4 = 4.7, found 4.10.4 Looking at Ipython's check (in site-packages\IPython\external\qt.py): if QtCore.PYQT_VERSION_STR '4.7': raise ImportError(IPython requires

Re: Python discussed in Nature

2015-02-12 Thread Marko Rauhamaa
Chris Angelico ros...@gmail.com: On Fri, Feb 13, 2015 at 1:39 AM, Marko Rauhamaa ma...@pacujo.net wrote: I write both Py2 and Py3 code, but I keep the two worlds hermetically separated from each other. [...] You don't need to be afraid of the gap. No problem. When I write Py3, I write

Cython 0.22 released

2015-02-12 Thread Robert Bradshaw
I'm pleased to announce the release of Cython 0.22. This release has numerous bug fixes and several new features. It is is available in the usual locations: http://cython.org/release/Cython-0.22.tar.gz https://pypi.python.org/pypi/Cython/0.22 Happy Coding! Robert Features added

[issue22524] PEP 471 implementation: os.scandir() directory scanning function

2015-02-12 Thread STINNER Victor
STINNER Victor added the comment: Patch version 5: - Use None value for the d_type instead of DT_UNKNOW to *prepare* support for platforms where the dirent structure has no d_type field. Serhiy guess that such platform have no DT_xxx constant neither. DirEntry doesn't DT_xxx constants if

[issue23447] Relative imports with __all__ attribute

2015-02-12 Thread Antonio Cota
Changes by Antonio Cota antocot...@gmail.com: -- versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23447 ___ ___

Re: Odd version scheme

2015-02-12 Thread Chris Angelico
On Fri, Feb 13, 2015 at 4:19 AM, Skip Montanaro skip.montan...@gmail.com wrote: I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang decided that there would be no micro versions 9. There are too many similar assumptions about version numbers out in

Re: Odd version scheme

2015-02-12 Thread Ian Kelly
On Thu, Feb 12, 2015 at 10:19 AM, Skip Montanaro skip.montan...@gmail.com wrote: I believe this sort of lexicographical comparison wart is one of the reasons the Python-dev gang decided that there would be no micro versions 9. There are too many similar assumptions about version numbers out in

Re: Odd version scheme

2015-02-12 Thread Gisle Vanem
Tim Chase wrote: So the test should actually be something like if LooseVersion(QtCore.PYQT_VERSION_STR) LooseVersion(4.10): balk() That's exactly what they do now in IPython/utils/version.py with the comment: Utilities for version comparison It is a bit ridiculous that we need

Re: Odd version scheme

2015-02-12 Thread Tim Chase
On 2015-02-12 18:37, Gisle Vanem wrote: Tim Chase wrote: So the test should actually be something like if LooseVersion(QtCore.PYQT_VERSION_STR) LooseVersion(4.10): balk() That's exactly what they do now in IPython/utils/version.py with the comment: Utilities for version

<    1   2