[issue23497] textwrap.dedent doesn't work properly with embedded strings containing linefeeds

2015-02-21 Thread Ned Deily
Ned Deily added the comment: If you do not want the `\n` to be interpreted as a linefeed, you need to use a raw string literal, like: a = r''' ... 'my_key' : r'my value which contains \n character' ... ''' print(dedent(a)) 'my_key' : r'my value which contains \n character' --

[issue23497] textwrap.dedent doesn't work properly with embedded strings containing linefeeds

2015-02-21 Thread Myles Dear
New submission from Myles Dear: The textwrap.dedent function does not work when the string to dedent itself contains embedded strings that contain newline characters. https://docs.python.org/3.4/library/textwrap.html?highlight=dedent#textwrap.dedent states that this function can be used to

[issue23498] Expose http.cookiejar.split_header_words()

2015-02-21 Thread Martin Panter
New submission from Martin Panter: I propose to document the split_header_words() so that it can be used to parse various kinds of HTTP-based header fields. Perhaps it should live in a more general module like “http”, or “email.policy.HTTP” (hinted in Issue 3609). Perhaps there is also room

[issue3609] does parse_header really belong in CGI module?

2015-02-21 Thread Martin Panter
Martin Panter added the comment: I opened Issue 23498 about exposing split_header_words() or similar. So this issue can focus on moving parse_header() to an email.policy.HTTP method or whatever. RTSP 1.0 and its Transport header is defined in RFC 2326:

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-21 Thread Russell Keith-Magee
Changes by Russell Keith-Magee freakboy3...@gmail.com: -- nosy: +freakboy3742 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___

[issue23152] fstat64 required on Windows

2015-02-21 Thread STINNER Victor
STINNER Victor added the comment: You didn't reply to my question on getfilesize(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23152 ___ ___

[issue23199] libpython27.a in amd64 release is 32-bit

2015-02-21 Thread Daniel Franke
Daniel Franke added the comment: I've downloaded and installed python-2.7.9.amd.msi and spent some hours trying to understand the myriad of i386/x86-64 related linker errors I get when attempting to build an extension module. Now that I found this report I can at least stop doubting my

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-21 Thread Ethan Furman
Changes by Ethan Furman et...@stoneleaf.us: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23496 ___ ___ Python-bugs-list

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-21 Thread Paul Moore
Paul Moore added the comment: As an alternative, virtualenv could be changed to create a pyvenv.cfg file with the interpreter version like pyvenv does. Seems pretty simple and unproblematic to me and it might actually be useful to know the interpreter version without running it in other

[issue13637] binascii.a2b_* functions could accept unicode strings

