[issue5710] ctypes should return composite types from callbacks

2015-11-29 Thread Albert Zeyer
Albert Zeyer added the comment: Any update here? -- nosy: +Albert.Zeyer versions: +Python 2.7 ___ Python tracker ___

[issue25608] ascynio readexactly() should raise ValueError if passed length <= 0 in argument

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Okay, https://github.com/python/asyncio/pull/298 is ready -- ___ Python tracker ___

[issue25763] I cannot use absolute path in sqlite3 , python 2.7.9, windows

2015-11-29 Thread R. David Murray
R. David Murray added the comment: Did you try just using the absolute file path without the file://? That should work. I don't believe uri interpretation is enabled by default, according to the docs you linked to. -- nosy: +r.david.murray ___

[issue25766] __bytes__ doesn't work for str subclasses

2015-11-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Special __bytes__ method is purposed for converting to bytes with bytes constructor (as well as __str__ and __float__ for str and float). But this doesn't work if the class is a subclass of str. >>> class X: ... def __bytes__(self): ... return

[issue24660] Heapq + functools.partial : TypeError: unorderable types

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Yes, this is not a bug. Python 3.5 works as expected. Orderable lambda is the bug in python2.7. -- ___ Python tracker

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-29 Thread Martin Panter
Martin Panter added the comment: Okay so now I see 2.7 doesn’t support the context manager. I was mainly curious why you didn’t want to use subprocess. However a bigger problem with your first patch is shlex.quote() does not appear to be in Python 2 either. If you want to use

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-11-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: http://buildbot.python.org/all/builders/x86%20OpenIndiana%203.x/builds/10847/steps/test/logs/stdio [117/400] test_subprocess -- running: test_tokenize (65 sec), test_concurrent_futures (38 sec) Assertion failed: !PyErr_Occurred(), file Objects/abstract.c,

[issue25761] Improve unpickling errors handling

2015-11-29 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker ___

[issue25765] Installation error

2015-11-29 Thread SilentGhost
Changes by SilentGhost : -- components: +Windows nosy: +paul.moore, steve.dower, tim.golden, zach.ware type: performance -> behavior ___ Python tracker

[issue25696] "make -j9 install" fails because bininstall target requires the libainstall target

2015-11-29 Thread Martin Panter
Martin Panter added the comment: Please go ahead with bininstall-3.patch if you prefer. It certainly avoids the problem you reported. Although I still encourage you to not add the dash before the command. -- ___ Python tracker

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-11-29 Thread Robert Collins
Robert Collins added the comment: @Martin I was wrong re: the defs - they only cover function vs data, not return codes. So it looks fine to me. -- ___ Python tracker

[issue25765] Installation error

2015-11-29 Thread Ayushmaan Saxena
New submission from Ayushmaan Saxena: installation error 0x80240004 -- components: Installation files: Python 3.5.0 (32-bit)_20151130012741.log messages: 255589 nosy: ayushmaan121 priority: normal severity: normal status: open title: Installation error type: performance versions: Python

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-29 Thread Kovid Goyal
Kovid Goyal added the comment: Yes, I am aware. I embed python in my application, which includes large C++ libraries. Those libraries are going to start requiring to be compiled with a modern compiler soon, which means I need python to also be compiled with a modern compiler. I already

[issue25752] asyncio.readline - add customizable line separator

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Well, https://github.com/python/asyncio/pull/297 is ready :) -- ___ Python tracker ___

[issue12460] SocketServer.shutdown() does not have "timeout=None" parameter

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Please close this bug since asyncio is much more suitable, and things like socketserver is obsolete as I think. -- ___ Python tracker

[issue25742] locale.setlocale does not work with unicode strings

2015-11-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- status: open -> closed ___ Python tracker ___

[issue25762] Calculation Mistake 1.5 * 0.3

2015-11-29 Thread Yunus Emre Kursav
New submission from Yunus Emre Kursav: Dear Authorized Person, When I was using python, I found a bug. When I multiplied 1.5 time 0.3, I got 0.44996 as a result. Best Regards, Yunus -- files: Screenshot from 2015-11-29 17-39-20.png messages: 255579 nosy: zeneregion

[issue24731] Incorrect assert in str_subtype_new

2015-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2ea1a3bf448f by Serhiy Storchaka in branch '2.7': Fixed Py3k warnings in tests for issue #24731. https://hg.python.org/cpython/rev/2ea1a3bf448f -- ___ Python tracker

[issue25762] Calculation Mistake 1.5 * 0.3

