[issue20525] Got compiler warning when compiling readline module

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Then perhaps this is just misconfiguration. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > - > The object class implements both __reduce__() and __reduce_ex__(); > however, if a subclass overrides __reduce__() but not __reduce_ex__(), > the __reduce_ex__() implementation detect

[issue20559] urllib/http fail to sanitize a non-ascii url

2014-02-07 Thread Bill Winslow
Bill Winslow added the comment: Follow up -- I need to use urllib.parse.quote to safely encode a url -- though if I may be so bold, I submit that since much of the goal of Python 3 was to make unicode "just work", I the (stupid) user shouldn't have to remember to safely encode unicode urls...

[issue20267] TemporaryDirectory does not resolve path when created using a relative path

2014-02-07 Thread Yury Selivanov
Yury Selivanov added the comment: > Thanks for the fix. The same fix seems should also work for mkstemp and > mktemp -- is it really worth creating a new issue for them? No, no new issue is necessary. I think I'll update the patch and merge it in 3.5, as it's too late for 3.4 -- vers

[issue20525] Got compiler warning when compiling readline module

2014-02-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: It's weird. When I make clean and configure again and make again, the error warning message disappear. Prior to that, I could confirm, I was in this block: #ifdef HAVE_RL_COMPLETION_MATCHES #define completion_matches(x, y) \ rl_completion_matches((x), ((rl_co

[issue20559] urllib/http fail to sanitize a non-ascii url

