[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Totally agree. Current definition is too wide. Actually in different places the term bytes-like object can imply different requirements. * Supports buffer protocol. list isn't. * Contiguous. memoryview()[::2] isn't. * len() returns bytes size. array('I')

[issue22623] Port Python to 3DS: micro kernel, homebrew, newlib (Missing guards for some POSIX functions)

2015-03-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22623 ___ ___

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread chrysn
New submission from chrysn: The CoAP protocol (RFC 7252) registers the new URI schemes coap and coaps. They adhere to the generic RFC3986 rules, and use netloc and relative URIs. Therefore, please add the 'coap' and 'coaps' schemes to the uses_relative and uses_netloc lists in urllib.parse.

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset efb2c9ac2f88 by Victor Stinner in branch '3.4': Issue #23571: Enhance Py_FatalError() https://hg.python.org/cpython/rev/efb2c9ac2f88 New changeset 6303795f035a by Victor Stinner in branch 'default': (Merge 3.4) Issue #23571: Enhance Py_FatalError()

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset ad5521dd7b80 by Victor Stinner in branch 'default': Issue #23753: Move _Py_wstat() from Python/fileutils.c to Modules/getpath.c https://hg.python.org/cpython/rev/ad5521dd7b80 -- ___ Python tracker

Re: module attributes and docstrings

2015-03-24 Thread Steven D'Aprano
On Tue, 24 Mar 2015 07:55 pm, Mario Figueiredo wrote: Reading PEP 257 and 258 I got the impression that I could document module attributes and these would be available in the __doc__ attribute of the object. PEP 258 is rejected, so you can't take that as definitive. PEP 257 has this

Re: fibonacci series what Iam is missing ?

2015-03-24 Thread Ganesh Pal
On Tue, Mar 24, 2015 at 5:41 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Python does not automatically print all return statements. If you want it to print the intermediate values produced, you will need to add print before each return: py def fib(n): ... if n == 0:

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-24 Thread R. David Murray
R. David Murray added the comment: Yes, I agree that that is a concern. What should probably happen is that the maximum line length be a settable parameter with a reasonable default. It is too bad that (unlike say the SMTP protocol) the imap protocol does not address this directly.

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread alister
On Tue, 24 Mar 2015 00:05:46 -0700, jeffreyciross wrote: PDF Converter for Mac is a fantastic and easyto-use instrument for converting PDF documents on Macos. Macintosh PDF Converter can pdf to excel converter to Word, Shine, PowerPoint, EPUB, Text format for Mac. With PDF Converter Mac, the

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 850b9dcd0534 by Victor Stinner in branch 'default': Issue #23571: In debug mode, _Py_CheckFunctionResult() now calls https://hg.python.org/cpython/rev/850b9dcd0534 New changeset da252f12352a by Victor Stinner in branch '3.4': Issue #23571:

[issue12319] [http.client] HTTPConnection.putrequest not support chunked Transfer-Encodings to send data

2015-03-24 Thread Martin Panter
Martin Panter added the comment: I left a few comments on Reitveld, mainly about the documentation and API design. However I understand Rolf specifically wanted chunked encoding to work with the existing urlopen() framework, at least after constructing a separate opener object. I think that

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Martin Panter
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23760 ___ ___ Python-bugs-list

Re: Monkey patch an entire file in a python package

2015-03-24 Thread enjoyaol
Le mardi 24 mars 2015 13:11:33 UTC+1, Chris Angelico a écrit : On Tue, Mar 24, 2015 at 10:50 PM, enjoy...@gmail.com wrote: I am trying to use multiprocessing with freeze. It appears there is some bug when using multiprocessing on freezed python code on windows platforms. There is this

[issue23703] urljoin() with no directory segments duplicates filename

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23703 ___ ___

[issue23743] Python crashes upon exit if importing g++ compiled mod after importing gcc compiled mod

2015-03-24 Thread R. David Murray
R. David Murray added the comment: Oh, I'm afraid it can still be ignored :). What filing it here means is that it won't be *forgotten*, and hopefully there will eventually be someone with the time and interest to address it. -- nosy: +r.david.murray

Re: fibonacci series what Iam is missing ?

2015-03-24 Thread Ian Kelly
On Tue, Mar 24, 2015 at 12:20 AM, Rustom Mody rustompm...@gmail.com wrote: On Tuesday, March 24, 2015 at 10:51:11 AM UTC+5:30, Ian wrote: Iteration in log space. On my desktop, this calculates fib(1000) in about 9 us, fib(10) in about 5 ms, and fib(1000) in about 7 seconds. def

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It is a deliberate choice because the functions accept default values to be returned if the actual values cannot be determined, and because it is easier therefore to write cross-platform scripts if the functions do *not* raise an error when called on the

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- Removed message: http://bugs.python.org/msg239124 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23747 ___

[issue23747] platform module exposes win32_ver function on posix systems

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It is a deliberate choice because (I'm guessing) the designer thought it would make it easier to write cross platform scripts. In any case, as Haypo said, it is what it is (and it *is* consistent with itself). -- nosy: +r.david.murray

[issue18828] urljoin behaves differently with custom and standard schemas

2015-03-24 Thread Berker Peksag
Berker Peksag added the comment: Yet another option, similar to my “any_scheme=True” flag, might be to change from the “uses_relative” white-list to a “not_relative” black-list of URL schemes, [...] I think this looks like a good solution. -- versions: -Python 3.3

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread Michael Torrie
On 03/24/2015 01:05 AM, jeffreyciross wrote: probable spam I'm wondering whether this is appropriate use of sourceforge. Hosting a proprietary program on SF's web site for free, doesn't seem honest to me. Should I report this to SF as inappropriate content? --

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Carol Willing
New submission from Carol Willing: On Mac OSX 10.9.5, test_socket fails when regression tests are run. Specifically, the following fails: FAIL: test_host_resolution (test.test_socket.GeneralModuleTests) -- Traceback (most

[issue15945] memoryview + bytes fails

2015-03-24 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone jean-p...@clusterhq.com: -- nosy: -exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15945 ___ ___

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread Martin Panter
Martin Panter added the comment: I would like to see these hard-coded white lists of URL schemes eliminated as much as possible. Here’s some related issues: * Issue 16134: rtmp, rtmpe, rtmps, rtmpt * Issue 18828: redis, also proposing to urljoin() arbitrary schemes * Issue 15009: yelp * Issue

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Tim Graham
Tim Graham added the comment: That last commit fixed compatibility with Django. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23571 ___ ___

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-03-24 Thread Bob
Bob added the comment: I was looking into http://lists.cs.uiuc.edu/pipermail/llvmbugs/2012-September/025152.html 'Use of libclang python bindings on Windows 7 64 bit fails with memory access violation' It appears to be 90% fixed with this patch, but I believe there is still a problem when

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-24 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the patch! -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23512

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: -#if defined(HAVE_STAT) !defined(MS_WINDOWS) This doesn't look correct. An equivalent replacement is -#if defined(HAVE_STAT) !defined(MS_WINDOWS) +#if !defined(MS_WINDOWS) -- ___ Python tracker

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset a84eae63b4cd by Victor Stinner in branch 'default': Issue #23753: Python doesn't support anymore platforms without stat() or https://hg.python.org/cpython/rev/a84eae63b4cd -- nosy: +python-dev ___ Python

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Antoine and Charles-François are in favor of removing these #ifdef. Serhiy wrote: See issue22623 for moving in opposite direction. Not exactly, Link Mauve wrote On those two platforms, fstat() is correctly defined and works fine, so it shouldn’t be a problem

Re: module attributes and docstrings

2015-03-24 Thread Chris Angelico
On Tue, Mar 24, 2015 at 7:55 PM, Mario Figueiredo mar...@gmail.com wrote: So things like the one below are something I got used to do, but that don't work after all, as I learned today: value_factory = lambda _, row: row[0] Row factory. To be used with single-column queries. There

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich
New submission from Victor Korolkevich: From http://stackoverflow.com/questions/26321333/tkinter-in-python-3-4-on-windows-dont-post-internal-clipboard-data-to-the-windo I use the following code to place result in clipboard. from tkinter import Tk r = Tk() r.withdraw() r.clipboard_clear()

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2e14ca478a57 by Victor Stinner in branch 'default': Issue #23571: PyErr_FormatV() and PyErr_SetObject() now always clear the https://hg.python.org/cpython/rev/2e14ca478a57 -- ___ Python tracker

Re: Monkey patch an entire file in a python package

2015-03-24 Thread Chris Angelico
On Tue, Mar 24, 2015 at 10:50 PM, enjoy...@gmail.com wrote: I am trying to use multiprocessing with freeze. It appears there is some bug when using multiprocessing on freezed python code on windows platforms. There is this patch which made its way to python 3.2, and works in 2.7:

[issue23758] Improve documenation about num_params in sqlite3 create_function and create_aggregate

2015-03-24 Thread Cédric Krier
New submission from Cédric Krier: num_params must have the value -1 for any number of arguments see https://www.sqlite.org/c3ref/create_function.html -- assignee: docs@python components: Documentation files: sqlite3_doc.patch keywords: patch messages: 239104 nosy: ced, docs@python

[issue11468] Improve unittest basic example in the doc

2015-03-24 Thread Ezio Melotti
Ezio Melotti added the comment: I tweaked the wording a bit, added a link to the section about setUp/tearDown, and applied it on all the 3 branches. Thanks for the patch Florian! -- resolution: - fixed stage: patch review - resolved status: open - closed

[issue23753] Drop HAVE_FSTAT: require fstat() to compile/use Python

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: -#if defined(HAVE_STAT) !defined(MS_WINDOWS) This doesn't look correct. An equivalent replacement is Oh, I missed the !. Only _Py_wstat() uses this test. Windows has _wstat(), so _Py_wstat() could use it. I added deliberately !defined(MS_WINDOWS) because

[issue23512] The list of built-in functions is not alphabetical on https://docs.python.org/2/library/functions.html

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 971d299d2cf3 by Ezio Melotti in branch '2.7': #23512: list non-essential built-in functions after the table. Patch by Carlo Beccarini. https://hg.python.org/cpython/rev/971d299d2cf3 -- nosy: +python-dev

Monkey patch an entire file in a python package

2015-03-24 Thread enjoyaol
This question is about python 2.7 on Windows 7 I am trying to use multiprocessing with freeze. It appears there is some bug when using multiprocessing on freezed python code on windows platforms. There is this patch which made its way to python 3.2, and works in 2.7:

[issue21511] Thinko in Lib/quopri.py, decoding b== to b=

2015-03-24 Thread Berker Peksag
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21511 ___ ___ Python-bugs-list

[issue11468] Improve unittest basic example in the doc

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4a2a5fddbab3 by Ezio Melotti in branch '2.7': #11468: improve unittest basic example. Initial patch by Florian Preinstorfer. https://hg.python.org/cpython/rev/4a2a5fddbab3 New changeset 010e33b37feb by Ezio Melotti in branch '3.4': #11468: improve

[issue23760] Tkinter in Python 3.4 on Windows don't post internal clipboard data to the Windows clipboard on exit

2015-03-24 Thread Victor Korolkevich
Changes by Victor Korolkevich victor.korolkev...@gmail.com: -- versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23760 ___ ___

Trac 1.1.4 Released

2015-03-24 Thread Ryan Ollos
Trac 1.1.4 Released === Trac 1.1.4 continues the 1.1.x development line leading to 1.2 with some new features and a few not-so-disruptive changes. Note that the 1.1.x releases are stable and tested snapshots of the trunk. They can be seen as sub-milestones on the road towards

Trac 1.0.5 Released

2015-03-24 Thread Ryan Ollos
Trac 1.0.5 Released === Trac 1.0.5, the fifth maintenance release for the current stable branch, is now available! You will find this release at the usual places: http://trac.edgewall.org/wiki/TracDownload#LatestStableRelease https://pypi.python.org/pypi/Trac/1.0.5 Trac

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Carol Willing
Carol Willing added the comment: Thanks Ned and R. David. A few questions... 1. I've rerun the tests using: One failure: 70 tests OK. 1 test failed: test_socket 1 test altered the execution environment: test_warnings 21 tests skipped: test_curses test_dbm_gnu test_devpoll

[issue23712] Experiment: Assume that exact unicode hashes are perfect discriminators

2015-03-24 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- priority: normal - low versions: -Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23712 ___

[issue23529] Limit decompressed data when reading from LZMAFile and BZ2File

2015-03-24 Thread Nikolaus Rath
Nikolaus Rath added the comment: As discussed in Rietveld, here's an attempt to reuse more DecompressReader for GzipFile. There is still an unexplained test failure (test_read_truncated). -- Added file: http://bugs.python.org/file38674/LZMAFile-etc.v7.patch

[issue20160] broken ctypes calling convention on MSVC / 64-bit Windows (large structs)

2015-03-24 Thread Mark Lawrence
Mark Lawrence added the comment: This https://mail.python.org/pipermail/python-dev/2014-December/137631.html seems relevant. Follow up here https://mail.python.org/pipermail/python-dev/2015-March/138731.html -- nosy: +BreamoreBoy ___ Python

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Looks as this patch makes buildbots crash. -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23573 ___

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
Changes by Robert Kuska rku...@gmail.com: Added file: http://bugs.python.org/file38673/report ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23769 ___ ___

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
New submission from Robert Kuska: Leaks happen only when both testDoctestFile and testDoctestSuite are run. Run with Python 3.4.2 and 3.4.1 with same result. I have extracted those two tests into `leak.py` (attached). $ valgrind --suppressions=/../cpython/Misc/valgrind-python.supp python3

[issue23766] json.dumps: solidus (/) should be escaped

2015-03-24 Thread Martin Panter
Martin Panter added the comment: According to that RFC section, the forward solidus is allowed to be in an escape sequence, but it is also allowed unescaped: “All Unicode characters may be placed within the quotation marks, except for the characters that must be escaped: quotation mark,

Re: subprocess and stdin.write(), stdout.read()

2015-03-24 Thread Nobody
On Tue, 24 Mar 2015 12:08:24 -0700, Tobiah wrote: But if I want to send a string to stdin, how can I do that without stdin.write()? p.communicate(string) This seems to work: Only because the amounts of data involved are small enough to avoid deadlock. If both sides write more data

[issue23766] json.dumps: solidus (/) should be escaped

2015-03-24 Thread R. David Murray
R. David Murray added the comment: It sounds like that makes this not-a-bug? -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23766 ___

[issue23171] csv.writer.writerow() does not accept generator (must be coerced to list)

2015-03-24 Thread Martin Panter
Martin Panter added the comment: Left a question about handling of the unquoted empty field exception on Rietveld. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23171 ___

Re: Daylight savings time question

2015-03-24 Thread Chris Angelico
On Wed, Mar 25, 2015 at 9:24 AM, Dan Stromberg drsali...@gmail.com wrote: Is there a way of adding 4 hours and getting a jump of 5 hours on March 8th, 2015 (due to Daylight Savings Time), without hardcoding when to spring forward and when to fall back? I'd love it if there's some library

[issue23550] Add to unicodedata a function to query the Quick_Check property for a character

2015-03-24 Thread Hammerite
Hammerite added the comment: I tried to add these responses within the code review section of the site, but I am unable to do so; when I click Send Message, I am taken to a page that consists of the text 500 Server Error and no other content. Therefore I am responding to the code review

[issue23466] PEP 461: Inconsistency between str and bytes formatting of integers

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: The patch looks good to me, except of a question added on the review. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23466 ___

[issue23648] PEP 475 meta issue

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Charles-François Natali added the comment: You have to mount the share with the eintr option. Oh, I didn't know this option. Unlikely, it looks like the option was deprecated something like 7 years ago, in Linux kernel 2.6.25. Related commits:

Re: Daylight savings time question

2015-03-24 Thread Gary Herron
On 03/24/2015 03:24 PM, Dan Stromberg wrote: Is there a way of adding 4 hours and getting a jump of 5 hours on March 8th, 2015 (due to Daylight Savings Time), without hardcoding when to spring forward and when to fall back? I'd love it if there's some library that'll do this for me.

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread Robert Kuska
Robert Kuska added the comment: Summary for valgrind python3 test_zipimport.py ==18608== ==18608== HEAP SUMMARY: ==18608== in use at exit: 1,596,390 bytes in 11,536 blocks ==18608== total heap usage: 343,849 allocs, 332,313 frees, 59,355,776 bytes allocated ==18608== ==18608== LEAK

[issue23769] valgrind reports leaks for test_zipimport

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: When calling gc.collect() after each test, I don't see any leak anymore. doTest() has a small leak: it prepends a path to sys.path, but it never removes it. Try attached leak2.py: it displays something like +254 kB. Uncomment the two following lines and the

OpenID + Python 3.4

2015-03-24 Thread Juan C.
I was looking on the Internet regarding the use of OpenID in Python apps but I only found Flask/web related stuff. Is there any module that provides OpenID implementation for desktop level? I currently have a Python desktop script that needs to authenticate in a OpenID server, but I don't know

Re: Daylight savings time question

2015-03-24 Thread Dan Stromberg
This appears to do what I wanted: #!/usr/bin/python from __future__ import print_function import pytz import datetime # Is there a good way of jumping ahead 5 hours instead of 4 on 2015-03-08? def main(): # On 2015-03-08, 2:00 AM to 2:59AM Pacific time does not exist - the clock jumps

[issue23671] string.Template doesn't work with the self keyword argument

2015-03-24 Thread Terry J. Reedy
Terry J. Reedy added the comment: This is a nice catch of a subtle bug and a nice fix. I verified that replacing 'self' with '*args' does not simply shift the problem from 'self' to 'args'. class C: def test(*args, **kwargs): print(args, kwargs ) c = C()

Daylight savings time question

2015-03-24 Thread Dan Stromberg
Is there a way of adding 4 hours and getting a jump of 5 hours on March 8th, 2015 (due to Daylight Savings Time), without hardcoding when to spring forward and when to fall back? I'd love it if there's some library that'll do this for me. #!/usr/bin/python import pytz import datetime def

[issue23622] Deprecate unrecognized backslash+letter escapes in re

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 7384db2fce8a by Serhiy Storchaka in branch 'default': Fixed using deprecated escaping in regular expression in _strptime.py (issue23622). https://hg.python.org/cpython/rev/7384db2fce8a -- ___ Python

[issue23647] imaplib.py MAXLINE value is too low for gmail

2015-03-24 Thread Arnt Gulbrandsen
Arnt Gulbrandsen added the comment: Length limits has actually been discussed and rejected; noone had a proposal that solved more problems than it introduced. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23647

[issue23762] python.org page on new-style classes should be updated

2015-03-24 Thread Joël Schaerer
New submission from Joël Schaerer: This page (found it via a search engine): https://www.python.org/doc/newstyle/ is supposed to give the status of New-style classes. However this information is no longer relevant for Python 3, and my needlessly scare newcomers. I believe it should be either

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: In Python 3, it becomes possible to chain two exceptions. It's one of the killer feature of Python 3, it helps debugging. In Python, exceptions are chained by default. Example: try: raise TypeError(old message) except TypeError:

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: For the next step, I propose to explicitly clear the current exception before raising a new exception. Attached pyerr_match_clear.patch implements this. It's only a work-in-progress. I prefer to get feedback on the patch before finishing it. The patch

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: While working on the PEP 475, I modified _Py_fopen_obj() to raise the OSError (instead of raising the exception from the call site). The zipimport uses _Py_fopen_obj() but it didn't raise OSError, only ZipImportError. I modified the zipimport module to raise

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread Ned Deily
Ned Deily added the comment: I don't recall ever seeing that failure on OS X systems. Can you patch the test to find out which address lookup is not failing as expected and then check your host configuration? -- ___ Python tracker

[issue4727] copyreg doesn't support keyword only arguments in __new__

2015-03-24 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4727 ___ ___

[issue4727] copyreg doesn't support keyword only arguments in __new__

2015-03-24 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/issue4727 ___

[issue20289] Make cgi.FieldStorage a context manager

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 34930a6faf0d by Serhiy Storchaka in branch 'default': Issue #20289: The copy module now uses pickle protocol 4 (PEP 3154) and https://hg.python.org/cpython/rev/34930a6faf0d -- ___ Python tracker

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: See also issue #21715: Chaining exceptions at C level. The changeset 9af21752ea2a added the new _PyErr_ChainExceptions() function. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread chrysn
chrysn added the comment: i wholeheartedly agree that a generic solution would be preferable, but as you pointed out, that needs to be well-researched. until there is a concrete plan for that, please don't let the ideal solution get in the way of a practical update of the uri scheme list.

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread Mark Lawrence
On 24/03/2015 14:23, Michael Torrie wrote: On 03/24/2015 01:05 AM, jeffreyciross wrote: probable spam I'm wondering whether this is appropriate use of sourceforge. Hosting a proprietary program on SF's web site for free, doesn't seem honest to me. Should I report this to SF as inappropriate

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_match_assertion.patch: Modify PyErr_ExceptionMatches() to raise an exception if it is called with no exception set. This patch can be used to ensure that pyerr_match_clear.patch doesn't introduce regression. Example: -

[issue22904] make profile-opt includes -fprofile* flags in _sysconfigdata CFLAGS

2015-03-24 Thread Bohuslav Slavek Kabrda
Bohuslav Slavek Kabrda added the comment: I'm also hitting an issue with test_sysconfig_module, but for a different reason: While building Python, I used make EXTRA_CFLAGS='some flags' and this makes test_sysconfig_module fail when I run make test or python -m test.regrtest. The problem is

[issue23759] urllib.parse: make coap:// known

2015-03-24 Thread R. David Murray
R. David Murray added the comment: I too would like to see this issue dealt with generically. I believe the last time we discussed it the barrier was backward compatibility and which RFCs we actually support :(. Fixing it generically will require a well thought out and well researched

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread R. David Murray
R. David Murray added the comment: This is almost certain to be an OSX bug. Do you want to investigate? -- components: +Macintosh -Tests nosy: +ned.deily, r.david.murray, ronaldoussoren ___ Python tracker rep...@bugs.python.org

Re: To Change A Pdf Ebook To Kindle

2015-03-24 Thread Michael Torrie
On 03/24/2015 08:27 AM, Mark Lawrence wrote: On 24/03/2015 14:23, Michael Torrie wrote: Should I report this to SF as inappropriate content? Yes. Done. And yes I agree with alister, Calibre is an amazing program and it's all 100% python! And a large-scale app at that. GPLv3. Putting a

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 2a18b958f1e1 by Victor Stinner in branch 'default': Issue #23571: Enhance _Py_CheckFunctionResult() https://hg.python.org/cpython/rev/2a18b958f1e1 -- ___ Python tracker rep...@bugs.python.org

[issue23761] test_socket fails on Mac OSX 10.9.5

2015-03-24 Thread R. David Murray
R. David Murray added the comment: We could/should change that test to use subtests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23761 ___

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

2015-03-24 Thread Dan O'Reilly
Changes by Dan O'Reilly oreil...@gmail.com: -- type: - enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21423 ___ ___ Python-bugs-list

[issue23756] Tighten definition of bytes-like objects

2015-03-24 Thread R. David Murray
R. David Murray added the comment: This not dissimilar to the problem we have with file like object or file object. The requirements on them are not consistent. I'm not sure what the solution is in either case, but for file like objects we have decided to ignore the issue, I think. (ie:

[issue18473] some objects pickled by Python 3.x are not unpicklable in Python 2.x because of incorrect REVERSE_IMPORT_MAPPING

2015-03-24 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Updated patch fixes more bugs. Added support of unicode, izip_longest, abstract collections, ChainMap, multiprocessing exceptions, some socket and multiprocessing functions and types, xml.etree.ElementTree (C implementation). Added support of urllib and

[issue23770] Rework of exceptions are handled in the parser module (in validate_repeating_list())

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: Attached patch avoids calling validate_numnodes() with an exception set in the parser module. I found this issue while working on the issue #23763 Chain exceptions in C. -- files: validate_repeating_list.patch keywords: patch messages: 239199 nosy:

[issue23764] functools.wraps should be able to change function argspec as well

2015-03-24 Thread productivememberofsociety666
productivememberofsociety666 added the comment: I'm not sure if I understand issue 15731 correctly, but isn't that one just about docstrings and signatures? These are both purely cosmetic and don't have an effect on calling behaviour, do they? This issue wouldn't be a duplicate then.

[issue23573] Avoid redundant allocations in str.find and like

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: Looks as this patch makes buildbots crash. Yep. It took me some minutes to find that the crash was caused by this issue :-p http://buildbot.python.org/all/builders/AMD64%20Windows7%20SP1%203.x/builds/5930/steps/test/logs/stdio ... [117/393/1] test_bigmem

[issue23571] Raise SystemError if a function returns a result with an exception set

2015-03-24 Thread Roundup Robot
Roundup Robot added the comment: New changeset 004e3870d9e6 by Victor Stinner in branch '3.4': Issue #23571: If io.TextIOWrapper constructor fails in _Py_DisplaySourceLine(), https://hg.python.org/cpython/rev/004e3870d9e6 -- ___ Python tracker

Re: test1

2015-03-24 Thread Chris Angelico
On Wed, Mar 25, 2015 at 1:47 PM, Tiglath Suriol tiglathsur...@gmail.com wrote: title{% block title %}{% endblock %}/title Looks to me like you're playing around with a templating system like Jinja, but may I suggest that you send tests to yourself rather than to an entire mailing list/newsgroup?

[issue23771] Timeouts on x86 Ubuntu Shared 3.x buildbot

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: test_multiprocessing_spawn.test_notify_all() also hangs on AMD64 Debian root 3.x buildbot: http://buildbot.python.org/all/builders/AMD64%20Debian%20root%203.x/builds/1959/steps/test/logs/stdio --- [330/393] test_multiprocessing_spawn Timeout (1:00:00)! Thread

Re: test2

2015-03-24 Thread Chris Angelico
On Wed, Mar 25, 2015 at 2:11 PM, Tiglath Suriol tiglathsur...@gmail.com wrote: # Make this unique, and don't share it with anybody. SECRET_KEY = '42=kv!a-il*!4jamp;7v+0(@a@vq_3j-+ysatta@l6-h63odj2)75' This right here is a reason to send your test messages someplace other than a huge,

[issue23763] Chain exceptions in C

2015-03-24 Thread STINNER Victor
STINNER Victor added the comment: pyerr_match_clear-2.patch: Updated patch, more complete (I also removed the assertions, I only added to debug). Since my patch makes assumption on which exception is expected, it can change the behaviour of functions if I forgot a different exception which

test1

2015-03-24 Thread Tiglath Suriol
head style type=text/css body {color:black;} h1 {text-align:center;color:maroon;font-size:30px;font-style:normal;} td {font-size:12;font-style:monospace;} } /style title{% block title %}{% endblock %}/title script /script /head body h1IPDB Data Input Window/h1 div style=float: left;width:

[issue23772] pymonotonic() gone backward on AMD64 Debian root 3.x buildbot

2015-03-24 Thread STINNER Victor
New submission from STINNER Victor: I would be interested to know the Linux version of this buildbot slave. Maybe the slave is running in a VM and it's a virtualization issue? If it's the case, should Python fix the bug? Or should we just remove the assertion?

[issue23773] importlib does not properly remove frames when invoking external import hooks

2015-03-24 Thread Shiz
New submission from Shiz: When adding a custom module loader to sys.meta_path, importlib does not properly remove its frames before invoking it. This results in a weird traceback with importlib._bootstrap frames in if an error occurs during load_module(), like such: Traceback (most recent

  1   2   3   >