[issue15955] gzip, bz2, lzma: add option to limit output size
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15955 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16043] xmlrpc: gzip_decode has unlimited read()
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16043 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18220] In itertools.islice() make prototype like in help()
Changes by py.user bugzilla-mail-...@yandex.ru: Added file: http://bugs.python.org/file30616/issue18220.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18220 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18220] In itertools.islice() make prototype like in help()
Changes by py.user bugzilla-mail-...@yandex.ru: Removed file: http://bugs.python.org/file30599/issue18220.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18220 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18220] In itertools.islice() make prototype like in help()
py.user added the comment: range and slice are normal in python3.4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18220 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17005] Add a topological sort algorithm
Changes by Martin Panter vadmium...@gmail.com: -- nosy: +vadmium ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17005 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18239] In itertools docstring update arguments in count() example
New submission from py.user: print(itertools.__doc__) Functional tools for creating and using iterators. Infinite iterators: count([n]) -- n, n+1, n+2, ... ... -- assignee: docs@python components: Documentation, Library (Lib) files: issue.patch keywords: patch messages: 191317 nosy: docs@python, py.user priority: normal severity: normal status: open title: In itertools docstring update arguments in count() example type: enhancement versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30617/issue.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Xavier de Gaye added the comment: I think you mean: self.producer_fifo.extendleft([data, first]) Instead of: self.producer_fifo.extendleft([first, data]) No? No, I do mean: self.producer_fifo.extendleft([first, data]) See the documentation. Also: from collections import deque a = deque([0, 1, 2, 3]) a.extendleft([11, 22]) a deque([22, 11, 0, 1, 2, 3]) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17925] asynchat.async_chat.initiate_send : del deque[0] is not safe
Xavier de Gaye added the comment: After applying the last patch cpython.asyncore_3.patch (while cpython.asyncore_2.patch does not fail): == FAIL: test_simple_producer (test.test_asynchat.TestAsynchat) -- Traceback (most recent call last): File Lib/test/test_asynchat.py, line 198, in test_simple_producer self.fail(join() timed out) AssertionError: join() timed out == FAIL: test_simple_producer (test.test_asynchat.TestAsynchat_WithPoll) -- Traceback (most recent call last): File Lib/test/test_asynchat.py, line 198, in test_simple_producer self.fail(join() timed out) AssertionError: join() timed out -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17925 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs
Changes by Berker Peksag berker.pek...@gmail.com: -- versions: -Python 3.1, Python 3.2, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18237 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18153] python imaplib - error 'unexpected repsonse'
tahnoon pasha added the comment: Hi David Adding the following post and response from the davmail author/ maintainers site. He seems to have fixed it in davmail and suggests the following fix in imaplib.py if there is a desire to amend it to allow stray spaces Le 15/06/2013 08:19, tahnoon a écrit : Hi Mickael. I've continued to post on https://bugs.python.org and the imaplib maintainer has agreed to look at fixing this on imaplib if I can provide the appropriate unit test to replicate the problem. I'm not really a programmer so any pointers you can give me on how to set up a server simulation that approximates davmail or if you have one already set up as part of your development that would help solve this at the client end. Thanks Well, it's not easy to reproduce without a backend Exchange server. Basically it should accept multiple spaces after star in untagged response. untested fix of imaplib.py: replace Untagged_response = re.compile(r'* (?P[A-Z-]+)( (?P.))?') with Untagged_response = re.compile(r'*[ ]+(?P[A-Z-]+)( (?P.))?') Note that I disabled this non standard behavior in latest DavMail release, you can enable it in DavMail settings (KeepAlive). Not sure if that closes this issue or if you still think a test case is needed? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18240] hmac unnecessarily restricts input to bytes
New submission from Jonas Borgström: Problem: In hmac.py there's a type check that verifies that the msg parameter is of type bytes(). if not isinstance(msg, bytes): raise TypeError(expected bytes, but got %r % type(msg).__name__) That is incorrect. The hmac module should also work with other data types as long as they are supported by the underlying hashlib module, for example bytearray() and memoryview(). Suggestion: Remove that type check. hashlib will make sure str() and other invalid data types raises a TypeError. -- components: Library (Lib) messages: 191321 nosy: jborg priority: normal severity: normal status: open title: hmac unnecessarily restricts input to bytes type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18240] hmac unnecessarily restricts input to bytes
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes, gregory.p.smith stage: - needs patch type: behavior - enhancement versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18234] Unicodedata module should provide access to codepoint aliases
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, ezio.melotti, lemburg, loewis, serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18234 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18233] SSLSocket.getpeercertchain()
Changes by Antoine Pitrou pit...@free.fr: -- dependencies: +SSL: diagnostic functions to list loaded CA certs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18207] OpenSSL may ignore seconds in notAfter
Antoine Pitrou added the comment: I'm not sure we should care much about this, but feel free to improve the tests of course :-) -- components: +Tests -Extension Modules priority: normal - low type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17944] Refactor test_zipfile
Serhiy Storchaka added the comment: Thank you Terry for review. Here is updated patch addressed Terry's comments. Now random datas for tests generated once per class (generating them once per module will be more cumbersome and will save less time). Arguments for zipfile.open() now generated from a special generator. This simplifies the code and makes possible to determine with what argument test is failed. I don't think subtest() is appropriate here (in any case it is 3.4 only). -- Added file: http://bugs.python.org/file30618/test_zipfile_3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18240] hmac unnecessarily restricts input to bytes
Christian Heimes added the comment: Good idea! We can also lift the restriction for ``key`` a bit. It can also take a bytearray as argument. bytearray has translate() and supports bytes + bytearay. -- assignee: - christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17944] Refactor test_zipfile
Serhiy Storchaka added the comment: When applying first Terry's suggestion I found a bug. self.list_gen was a generator and when self.list_gen used second time it was exhausted. As result, some tests were skipped and a bug with concatenating bytes and '\n' was not exposed. This bug should be fixed in 2.7 if it exists. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime
Jakub Wilk added the comment: The documentations says Minor deficiency: mktime_tz() interprets the first 8 elements of tuple as a local time and then compensates for the timezone difference. This may yield a slight error around changes in daylight savings time, though not worth worrying about for common use. Now that this bug has been fixed, this no longer true. Please update the documentation. :) -- nosy: +jwilk ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
STINNER Victor added the comment: test_signal.py wait_helper hangs on AIX. Why does the test hang? I prefer to only skip a test if I understood the issue (when it is not fixable in Python, like a bug in the kernel). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18081] test_logging failure in WarningsTest on buildbots
Vinay Sajip added the comment: With the attached patch, python -m test_idle test_logging passes (though test_idle still alters locale and environment). Running python -m idelib.idle, and using IDLE itself for inspection, the warnings.formatwarning is set to the implementation in idlelib.run. Perhaps the PyShell changes aren't needed, but I think it may avoid similar issues in the future to leave them in. -- Added file: http://bugs.python.org/file30619/changes.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18223] Refactor test_tarfile
Roundup Robot added the comment: New changeset 4b2188b13dd2 by Serhiy Storchaka in branch '3.3': Issue #18223: Refactor test_tarfile. http://hg.python.org/cpython/rev/4b2188b13dd2 New changeset 5c0816e64aac by Serhiy Storchaka in branch 'default': Issue #18223: Refactor test_tarfile. http://hg.python.org/cpython/rev/5c0816e64aac -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18223 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18223] Refactor test_tarfile
Serhiy Storchaka added the comment: Thanks Ezio and Zachary for review. I have included Zachary's patch for issue17689. In addition catching the FileNotFoundError exception used now in test_non_existent_targz_file instead of IOError/OSError + checking errno. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18223 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18223] Refactor test_tarfile
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18223 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18207] OpenSSL may ignore seconds in notAfter
Roundup Robot added the comment: New changeset c484ca129288 by Christian Heimes in branch 'default': Issue #18207: Fix test_ssl for some versions of OpenSSL that ignore seconds http://hg.python.org/cpython/rev/c484ca129288 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines
Roundup Robot added the comment: New changeset 63058453a4cc by Serhiy Storchaka in branch '2.7': Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data http://hg.python.org/cpython/rev/63058453a4cc New changeset a48f65bac986 by Serhiy Storchaka in branch '3.3': Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data http://hg.python.org/cpython/rev/a48f65bac986 New changeset 17ec73a3a854 by Serhiy Storchaka in branch 'default': Issue #18167: cgi.FieldStorage no more fails to handle multipart/form-data http://hg.python.org/cpython/rev/17ec73a3a854 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18167] cgi.FieldStorage fails to handle multipart/form-data when \r\n appears at end of 65535 bytes without other newlines
Changes by Serhiy Storchaka storch...@gmail.com: -- resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18167 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18207] OpenSSL may ignore seconds in notAfter
Christian Heimes added the comment: Additional versions of OpenSSL may be affected by the issue. We can add these versions whenever we run into the issue again. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18207 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18147] SSL: diagnostic functions to list loaded CA certs
Roundup Robot added the comment: New changeset 38e759e4c9e6 by Christian Heimes in branch 'default': Issue #18147: Add diagnostic functions to ssl.SSLContext(). http://hg.python.org/cpython/rev/38e759e4c9e6 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18147] SSL: diagnostic functions to list loaded CA certs
Changes by Christian Heimes li...@cheimes.de: -- resolution: - fixed stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18147] SSL: diagnostic functions to list loaded CA certs
Changes by Christian Heimes li...@cheimes.de: -- stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18147 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18113] Memory leak in curses.panel
Serhiy Storchaka added the comment: I've attached a new version of the patch that does this check, and also adds a test. You are right. Your patch LGTM. (OTOH, looking at the ncurses 5.9 source code, set_panel_userptr() only returns an error if the panel object is NULL, which should never happen because Python reports an error if the panel creation fails. So maybe the rc == ERR check is pointless.) Future versions or alternative implementations can returns an error in other circumstances. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18113 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18153] python imaplib - error 'unexpected repsonse'
R. David Murray added the comment: I don't understand why his keepalive requires the extra spaces...and I'm not 100% sure that accepting them will fix the problem, though in theory it should. I still lean toward making the spaces fix in imaplib, based on the postel principle. I'd prefer to have a unit test, but if you or I or someone else doesn't get around to writing one before the next time we start working on releases, I'll probably commit the (pretty much obviously correct) patch without a test. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18153 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime
R. David Murray added the comment: Since this issue has been closed, it would be great if you'd open a new issue just for the doc change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18081] test_logging failure in WarningsTest on buildbots
R. David Murray added the comment: Note that it is a known issue that tk (not python's bindings, tk itself) alters the locale. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
David Edelsohn added the comment: I understand that this is a work-around and the intention is to investigate each error in the testsuite on AIX. But currently this bug eventually leads to a timeout in the testsuite and half of the tests are not run. I am trying to get the AIX buildbot running completely and greatly would appreciate your accommodation with this work-around during that process to make it easier for CPython developers to make another sweep through the testsuite failures to start addressing them. This is not proposed as skip the test and ignore it. This is proposed as an interim solution to make progress on the buildbot for AIX. Again, I would greatly appreciate your patience and accommodation in this request. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18225] ctypes Structure data size is incorrect
Amaury Forgeot d'Arc added the comment: You can also use _pack_ = 1 to override the default alignment rules: http://docs.python.org/3/library/ctypes.html#ctypes.Structure._pack_ -- nosy: +amaury.forgeotdarc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18225 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18241] Add unique option to heapq functions
New submission from Antoine Pitrou: In one application, I would like to use a heap as an allocation pool. I also want to check that a given value isn't released twice, therefore that the heap contains unique values. My use case would be solved nicely if heappush() took an optional unique=False parameter. Note that I haven't checked if doing so is possible while maintaining the O(log n) complexity :-) -- messages: 191341 nosy: pitrou, rhettinger priority: low severity: normal status: open title: Add unique option to heapq functions type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18081] test_logging failure in WarningsTest on buildbots
Brett Cannon added the comment: Another odd thing about this failure is that http://hg.python.org/cpython/rev/59a11c81dd3c should have fixed it as it should be setting warnings.showwarning() back to it's original value before the test began executing. So I checked PyShell again and found out it's being very naughty. If you look at http://hg.python.org/cpython/file/ec4b0145f7e5/Lib/idlelib/PyShell.py#l76 you will find that it is replacing warnings.formatwarning, and that's a big no-no. While warnings.showwarning is designed to be replaced as a hooking point (http://docs.python.org/3/library/warnings.html#warnings.showwarning), formatwarning is not and is meant to be the default function showwarning calls to produce the string that is to be used in the warning (http://docs.python.org/3/library/warnings.html#warnings.formatwarning). My hunch (which I currently can't verify since I'm at work) is that if you stop replacing warnings.formatwarning and instead just have IDLE's showwarning version call its formatting function directly then this failure will go away. The warning about test_idle mucking with warnings.showwarning will still be there until a way to optionally set showwarning is developed, but at least the buildbots should go back to green. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18081] test_logging failure in WarningsTest on buildbots
Brett Cannon added the comment: And Lib/idlelib/run.py also does the substitution. I'll file a separate bug for all of this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18242] IDLE should not be replacing warnings.formatwarning
New submission from Brett Cannon: Both idlelib.run and idlelib.PyShell replace warning.formatwarning which is a no-no. Only warning.showwarning is design to be replaced in any way. The proper solution is to replace warnings.showwarning with code that calls whatever formatting function you provide. -- components: IDLE messages: 191344 nosy: brett.cannon priority: normal severity: normal stage: needs patch status: open title: IDLE should not be replacing warnings.formatwarning type: behavior versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18081] test_logging failure in WarningsTest on buildbots
Changes by Brett Cannon br...@python.org: -- dependencies: +IDLE should not be replacing warnings.formatwarning ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18081 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows
Peter Santoro added the comment: As requested, I've attached a small test script called shadow.py. Steps to reproduce: 1) pyvenv.py bugtest 2) copy the attached shadow.py script to bugtest and bugtest\scripts 3) cd bugtest 4) run shadow.py (first entry in sys.path is refers to bugtest directory per Python docs; finds the systems's pydoc module) 5) run bugtest\shadow.py (first entry in sys.path refers to bugtest\scripts directory per Python docs; finds the bugtest\scripts pydoc module instead of the system's pydoc module) According to the Python documentation (http://docs.python.org/3/library/sys.html#sys.path): As initialized upon program startup, the first item of this list, path[0], is the directory containing the script that was used to invoke the Python interpreter. If the script directory is not available (e.g. if the interpreter is invoked interactively or if the script is read from standard input), path[0] is the empty string, which directs Python to search modules in the current directory first. Notice that the script directory is inserted before the entries inserted as a result of PYTHONPATH. Maybe I'm missing something here, but isn't this problem caused by the fact that Python initializes sys.path[0] to contain the directory of the executing script and that having pydoc.py in that same directory (i.e. the venv's scripts directory) shadows the system's pydoc.py module? On Linux, I didn't have this problem, because the pydoc script doesn't have the .py extension. However, if you rename the pydoc script on Linux to pydoc.py, the same problem occurs. I don't think a pydoc.py (or any other .py file which shadows a system module) can exist in the venv scripts (or bin) directory without shadowing/breaking the system provided module. Maybe a pydoc.exe or pydoc.bat file is needed on Windows? Another option would be to rename the pydoc.py file to something like pydocs.py, but that would be incompatible with other platforms and the existing documentation. -- Added file: http://bugs.python.org/file30620/shadow.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14653] Improve mktime_tz to use calendar.timegm instead of time.mktime
Jakub Wilk added the comment: Fair enough, filed as issue #18243. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14653 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18243] mktime_tz documentation out-of-date
Changes by R. David Murray rdmur...@bitdance.com: -- components: +email nosy: +barry, r.david.murray versions: +Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18243] mktime_tz documentation out-of-date
New submission from Jakub Wilk: email.utils.mktime_tz documentations says: Minor deficiency: mktime_tz() interprets the first 8 elements of tuple as a local time and then compensates for the timezone difference. This may yield a slight error around changes in daylight savings time, though not worth worrying about for common use. But now that issue #14653 is fixed, this is no longer true. -- assignee: docs@python components: Documentation messages: 191346 nosy: docs@python, jwilk priority: normal severity: normal status: open title: mktime_tz documentation out-of-date ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18243 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows
Vinay Sajip added the comment: the fact that Python initializes sys.path[0] to contain the directory of the executing script Of course, silly me. Sorry. I would prefer to remove the pydoc script altogether. The other alternative would be to rename it to pydoc-script.py and have a pydoc.exe adjacent to it (this is how scripts installed with setuptools or distlib work). However, the simple launcher which would be pydoc.exe is not currently part of Python. I think the best thing would be for me to post on python-dev to see what views people there have about these alternatives. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18224] pyvenv pydoc.py script causing AttributeErrors on Windows
Vinay Sajip added the comment: Rethinking, renaming seems more reasonable. I've posted about it to python-dev: http://mail.python.org/pipermail/python-dev/2013-June/126904.html -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18224 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18206] license url in site.py should always use X.Y.Z form of version number
Changes by Berker Peksag berker.pek...@gmail.com: -- keywords: +patch nosy: +berker.peksag stage: needs patch - patch review Added file: http://bugs.python.org/file30621/issue18206.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18206 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
New submission from Edward Catmur: Suppose we have a class C with MRO (C, B, A, object). C virtual-inherits an ABC V, while B virtual-inherits an unrelated ABC W: object / | \ A W | | .` / B` V | .` C` Recalling that per PEP 443 singledispatch prefers concrete bases to virtual bases, we would expect the following composed MRO: C, B, V, A, W, object However what actually happens is the composed MRO depends on the order of the haystack; if W is processed first the result is correct, but if V is processed first then (because V does not subclass W) W is inserted in the MRO *before* V: C, B, A, object C, B, V, A, object C, B, W, V, A, object This results in ambiguity between V and W. Suggested fix is a slight change to the MRO composition algorithm, considering whether the items already placed in the MRO are concrete base classes. -- components: Extension Modules hgrepos: 200 messages: 191350 nosy: ecatmur priority: normal severity: normal status: open title: singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Edward Catmur added the comment: Apologies, the linked repository is for the 2.x backport of singledispatch. I'll replace it with a proper Python repo. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18103] Create a GUI test framework for Idle
Changes by R. Jayakrishnan raaj...@gmail.com: -- nosy: +JayKrish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18103 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18233] SSLSocket.getpeercertchain()
Christian Heimes added the comment: As expected it is much harder to get the full certification chain from OpenSSL than I initially expected. SSL_get_peer_cert_chain() doesn't return the root CA's certificate. The new patch introduces a validation mode and uses X509_verify_cert(*X509_STORE_CTX) + X509_STORE_CTX_get1_chain() to build a full chain. -- Added file: http://bugs.python.org/file30622/ssl_peerchertchain2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18233 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18104] Idle: make human-mediated GUI tests usable
Changes by R. Jayakrishnan raaj...@gmail.com: -- nosy: +JayKrish ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18104 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18231] What's new in Python should explain what's new in UCD
Alexander Belopolsky added the comment: MvL Are you sure that the permission to use KHMER VOWEL INHERENT AQ MvL in an identifier is worth mentioning? No, but it is worth mentioning that there are no more substantial changes. I don't think the change from 6.1.0 to 6.2.0 has any effect on python programs that don't explicitly use unicodedata module. (Version 6.2 of the Unicode Standard is a special release dedicated to the early publication of the newly encoded Turkish lira sign.) If this is true, I think What's New in 3.4 can just say that. The change from 6.1.0 to 6.2.0 is more substantial, so I think it is worth mentioning a few effects so that users don't have to wonder what the upgrade means for them. The effect of the change on Python language and builtins is not at all obvious from the Unicode's own summary of changes. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18231 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12197] non-blocking SSL write fails if a partial write was issued
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12197 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue15071] TLS get keys and randoms
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15071 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10852] SSL/TLS sni use in smtp, pop, imap, nntp, ftp client libs by default
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +christian.heimes ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10852 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Changes by Edward Catmur e...@catmur.co.uk: -- keywords: +patch Added file: http://bugs.python.org/file30623/singledispatch-mro-18244.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Changes by Edward Catmur e...@catmur.co.uk: -- type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18245] In itertools.groupby() make data plural
New submission from py.user: http://en.wiktionary.org/wiki/data data (uncountable) or plural noun -- assignee: docs@python components: Documentation files: issue.diff keywords: patch messages: 191354 nosy: docs@python, py.user priority: normal severity: normal status: open title: In itertools.groupby() make data plural versions: Python 3.3, Python 3.4 Added file: http://bugs.python.org/file30624/issue.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Edward Catmur added the comment: See attachment for patch and test. Note that reproducing the issue without access to singledispatch internals depends on iteration order of a dict of types and is thus intermittent/environment dependent. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18245] In itertools.groupby() make data plural
Ned Batchelder added the comment: Please don't make this change. Data is used as a singular collective noun, especially in software contexts. Data as a plural noun sounds archaic, or at best, scientific. -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Changes by Berker Peksag berker.pek...@gmail.com: -- components: +Library (Lib) -Extension Modules nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18228] AIX locale parsing failure
Roundup Robot added the comment: New changeset 00824f9e29f3 by Victor Stinner in branch 'default': Issue #18228: Fix locale test of test.regrtest.saved_test_environment http://hg.python.org/cpython/rev/00824f9e29f3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18244] singledispatch: When virtual-inheriting ABCs at distinct points in MRO, composed MRO is dependent on haystack ordering
Changes by Łukasz Langa luk...@langa.pl: -- assignee: - lukasz.langa stage: - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18244 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14030] Be more careful about selecting the compiler in distutils
dnozay added the comment: affects PyPy, here are the downstream issues: - https://bugs.pypy.org/issue662 - https://bugs.pypy.org/issue674 - https://bugs.pypy.org/issue1057 -- nosy: +dnozay ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14030 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18245] In itertools.groupby() make data plural
R. David Murray added the comment: Yes, the way it is now is normal written english, regardless of what any older official stylebooks may say :) -- nosy: +r.david.murray resolution: - invalid stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
David Edelsohn added the comment: $ ./python -m test --timeout=60 -v test_signal == CPython 3.4.0a0 (default:00824f9e29f3+, Jun 17 2013, 16:44:41) [GCC 4.8.1] == AIX-1-00F84C0C4C00-powerpc-32bit big-endian == /home/dje/src/cpython/build/test_python_5832942 Testing with flags: sys.flags(debug=0, inspect=0, interactive=0, optimize=0, dont_write_bytecode=0, no_user_site=0, no_site=0, ignore_environment=0, verbose=0, bytes_warning=0, quiet=0, hash_randomization=1) [1/1] test_signal test_getsignal (test.test_signal.PosixTests) ... ok test_out_of_range_signal_number_raises_error (test.test_signal.PosixTests) ... ok test_setting_signal_handler_to_none_raises_error (test.test_signal.PosixTests) ... ok test_main (test.test_signal.InterProcessSignalTests) ... ok test_invalid_fd (test.test_signal.WakeupFDTests) ... ok test_pending (test.test_signal.WakeupSignalTests) ... ok test_signum (test.test_signal.WakeupSignalTests) ... ok test_wakeup_fd_during (test.test_signal.WakeupSignalTests) ... ok test_wakeup_fd_early (test.test_signal.WakeupSignalTests) ... ok test_siginterrupt_off (test.test_signal.SiginterruptTest) ... ok test_siginterrupt_on (test.test_signal.SiginterruptTest) ... ok test_without_siginterrupt (test.test_signal.SiginterruptTest) ... ok test_itimer_exc (test.test_signal.ItimerTest) ... ok test_itimer_prof (test.test_signal.ItimerTest) ... ok test_itimer_real (test.test_signal.ItimerTest) ... ok test_itimer_virtual (test.test_signal.ItimerTest) ... ok test_issue9324 (test.test_signal.WindowsSignalTests) ... skipped 'Windows specific' test_pthread_kill (test.test_signal.PendingSignalsTests) ... ok test_pthread_kill_main_thread (test.test_signal.PendingSignalsTests) ... ok test_pthread_sigmask (test.test_signal.PendingSignalsTests) ... ok test_pthread_sigmask_arguments (test.test_signal.PendingSignalsTests) ... ok test_sigpending (test.test_signal.PendingSignalsTests) ... ok test_sigpending_empty (test.test_signal.PendingSignalsTests) ... ok test_sigtimedwait (test.test_signal.PendingSignalsTests) ... ok test_sigtimedwait_negative_timeout (test.test_signal.PendingSignalsTests) ... ok test_sigtimedwait_poll (test.test_signal.PendingSignalsTests) ... ok test_sigtimedwait_timeout (test.test_signal.PendingSignalsTests) ... ok test_sigwait (test.test_signal.PendingSignalsTests) ... ok test_sigwait_thread (test.test_signal.PendingSignalsTests) ... ok test_sigwaitinfo (test.test_signal.PendingSignalsTests) ... ok test_sigwaitinfo_interrupted (test.test_signal.PendingSignalsTests) ... Timeout (0:01:00)! Thread 0x0001: File /home/dje/src/cpython/Lib/subprocess.py, line 1613 in _communicate_with_poll File /home/dje/src/cpython/Lib/subprocess.py, line 1533 in _communicate File /home/dje/src/cpython/Lib/subprocess.py, line 943 in communicate File /home/dje/src/cpython/Lib/test/script_helper.py, line 36 in _assert_python File /home/dje/src/cpython/Lib/test/script_helper.py, line 54 in assert_python_ok File /home/dje/src/cpython/Lib/test/test_signal.py, line 639 in wait_helper File /home/dje/src/cpython/Lib/test/test_signal.py, line 726 in test_sigwaitinfo_interrupted File /home/dje/src/cpython/Lib/unittest/case.py, line 496 in run File /home/dje/src/cpython/Lib/unittest/case.py, line 535 in __call__ File /home/dje/src/cpython/Lib/unittest/suite.py, line 105 in run File /home/dje/src/cpython/Lib/unittest/suite.py, line 67 in __call__ File /home/dje/src/cpython/Lib/unittest/suite.py, line 105 in run File /home/dje/src/cpython/Lib/unittest/suite.py, line 67 in __call__ File /home/dje/src/cpython/Lib/unittest/runner.py, line 168 in run File /home/dje/src/cpython/Lib/test/support.py, line 1566 in _run_suite File /home/dje/src/cpython/Lib/test/support.py, line 1600 in run_unittest File /home/dje/src/cpython/Lib/test/test_signal.py, line 873 in test_main File /home/dje/src/cpython/Lib/test/regrtest.py, line 1307 in runtest_inner File /home/dje/src/cpython/Lib/test/regrtest.py, line 1011 in runtest File /home/dje/src/cpython/Lib/test/regrtest.py, line 798 in main File /home/dje/src/cpython/Lib/test/regrtest.py, line 1592 in main_in_temp_cwd File /home/dje/src/cpython/Lib/test/__main__.py, line 3 in module File /home/dje/src/cpython/Lib/runpy.py, line 73 in _run_code File /home/dje/src/cpython/Lib/runpy.py, line 160 in _run_module_as_main -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17121] SSH upload for distutils
Éric Araujo added the comment: SSH upload is an acceptable new feature for Python 3.4, if it can be done without breaking compat or changing too many internals. (The distutils feature freeze was effectively lifted at PyCon; Nick Coghlan also has a PEP in the plans to discuss how to update distutils for new packaging standards.) -- type: security - enhancement versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17121 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18242] IDLE should not be replacing warnings.formatwarning
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17902] Document that _elementtree C API cannot use custom TreeBuilder for iterparse or IncrementalParser
Aaron Oakley added the comment: So sorry, I just found the emails from the bug tracker in my spam folder. Anyhow, I've now signed the CLA. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17902 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17206] Py_XDECREF() expands its argument multiple times
Jeremy Kloth added the comment: Indeed, after debugging, it is a stack overflow caused by the introduction of the different temporary variables in the Py_XINCREF, Py_XDECREF, and Py_DECREF macros. I've attached an updated patch that reuses the _py_tmp variable for those temporary assignments thus keeping the required stack size down. -- nosy: +jkloth Added file: http://bugs.python.org/file30625/object.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17206 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18245] In itertools.groupby() make data plural
Mark Dickinson added the comment: In any case, the patch only gives half of the correction. The corrected test would have to be if *those* data are needed later rather than if that data are needed later. -- nosy: +mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18245] In itertools.groupby() make data plural
Mark Dickinson added the comment: Bah. s/test/text. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
David Edelsohn added the comment: By the way, if I manually override _has_poll to False, the same test fails similarly in _communicate_with_select, so the failure is not limited to the implementation of poll(). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18189] IDLE Improvements: Unit test for Delegator.py
R. Jayakrishnan added the comment: The from test.resource import requires give me errors saying no module named resource in test (Am I missing anything?) For the moment I use from test.support import requires as in test_delegator1.patch . from test.support import requires requires('gui') class Test_delegator(unittest.TestCase): def setUp(self): . The results follows --- jaykrish@jaykrish-Vostro-1520:~/gsoc/cpy/cpython$ ./python -m test -ugui test_idle [1/1] test_idle 1 test OK. [189373 refs] -- jaykrish@jaykrish-Vostro-1520:~/gsoc/cpy/cpython$ ./python -m test test_idle [1/1] test_idle test test_idle failed -- Traceback (most recent call last): File /home/jaykrish/gsoc/cpy/cpython/Lib/unittest/case.py, line 384, in _executeTestPart function() File /home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py, line 32, in testFailure raise exception ImportError: Failed to import test module: idlelib.idle_test.test_delegator Traceback (most recent call last): File /home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py, line 261, in _find_tests module = self._get_module_from_name(name) File /home/jaykrish/gsoc/cpy/cpython/Lib/unittest/loader.py, line 239, in _get_module_from_name __import__(name) File /home/jaykrish/gsoc/cpy/cpython/Lib/idlelib/idle_test/test_delegator.py, line 8, in module requires('gui') File /home/jaykrish/gsoc/cpy/cpython/Lib/test/support.py, line 390, in requires raise ResourceDenied(msg) test.support.ResourceDenied: Use of the 'gui' resource not enabled 1 test failed: test_idle [189233 refs] --- And yes, the teardown method using self.root.destroy() now. -- Added file: http://bugs.python.org/file30626/test_delegator1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18228] AIX locale parsing failure
Roundup Robot added the comment: New changeset 6cbd992d3411 by Victor Stinner in branch 'default': Issue #18228: Use locale.setlocale(name, None) instead of http://hg.python.org/cpython/rev/6cbd992d3411 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18228 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18189] IDLE Improvements: Unit test for Delegator.py
Changes by R. Jayakrishnan raaj...@gmail.com: Removed file: http://bugs.python.org/file30626/test_delegator1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18189] IDLE Improvements: Unit test for Delegator.py
Changes by R. Jayakrishnan raaj...@gmail.com: Added file: http://bugs.python.org/file30627/test_delegator1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18238] test_signal.py wait_helper hangs on AIX
Roundup Robot added the comment: New changeset a0e234e10da6 by Victor Stinner in branch '3.3': Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX http://hg.python.org/cpython/rev/a0e234e10da6 New changeset 8e277e6bd11b by Victor Stinner in branch 'default': (Merge 3.3) Issue #18238: Skip test_signal.test_sigwaitinfo_interrupted() on AIX http://hg.python.org/cpython/rev/8e277e6bd11b -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18241] Add unique option to heapq functions
Serhiy Storchaka added the comment: No, it's impossible without additional structure. And with a set it is trivial. def uniqueheappush(heap, inheap, item): if id(item) in inheap: return False heappush(heap, item) inheap.add(id(item)) return True def uniqueheappop(heap, inheap): item = heappop(heap, inheap) inheap.discard(id(item)) return item I recomend reject this issue. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18246] tkinter.Text() add a newline to the content - bug?
New submission from Friedrich Spee von Langenfeld: Python 3.3.2 (v3.3.2:d047928ae3f6, May 16 2013, 00:06:53) [MSC v.1600 64 bit (AMD64)] on win32 Type copyright, credits or license() for more information. from tkinter import* root = Tk() text = Text() text.pack() text.insert(1.0, Hello) text.get(1.0, END) 'Hello\n' The tkinter.Text() widget add a newline (\n) to its content. Is this behavior a bug? -- components: Tkinter messages: 191370 nosy: Friedrich.Spee.von.Langenfeld priority: normal severity: normal status: open title: tkinter.Text() add a newline to the content - bug? versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18246 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18241] Add unique option to heapq functions
Antoine Pitrou added the comment: No, it's impossible without additional structure. And with a set it is trivial. Yeah, I wanted to avoid the memory overhead of a set. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18241 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18240] hmac unnecessarily restricts input to bytes
Changes by Jonas Borgström jo...@borgstrom.se: -- keywords: +patch Added file: http://bugs.python.org/file30628/hmac.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18242] IDLE should not be replacing warnings.formatwarning
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +kbk, roger.serwy, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18242 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18189] IDLE Improvements: Unit test for Delegator.py
Terry J. Reedy added the comment: Yes, 'support', not 'resource'. However, re-read my message for properly using requires to avoid the traceback. def setUpModule(): requires('gui') may also work, but I am assuming that there might be non-gui test cases added later. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18239] In itertools docstring update arguments in count() example
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18239 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18240] hmac unnecessarily restricts input to bytes
Christian Heimes added the comment: Thanks for your patch! Please add tests for the new feature. The documentation needs versionchanged tags, too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18240 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17238] IDLE: Enhance import statement completion
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17238 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18189] IDLE Improvements: Unit test for Delegator.py
Terry J. Reedy added the comment: As I discovered by experiment, unittest.SkipTest and subclasses are only handled properly inside of functions recognized and called by unittest. This could be better documented. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18189 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18014] Problem compiling on Windows, VC++Express 2010
Terry J. Reedy added the comment: Windows 3.3 build still failed today. So I updated back to time it worked, and them skipped forward every so ofter to current, compiling each time, and it worked each time except for one problem that was fixed in the next commit. No problems with 3.4 currently, so closing. -- resolution: - works for me status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18014] Problem compiling on Windows, VC++Express 2010
Ezio Melotti added the comment: FYI hg bisect makes this kind of tests a lot easier. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18014 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17222] py_compile.compile() replaces target files, breaking special files and symlinks
Roundup Robot added the comment: New changeset e2ccfb096e6a by Brett Cannon in branch 'default': Issue #17222: fix a mix-up in some exception messages. http://hg.python.org/cpython/rev/e2ccfb096e6a -- ___ 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() replaces target files, breaking special files and symlinks
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
[issue17222] py_compile.compile() replaces target files, breaking special files and symlinks
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- stage: - committed/rejected ___ 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
[issue13483] Use VirtualAlloc to allocate memory arenas
Changes by Trent Nelson tr...@snakebite.org: -- nosy: +trent ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3329] API for setting the memory allocator used by Python
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file30564/py_setallocators-4.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3329 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com