2014-02-07 Thread Bill Winslow
New submission from Bill Winslow: The following code will produce a UnicodeEncodeError about a character being non-ascii: from urllib import request, parse, error url = 'http://en.wikipedia.org/wiki/Antonio Vallejo-Nájera' req = request.Request(url) response = request.urlopen(re

[issue19772] str serialization of Message object may mutate the payload and CTE.

2014-02-07 Thread Vajrasky Kok
Vajrasky Kok added the comment: > Your test method didn't start with 'test_', so it didn't get run. Ah sorry about that. This is the updated patch. It fixed the problem and passed all test. -- Added file: http://bugs.python.org/file33987/fix_serialization_message_object_mutation_v4.pa

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread Garrett Cooper
Changes by Garrett Cooper : Removed file: http://bugs.python.org/file33985/patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread Garrett Cooper
Garrett Cooper added the comment: Good to know! I updated the patch to remove the errno abstraction, grab the errno attribute from the OSError, and sort the imports. -- Added file: http://bugs.python.org/file33986/patch ___ Python tracker

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread R. David Murray
R. David Murray added the comment: On windows, errno.ECONNRESET is set equal to errno.WSAECONNRESET. -- nosy: +r.david.murray ___ Python tracker ___ _

[issue14130] memoryview: add multi-dimensional indexing and slicing

2014-02-07 Thread Ian Beaver
Ian Beaver added the comment: If there is any way to get this implemented, it is needed. For one, the docs on memoryview make no mention that indexing and slicing doesn't work with multi-dimensional data which led me to believe it was supported until I tried using it. A second reason is curr

[issue20247] Condition._is_owned is wrong

2014-02-07 Thread Antony Lee
Antony Lee added the comment: For the second half, the same behavior applies under Linux -- basically, a simple Lock doesn't have a notion of owning thread and can the be unlocked by any thread. However, the first half is not correct if the lock used is a *RLock-like* object (that is, it has

[issue20267] TemporaryDirectory does not resolve path when created using a relative path

2014-02-07 Thread Antony Lee
Antony Lee added the comment: Thanks for the fix. The same fix seems should also work for mkstemp and mktemp -- is it really worth creating a new issue for them? -- ___ Python tracker

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread Ned Deily
Changes by Ned Deily : -- nosy: +vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pytho

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread Garrett Cooper
New submission from Garrett Cooper: The logging module checks for ECONNRESET if it's equal to 104. This is valid on Linux, but not [some] other OSes. On FreeBSD and OpenBSD [*] it's 54, not 104. The attached patch fixes the logging code to check for errno.ECONNRESET in !win32 environments. ht

[issue20558] ECONNRESET value in logging.config is valid with Linux [distros]; not valid with *BSD

2014-02-07 Thread Garrett Cooper
Changes by Garrett Cooper : -- components: +Library (Lib) type: -> behavior versions: +Python 2.7, Python 3.5 ___ Python tracker ___

[issue20516] Concurrent.futures base concurrency improvement (with patch)

2014-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the patch. This will have to wait for 3.5, since 3.4 is currently in feature freeze stage. -- ___ Python tracker ___ ___

[issue20516] Concurrent.futures base concurrency improvement (with patch)

2014-02-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review versions: -Python 3.4 ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Ethan Furman
Ethan Furman added the comment: Ethan commented: > I left the test for test_subclasses_without_getnewargs alone as the point of > that test is to make sure that _make_class_unpicklable is working properly, > not to see if we can somehow get any of it to pickle. Serhiy replied: -

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Ethan Furman
Ethan Furman added the comment: The version 2 docs: http://docs.python.org/2/library/pickle.html#object.__reduce_ex__: - The object class implements both __reduce__() and __reduce_ex__(); however, if a subclass overrides __re

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Paul Moore
Paul Moore added the comment: Fix now merged into pip 1.5.X branch -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-07 Thread STINNER Victor
STINNER Victor added the comment: > So I think Victor should apply his first patch (remove_granularity.patch) to > both CPython and Tulip and then we can adjust any tests that still cause > occasional red buildbots. Ok, I did that. So I understand that the code was a micro-optimization for a

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-07 Thread STINNER Victor
STINNER Victor added the comment: More data from buildbots (before d853955491a2). x86 Ubuntu Shared 3.x: == Linux-2.6.31.5-linode21-i686-with-debian-lenny-sid little-endian EpollSelector.select(99.947 ms) took 99.291 ms (granularity=1.000 ms, resolution=1.000 ms) EpollSelector.select(99.928 ms)

[issue2292] Missing *-unpacking generalizations

2014-02-07 Thread Phil Connell
Changes by Phil Connell : -- nosy: +pconnell ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset d853955491a2 by Victor Stinner in branch 'default': Issue #20505: Remove resolution and _granularity from selectors and asyncio http://hg.python.org/cpython/rev/d853955491a2 -- ___ Python tracker

[issue20545] Use specific asserts in unicode tests

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Indeed. Thanks. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Gary Bernhardt
Gary Bernhardt added the comment: Although I thoroughly enjoyed "outrageously", I agree with Stefan about including the range of values. As a user who doesn't know the implementation, "outrageously" will just leave me asking why, but indicating the range will tell me exactly why the exception

[issue20545] Use specific asserts in unicode tests

2014-02-07 Thread STINNER Victor
STINNER Victor added the comment: -self.assertTrue(type(result) is str, type(result)) +self.assertIs(type(result), str, type(result)) You can probably drop the third parameter. Victor -- ___ Python tracker

[issue20525] Got compiler warning when compiling readline module

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Interesting, how compiler got this warning? In readline6 the declarations of legacy functions including completion_matches are in "#if 0" block. In libedit it declared with "const char *". -- ___ Python tracker <

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Pickle will prefer the __reduce_ex__() method over the __reduce__() method. If base class defined the __reduce_ex__() method, Enum.__reduce__() will be ignored. > I left the test for test_subclasses_without_getnewargs alone as the point of > that test is to

[issue20440] Use Py_REPLACE/Py_XREPLACE macros

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Py_ASSIGN was proposed by Paul Pogonyshev in msg70798, and this also looks good to me. -- ___ Python tracker ___

[issue16510] Using appropriate checks in tests

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: After chipping off yet some small separate issues, there are only 276 changed lines left in 80 files. -- Added file: http://bugs.python.org/file33984/tests_asserts_4.patch ___ Python tracker

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Ethan Furman
Changes by Ethan Furman : -- nosy: +ethan.furman ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue20555] Use specific asserts in urllib related tests