2015-11-29 Thread Ethan Furman
Ethan Furman added the comment: Floating point calculations are not exact. https://docs.python.org/3/tutorial/floatingpoint.html https://docs.oracle.com/cd/E19957-01/806-3568/ncg_goldberg.html -- nosy: +ethan.furman resolution: -> not a bug stage: -> resolved status: open -> closed

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-29 Thread R. David Murray
R. David Murray added the comment: You are aware that you can't use existing pre-compiled extension modules with your 2015 build, right? It would be great if you could open a separate issue for the double close problem. This should be a doc issue for fixing the docs. -- assignee:

[issue25767] asyncio documentation section 18.5.2.3.1. (Windows) links to French Wikipedia in English docs

2015-11-29 Thread Elizabeth Myers
New submission from Elizabeth Myers: The link for HPET in the asyncio documentation (18.5.2.3.1 Windows, final paragraph, see https://docs.python.org/3/library/asyncio-eventloops.html#windows) links to https://fr.wikipedia.org/wiki/High_Precision_Event_Timer for the HPET link even though the

[issue25763] I cannot use absolute path in sqlite3 , python 2.7.9, windows

2015-11-29 Thread jingtao chen
New submission from jingtao chen: I tried the way like here https://www.sqlite.org/c3ref/open.html#urifilenamesinsqlite3open but it is useless what I got is C:\Users\CJT-6220>python D:\NKUSearch\pr_cal\main.py Traceback (most recent call last): File "D:\NKUSearch\pr_cal\main.py", line 7,

[issue25752] asyncio.readline - add customizable line separator

2015-11-29 Thread Guido van Rossum
Guido van Rossum added the comment: If you hit EOF in the middle of a partial separator, treat it as a premature EOF just as if you hit EOF before the separator -- the record is not properly terminated so it shouldn't be accepted. I prefer a single PR that has the full code. We keep the

[issue25768] compileall functions do not document return values

2015-11-29 Thread Nicholas Chammas
New submission from Nicholas Chammas: I'm using the public functions of Python's built-in compileall module. https://docs.python.org/3/library/compileall.html#public-functions There doesn't appear to be documentation of what each of these functions returns. I figured out, for example, that

[issue25742] locale.setlocale does not work with unicode strings

2015-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: http://buildbot.python.org/all/builders/x86%20XP-4%202.7/builds/3517/steps/test/logs/stdio == ERROR: test_setlocale_unicode (test.test_locale.TestMiscellaneous)

[issue25696] "make -j9 install" fails because bininstall target requires the libainstall target

2015-11-29 Thread STINNER Victor
STINNER Victor added the comment: bininstall-4.patch: IMHO it's overkill and makes Makefile more complex to follow. My patch bininstall.patch proposed something similar, but Arfrever asked me to modify bininstall target. IMHO Getting "Creating directory xxx" message twice is a minor issue.

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2015-11-29 Thread Armin Rigo
Armin Rigo added the comment: This is a known general issue which is documented in Lib/test/crashers/borrowed_ref_1 inside the 2.7 branch. In trunk, I see that this file has been deleted, although the issue has not been solved in general. Only the particular crash in the file has been

[issue25750] tp_descr_get(self, obj, type) is called without owning a reference to "self"

2015-11-29 Thread Jeroen Demeyer
Jeroen Demeyer added the comment: Thanks for the pointer. My patch does fix the crash in Lib/test/crashers/borrowed_ref_2.py on Python 2.7.10. -- ___ Python tracker

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-29 Thread SilentGhost
SilentGhost added the comment: Yeah, it would be great, Martin, if only that code worked in python2. Anyway, here is an alternative patch. -- Added file: http://bugs.python.org/file41189/issue25627_3.diff ___ Python tracker

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-29 Thread Kovid Goyal
Kovid Goyal added the comment: I missed a few places in my initial patch, updated patch: https://github.com/kovidgoyal/cpython/commit/a9ec814d466d3c0139d10b69666f88eed10e4940 Also fixed the code not clearing errno before calling CRT functions, while I was there. Regardless of whether you want

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-29 Thread SilentGhost
SilentGhost added the comment: I tried re-writing that bit using subprocess.Popen but since the 2.7 support is needed I genuinely don't see any benefit that would add on top of the submitted patch. -- ___ Python tracker

[issue25627] distutils : file "bdist_rpm.py" does not quote filenames when executing the rpm command

2015-11-29 Thread Martin Panter
Martin Panter added the comment: I don’t understand what 2.7 has got to do with using subprocess or not. Jumping through a shell quoting hoop only to pass a command to the shell to be unquoted seems like double handling. This is how I might rewrite it (untested): q_cmd = ("rpm", "-q", "--qf",

[issue25761] Improve unpickling errors handling

2015-11-29 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This issue is for better detecting and reporting errors in broken pickle data. -- assignee: serhiy.storchaka components: Extension Modules, Library (Lib), Tests messages: 255567 nosy: serhiy.storchaka priority: normal severity: normal status: open

[issue25761] Improve unpickling errors handling

2015-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset d47e5b162072 by Serhiy Storchaka in branch '3.4': Issue #25761: Added more test cases for testing unpickling broken data. https://hg.python.org/cpython/rev/d47e5b162072 New changeset c7e7d77ef8bf by Serhiy Storchaka in branch '2.7': Issue #25761:

[issue25761] Improve unpickling errors handling

2015-11-29 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Proposed patch allows unpickler to detect errors related to reading a stack behind a mark. For now Python implementation just pops a sentinel used as a mark. This can cause TypeError, AttributeError or UnpicklingError besides IndexError: >>>

[issue25742] locale.setlocale does not work with unicode strings

2015-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset d7481ebeaa4f by Victor Stinner in branch '2.7': Issue #25742: Try to fix test_locale on Windows https://hg.python.org/cpython/rev/d7481ebeaa4f -- ___ Python tracker

[issue25752] asyncio.readline - add customizable line separator

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: When I reported that bug, I want to suggest multibyte separators, but implementation is much complex than current one. For example, we should decide what to do if partial separator is read and EOF occur. So, I think we should merge ability to use custom

[issue25514] better startup error messages in IDLE when stdlib modules shadowed

2015-11-29 Thread Laura Creighton
Laura Creighton added the comment: webmaster got another one of these today. -- ___ Python tracker ___ ___

[issue12460] SocketServer.shutdown() does not have "timeout=None" parameter

2015-11-29 Thread Martin Panter
Martin Panter added the comment: Closing as retracted by original reporter. (Also, I wonder how useful the timeout would be. Adding a timeout isn’t going to fix a hanging server.) -- nosy: +martin.panter resolution: -> rejected stage: -> resolved status: open -> closed

[issue25763] I cannot use absolute path in sqlite3 , python 2.7.9, windows

2015-11-29 Thread jingtao chen
jingtao chen added the comment: wow...It works... -- status: open -> closed ___ Python tracker ___ ___

[issue25759] Python 2.7.11rc1 not building with Visual Studio 2015

2015-11-29 Thread Kovid Goyal
Kovid Goyal added the comment: To answer part of my question, the reason the fseek()+fread() bug does not affect python 3.5.0 appears to be because it implements its own buffering and does not use fseek()/fread() at all. Sigh, I really hope the answer does not end up being that I have to

[issue25764] PyObject_Call() is called with an exception set in subprocess

2015-11-29 Thread Martin Panter
Martin Panter added the comment: This looks like an intermittent (1 in ~5) failure in at least the Open Indiana 3.5 and 3.x buildbots. My guess is that fork() has failed, and because preexec_fn is in use, the code tries to call gc.enable() with the fork() exception already set. My patch adds

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-11-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6b08429a3932 by Martin Panter in branch 'default': Issue #5319: New Py_FinalizeEx() API to exit with status 120 on failure https://hg.python.org/cpython/rev/6b08429a3932 -- ___ Python tracker

[issue25763] I cannot use absolute path in sqlite3 , python 2.7.9, windows

2015-11-29 Thread Eryk Sun
Changes by Eryk Sun : -- resolution: -> not a bug stage: -> resolved ___ Python tracker ___

[issue5319] stdout error at interpreter shutdown fails to return OS error status

2015-11-29 Thread Martin Panter
Martin Panter added the comment: Thanks everyone for helping to get this right. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker

[issue25769] Crash due to using weakref referent without acquiring a strong reference

2015-11-29 Thread lplatypus
New submission from lplatypus: I have encountered some crashes in a multithreaded application which appear to be due to a bug in weakref_richcompare in Objects/weakref.c (I am using Python 2.7.9, but the same weakref code exists in 3.5 and hg default branch too) weakref_richcompare ends with

[issue25701] Document that tp_setattro and tp_setattr are used for deleting attributes

2015-11-29 Thread Martin Panter
Martin Panter added the comment: In the python-dev thread, Nick Coghlan gave some arguments and examples where PyObject_SetAttr() is intended to be used for deletion. So I will keep my changes for PyObject_SetAttr(), and also _SetAttrString() for consistency. My second patch documents

[issue18161] call fchdir if subprocess.Popen(cwd=integer|fileobject)

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Do not understand what should be done in order to fix that... It will be nice if I can create pull request by myself -- ___ Python tracker

[issue24523] coroutine asyncio.wait() does not preserve order of elements

2015-11-29 Thread Марк Коренберг
Марк Коренберг added the comment: Yes this is not a bug. Use asyncio.gather(), it preserves order of elements :) -- ___ Python tracker ___

[issue15500] Python should support naming threads

2015-11-29 Thread Марк Коренберг
Changes by Марк Коренберг : -- nosy: +mmarkk ___ Python tracker ___ ___