[issue17232] Improve -O docs
Nick Coghlan added the comment: On Tue, Mar 12, 2013 at 1:18 PM, Antoine Pitrou rep...@bugs.python.org wrote: Antoine Pitrou added the comment: Also, in 3.2 and higher I'm not sure there's a point in mentioning pyc/pyo files; they're all shelved in __pycache__ now. It still makes a difference for bytecode-only files, which aren't in __pycache__ Cheers, Nick. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17232 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Ezio Melotti added the comment: The attached patch adds 3 new FAQs: * How do I solve merge conflicts? * How do I make a null merge? * I got abort: push creates new remote heads! while pushing, what do I do? It also replaces the overly generic How do I find out which revisions need merging?. The content of How do I list the files in conflict after a merge? and How I mark a file resolved after I have resolved merge conflicts? has been summarized in How do I solve merge conflicts? too, so I removed them. -- Added file: http://bugs.python.org/file29394/issue14468-new-faqs.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)
Serhiy Storchaka added the comment: - it won't work for reading: TextIOWrapper calls the read1() method, which is only defined by BufferedIO objects. Since 3.3 TextIOWrapper works with raw IO objects (issue12591). Yes. And I just noticed that the _io module (the C version) will also buffer encoded bytes, up to f._CHUNK_SIZE. Use write_through=True to disable this. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17404 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17404] ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0)
Antoine Pitrou added the comment: - it won't work for reading: TextIOWrapper calls the read1() method, which is only defined by BufferedIO objects. Since 3.3 TextIOWrapper works with raw IO objects (issue12591). It won't be technically unbuffered, though. -- title: ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0) - ValueError: can't have unbuffered text I/O for io.open(1, 'wt', 0) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17404 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Changes by Stefan Krah stefan-use...@bytereef.org: -- keywords: +patch Added file: http://bugs.python.org/file29395/issue16612-alternative-dsl.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file29396/preprocess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Changes by Stefan Krah stefan-use...@bytereef.org: Added file: http://bugs.python.org/file29397/printsemant ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17375] Add docstrings to methods in the threading module
Raymond Hettinger added the comment: You didn't specify the contributor in the commit. I'm the contributor. Also, you've only committed this to 2.7; why? I committed to 2.7 because the 2.7 docs were the source. When I get the time, I will build a 3.x version of the update. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17375 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Stefan Krah added the comment: Larry has requested privately that I send the counter proposal PEP and additional information, so here it is: I've send the PEP draft to Nick. The patch that I uploaded contains DSL examples, an ml-yacc grammar and token specifications. Two prototype tools are available. Usage: ./printsemant Tools/preprocess/testcases/posix_stat.c ./preprocess Tools/preprocess/testcases/posix_stat.c The first tool dumps the semantically checked parse tree to stdout, the second tool dumps the preprocessed .c file to stdout. These are *prototypes* written in Standard ML, since I'm not familiar with the PLY toolchain. Known deficiencies: * The Python 'test' expression is not semantically checked. The syntax however is checked since it is part of the grammar. * The lexer does not handle triple quoted strings. * C declarations are parsed in a primitive way. The final implementation should utilize 'declarator' and 'init-declarator' from the C grammar. * The *preprocess* tool does not emit code for the left-and-right optional arguments case (addch.c). The *printsemant* tool can deal with this case. * Since the *preprocess* tool generates the output from the parse tree, the original indentation of the define block is lost. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17366] os.chdir win32
Amaury Forgeot d'Arc added the comment: My expectation was that a platform os.chdir would parse the string for these characters and do something intelligent with them i.e a legal path from any of the systems (mac, linux or windows) passed in as a string to os.chdir would be converted to something that worked correctly. This is not related to os.chdir. In string literals, \ is the escape character, and this is independent from the platform (and most programming language use the same convention). As soon as the Python script is parsed and loaded into memory, there is no \t or \n anymore, but a tab character, or a newline character; and os.chdir can't do anything about it. The suggestion of using forward slashes is unworkable when the scripts will be used across a range of computers where environment or registry variables get used. How are those scripts written? Are the string constants generated on the fly? os.chdir(%SOME_DIRECTORY%)? And did you try the r'' notation? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17366 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17380] initproc return value is unclear
Amaury Forgeot d'Arc added the comment: Note that all these cases are compatible with tp_init returns 0 on success and -1 on error. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17380 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17310] Ctypes callbacks shows problem on Windows Python (64bit)
Amaury Forgeot d'Arc added the comment: Is _pack_ = 1 correct? Did you compile your C library with /Zp1 or similar? Also check that ctypes.sizeof(callback_t) matches the one given by the C compiler. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17310 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12768] docstrings for the threading module
Eli Bendersky added the comment: See also #17375 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12768 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17375] Add docstrings to methods in the threading module
Eli Bendersky added the comment: On Wed, Mar 13, 2013 at 2:52 AM, Raymond Hettinger rep...@bugs.python.orgwrote: Raymond Hettinger added the comment: You didn't specify the contributor in the commit. I'm the contributor. Oh, I see. I thought it's taken from one of the two existing patches from new contributors, either in this issue or #12768. Also, you've only committed this to 2.7; why? I committed to 2.7 because the 2.7 docs were the source. When I get the time, I will build a 3.x version of the update. OK. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17375 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
New submission from Vlad: This issue is for Python3.3 and doesn't exist in Python3.2 Detailed description with source code can be found here: http://stackoverflow.com/questions/15387035/second-python-execution-fails -- components: None messages: 184081 nosy: theDarkBrainer priority: normal severity: normal status: open title: second python execution fails when embedding type: crash versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17408 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Ned Deily added the comment: Please add the detailed description of the problem and any test files to the issue here. Information stored off-site is not searchable within the issue tracker and may not be permanently available. -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17408 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Vlad added the comment: I'm trying to embed the python 3.3 engine for an app that need to run custom scripts in python. Since the scripts might be completely different, and sometimes user provided, I am trying to make each execution isolated and there is not need to preserve any data between execution of the different scripts. So, my solution is to wrap each execution between 'Py_Initialize' and 'Py_Finalize'. It looks something like that: void ExecuteScript(const char* script) { Py_Initialize(); PyRun_SimpleString( script ); Py_Finalize(); } However, this fails for a particular python script the second time a script is executed with: done! Traceback (most recent call last): File string, line 8, in module File \Python33Test\Output\Debug\Python33\Lib\copy.py, line 89, in copy rv = reductor(2) TypeError: attribute of type 'NoneType' is not callable The python script looks like this: class Data: value1 = 'hello' value2 = 0 import copy d = Data() dd = copy.copy( d ) print ( 'done!' ) As you can see, the first time around the script was executed the 'done!' was printed out. But the second time it rises an exception inside the copy function. It looks like the python engine was left in some weird state after the first initialize-finalize. Note, this is python 3.3. Also, it is very interesting to note that Python 2.7 and Python 3.2 did not have this problem. I guess there might be other examples that could reveal better what's going, but i haven't had the time to find yet. I also put a copy of the project containing flag to switch between Python 3 and Python 2.7 (the file is 31 MB): https://docs.google.com/file/d/0B86-G0mwwxZvbWRldTd5b2NNMWM/edit?usp=sharing Thanks, Vlad -- Added file: http://bugs.python.org/file29398/Python33Test.zip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17408 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17405] Add _Py_memset_s() to securely clear memory
Christian Heimes added the comment: Here is a patch that implements _Py_memset_s() according to C11 with a fallback to memset_s(). My linker fu seems to be weak. I had to use _Py_memset_s() in random.c otherwise the function is removed from the static Python binary. I double-checked with readelf -Ws: the function is defined in the archive file and is available in the shared library. But the linker removes it from the static binary so shared libraries fail to load. -- keywords: +patch stage: needs patch - patch review Added file: http://bugs.python.org/file29399/pymemsets.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17408] second python execution fails when embedding
Amaury Forgeot d'Arc added the comment: Reproduced on Linux. The reason is in Objects/typeobject.c: import_copyreg() has a static cache of the copyreg module. When the interpreter stops, the module is filled with None... but gets reused in the next instance. Resetting this mod_copyreg variable to NULL fixes the issue. pickle is also broken for the same reason. -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17408 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17409] resource.setrlimit doesn't respect -1
New submission from Paul Price: The docs for resource.setrlimit (http://docs.python.org/2.7/library/resource.html#resource.setrlimit) state: The limits argument must be a tuple (soft, hard) of two integers describing the new limits. A value of -1 can be used to specify the maximum possible upper limit. On Mac OSX (10.7.5) with Python 2.7.3 (built fresh), I get the following behaviour: $ PATH=$HOME/test/bin:$PATH DYLD_LIBRARY_PATH=$HOME/test/lib:$DYLD_LIBRARY_PATH python Python 2.7.3 (default, Mar 13 2013, 11:02:56) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)] on darwin Type help, copyright, credits or license for more information. import resource resource.setrlimit(resource.RLIMIT_NOFILE, (10, -1)) Traceback (most recent call last): File stdin, line 1, in module ValueError: not allowed to raise maximum limit resource.setrlimit(resource.RLIMIT_NOFILE, (10, 10)) I get the same behaviour for the system python (2.7.3 built with GCC 4.6.3) in Ubuntu 12.04.1. -- messages: 184086 nosy: Paul.Price priority: normal severity: normal status: open title: resource.setrlimit doesn't respect -1 type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17409 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows
Piotr Dobrogost added the comment: Having the same semantics on both Unix and Windows with regard to validity of file handle after a file was deleted would be a very nice to have. How could we progress this? I'm adding Martin and Antoine to cc list. -- nosy: +loewis, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14243] tempfile.NamedTemporaryFile not particularly useful on Windows
Piotr Dobrogost added the comment: @sbt Thanks for info. Also you mentioned looking at c:/Program Files (x86)/Microsoft Visual Studio 10.0/VC/crt/src/open.c What version of Visual Studio/SDK this file is available in? Also I'd like to point out that this problem came up at Stack Overflow in question How to create a temporary file that can be read by a subprocess? (http://stackoverflow.com/q/15169101/95735) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows
Changes by Piotr Dobrogost p...@bugs.python.dobrogost.net: -- nosy: +dabrahams, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows
Richard Oudkerk added the comment: Actually, it is not quite the same semantics as Unix. After you delete the the file you cannot create a file of the same name or delete the directory which contains it until the handle has been closed. However, one can work around that by moving the file somewhere else (like the root directory) before deleting it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17222] py_compile.compile() explicitly sets st_mode for written files
Roundup Robot added the comment: New changeset 55806d234653 by Brett Cannon in branch 'default': Issue #17222: Document that py_compile now uses importlib for its file http://hg.python.org/cpython/rev/55806d234653 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17222] py_compile.compile() explicitly sets st_mode for written files
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17222 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16136] Removal of VMS support
Sandeep Mathew added the comment: Sorry for late response. I got delayed , I am working on it . Regards Sandeep Mathew 2013/3/9 Jesús Cea Avión rep...@bugs.python.org: Jesús Cea Avión added the comment: Ping... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16136 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16136 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17044] Implement PEP 422: Simple class initialisation hook
Daniel Urban added the comment: I've looked into implementing the changes in the new version of the PEP. It seems, that currently type.__new__ copies the dict returned by __prepare__ (http://hg.python.org/cpython/file/55806d234653/Objects/typeobject.c#l2058). I think this means that some of the new examples wouldn't work (Order preserving classes and Extending a class). It also means, that currently it is impossible for two classes to share a namespace object (possibly this was the intention of copying the dict). So the Note in the PEP wouldn't be necessary (unless type.__new__ were modified). I'm not sure if the PEP proposes to change this behavior of type.__new__ or not... -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17044 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17409] resource.setrlimit doesn't respect -1
R. David Murray added the comment: Since it says maximum possible limit, I think -1 is the maximum system limit, not the maximum value a particular process is allowed to use. If that is true the error message is presumably accurate. And if that's true it needs to be clarified in the docs...and perhaps an enhancement request added. But my guess might be wrong, too. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17409 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None
Roundup Robot added the comment: New changeset 7647aae9481c by Brett Cannon in branch 'default': Issue #17117: Have both import itself and importlib.util.set_loader() http://hg.python.org/cpython/rev/7647aae9481c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17176] Document imp.NullImporter is NOT used anymore by import
Roundup Robot added the comment: New changeset 8e390e4784b0 by Brett Cannon in branch 'default': Issue #17176: Document that imp.NullImporter is no longer inserted http://hg.python.org/cpython/rev/8e390e4784b0 New changeset e470370b4701 by Brett Cannon in branch '3.3': Issue #17176: Document that imp.NullImporter is no longer http://hg.python.org/cpython/rev/e470370b4701 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
New submission from flying sheep: hi, i have an idea on how to make an internal change to html.parser.HTMLParser, which would expose a token generator interface. after that, we would be able to do e.g. list(HTMLParser().tokenize(data)) or even parser = HTMLParser() for chunk in pipe_in_html(): yield from parser.tokenize(chunk) --- the changes affect excluively HTMLParser’s methods and would unfortunately require a behavior change to most (internal) parse_* methods. the changes go as follows: 1. the tokenize(data=None, end=False) method is added. it contains mainly goahead’s body with an prepended snippet to append passed data to raw_data, and all handle_* calls changed to yield token, data. 2. all parse_* methods which returned an int and called one handle_* method are changed to return an (int, token) tuple (so that tokenize can yield the tokens) 3. goahead is changed to a skeleton implementation based on traversing the list created by tokenize, experiencing no changed behavior. all changes would only affect the behavior of the parse_* methods, and the addition of the tokenize method: the tokens are discarded if goahead, feed, or close are called. (this can of course be changed if advisable) --- since this is my first contribution, i’m unsure if i shall already add the patch, unknowing if the changes to the internal parse_* methods are acceptable at all. what do you say? PS: the tokens are named like the handle_* methods, and the current goahead implementation basically calls getattr(self, 'handle_' + token)(data) for each (token, data) tuple. This can be changed to a token: method dict or a classic “switch” elif stack. -- messages: 184096 nosy: flying sheep priority: normal severity: normal status: open title: Generator-based HTMLParser ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Roundup Robot added the comment: New changeset cee04627bdd0 by Brett Cannon in branch 'default': Issue #17099: Have importlib.find_loader() raise ValueError when http://hg.python.org/cpython/rev/cee04627bdd0 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
Changes by flying sheep flying-sh...@web.de: -- components: +XML type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17099] Raise ValueError when __loader__ not defined for importlib.find_loader()
Brett Cannon added the comment: I decided not to backport since it shifts what exception is raised. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17176] Document imp.NullImporter is NOT used anymore by import
Changes by Brett Cannon br...@python.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17176 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17117] Update importlib.util.module_for_loader/set_loader to set when __loader__ = None
Brett Cannon added the comment: Thanks for the patch, Gökcen! Added you the Misc/ACKS. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17117 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
Ezio Melotti added the comment: If you have a patch you can post it, however new features are allowed only in Python 3.4, and they must be backward compatible (run python -m test test_htmlparser to check that). -- components: +Library (Lib) -XML nosy: +ezio.melotti versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
R. David Murray added the comment: I think that in order to maintain backward compatibility the existing parse_ names should continue to have the same signature, but they could be re-implemented in terms of new versions that return the token. That way if an application overrides the methods for some reason that existing code should continue to work. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17411] Build failures with non-NDEBUG, non-Py_DEBUG builds.
New submission from Thomas Wouters: Similar to http://bugs.python.org/issue14509, Python 3.3 conflates Py_DEBUG and non-NDEBUG builds, creating build failures when building with 'CFLAGS=-UNDEBUG ./configure --without-pydebug'. (assert statements are only compiled out when NDEBUG is set, not when Py_DEBUG is unset.) This patch fixes the two root causes. -- components: Build files: assert_fixes.diff keywords: patch messages: 184102 nosy: twouters priority: normal severity: normal status: open title: Build failures with non-NDEBUG, non-Py_DEBUG builds. versions: Python 3.3 Added file: http://bugs.python.org/file29400/assert_fixes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17411 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
karl added the comment: flying sheep: do you plan to make it easier to use the HTML5 algorithm? http://www.w3.org/TR/html5/syntax.html#parsing -- nosy: +karlcow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
Ezio Melotti added the comment: HTMLParser already parsers HTML5 producing the correct result in most of the cases. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
karl added the comment: Ezio: I'm talking about HTML5 Parsing algorithm, not about about parsing html* documents. :) The only python parser I know who is closer of the HTML5 parser algorithm is https://code.google.com/p/html5lib/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
Ezio Melotti added the comment: Well, I'm not sure what's the point of implementing that specific algorithm if the end result is the same. HTMLParser implementation also has the advantage of being much simpler, and probably faster too. If for some reason you want that specific algorithm you can always use html5lib. Also if you find places where HTMLParser is not doing the right thing you can report new issues (I know a few corner cases where this happens, but they are so obscure that I intentionally left them unfixed to keep the code simple). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
flying sheep added the comment: no, i didn’t change anything that didn’t have to be changed to expose the tokens. i kept the changes as minimal as possible. and the tests pass! i attached the patch. --- aside thoughts: i had to change _markupbase.py, too, but i wonder why it’s even a separate module: it is only ever imported by html.parser and its only content, ParserBase, is only subclassed once (by HTMLParser). both classes are so intertwined and dependent on each other (ParserBase calls HTMLParser methods that it itself doesn’t even define) that i think _markupbase should just be scrapped and included into HTMLParser. -- keywords: +patch Added file: http://bugs.python.org/file29401/htmltokenizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
flying sheep added the comment: whoops, left my editor modeline in. i knew that was going to happen. -- Added file: http://bugs.python.org/file29402/htmltokenizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17405] Add _Py_memset_s() to securely clear memory
Antoine Pitrou added the comment: Right now I don't really see the point of this. The randomized hash is not cryptographically secure, so this sounds like premature securization to me. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17405 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1584] Mac OS X: building with X11 Tkinter
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1584 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17307] HTTP PUT request Example
Roundup Robot added the comment: New changeset 4edde40afee6 by Senthil Kumaran in branch '2.7': #17307 - Example of HTTP PUT Request using httplib http://hg.python.org/cpython/rev/4edde40afee6 New changeset d4ab6556ff97 by Senthil Kumaran in branch '3.2': #17307 - Example of HTTP PUT Request using http.client http://hg.python.org/cpython/rev/d4ab6556ff97 New changeset 9941a9bbfeb6 by Senthil Kumaran in branch '3.3': #17307 - merge from 3.2 http://hg.python.org/cpython/rev/9941a9bbfeb6 New changeset 57e5409a998e by Senthil Kumaran in branch 'default': #17307 - merge from 3.3 http://hg.python.org/cpython/rev/57e5409a998e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17307 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17307] HTTP PUT request Example
Senthil Kumaran added the comment: Thanks for the review, Karl. Made the doc changes in all codelines. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17307 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17410] Generator-based HTMLParser
Changes by flying sheep flying-sh...@web.de: Removed file: http://bugs.python.org/file29401/htmltokenizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17410 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12684] profile does not dump stats on exception like cProfile does
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +giampaolo.rodola versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16611] multiple problems with Cookie.py
Ezio Melotti added the comment: Even though #3073 has been fixed, I still see the same failures when I run the attached test_cookie.py. -- nosy: +ezio.melotti, r.david.murray stage: - needs patch type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1285086] urllib.quote is too slow
Senthil Kumaran added the comment: Serhiy - Is there any technical issue that is holding up this patch? (I dont see any). If nothing is holding up and you are busy, I shall go ahead with committing this one. /cc flox -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1285086 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16611] multiple problems with Cookie.py
John Dennis added the comment: That's because #3073 never addressed the core problems, so yes I would expect you would see failures. The point of the attached test is to illustrate the deficiencies in Cookie.py, so apparently it's doing it's job :-) FWIW, we wrote a new cookie library to get around the inherent problems in Cookie.py and cookielib. We could contribute it if there is interest. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7406] int arithmetic relies on C signed overflow behaviour
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serhiy.storchaka, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11767] Maildir iterator leaks file descriptors by default
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11767 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14302] Rename Scripts directory to bin and move python.exe to bin
Changes by Ezio Melotti ezio.melo...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14302 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1453973] addheaders for urlopen / open / xxxx_open
Changes by Ezio Melotti ezio.melo...@gmail.com: -- versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1453973 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue4099] dir on a compiled re does not show pattern as a part of the list
Changes by Ezio Melotti ezio.melo...@gmail.com: -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4099 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17412] Windows make.bat fails on 2.7
New submission from Terry J. Reedy: From Command Prompt ''' F:\Python\dev\py27\Docmake html Running Sphinx v0.6.7 Extension error: Could not import extension pyspecific (exception: No module named nodes) ''' Note the old version of Sphinx installed by make checkout. I updated make.bat sphinx download to 1.0.7, the same as all the 3.x make.bats, deleted tools/sphinx (otherwise, svn refuses to redownload), and redid 'make checkout' and 'make html', I got 'build succeeded'. I loaded index.html and the doc files seemed normal (except be being more sprightly due to files being local ;-). I loaded the library manual, followed links, and tested the two indexes. Was not updating 2.7 make.bat an oversight and is this simple fix the right one? or do 2.7 docs need the old version, albeit with the missing nodes module added? -- messages: 184115 nosy: eric.araujo, ezio.melotti, georg.brandl, terry.reedy priority: normal severity: normal stage: needs patch status: open title: Windows make.bat fails on 2.7 type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17412 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible
Terry J. Reedy added the comment: 2.7 make.bat, which currently downloads sphinx v0.6.7 but not at least one needed file, does not work. See #17412. I asked there whether simply updating the sphinx version, which seems to work, is the right fix. I believe this is currently the only different in make.bat between Python versions. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17243] The changes made for issue 4074 should be documented
Changes by Ezio Melotti ezio.melo...@gmail.com: -- assignee: - docs@python components: +Documentation nosy: +docs@python type: behavior - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10708] Misc/porting should be folded into the development FAQ or the devguide
Ezio Melotti added the comment: Misc/Porting is a single FAQ, and could be added somewhere with the other FAQs in the devguide. It might need some rephrasing since it uses the first person. Misc/SpecialBuilds.txt looks like something that should go in the regular docs, possibly as an HOWTO. -- components: +Devguide -Documentation nosy: +ezio.melotti type: - enhancement versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10708 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5017] import suds help( suds ) fails
Ezio Melotti added the comment: I tried to zip a python module that contained a couple of functions, and after importing it as described in http://docs.python.org/2/library/zipimport.html#examples, I was able to use the inspect module to inspect the module and its functions without encountering any problem. I'm therefore going to close this as out of date. -- nosy: +ezio.melotti resolution: - out of date stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5017 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Ezio Melotti added the comment: It looks like an implementation detail to me, so I tend to agree with Georg. I'm not sure if this should be noted in the code though. -- nosy: +ezio.melotti status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14639] Different behavior for urllib2 in Python 2.7
Changes by Ezio Melotti ezio.melo...@gmail.com: -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14639] Different behavior for urllib2 in Python 2.7
Senthil Kumaran added the comment: I am okay with closing this. If Diego gets back with more info or specifics of error, we can deal with it. -- assignee: - orsenthil resolution: - wont fix stage: - committed/rejected status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14639 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Cédric Krier added the comment: Then I think we miss a locale.atod to parse string to Decimal -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13918] locale.atof documentation is missing func argument
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +mark.dickinson, skrah ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13918 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17413] format_exception() breask on exception tuples from trace function
New submission from Andreas Kloeckner: traceback.format_exception() used to work properly with the 'arg' value passed to a tracing function set up via sys.settrace for an 'exception' event. In Python 3.x, this is no longer the case. Below you'll find what the attached test produces for a variety of interpreter versions. If this is not intended to work, I would be much obliged for a hint on how to achieve the desired effect--i.e. get a formatted exception traceback for the exception tuple 'arg' passed to the trace function. Thanks! See also: https://github.com/inducer/pudb/issues/61 # Python 2.7 # ZZ call ZZ line ZZ line ZZ exception exception (type 'exceptions.AttributeError', 'int' object has no attribute 'invalid', traceback object at 0x1951fc8) --- Traceback (most recent call last): File exc-bug.py, line 20, in f x.invalid AttributeError: 'int' object has no attribute 'invalid' --- ZZ return Traceback (most recent call last): File exc-bug.py, line 22, in module f() File exc-bug.py, line 20, in f x.invalid AttributeError: 'int' object has no attribute 'invalid' ZZ call ZZ call # # Python 3.2 # ZZ call ZZ line ZZ line ZZ exception exception (class 'AttributeError', 'int' object has no attribute 'invalid', traceback object at 0x7f4cf42e5f80) --- Traceback (most recent call last): File exc-bug.py, line 22, in module f() File exc-bug.py, line 20, in f x.invalid File exc-bug.py, line 9, in trace print(.join(format_exception(*arg))) File /usr/lib/python3.2/traceback.py, line 180, in format_exception for value, tb in values: File /usr/lib/python3.2/traceback.py, line 122, in _iter_chain cause = exc.__cause__ AttributeError: 'str' object has no attribute '__cause__' # # Python 3.3 # ZZ call ZZ line ZZ line ZZ exception exception (class 'AttributeError', 'int' object has no attribute 'invalid', traceback object at 0x7f47383acb00) --- Traceback (most recent call last): File exc-bug.py, line 22, in module f() File exc-bug.py, line 20, in f x.invalid File exc-bug.py, line 9, in trace print(.join(format_exception(*arg))) File /usr/lib/python3.3/traceback.py, line 181, in format_exception for value, tb in values: File /usr/lib/python3.3/traceback.py, line 122, in _iter_chain context = exc.__context__ AttributeError: 'str' object has no attribute '__context__' # -- components: Interpreter Core files: exc-bug.py messages: 184122 nosy: inducer priority: normal severity: normal status: open title: format_exception() breask on exception tuples from trace function type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file29403/exc-bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17413 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11732] Skip decorator for tests requiring manual intervention on Windows
Ezio Melotti added the comment: I just noticed that regrtest also has a --nowindows flag that uses SetErrorMode (see Lib/test/regrtest.py:490). The implementation is a bit different: 1) it uses msvcrt instead of going through ctypes.windll.kernel32; 2) it specifies SEM_FAILCRITICALERRORS, SEM_NOALIGNMENTFAULTEXCEPT, and SEM_NOOPENFILEERRORBOX in addition to SEM_NOGPFAULTERRORBOX; 3) it doesn's seem to save and restore the previous error mode; 4) it has additional calls to CrtSetReportMode and CrtSetReportFile; 5) it doesn't check the platform and thus raises an ImportError if msvcrt is missing; Do you think this flag should be removed? Should I improve my context manager with any of these things? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11732 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Terry J. Reedy added the comment: For the null merge entry, /filed/files/. The create new remote heads. is really needed. I handled a situation wrong again today. Question: commit to 3.2, merge forward without change, push, and message is '... new remote head in 3.2'. Is 3.2 really the only branch with a head conflict? Or would one appear in 3.3 as soon as 3.2 heads are merged and merge is merged forward to 3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17413] format_exception() breaks on exception tuples from trace function
R. David Murray added the comment: It looks like a bug in the tracing machinery that has only been revealed by the changes to how tracebacks are interpreted in python3. It should be a relatively simple fix, but I wonder if there is existing code that depends on the second argument getting turned into a string. You can hack around the problem by creating a class to wrap around the arg[1] you get that has __cause__ and __context__ attributes, both set to none, and whose __str__ returns the original string. -- keywords: +easy nosy: +r.david.murray stage: - needs patch title: format_exception() breask on exception tuples from trace function - format_exception() breaks on exception tuples from trace function versions: +Python 3.2, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17413 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17413] format_exception() breaks on exception tuples from trace function
Changes by Aaron Meurer asmeu...@gmail.com: -- nosy: +Aaron.Meurer ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17413 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible
Roundup Robot added the comment: New changeset 9b45873e5a68 by Terry Jan Reedy in branch '3.2': Issue #17386 make.bat must run with Python 2 until Sphinx runs with Python 3. http://hg.python.org/cpython/rev/9b45873e5a68 New changeset e45db319e590 by Terry Jan Reedy in branch '3.3': Merge with 3.2: Issue #17386 http://hg.python.org/cpython/rev/e45db319e590 New changeset 99e72eae35bb by Terry Jan Reedy in branch 'default': Merge with 3.3: Issue #17386 http://hg.python.org/cpython/rev/99e72eae35bb -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17386] Bring Doc/make.bat as close to Doc/Makefile as possible
Terry J. Reedy added the comment: I pushed the minipatch but did not add a news item as it may get superseded and will not affect anyone currently setting PYTHON. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17386 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17390] display python version on idle title bar
Edmond Burnett added the comment: Suggesting a patch which addresses this enhancement. I did not include architecture() in the title bar but can add it as well if others think it is appropriate. Import of platform.python_version is done at the top of PyShell.py rather than inside the class as per PEP8. -- keywords: +patch nosy: +edmond.burnett versions: -Python 2.7, Python 3.2, Python 3.3 Added file: http://bugs.python.org/file29404/idle_shell_version_display-3.4.0a0.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17390 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15244] Support for opening files with FILE_SHARE_DELETE on Windows
Martin v. Löwis added the comment: I don't understand whether you are proposing to include the patch into Python as-is; if so, I'm -1 on it for two formal reasons: a) the standard library shouldn't monkey patch itself, and b) OS interfacing should be implemented in C. That said, having maximum sharing when opnening files sounds fine to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Ezio Melotti added the comment: Question: commit to 3.2, merge forward without change, push, and message is '... new remote head in 3.2'. Is 3.2 really the only branch with a head conflict? I don't remember the details of the error message, but you can use hg heads to verify that. In general this shouldn't happen, because if someone committed something on 3.2, he should have also merged and pushed it on 3.3/default[0]. It could happen if you forget to update your 3.2 clone but you have updated 3.3 and default clones. Or would one appear in 3.3 as soon as 3.2 heads are merged and merge is merged forward to 3.3? Heads on a branch don't appear magically. The only two ways to create another head on a branch are: 1) make a commit on a branch that is not updated; 2) pull a changeset after you made a commit; If the branch is updated, a new commit will replace the previous head, which will be its parent. To answer your question, assume you have one head on default, one head on 3.3, and two heads on 3.2. The first thing you have to do is merge the heads of 3.2, so that you end up with one head per branch. This created a new changesets on 3.2, but 3.3 and default are unaffected. This new changeset -- like all the other changesets on 3.2 -- must be merged with 3.3/default, so you merge branches as you would do with any other changeset you committed on 3.2. In the worst case scenario, you just made commits on all the four branches, and someone else did the same and pushed before you. Your push fails because it creates new heads. You pull the new changesets and end up with 2 heads for each branch. To solve this you have to do: 1) 2.7$ hg merge (merge heads on 2.7); 2) 3.2$ hg merge (merge heads on 3.2); 3) 3.3$ hg merge (merge heads on 3.3); 4) 3.x$ hg merge (merge heads on default); 5) 3.3$ hg merge 3.2 (merge 3.2 with 3.3); 6) 3.x$ hg merge 3.3 (merge 3.3 with default); I'm not sure this answers your questions -- I tried to explain it using different approaches, but the end result wasn't much clearer, so I discarded them. The concepts themselves are not particularly complicated or difficult to understand, however they are not really easy to explain either :) Using hg glog or http://hg.python.org/cpython/graph/ (or the one integrated in TortoiseHG) should help. [0] note that this is not currently enforced. #15917 has a patch to fix this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13056] test_multibytecodec.py:TestStreamWriter is skipped after PEP393
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +serhiy.storchaka versions: +Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13056 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11420] Make testsuite pass with -B/DONTWRITEBYTECODE set.
Ezio Melotti added the comment: Attached an updated patch against 3.2. -- nosy: +ezio.melotti type: - behavior versions: +Python 3.4 -Python 3.1 Added file: http://bugs.python.org/file29405/issue11420.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11420 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12921] http.server.BaseHTTPRequestHandler.send_error and trailing newline
Senthil Kumaran added the comment: Karl - I reviewed the patch and like it. Here are some comments. At first, I did not see the need for both message and explain in the API both having almost similar purposes. But given that explain is already used by send_error and at the moment, un-customizable and I think it is barely useful. Your 3rd patch may improve it's utility value a bit further. One review comment: - {'code': code, 'message': _quote_html(message), 'explain': explain}) + {'code': code, 'message': message, 'explain': _quote_html(explain)}) I would go with _quote_html(message) too. That was fix for XSS security issue. Also. I will not confuse the newline checking with status line in the same patch /commit. I have a suspicion that RFC says Status Line should be a single line and you went ahead with including that in patch. Is that correct? If you referred to any specific section of RFC, could you point me to that? Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12921 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14468] Update cloning guidelines in devguide
Terry J. Reedy added the comment: I now understand what I should have done. After pulling and updating, 1. Make sure there is only 1 head per branch by using 'hg heads branch*. Merge all but only pairs revealed by that command. * 'hg heads' without giving a branch lists all heads in all branches, including 2.6 and 3.1, making it harder to find pairs in one branch. This is especially true in the Workbench command window which has room to see only one head at a time. So I recommend you at least mention the option of adding the branch (with 3.4 being 'default'). Comment: while 2 heads for 2.7 or default are visibly obvious in the dag (at least they were the one time I had such), 2 heads for 3.2 and 3.3 seems not to be, at least when merged forwards. As far as I know, the only way to tell which nodes hg considers to be heads (in particular, which node is the already pushed head) is to use the 'heads' command. (My big mistake was to *assume* -- without checking 'heads' -- that the 3.2 heads, when merged forward, must have become 2 heads in 3.3 ...) 2. Merge forward as needed. I think a version of your 6 step display would be helpful. It was for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14468 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16612] Integrate Argument Clinic specialized preprocessor into CPython trunk
Nick Coghlan added the comment: Stefan's draft is now published: http://www.python.org/dev/peps/pep-0437/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com