2014-02-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Patch LGTM. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue20478] Avoid inadvertently special casing Counter in statistics module

2014-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Fix as suggested by Nick, and new test. -- keywords: +patch Added file: http://bugs.python.org/file33983/counter.patch ___ Python tracker ___ _

[issue16510] Using appropriate checks in tests

2014-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in argparse and optparse tests, Use specific asserts in io tests, Use specific asserts in threading tests, Use specific asserts in urllib related tests ___ Python tracker

[issue20557] Use specific asserts in io tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the io module tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_io_asserts.patch keywords: patch messages: 210563 nosy: benjamin.peterson, hynek, pitrou, serhiy.s

[issue20556] Use specific asserts in threading tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the threading module tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_threading_asserts.patch keywords: patch messages: 210562 nosy: brett.cannon, pitrou, serhiy

[issue20555] Use specific asserts in urllib related tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the urllib, httplib, ftplib, cgi, and wsgiref modules tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_urllib_asserts.patch keywords: patch messages: 210561 nosy

[issue20554] Use specific asserts in argparse and optparse tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes argparse and optparse modules tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_optparse_asserts.patch keywords: patch messages: 210560 nosy: serhiy.storchaka pri

[issue20537] logging exc_info parameter should accept exception instances

2014-02-07 Thread Vinay Sajip
Vinay Sajip added the comment: Yes - or I would have said something :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-07 Thread Guido van Rossum
Guido van Rossum added the comment: In the end I think Charles-Francois is right -- the rounding up in selectmodule.c (for epoll) and selectors.py (for poll and, redundantly[*], for epoll) should be sufficient to avoid the busy-wait behavior with delays under 1ms. We're not promising real-tim

[issue20481] Clarify type coercion rules in statistics module

2014-02-07 Thread Steven D'Aprano
Steven D'Aprano added the comment: Attached is a patch which: - documents that mixed types are not currently supported; - changes the behaviour of _sum to raise TypeError on mixed input types (mixing int and is allowed, but nothing else); - updates the tests; - adds some documentation cha

[issue20549] Use specific asserts in mailbox, smtplib and poplib tests

2014-02-07 Thread R. David Murray
R. David Murray added the comment: Looks good to me. -- nosy: +r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Stefan Krah
Stefan Krah added the comment: I slightly favor the ValueError patch because there is only a single exception to catch. PyLong_AsUnsignedLong() also raises OverflowError for both positive values that are too large and for negative values. Perhaps the error message could contain the actual range

[issue20537] logging exc_info parameter should accept exception instances

2014-02-07 Thread Yury Selivanov
Yury Selivanov added the comment: > I believe it's too late for feature changes in 3.4, so removing it from > versions. Alright. Was worth a try ;) > It would be good if the patch addressed documentation changes, too :-) Sure, I'll add the documentation, when we start working on 3.5. Are you

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Paul Moore
Paul Moore added the comment: https://github.com/pypa/pip/pull/1543 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue20551] Use specific asserts in decimal tests

2014-02-07 Thread Stefan Krah
Stefan Krah added the comment: I must say that I'm moderately against these kinds of changes since the benefit is small. The original reason for keeping the older forms of assert* was to keep the diffs between 2.5-3.x manageable. Perhaps that reason is gone now, but still: If anything changes, I

[issue16510] Using appropriate checks in tests

2014-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in bigmem tests, Use specific asserts in int tests, Use specific asserts in mailbox, smtplib and poplib tests, Use specific asserts in operator tests, Use specific asserts in unicode tests, Use specific asserts in wa

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Paul Moore
Paul Moore added the comment: Sounds reasonable. Having thought about it a bit more, I don't think it's a big deal. I'll put a PR together for special-casing devnull. -- ___ Python tracker

[issue18857] urlencode of a None value uses the string 'None'

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: While the RFC makes no mention of empty values either way, it has become standard practice to either omit the key-value completely or pass a key (optional = sign) by itself in these situations so I would consider that as standard behavior. While I stand by m