2015-02-21 Thread R. David Murray
R. David Murray added the comment: Ah, yes, I see. Sorry for the confusion, I misread that part of the discussion and did not look at that part of the docs. (I find that note confusing...it seems to imply that a2b only accepts ascii. But that's a different issue and I don't feel strongly

[issue23465] Implement PEP 486 - Make the Python Launcher aware of virtual environments

2015-02-21 Thread Wolfgang Maier
Wolfgang Maier added the comment: So, with the current patch users could still not use the py launcher from a virtual environment with scripts that are supposed to work under UNIX :( Correct. That's not the problem this PEP is intended to solve. Granted :) Another PEP could be written

[issue23152] fstat64 required on Windows

2015-02-21 Thread Steve Dower
Changes by Steve Dower steve.do...@microsoft.com: -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23152 ___

[issue23199] libpython27.a in amd64 release is 32-bit

2015-02-21 Thread Steve Dower
Steve Dower added the comment: I posted these commands above (modulo version number). If you have MinGW and binutils then it should Just Work, but I'm not very experienced with the range of installations you could have, so you may need to track down the gendef and dlltool tools: gendef -

[issue23152] fstat64 required on Windows

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset a824c40e8fc0 by Steve Dower in branch 'default': Issue #23152: Renames time_t_to_FILE_TIME to _Py_time_t_to_FILE_TIME, removes unused struct win32_stat and return value https://hg.python.org/cpython/rev/a824c40e8fc0 --

[issue15955] gzip, bz2, lzma: add option to limit output size

2015-02-21 Thread Martin Panter
Martin Panter added the comment: The new bzip parameter still needs documenting in the library reference. However I reviewed the doc string, C code, and tests, and I can’t find anything wrong. -- ___ Python tracker rep...@bugs.python.org

[issue23436] xml.dom.minidom.Element.ownerDocument is hiden

2015-02-21 Thread R. David Murray
R. David Murray added the comment: It looks like the __slots__ declaration on Node was missed when the other slots changes were made (by MvL in 3931f043b79a). Note that the Node base class (xml.dom.Node) has a __slots__ declaration, but it was added after MvL's patch (by Florent in

[issue23148] Missing the charset parameter in as_encoded_word()

2015-02-21 Thread R. David Murray
R. David Murray added the comment: Same comment as the fold bug...I need to find time to work out a test case (or for someone else to do so). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23148

[issue21793] httplib client/server status refactor

2015-02-21 Thread Demian Brecht
Demian Brecht added the comment: Well, I’m not entirely sure how I came to the conclusion that errors were a problem (other than not spending enough time walking through it) and of course you’re right about the coercion handling it just fine. I’ve removed the explicit conversion in the code

[issue22113] memoryview and struct.pack_into

2015-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I suppose this is okay. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22113 ___ ___ Python-bugs-list

[issue23322] parser module docs missing second example

2015-02-21 Thread Sahil Chelaramani
Sahil Chelaramani added the comment: A patch for this bug. Please let me know if I have to change something. First patch, please be kind :) -- keywords: +patch nosy: +SahilC Added file: http://bugs.python.org/file38196/mywork.patch ___ Python

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-21 Thread Stefan Behnel
Stefan Behnel added the comment: Serhiy, I suggest you look at the code that Cython generates for its functions. It has been extensively profiled and optimised (years ago), so generating the same code for the argument clinic should yield the same performance. And while I don't have exact

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-21 Thread Larry Hastings
Larry Hastings added the comment: Stefan: Serhiy's patch only affects functions taking a single positional-only parameter. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23492 ___

[issue23224] LZMADecompressor object is only initialized in __init__

2015-02-21 Thread Martin Panter
Martin Panter added the comment: Similar situation in the bzip module: BZ2Decompressor.__new__(BZ2Decompressor).decompress(bytes()) Segmentation fault (core dumped) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23224

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2015-02-21 Thread SilentGhost
Changes by SilentGhost ghost@gmail.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23495 ___ ___ Python-bugs-list

[issue9179] Lookback with group references incorrect (two issues?)

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b78195af96f5 by Serhiy Storchaka in branch 'default': Issues #814253, #9179: Group references and conditional group references now https://hg.python.org/cpython/rev/b78195af96f5 New changeset 5387095b8675 by Serhiy Storchaka in branch '2.7': Issues

[issue814253] Grouprefs in lookbehind assertions

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset b78195af96f5 by Serhiy Storchaka in branch 'default': Issues #814253, #9179: Group references and conditional group references now https://hg.python.org/cpython/rev/b78195af96f5 New changeset 5387095b8675 by Serhiy Storchaka in branch '2.7': Issues

[issue9179] Lookback with group references incorrect (two issues?)

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Only warnings are raised in 2.7 and 3.4, so it will not break third party code that works by accident. In 3.5 only references to groups defined outside of lookbehind assertion work, so the behavior is compatible with regex. --

[issue9179] Lookback with group references incorrect (two issues?)

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

[issue14285] Traceback wrong on ImportError while executing a package

2015-02-21 Thread Martin Panter
Martin Panter added the comment: The relevant code is in the _get_module_details() function at Lib/runpy.py:101. There are a few of things going on: 1. The code is calling importlib.util.find_spec(package.__main__), and handles various kinds of exceptions by wrapping them in an ImportError,

[issue23252] Add support of writing to unseekable file in zipfile

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Could you please make a review of the documentation part of the patch David? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23252

[issue13637] binascii.a2b_* functions could accept unicode strings

2015-02-21 Thread R. David Murray
R. David Murray added the comment: I think this doc change was incorrect. The current document is supposed to provide the correct historical information. So changed in 3.3: accept ASCII input (and just ignore the fact that 3.1 also accepted ascii, since we pretty much prefer to ignore the

[issue23152] fstat64 required on Windows

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4f6f4aa0d80f by Steve Dower in branch 'default': Issue #23152: Implement _Py_fstat() to support files larger than 2 GB on Windows. https://hg.python.org/cpython/rev/4f6f4aa0d80f -- nosy: +python-dev ___

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file28551/tkinter_bignum.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840 ___

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file31420/tkinter_bignum_2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840 ___

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: Removed file: http://bugs.python.org/file35280/tkinter_bignum_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840 ___

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch now supports wideInt if PY_LONG_LONG is not defined or is not equal to Tcl_WideInt. getint() also now supports big integers (currently it returns ambiguous result for values outside the range of C signed int). As far as this issue causes

[issue18382] multiprocessing's overlapped PipeConnection issues on Windows 8

2015-02-21 Thread Steve Dower
Steve Dower added the comment: Attached a patch to 3.5 that resolves this, and I'll backport to 3.4. I haven't got access to Windows 7 or 8 right now to test it, but it's fine on Vista without the patch and 8.1 with the patch. It'd be great if people could help check exactly which version of

[issue22834] Unexpected FileNotFoundError when current directory is removed

2015-02-21 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22834 ___ ___ Python-bugs-list

[issue23152] fstat64 required on Windows

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 307713759a62 by Steve Dower in branch 'default': Issue #23152: Renames attribute_data_to_stat to _Py_attribute_data_to_stat https://hg.python.org/cpython/rev/307713759a62 -- ___ Python tracker

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Serhiy, I suggest you look at the code that Cython generates for its functions. It has been extensively profiled and optimised (years ago), so generating the same code for the argument clinic should yield the same performance. Thanks, I'll look on it.

[issue22113] memoryview and struct.pack_into

2015-02-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4d8e37e54a7d by Serhiy Storchaka in branch '2.7': Issue #22113: struct.pack_into() now supports new buffer protocol (in https://hg.python.org/cpython/rev/4d8e37e54a7d -- nosy: +python-dev ___ Python

[issue23314] Disabling CRT asserts in debug build

2015-02-21 Thread Steve Dower
Steve Dower added the comment: Having run some more tests, it may be that the only regular problem is in the test for inherited file descriptors. I've attached a patch for tf_inherit_check.py that will prevent assert dialogs. It's not pretty, but it avoids touching the interpreter internals.

[issue2889] curses for windows (alternative patch)

2015-02-21 Thread Taylor Marks
Taylor Marks added the comment: Python is supposed to be cross platform. This has been a major incompatibility issue between Windows and *nix and you think this patch, which has been ready for nearly 7 years now, should simply get discarded because the fix is available from pip? I think

[issue23152] fstat64 required on Windows

2015-02-21 Thread STINNER Victor
STINNER Victor added the comment: The name of attribute_data_to_stat() and other shared functions must be prefixed by _Py. +/* Return size of file in bytes; 0 if unknown or INT_MAX if too big */ static off_t getfilesize(FILE *fp) Hum since we have a type able yo store the file size and the

[issue23152] fstat64 required on Windows

2015-02-21 Thread Steve Dower
Steve Dower added the comment: The caller to getfilesize is only using it to check whether it's small enough to load the file into memory all at once, so too big is an okay response (that function is in marshal.c and not used anywhere else). The error label just returns back to the

[issue22113] memoryview and struct.pack_into

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

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-21 Thread Larry Hastings
Larry Hastings added the comment: lgtm -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23492 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: I'm all for fixing random test failures. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840 ___ ___

[issue23495] The writer.writerows method should be documented as accepting any iterable (not only a list)

2015-02-21 Thread R. David Murray
R. David Murray added the comment: Seems reasonable to me. Do you want to prepare patches? The doc patch should be separate, since it applies to all active versions, but the code change to dictwriter would go only into 3.5. -- stage: - needs patch versions: -Python 3.2, Python

[issue23147] Possible error in _header_value_parser.py

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: If I had a test case, I would write the patch. But I'm not experienced in the email package. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23147 ___

[issue23147] Possible error in _header_value_parser.py

2015-02-21 Thread R. David Murray
R. David Murray added the comment: Yes, I assumed that you didn't have a test case. I was explaining why I hadn't done anything with this issue :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23147

[issue23147] Possible error in _header_value_parser.py

2015-02-21 Thread R. David Murray
R. David Murray added the comment: Probably. What I need is a test case that triggers it. (FYI, I know there are other bugs in that algorithm...what I really need to do is completely rewrite it to be simpler and more understandable, but there are so many edge cases that I haven't found the

[issue23434] RFC6266 support (Content-Disposition for HTTP)

2015-02-21 Thread R. David Murray
R. David Murray added the comment: I know it is called the 'email' package, but the intent is to support http header parsing as well (cf email.policy.HTTP). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23434

[issue23496] Steps for Android Native Build of Python 3.4.2

2015-02-21 Thread Cyd Haselton
New submission from Cyd Haselton: This is a (hopefully) complete list of patches and modifications required to natively build Python 3.4.2 on an Android device where patches == listed issues in this bug tracker modifications (mods) == unsubmitted patches and/or edits made to source CAVEATS

[issue13637] binascii.a2b_* functions could accept unicode strings

2015-02-21 Thread Martin Panter
Martin Panter added the comment: If I understand what you are saying, you don’t mind not mentioning 3.1 behaviour, but want to mention 3.2 behaviour. Perhaps the existing “Note” box at the top of the page is good enough for you, as pointed out in http://bugs.python.org/issue13637#msg235931.

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Benjamin Peterson
Benjamin Peterson added the comment: It's up to you. Since 2.7 is so long lived, we've had to gradually alter supported library versions (e.g. for bsddb). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16840

[issue16840] Tkinter doesn't support large integers

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: But there is a risk to break Python builds with old Tcl/Tk. We dropped support of Tcl/Tk older than 8.4 in 3.5, but theoretically 2.7 should work with older versions. It was not tested for years, we have no build bots with 8.3, and I manually test Python

[issue23492] Argument Clinic: improve generated parser for 1-argument functions

2015-02-21 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After expanding PyArg_Parse for i and D codes above tests give following results: $ ./python -m timeit chr(0x20ac) 100 loops, best of 3: 0.558 usec per loop $ ./python -m timeit -s from cmath import isnan; x = 1j -- isnan(x) 100 loops, best of 3: