[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Martin Panter
Martin Panter added the comment: Removing the redundant _quote_html() function seems like a good idea to me. I wonder if the code should be using the html.escape(..., quote=False) option though, because it does not need to encode quote signs. It might be good to add a test. It looks like there

[issue26560] Error in assertion in wsgiref.handlers.BaseHandler.start_response

2016-03-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Peter! I've simplified the test a bit and commit it. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed ___ Python tracker

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: Sounds good to me. Replacement patch. -- Added file: http://bugs.python.org/file42182/deco-docos.patch ___ Python tracker ___ __

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Raymond Hettinger
Raymond Hettinger added the comment: Elsewhere we use "roughly equivalent to" instead of "broadly equivalent to". The latter seems a little bit off the mark. -- nosy: +rhettinger ___ Python tracker __

[issue26583] test_timestamp_overflow fails

2016-03-19 Thread Peter Inglesby
Peter Inglesby added the comment: I can reproduce it reliably. I ran ./configure with --with-pydebug. I'm not using NFS, and I'm not aware of anything else unusual about my filesystem. The fact that a timestamp overflows in the failing test is a red herring -- the following also fails, with

[issue26553] Write HTTP in uppercase

2016-03-19 Thread Aatish Neupane
Changes by Aatish Neupane : Added file: http://bugs.python.org/file42203/2_fix_3.6.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue26095] Update porting HOWTO to special-case Python 2 code, not Python 3

2016-03-19 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed stage: -> resolved status: open -> closed ___ Python tracker ___ ___ Python-bugs-l

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: Sure - changing it to "roughly". I started with that wording, and then changed to "broadly", for reasons which I now can't remember - so they can't have been too important. Consistency wins. -- Added file: http://bugs.python.org/file42214/deco-docos.pa

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Martin Panter
Martin Panter added the comment: Yeah I would be happy if you want to change to html.escape(quote=False) in list_directory() as well. BTW I am getting Undelivered Mail replies from the review comments. I guess they might be getting rejected due to looking like spam (they tend to be classified

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2016-03-19 Thread Larry Hastings
Larry Hastings added the comment: >Modules/_opcode.c: Issue 19674 (3.4). Only one function I can see there > (Larry’s original post says two sites). I produced the post with a big grep through the codebase. Which was quite a while ago now. Code changes and moves around; if you can only f

[issue26580] Documentation for ftplib still references ftpmirror.py

2016-03-19 Thread Alex Walters
New submission from Alex Walters: in #23130 ftpmirror.py was removed from the python source distribution. The documentation still references this, and sends people looking for the file (ostensibly as an example of how to use ftplib). -- assignee: docs@python components: Documentation

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Jeff Allen added the comment: Thanks for the prompt acknowledgement and for accepting this to review. I have updated the coverage & tolerance demo program. Usage in the comments (in v3). I have also added the program I used to generate the extra test cases (needs mpmath -- easier to get worki

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 599328247e84 by Brett Cannon in branch '3.5': Issue #26271: Fix the Freeze tool to use variables passed in from the https://hg.python.org/cpython/rev/599328247e84 New changeset 364895e54bb0 by Brett Cannon in branch 'default': Merge for issue #26271

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: I pushed my minimum fix. I now understand that it is not needed to change importlib, it's ok to keep "abspath" code in site & libregrtest. -- ___ Python tracker __

[issue26560] Error in assertion in wsgiref.handlers.BaseHandler.start_response

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 60f01a8a71ef by Berker Peksag in branch '3.5': Issue #26560: Avoid potential ValueError in BaseHandler.start_response https://hg.python.org/cpython/rev/60f01a8a71ef New changeset ae1d12f09392 by Berker Peksag in branch 'default': Issue #26560: Avoid

[issue26556] Update expat to 2.2.1

2016-03-19 Thread Larry Hastings
Larry Hastings added the comment: Christian: Is that CVE the same crash as reported by mail by Gustavo Grieco? -- ___ Python tracker ___ _

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
New submission from Chris Angelico: The official documentation declares an unambiguous equivalence which is not true in some corner cases: @deco def f(x): pass is not quite the same as def f(x): pass f = deco(f) as the name is never bound to the undecorated function. This is

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: I add two tests for html escaping. One for the error message and the other for display name in SimpleHTTPRequesthandler. -- Added file: http://bugs.python.org/file42204/_quote_html_to_html_escape_v2.patch ___ Python tra

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Xiang Zhang
New submission from Xiang Zhang: In http.server, _quote_html is used to escape content for BaseHTTPServer. The function has already been implemented by html.escape. -- components: Library (Lib) files: _quote_html_to_html_escape.patch keywords: patch messages: 261943 nosy: xiang.zhang pr

[issue26591] datetime datetime.time to datetime.time comparison does nothing

2016-03-19 Thread jason crockett
New submission from jason crockett: if datetime.time(#blah) > datetime.time(#blah): [a][b] does nothing.. it doesnt raise an error. it doesnt run the if function even though the printout of variables compared says it should. 22:15:00 [a] 16:00:00 [b] True 22:20:00

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Also, beside namespace packages, custom loaders may run into a similar problem with get_filename() and probably other code in there. It looks like the pyclbr module assumes that modules will be either builtin or loaded through SourceFileLoader. For example, you g

[issue24959] unittest swallows part of stack trace when raising AssertionError in a TestCase

2016-03-19 Thread Robert Collins
Robert Collins added the comment: Yes, it is... ish. The frame skipping code occurs when we serialise exceptions, and we pass a limit in. The limit is calculated on the main exception only. If the cause has a longer exception than the limit we calculated, you'd see this behaviour. Probably ne

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Ah, you're talking about deleting Lib/test/__init__.py. Doing so makes it a namespace package. The loader we use for namespace packages [1] does not have a get_filename() method. So the problem to solve is supporting namespace packages in Lib/pyclbr.py. Regardi

[issue22854] Documentation/implementation out of sync for IO

2016-03-19 Thread Martin Panter
Martin Panter added the comment: Thanks for looking at this Serhiy. Here is patch v2, merged with 3.6 branch; some doc string changes were redundant with upstream Arg Clinic changes. However looking at this again, I think we should be cautious changing the documented exceptions for the base cl

[issue26264] keyword module missing async and await keywords

2016-03-19 Thread Ezio Melotti
Ezio Melotti added the comment: > Depending on the purpose of the syntax highlighting or code analysis, > it might be better for these to be listed as keywords now, rather than > waiting until 3.7. I agree, especially considering that it takes time before syntax highlighters update their keywor

[issue26553] Write HTTP in uppercase

2016-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Similar changes could be made in docstrings and comments. But changing error messages can be not safe and could be made only in 3.6. -- ___ Python tracker __

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Mark Dickinson
Mark Dickinson added the comment: Big +1 for the idea, and thank you for doing this work. I can't promise to find time to do a thorough review in the near future (though I'll try). -- ___ Python tracker __

[issue26270] Support for read()/write()/select() on asyncio

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: > Anyway, despite the existence of streams and protocols, I still believe that > `asyncio.read()`, `asyncio.write()` and `asyncio.select()` would be > nice-to-have low-level APIs. You can probably develop your own helper functions based on existing asyncio fu

[issue26553] Write HTTP in uppercase

2016-03-19 Thread Aatish Neupane
Aatish Neupane added the comment: I have attached the patches fixing numerous case errors. -- nosy: +aatishnn ___ Python tracker ___ _

[issue26576] Tweak wording of decorator docos

2016-03-19 Thread Chris Angelico
Chris Angelico added the comment: I may be a committer, but I don't push to cpython - just to the peps. But sure, pretty little logo :) -- ___ Python tracker ___ ___

[issue26281] Clear sys.path_importer_cache from importlib.invalidate_caches()

2016-03-19 Thread Brett Cannon
Brett Cannon added the comment: Eric's convinced me this isn't worth it. -- resolution: -> rejected status: open -> closed ___ Python tracker ___ ___

[issue17603] AC_LIBOBJ replacement of fileblocks

2016-03-19 Thread Martin Panter
Martin Panter added the comment: I assume that should have fixed the problem, but I have only tested it in roundabout ways, so it would be good to get confirmation if it helps e.g. the original Ming GW problem. -- resolution: -> fixed status: open -> closed versions: +Python 2.7, Pyth

[issue26563] PyMem_Malloc(): check that the GIL is hold in debug hooks

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 959e58cfbde9 by Victor Stinner in branch 'default': Fix usage of PyMem_Malloc() in overlapped.c https://hg.python.org/cpython/rev/959e58cfbde9 -- ___ Python tracker __

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2016-03-19 Thread Eric V. Smith
Eric V. Smith added the comment: > ''' > When no explicit alignment is given, preceding the width field by a zero > ('0') character enables sign-aware zero-padding for numeric types. This is > equivalent to a fill character of '0' with an alignment type of '='. > ''' I think that's good. > I

[issue26572] urlparse does not handle passwords with ? in them.

2016-03-19 Thread Rob Church
New submission from Rob Church: >>> urlparse('http://user:pass?w...@example.com/path?query') ParseResult(scheme='http', netloc='user:pass', path='', params='', query='w...@example.com/path?query', fragment='') Expected output is: ParseResult(scheme='http', netloc='user:pass?w...@example.com',

[issue23723] Provide a way to disable bytecode staleness checks

2016-03-19 Thread Brett Cannon
Brett Cannon added the comment: I realized that importlib.abc.SourceLoader.path_stats() provides a way to override stat collection and basically hard-code the stat number for all files from an import perspective. So if people simply generated their bytecode with a static timestamp and overrode

[issue26563] PyMem_Malloc(): check that the GIL is hold in debug hooks

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 73d8adc0d5ea by Victor Stinner in branch '3.5': Fix usage of PyMem_Malloc() in overlapped.c https://hg.python.org/cpython/rev/73d8adc0d5ea -- ___ Python tracker __

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: > So you guarantee tracemalloc itself won't use such a hack for other purposes? ;-) As the defacto maintainer of the module, yes, I can guarantee that. > FWIW, LLVM calls the "domain" "address space", and simply uses an > integer for it (0 being the default CPU

[issue26257] Eliminate buffer_tests.py

2016-03-19 Thread Martin Panter
Martin Panter added the comment: Yes what you say about re-arranging the methods in string_tests.py makes sense to me. There might also be some factorizing possible between specific methods in test_bytes.py and the (currently) string-only test methods. But I would like to handle these as separ

[issue26563] PyMem_Malloc(): check that the GIL is hold in debug hooks

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b4f173f0690 by Victor Stinner in branch 'default': faulthandler now works in non-Python threads https://hg.python.org/cpython/rev/5b4f173f0690 New changeset d6d64168ee8c by Victor Stinner in branch 'default': Py_FatalError: disable faulthandler ear

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Martin Panter
Changes by Martin Panter : -- stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue3539] Problem with testembed make dependencies in certain circumstances

2016-03-19 Thread Martin Panter
Martin Panter added the comment: The fault still exists for me with the pgen objects. The makefile has changed a few times about automatically compiling pgen (Issue 22359) or not (Issue 14321), so it would depend which version is tested. I’m not an expert on VPATH, but it seems like it would b

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: It's BaseHTTPRequestHandler, not BaseHTTPServer. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2016-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: This came up again on python-list today in thread "Replace weird error message?" by "the.gerenuk--- via Python-list". After reading the discussion, I decided that expecting someone to read and connect together two sentences half a page apart is expecting a bi

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen : Removed file: http://bugs.python.org/file41526/stat_math.py ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue26579] Support pickling slots in subclasses of common classes

2016-03-19 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Pickling and copying instances of subclasses of some basic classes pickles and copies instance attributes. Example: >>> class BA(bytearray): ... pass ... >>> b = BA(b'abc') >>> b.x = 10 >>> c = copy.copy(b) >>> c.x 10 >>> c = pickle.loads(pickle.dumps(

[issue13601] sys.stderr should always be line-buffered

2016-03-19 Thread Nick Coghlan
Nick Coghlan added the comment: Changing the target version and summarising my understanding of the status quo: "python3": sys.stderr is line buffered at both the TextIOWrapper layer and may be fully buffered at the binary BufferedWriter layer if the output is redirected to a file "python3 -u"

[issue10721] Remove HTTP 0.9 server support

2016-03-19 Thread Martin Panter
Martin Panter added the comment: Does this need any deprecation cycle, or can we just remove everything immediately in 3.6? I suspect that the HTTP 0.9 support never properly worked, but I don’t have enough info to be sure. Wouldn’t a HTTP 0.9 request send b"GET \r\n" with a single line, and

[issue26040] Improve coverage and rigour of test.test_math

2016-03-19 Thread Jeff Allen
Changes by Jeff Allen : Added file: http://bugs.python.org/file42192/stat_math.py ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue26577] inspect.getclosurevars returns incorrect variable when using class member with the same name as other variable

2016-03-19 Thread SilentGhost
Changes by SilentGhost : -- nosy: +yselivanov type: -> behavior versions: -Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-

[issue26563] PyMem_Malloc(): check that the GIL is hold in debug hooks

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: Reopen. I found and fixed two bugs in os and _overlapped modules (_overlapped is used by asyncio on Windows). -- resolution: fixed -> status: closed -> open ___ Python tracker __

[issue19450] Bug in sqlite in Windows binaries

2016-03-19 Thread Steve Dower
Steve Dower added the comment: Done. The test_sqlite tests were fine, but that's all I checked. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue26248] Improve scandir DirEntry docs, especially re symlinks and caching

2016-03-19 Thread Ezio Melotti
Changes by Ezio Melotti : -- stage: -> resolved type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue26582] asyncio documentation links to wrong CancelledError

2016-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue26567] ResourceWarning: Use tracemalloc to display the traceback where an object was allocated when a ResourceWarning is emitted

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 691fba640266 by Victor Stinner in branch 'default': Issue #26567: enhance ResourceWarning example https://hg.python.org/cpython/rev/691fba640266 -- ___ Python tracker

[issue13601] sys.stderr should be line-buffered when stderr is not a TTY

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: I changed the title, since sys.stderr is already line-buffered when stderr is a TTY. -- ___ Python tracker ___

[issue25643] Python tokenizer rewriting

2016-03-19 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Double coding cookie ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue25934] ICC compiler: ICC treats denormal floating point numbers as 0.0

2016-03-19 Thread Zachary Ware
Zachary Ware added the comment: I closed this prematurely: I successfully added /fp:strict to ICC builds, but it didn't fix the underlying issue. -- resolution: fixed -> stage: resolved -> status: closed -> open ___ Python tracker

[issue19450] Bug in sqlite in Windows binaries

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset fa68df1d5e65 by Steve Dower in branch '2.7': Issue #19450: Update Windows builds to use SQLite 3.8.11.0. https://hg.python.org/cpython/rev/fa68df1d5e65 -- ___ Python tracker

[issue26590] socket destructor: implement finalizer

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: It's unclear to me if it's needed to call the following code in sock_dealloc(): +if (PyObject_CallFinalizerFromDealloc((PyObject *)s) < 0) +return; It looks like this code is not needed, since sock_finalize() is called before sock_dealloc(). -

[issue26590] socket destructor: implement finalizer

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: Attached patch adds a finalizer to _socket.socket() and use PyErr_ResourceWarning() to log the traceback where the socket was created in the warning logger (if tracemalloc is enabled, see issue #26567). -- keywords: +patch Added file: http://bugs.pytho

[issue18787] Misleading error from getspnam function of spwd module

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset a1d738158390 by Berker Peksag in branch 'default': Issue #18787: spwd.getspnam() now raises a PermissionError if the user https://hg.python.org/cpython/rev/a1d738158390 -- nosy: +python-dev ___ Python tra

[issue26257] Eliminate buffer_tests.py

2016-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I meant that the patch can be smaller if move more tests from CommonTest to BaseTest without changing order. Here is smaller patch. -- Added file: http://bugs.python.org/file42216/buffer_tests_2.patch ___ Python tr

[issue18787] Misleading error from getspnam function of spwd module

2016-03-19 Thread Berker Peksag
Changes by Berker Peksag : -- resolution: -> fixed stage: patch review -> resolved status: open -> closed ___ Python tracker ___ ___

[issue26590] socket destructor: implement finalizer

2016-03-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: sock_finalize() is only called explicitly if there is a reference cycle. This is why sock_dealloc() has to call it. -- ___ Python tracker ___ _

[issue26567] ResourceWarning: Use tracemalloc to display the traceback where an object was allocated when a ResourceWarning is emitted

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 543639cdfdb9 by Victor Stinner in branch 'default': Try again to fix test_warnings on Windows https://hg.python.org/cpython/rev/543639cdfdb9 -- ___ Python tracker

[issue20186] Derby #18: Convert 31 sites to Argument Clinic across 23 files

2016-03-19 Thread Tal Einat
Tal Einat added the comment: My patches haven't been looked at for a while, anyone considering them should make sure they still apply cleanly and don't break anything. Here their status as far as I can tell: Quite a bit of work went into Modules/_operator.c, and it got an "LGTM" from Serhiy,

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-03-19 Thread Stefan Behnel
Stefan Behnel added the comment: Nice one. While reimplementing it for Cython, I noticed that the grammar described in the PEP isn't exactly as it's implemented, though. The grammar says digit (["_"] digit)* whereas the latest patch (v4) says `digit` (`digit` | "_")* and also impleme

[issue26582] asyncio documentation links to wrong CancelledError

2016-03-19 Thread awilfox
New submission from awilfox: In the 3.5 and 3.6a0 documentation for asyncio, "CancelledError" is linked to the concurrent.futures.CancelledError. This led me to try catching that exception and finding that it did not work correctly at all. Only after searching for asyncio example code and se

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: Nathaniel Smith: > So PyMem_Malloc would just call PyMem_RecordAlloc("heap", ptr, size) (or act > equivalently to something that called that, etc.), but something like PyCuda > might do PyMem_RecordAlloc("gpu", ptr, size) to track allocations in GPU > memory.

[issue26568] Add a new warnings.showwarnmsg() function taking a warnings.WarningMessage object

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 9c92352324e8 by Victor Stinner in branch 'default': Fix test_logging https://hg.python.org/cpython/rev/9c92352324e8 -- ___ Python tracker _

[issue26313] ssl.py _load_windows_store_certs fails if windows cert store is empty

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset 8df52636b0dc by Steve Dower in branch '2.7': Issue #26313: ssl.py _load_windows_store_certs fails if windows cert store is empty. Patch by Baji. https://hg.python.org/cpython/rev/8df52636b0dc -- nosy: +python-dev __

[issue26583] test_timestamp_overflow fails

2016-03-19 Thread Peter Inglesby
Peter Inglesby added the comment: The problem is that I have PYTHONDONTWRITEBYTECODE set in my environment. Should the setUp and tearDown methods ensure that PYTHONDONTWRITEBYTECODE is cleared and reset? -- ___ Python tracker

[issue26573] Method Parameters can be Accepted as Keyword Arguments?

2016-03-19 Thread G Young
G Young added the comment: Google indicates that this is indeed a feature of the language. Sorry about that! I guess that was a miscommunication on the PR-end. -- status: open -> closed ___ Python tracker

[issue26258] readline module for python 3.x on windows

2016-03-19 Thread Ezio Melotti
Ezio Melotti added the comment: I'm going to close this, but you can try bringing this up on python-list or python-ideas to see if there's any existing solution that could perhaps be included in Python. -- nosy: +ezio.melotti resolution: -> postponed stage: -> resolved status: open -

[issue26587] Possible duplicate entries in sys.path if .pth files are used with zip's

2016-03-19 Thread Wolfgang Langner
New submission from Wolfgang Langner: In site.py there is the internal function _init_pathinfo() This function builds a set of path entries from sys.path. This is used to avoid duplicate entries in sys.path. But this function has a check if it is a directory with os.path.isdir(...). All this i

[issue26530] tracemalloc: add C API to manually track/untrack memory allocations

2016-03-19 Thread Antoine Pitrou
Antoine Pitrou added the comment: A n-GPU system will have n+1 address spaces. Such systems exist in high-performance computing. You can also probably find weird systems (embedded, mostly, I'd say) with more than two address spaces. -- ___ Python t

[issue26578] Bad BaseHTTPRequestHandler response when using HTTP/0.9

2016-03-19 Thread Xiang Zhang
New submission from Xiang Zhang: BaseHTTPRequestHandler in http.server supports HTTP/0.9. But the response for HTTP/0.9 request is implemented wrong. Response of HTTP/0.9 request returns message body directly without status line and headers. But if you inherit BaseHTTPRequestHandler and set t

[issue19265] Increased test coverage for datetime pickling

2016-03-19 Thread Roundup Robot
Roundup Robot added the comment: New changeset c6649d4477ab by Berker Peksag in branch '3.5': Issue #19265: Improve test coverage of datetime.tzinfo https://hg.python.org/cpython/rev/c6649d4477ab New changeset f1539e7607e4 by Berker Peksag in branch 'default': Issue #19265: Improve test coverage

[issue19265] Increased test coverage for datetime pickling

2016-03-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks for the patch, Colin! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 3.5, Python 3.6 -Python 3.4 ___ Python tracker

[issue26574] replace_interleave can be optimized for single character byte strings

2016-03-19 Thread Josh Snider
Josh Snider added the comment: Addresses review comments. -- Added file: http://bugs.python.org/file42180/bytes-2.patch ___ Python tracker ___ ___

[issue26554] Missing fclose

2016-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +easy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

[issue26583] test_timestamp_overflow of test_importlib fails if PYTHONDONTWRITEBYTECODE is set

2016-03-19 Thread Brett Cannon
Brett Cannon added the comment: LGTM, Ned. -- assignee: -> larry nosy: +larry stage: patch review -> commit review ___ Python tracker ___ ___

[issue26580] Documentation for ftplib still references ftpmirror.py

2016-03-19 Thread Berker Peksag
Berker Peksag added the comment: Thanks! -- nosy: +berker.peksag resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: -Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: OK. You left the comment preferring using ascii or utf-8 to encode the filename in test. But actually the response SimpeHTTPRequestHandler send is explicitly encoded in filesystemdefaultencoding. So in such a case, am I doing right? -- __

[issue26560] Error in assertion in wsgiref.handlers.BaseHandler.start_response

2016-03-19 Thread Peter Inglesby
Peter Inglesby added the comment: I found it while reading the source. Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file42188/issue26560.patch ___ Python tracker _

[issue21423] concurrent.futures.ThreadPoolExecutor/ProcessPoolExecutor should accept an initializer argument

2016-03-19 Thread Alexander Mohr
Alexander Mohr added the comment: any chance if this getting into 3.5.2? I have some gross code to get around it (setting global properties) -- nosy: +thehesiod ___ Python tracker _

[issue17605] mingw-meta: build interpeter core

2016-03-19 Thread Martin Panter
Changes by Martin Panter : -- dependencies: +mingw: detect REPARSE_DATA_BUFFER ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue24959] unittest swallows par t of stack trace when raising AssertionError in a TestCase

2016-03-19 Thread Robert Collins
Robert Collins added the comment: I'm fairly sure its eating the stack frames because the calling frames are annotated __unittest__ - its technically a feature :/. -- title: unittest swallows part of stack trace when raising AssertionError in a TestCase -> unittest swallows par t of st

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread STINNER Victor
STINNER Victor added the comment: > However, you should be able to leave the is_package() call alone. I don't really care how the issue is fixed. As I wrote, I don't know well the importlib module. Feel free to propose a better patch :-) My main concern is to fix test_pyclbr when test becomes

[issue26546] Provide translated french translation on docs.python.org

2016-03-19 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree on the url. It can always redirect to a CCTLD if there is one. You *might* want to discuss the how on python-ideas list. -- nosy: +terry.reedy ___ Python tracker

[issue26538] regrtest: setup_tests() must not replace module.__path__ (_NamespacePath) with a simple list // importlib & abspath

2016-03-19 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue19265] Increased test coverage for datetime pickling

2016-03-19 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: These lines should be removed again after applying the patch for issue26579. -- nosy: +serhiy.storchaka ___ Python tracker ___ ___

[issue26271] freeze.py makefile uses the wrong flags variables

2016-03-19 Thread Brett Cannon
Brett Cannon added the comment: Thanks for the patch, Daniel! Added you to the ACKS file. -- stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue26583] test_timestamp_overflow of test_importlib fails if PYTHONDONTWRITEBYTECODE is set