[issue20545] Use specific asserts in unicode tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes unicode related tests use more specific asserts. This will provide more useful failure report. -- components: Tests, Unicode files: test_unicode_asserts.patch keywords: easy, patch messages: 210541 nosy: benjamin.peterson, e

[issue20546] Use specific asserts in int tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the int class tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_long_asserts.patch keywords: easy, patch messages: 210543 nosy: serhiy.storchaka priority: normal

[issue20547] Use specific asserts in bigmem tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes bigmem tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_bigmem_asserts.patch keywords: easy, patch messages: 210544 nosy: serhiy.storchaka priority: normal sever

[issue20544] Use specific asserts in operator tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the operator module tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_operator_asserts.patch keywords: easy, patch messages: 210540 nosy: serhiy.storchaka priorit

[issue16510] Using appropriate checks in tests

2014-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- dependencies: +Use specific asserts in bytes tests, Use specific asserts in collections tests, Use specific asserts in decimal tests, Use specific asserts in ipaddress tests ___ Python tracker

[issue20553] Use specific asserts in ipaddress tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the ipaddress module tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_ipaddress_asserts.patch keywords: easy, patch messages: 210550 nosy: ncoghlan, pmoody, serh

[issue20551] Use specific asserts in decimal tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the decimal module tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_decimal_asserts.patch keywords: easy, patch messages: 210548 nosy: facundobatista, mark.dicki

[issue20549] Use specific asserts in mailbox, smtplib and poplib tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes the mailbox, smtplib and poplib modules tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_mailbox_asserts.patch keywords: easy, patch messages: 210546 nosy: giamp

[issue20552] Use specific asserts in bytes tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes bytes tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_bytes_asserts.patch keywords: easy, patch messages: 210549 nosy: serhiy.storchaka priority: normal severit

[issue20550] Use specific asserts in collections tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes collections tests use more specific asserts. This will provide more useful failure report. -- components: Tests keywords: easy messages: 210547 nosy: rhettinger, serhiy.storchaka priority: normal severity: normal stage: patc

[issue20548] Use specific asserts in warnings and exceptions tests

2014-02-07 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: The proposed patch makes warnings and exceptions related tests use more specific asserts. This will provide more useful failure report. -- components: Tests files: test_warnexc_asserts.patch keywords: easy, patch messages: 210545 nosy: serhiy.storch

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2014-02-07 Thread R. David Murray
R. David Murray added the comment: I've applied the first fix. I'll leave the issue open until I make the equivalent fix for the new header parsing code. -- stage: patch review -> needs patch versions: -Python 3.2 ___ Python tracker

[issue17369] Message.get_filename produces exception if the RFC2231 encoding is ill-formed

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 63f8ea0eeb6d by R David Murray in branch '3.3': #17369: Improve handling of broken RFC2231 values in get_filename. http://hg.python.org/cpython/rev/63f8ea0eeb6d New changeset e0a90b1c4cdf by R David Murray in branch 'default': Merge: #17369: Improve

[issue18857] urlencode of a None value uses the string 'None'