2016-03-19 Thread Ned Deily
Ned Deily added the comment: Pushed for release in 3.5.2 and 3.6.0. -- resolution: -> fixed stage: commit review -> resolved status: open -> closed ___ Python tracker ___ __

[issue26579] Support pickling slots in subclasses of common classes

2016-03-19 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue26331] Tokenizer: allow underscores for grouping in numeric literals

2016-03-19 Thread Georg Brandl
Georg Brandl added the comment: The last patch isn't up to date with the PEP; Serhiy's patch is the closest one. -- ___ Python tracker ___ ___

[issue26585] Use html.escape to replace _quote_html in http.server

2016-03-19 Thread Xiang Zhang
Xiang Zhang added the comment: Oops. You have already left new comment. No notify either. :( I like the idea that extract the actual encoding from response header. I will update my patch then. -- ___ Python tracker

[issue25609] Add a ContextManager ABC and type

2016-03-19 Thread Nick Coghlan
Nick Coghlan added the comment: * the ABC should have a structural __issubclass__ check looking for __enter__ and __exit__ methods * I agree with making __exit__ abstract (if you don't define it, you don't need a context manager), but does __enter__ need to be abstract? The "return self" defa

[issue26569] pyclbr.readmodule() and pyclbr.readmodule_ex() don't support namespace packages

2016-03-19 Thread Eric Snow
Eric Snow added the comment: Well, your patch is correct even if not ideal. :) Landing it as a short-term solution is fine. Just keep this issue open so we can address the problem more completely later. -- components: +Interpreter Core stage: -> commit review type: -> behavior ___

  1   2   >