2014-02-07 Thread R. David Murray
R. David Murray added the comment: No, the domain of URIs does not have *any* concept of a null value. It only has the concept of a string being empty or not empty (or the key not existing at all...ie: it doesn't exist in your params dict). You are trying to map a Python concept (the singleto

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Ethan Furman
Ethan Furman added the comment: I also removed the protocol 2 warning from the docs, and added this note: .. note:: With pickle protocol version 4 it is possible to easily pickle enums nested in other classes. -- ___ Python tracker

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-07 Thread Charles-François Natali
Charles-François Natali added the comment: > Updated patch with the 3.2 heuristic for deciding when to concatenate. LGTM. For posterity, a quick benchmark performing 100 trivial remote calls: Before: $ ./python ~/test_manager.py 8.202659845352173 After: $ ./python ~/test_manager.py 0.131465673

[issue19772] str serialization of Message object may mutate the payload and CTE.

2014-02-07 Thread R. David Murray
R. David Murray added the comment: While the copy solution seems reasonable, unfortunately it looks like the solution isn't that simple. Your test method didn't start with 'test_', so it didn't get run. Your fix doesn't fix the problem, since other parts of the code are holding on to a point

[issue20534] Enum tests fail with pickle protocol 4

2014-02-07 Thread Ethan Furman
Ethan Furman added the comment: Okay, I went with __reduce__ since we don't ever use the pickle protocol information. I added a test for class-nested Enums since protocol 4 supports it. I left the test for test_subclasses_without_getnewargs alone as the point of that test is to make sure that

[issue20505] Remove resolution from selectors and granularity from asyncio

2014-02-07 Thread Charles-François Natali
Charles-François Natali added the comment: > select() and kqueue() are able to sleep less than 1 ms. Using a slack of 1 ms would reduce the accuracy. I don't see why we should limit the accuracy. Why 1 ms? Because of poll/epoll? What about Windows and its resolution of 15.6 ms? > > Well, under 1

[issue18857] urlencode of a None value uses the string 'None'

2014-02-07 Thread Joshua Johnston
Joshua Johnston added the comment: If this was a function to encode a dict into something then I would see your point and agree. urlencode is specifically designed to work within the domain or URIs. In this domain, it is acceptable to have an empty value for a key in a query string. None is a

[issue20540] Python 3.3/3.4 regression in multiprocessing manager ?

2014-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch with the 3.2 heuristic for deciding when to concatenate. -- keywords: +3.3regression -patch priority: normal -> high stage: -> patch review Added file: http://bugs.python.org/file33967/multi_nagle_2.patch _

[issue20529] Unittest displays ResourceWarning warnings when running tests, it probably should not

2014-02-07 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- status: open -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:

[issue20530] Change the text signature format (again) to be more robust

2014-02-07 Thread Yury Selivanov
Yury Selivanov added the comment: One more patch (v4) I fixed the commented out 'ThisWorksNow' test. And also 'inspect.signature' now raises a bit more coherent exception for that particular case. -- Added file: http://bugs.python.org/file33966/larry.even.newerer.signature.syntax.4.dif

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: Updated patch. -- Added file: http://bugs.python.org/file33965/huge_factorial_input_v2.patch ___ Python tracker ___

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: See also #18570. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://m

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: And here's a link to the middle of a related discussion under the heading "Turn off ZeroDivisionError?" on python-list, Feb 2008. https://mail.python.org/pipermail/python-list/2008-February/473302.html You'd have to read up- and down-thread to get the entire d

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: Issue #3222 is related. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue20530] Change the text signature format (again) to be more robust

2014-02-07 Thread Yury Selivanov
Yury Selivanov added the comment: Larry, I'm attaching a revised version of the patch -- larry.even.newerer.signature.syntax.3.diff. Changes: 1. test_signature_on_class_without_init was fixed, inspect.signature was fixed as well. Now, for class Meta(type): pass "inspect.signature(Meta)"

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: > Shouldn't floating-point operations overflow to inf, not generate exceptions? This has been discussed a few times before (I'll try to find the references). But to answer you question: actually, no. I think they *should* generate exceptions. That is, if I w

[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread R. David Murray
R. David Murray added the comment: Fix applied without tests, as I haven't found time to write them, given the poor existing test coverage of this module. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.3, Python 3.4 ___

[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset aecc0a4be052 by R David Murray in branch '3.3': #20013: don't raise socket error when selected mailbox deleted. http://hg.python.org/cpython/rev/aecc0a4be052 New changeset 16af3de2240f by R David Murray in branch '2.7': #20013: don't raise socket er

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Donald Stufft
Donald Stufft added the comment: I'd remove it in 1.6 with a proper isolated mode. I'm purely thinking of minimal changes to make it easier to to get it into 3.4. -- ___ Python tracker

[issue20013] imaplib behaviour when deleting selected folder

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset a24f7d195b8f by R David Murray in branch 'default': #20013: don't raise socket error when selected mailbox deleted. http://hg.python.org/cpython/rev/a24f7d195b8f -- nosy: +python-dev ___ Python tracker <

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Paul Moore
Paul Moore added the comment: Maybe. I don't know what *else* might fail because devnull is special. The filename gets passed straight to configparser, for a start. But if you want to do that I'm OK with that - I just won't make that change myself. Would the special-casing be permanent or woul

[issue20543] ** operator does not overflow to inf

2014-02-07 Thread Keith Randall
New submission from Keith Randall: >>> 1e200*1e200 inf >>> 1e200**2 Traceback (most recent call last): File "", line 1, in OverflowError: (34, 'Numerical result out of range') Shouldn't floating-point operations overflow to inf, not generate exceptions? -- components: Interpreter Cor

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Donald Stufft
Donald Stufft added the comment: The proper fix is an isolated mode, but we could special case devnull in pip for 1.5.3 and make a proper isolated solution in 1.6. -- ___ Python tracker ___

[issue20089] email.message_from_string no longer working in Python 3.4

2014-02-07 Thread R. David Murray
R. David Murray added the comment: This check has been reverted in issue 20531. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed superseder: -> TypeError in e-mail.parser when non-ASCII is present type: -> behavior ___ P

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Paul Moore
Paul Moore added the comment: In ensurepip, _disable_pip_configuration_settings has the line: os.environ['PIP_CONFIG_FILE'] = os.devnull On Windows, os.devnull does not behave like a real file in that os.path.exists(os.devnull) is False even though opening it works fine. So that line of c

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-07 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> fixed stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___ Pyth

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ah, well, my bad. I just wanted to have a good argument :-) -- ___ Python tracker ___ ___ Python-bug

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: > nitpicking a bit: negative values should probably raise a proper ValueError, > no? I think they do, with this patch. Or maybe I'm misunderstanding? With the current form of the patch: >>> math.factorial(10**20) Traceback (most recent call last): File "",

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: "Outrageously" sounds like the argument is immoral, but do we have an objective test for that? :-) (nitpicking a bit: negative values should probably raise a proper ValueError, no?) -- ___ Python tracker

[issue20539] math.factorial may throw OverflowError

2014-02-07 Thread Mark Dickinson
Mark Dickinson added the comment: Okay; OverflowError seems to have the majority vote. I'll change it to that. Any strong opinions on the message? -- ___ Python tracker ___

[issue20532] Mark all tests which use _testcapi as CPython only

2014-02-07 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Ezio for your review. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-07 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks David. I've confirmed the fix works (copying 'email' package over Python 3.4.0b3). -- resolution: fixed -> stage: committed/rejected -> type: behavior -> ___ Python tracker

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-07 Thread R. David Murray
R. David Murray added the comment: OK, backward compatibility is restored. Hopefully I can fix the underlying problem right in 3.5 as part of issue 8489. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed type: -> behavior __

[issue19063] Python 3.3.3 encodes emails containing non-ascii data as 7bit

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset 4daf3cec9419 by R David Murray in branch '3.3': #19063: the unicode-in-set_payload problem isn't getting fixed in 3.4. http://hg.python.org/cpython/rev/4daf3cec9419 New changeset f942f1eddfea by R David Murray in branch 'default': #20531: Revert e20

[issue20531] TypeError in e-mail.parser when non-ASCII is present

2014-02-07 Thread Roundup Robot
Roundup Robot added the comment: New changeset f942f1eddfea by R David Murray in branch 'default': #20531: Revert e20f98a8ed71, the 3.4 version of the #19063 fix. http://hg.python.org/cpython/rev/f942f1eddfea New changeset ef8aaace85ca by R David Murray in branch 'default': #20531: Apply the 3.3

[issue20053] venv and ensurepip are affected by default pip config file

2014-02-07 Thread Donald Stufft
Donald Stufft added the comment: I'm not sure I grasp what the problem is -- ___ Python tracker ___ ___ Python-bugs-list mailing list

  1   2   >