[issue24842] Mention SimpleNamespace in namedtuple docs
Changes by Serhiy Storchaka storch...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger priority: normal - low ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24832] Issue building viewable docs with newer sphinx (default theme - classic)
Benjamin Peterson added the comment: Please keep the doc build compatible with Sphinx 1.2.*. Sphinx 1.3.1 has a problem with LaTeX generation, so we can't upgrade the automated docs build to use it until 1.3.2 is released. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24832 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
Serhiy Storchaka added the comment: This looks to me as very special case. Enum doesn't delegates the __bool__ method as well as it doesn't delegates __float__, __lt__, __len__, etc. It is left to user to add these methods if needed. It is easy to add the __bool__ method to user enum. In your case you also can inherit from IntEnum. class Bool(IntEnum): ... Yep = True ... Nope = False ... bool(Bool.Yep) True bool(Bool.Nope) False -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Brett Cannon added the comment: Larry, does this warrant going into 3.5.0? -- assignee: brett.cannon - larry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates
Martijn Pieters added the comment: I don't understand why encoding with `surrogateescape` isn't supported still; is it the fact that a surrogate would have to produce *single bytes* rather than double? E.g. b'\x80' - '\udc80' - b'\x80' doesn't work because that would mean the UTF-16 and UTF-32 codec could then end up producing an odd number of bytes? -- nosy: +mjpieters ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12892 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
New submission from Steve Dower: platform._syscmd_ver() calls platform.popen() which raises a DeprecationWarning. This causes tests with `@skip(platform.machine() == '...')` decorators to fail. The fix is to call `os.popen()` - patch attached. (platform.popen() just raises the warning and then calls os.popen(), so should be no risk here.) Larry - since this causes spurious failures in numpy's test suite, can we get it into 3.5? -- files: platform_popen.patch keywords: patch messages: 248364 nosy: larry, lemburg, steve.dower priority: normal severity: normal stage: needs patch status: open title: platform._syscmd_ver raises DeprecationWarning type: behavior versions: Python 3.5, Python 3.6 Added file: http://bugs.python.org/file40158/platform_popen.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23672] IDLE can crash if file name contains non-BMP Unicode characters
sanad added the comment: These observations are noted when the system locale is set to 'iso-88591' 1. Ok, for some reason I'm able to execute this command without any error in Linux (idle window is opening with a file name as 'astralE.py'). Because the character '피' is automatically being shown and treated as 'E' in both terminal and python command line interpreter(similar for chars '풵' = 'z' and '풫' = 'P'). 2. But i'm unable to save/make a file with filname 'astral피.py' and hence unable to run it. The following errors are thrown then : Exception in Tkinter callback Traceback (most recent call last): File /home/sanad/devpy/pessoc/cpython/Lib/tkinter/__init__.py, line 1549, in __call__ return self.func(*args) File /home/sanad/devpy/pessoc/cpython/Lib/idlelib/MultiCall.py, line 176, in handler r = l[i](event) File /home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py, line 339, in save self.save_as(event) File /home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py, line 353, in save_as if self.writefile(filename): File /home/sanad/devpy/pessoc/cpython/Lib/idlelib/IOBinding.py, line 379, in writefile with open(filename, wb) as f: UnicodeEncodeError: 'ascii' codec can't encode character '\U0001d53c' in position 39: ordinal not in range(128) I'm trying to figure out the root of the problem, feel free to give your inputs -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23672 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each
New submission from Roddy Shuler: GNU and USTAR formats use a special case if the file path is longer than 100 bytes. The detection for this, though, incorrectly checked for 100 characters rather than 100 bytes. So, if the length was close to but not exceeding 100 characters and included special characters such that the encoded length is greater than 100 bytes, the encoded string was truncated to 100 bytes and thus the resulting file name was truncated within the tar file. For example... /gt-education/Colección Educativa Guatemala/thumbs/Libro de Texto Comunicacion y Lenguaje 1 Grado.jpg is truncated as: /gt-education/Colección Educativa Guatemala/thumbs/Libro de Texto Comunicacion y Lenguaje 1 Grado.jp The attached patch fixes this. Initially found on Python 3.3. Patch is tested on Linux with version 3.4.3-6 from Debian. Looking at the source code, I am pretty confident that the problem still exists upstream in Python 3.5. -- files: fix-tarfile-path-truncation.patch keywords: patch messages: 248363 nosy: Roddy Shuler priority: normal severity: normal status: open title: tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file40157/fix-tarfile-path-truncation.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24838 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24835] Consistent failure in test_asyncio on Windows 7 buildbot
Yury Selivanov added the comment: Yury: be careful when synchonizing github and cpython code. It's common to have changes only on one side. Victor, I agree. But let's make sure that it's no more common to have two repos out of sync. I shouldn't sync your changes (and you, likewise, shouldn't sync mine) because I'm not really familiar with them, and it is sometimes hard to guess what's going on. Let's stick to the workflow, please. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24835 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Larry Hastings added the comment: I would like the fix in 3.5. However, I'm not qualified to review the code. Can you get a qualified reviewer in to look over the code? Once someone suitable has reviewed it, I'll accept a pull request (pasted in here naturally). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Changes by Larry Hastings la...@hastings.org: -- assignee: larry - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Armin Rigo added the comment: Patch LGTM too. Optionally a test is needed for each of the other cases in it too, but please don't cause that comment to stop it from getting in. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Steve Dower added the comment: Have you opened up the repo yet? I'm getting no access errors from BB. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Brett Cannon added the comment: Thanks for the reviews, Eric and Armin. I will get the patch in 3.5.0, 3.5.1, and 3.6 sometime this week and then open another issue for adding more tests for the other branches in the code. -- priority: deferred blocker - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Eric Snow added the comment: patch LGTM. Presumably the divergence between importlib (in _handle_fromlist) and import.c was strictly accidental (i.e. lack of test coverage). -- stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition
Changes by Berker Peksag berker.pek...@gmail.com: -- nosy: +berker.peksag stage: - patch review type: - behavior versions: -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24764 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24769] Interpreter doesn't start when dynamic loading is disabled
Eric Snow added the comment: Looks fine to me. Nick had suggested calling exec_builtin from exec_dynamic (to the same effect as your patch), but I don't consider that much of an issue. :) -- stage: - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24769 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24769] Interpreter doesn't start when dynamic loading is disabled
Petr Viktorin added the comment: Right. I think a common helper is cleaner than calling a clinic-generated wrapper. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24769 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24760] IDLE settings dialog shouldn't be modal
Mark Roseman added the comment: I've attached decouple_config.patch, which removes some internal knowledge about EditorWindow from configDialog. This is a step towards making the preferences dialog non-modal (and also to launching either the current dialog, or a new ttk-dependent one). The thing that could currently break things if we switched to non-modal is that when configuration changes, we directly examine parent.instance_dict. Unfortunately, it's possible that parent will have been destroyed before this happens. Instead of holding onto parent, the patch holds onto the FileList object, which should persist. It also takes the opportunity to delegate the specifics of what should happen to active editor windows on config changes (previously in configDialog) to FileList, which in turn delegates the specifics back to each EditorWindow instance. A separate patch, depending on this refactoring, will then change the dialog so that it can be launched non-modally, and make sure only a single instance is present. -- keywords: +patch Added file: http://bugs.python.org/file40159/decouple_config.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24760 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Larry Hastings added the comment: Not yet. I'll open it after I release 3.5.0rc1. I'll send email to clp-d and clp-c when I do. I can email you privately too if you like. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Larry Hastings added the comment: Yes, Eric and Armin are both qualified reviewers in my book. You have my blessing to send a pull request. Thanks, everybody! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
New submission from Mike Lundy: There's a slightly odd edge case which can be summarized as follows: from enum import Enum class Bool(Enum): Yep = True Nope = False for value in Bool: print('%18r is %r' % (value, bool(value))) output: Bool.Yep: True is True Bool.Nope: False is True This isn't really a big deal, but can be made better with the attached patch. I can't think of any odd consequences this might cause, but others may know better. -- messages: 248378 nosy: novas0x2a priority: normal severity: normal status: open title: implement bool conversion for enums to prevent odd edge case type: enhancement ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
R. David Murray added the comment: No patch is attached. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock
Gregory Szorc added the comment: For posterity, I think we ran into a similar problem in https://bugzilla.mozilla.org/show_bug.cgi?id=1191877, where our code uses apply_async(): 11:09:47 INFO - Exception in thread Thread-2: 11:09:47 INFO - Traceback (most recent call last): 11:09:47 INFO -File /tools/python/lib/python2.7/threading.py, line 551, in __bootstrap_inner 11:09:47 INFO - self.run() 11:09:47 INFO -File /tools/python/lib/python2.7/threading.py, line 504, in run 11:09:47 INFO - self.__target(*self.__args, **self.__kwargs) 11:09:47 INFO -File /tools/python/lib/python2.7/multiprocessing/pool.py, line 319, in _handle_tasks 11:09:47 INFO - put(task) 11:09:47 INFO - RuntimeError: dictionary changed size during iteration This resulted in deadlock, just like this issue. The added try..except around the iteration of taskseq likely fixes this as well. -- nosy: +Gregory.Szorc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue23051 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24272] PEP 484 docs
Daniel Andrade Groppe added the comment: Here's a patch for the second half of remaining classes (this file is a complement of Ivan Levkivskyi's patch). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24272 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24272] PEP 484 docs
Daniel Andrade Groppe added the comment: Missing Generator. -- Added file: http://bugs.python.org/file40161/typying_documentation_part2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24272 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Roundup Robot added the comment: New changeset 7cfe20a6395d by Steve Dower in branch '3.5': Issue #24839: platform._syscmd_ver raises DeprecationWarning https://hg.python.org/cpython/rev/7cfe20a6395d -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Steve Dower added the comment: PR is at https://bitbucket.org/larry/cpython350/pull-requests/1/issue-24839-platform_syscmd_ver-raises/diff (For my sanity, your 3.5 branch and the hg.p.o 3.5 branch *are* currently in sync, yes? Any value in adding a 3.5.0 branch for your divergence so we can avoid the need for multiple clones?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Changes by Steve Dower steve.do...@microsoft.com: -- resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24842] Mention SimpleNamespace in namedtuple docs
New submission from Chris Rebert: There is a cross-reference to namedtuple in SimpleNamespace's docs, but not vice-versa, despite these types being fairly similar. -- assignee: docs@python components: Documentation messages: 248389 nosy: cvrebert, docs@python priority: normal severity: normal status: open title: Mention SimpleNamespace in namedtuple docs type: enhancement versions: Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24842 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Larry Hastings added the comment: Yes, I'll accept that for 3.5.0. Paste a link to a pull request here at your earliest convenience (and opportunity). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
Mike Lundy added the comment: (I should note that I just recently signed the contributor agreement, not that this a particularly complex fix, but it hasn't propagated to my profile yet). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24492] using custom objects as modules: AttributeErrors new in 3.5
Larry Hastings added the comment: My Bitbucket repo is now public. https://bitbucket.org/larry/cpython350 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24841] Some test_ssl network tests fail if svn.python.org is not accessible.
New submission from Vinson Lee: 'make test' runs all the network tests. Some of the tests in test_ssl fail instead of skip if svn.python.org is not accessible. $ ./python -m test -v -u all test_ssl == ERROR: test_non_blocking_connect_ex (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File /home/vinson/workspace/cpython-master/Lib/test/test_ssl.py, line 1404, in test_non_blocking_connect_ex s.do_handshake() File Lib/ssl.py, line 978, in do_handshake self._check_connected() File Lib/ssl.py, line 776, in _check_connected self.getpeername() OSError: [Errno 107] Transport endpoint is not connected == FAIL: test_connect_ex (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File Lib/test/test_ssl.py, line 1381, in test_connect_ex self.assertEqual(0, s.connect_ex((svn.python.org, 443))) AssertionError: 0 != 111 == FAIL: test_timeout_connect_ex (test.test_ssl.NetworkedTests) -- Traceback (most recent call last): File Lib/test/test_ssl.py, line 1428, in test_timeout_connect_ex self.assertIn(rc, (errno.EAGAIN, errno.EWOULDBLOCK)) AssertionError: 111 not found in (11, 11) -- Ran 117 tests in 3.123s FAILED (failures=2, errors=1, skipped=20) test test_ssl failed 1 test failed: test_ssl -- components: Tests messages: 248382 nosy: vlee priority: normal severity: normal status: open title: Some test_ssl network tests fail if svn.python.org is not accessible. versions: Python 3.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24841 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24840] implement bool conversion for enums to prevent odd edge case
Mike Lundy added the comment: @r.david.murray man you're fast :) Sorry, realized I forgot to actually run the tests for 3.5 and 3.4, I'd only run them for master (I've now run them for 3.5 and 3.4 now, too). -- keywords: +patch Added file: http://bugs.python.org/file40160/issue24840.master.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24839] platform._syscmd_ver raises DeprecationWarning
Larry Hastings added the comment: My Bitbucket repo is now public. https://bitbucket.org/larry/cpython350 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24839 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24841] Some test_ssl network tests fail if svn.python.org is not accessible.
Changes by Vinson Lee v...@freedesktop.org: -- versions: +Python 3.3, Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24841 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24832] Issue building viewable docs with newer sphinx (default theme - classic)
R. David Murray added the comment: Hmm. All I do is 'make clean; make html', but I don't see why that would make a difference to the problem on point. I didn't know about this make venv thing...that must be newish? When I try it, that does indeed work. Building that way produces a 'default.css' in build/html/_static, whereas building without the venv (but with sphinx 1.3.1) does not. I have no idea why, it doesn't really make sense that that would be the case. Perhaps the experiment of using the installed sphinx to build the docs is a failure and we should just make using local copies the default again? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24832 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24837] await process.wait() does not work with a new_event_loop
Guido van Rossum added the comment: I think it's unfortunate that this doesn't work. Note that the example program has no threads -- it just has a loop that isn't the default loop. The docs you refer to aren't very helpful. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24835] Consistent failure in test_asyncio on Windows 7 buildbot
STINNER Victor added the comment: Le 9 août 2015 14:41, Guido van Rossum rep...@bugs.python.org a écrit : But apparently Victor didn't copy that fix to the upstream asyncio repo. Yeah sorry about that. Hopefully it's now fixed. Yury: be careful when synchonizing github and cpython code. It's common to have changes only on one side. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24835 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24831] Load average in test suite too high
STINNER Victor added the comment: There is not option to choose the temporary directory like $TMPDIR? I had issues with /tmp when creating large files because /tmp is now a tmpfs on Fedora by default. Maybe we can blacklist some filesystems to choose the temporary directory. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24831 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24831] Load average in test suite too high
Serhiy Storchaka added the comment: Lib/test/regrtest.py: # When tests are run from the Python build directory, it is best practice # to keep the test files in a subfolder. This eases the cleanup of leftover # files using the make distclean command. if sysconfig.is_python_build(): TEMPDIR = os.path.join(sysconfig.get_config_var('srcdir'), 'build') else: TEMPDIR = tempfile.gettempdir() -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24831 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24837] await process.wait() does not work with a new_event_loop
New submission from Chetan Reddy: Attached test.py hangs with the following output when run with PYTHONASYNCIODEBUG1= and -Wdefault. DEBUG:asyncio:Using selector: EpollSelector DEBUG:asyncio:run shell command 'sleep 2' DEBUG:asyncio:process 'sleep 2' created: pid 13801 INFO:asyncio:run shell command 'sleep 2': _UnixSubprocessTransport pid=13801 running After i Ctrl-C it, i see the following traceback (paths edited) ^CTraceback (most recent call last): File /chetan/test.py, line 17, in module main() File /chetan/test.py, line 12, in main result =loop.run_until_complete(sleepWithShell(loop)) File /Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py, line 329, in run_until_complete self.run_forever() File /Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py, line 300, in run_forever self._run_once() File /Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py, line 1142, in _run_once event_list = self._selector.select(timeout) File /Python-3.5.0b4-clang/lib/python3.5/selectors.py, line 432, in select fd_event_list = self._epoll.poll(timeout, max_ev) KeyboardInterrupt /Python-3.5.0b4-clang/lib/python3.5/asyncio/base_subprocess.py:117: ResourceWarning: unclosed transport _UnixSubprocessTransport pid=13801 running /Python-3.5.0b4-clang/lib/python3.5/asyncio/base_events.py:384: ResourceWarning: unclosed event loop _UnixSelectorEventLoop running=False closed=False debug=True DEBUG:asyncio:Close _UnixSelectorEventLoop running=False closed=False debug=True -- components: asyncio files: test.py messages: 248353 nosy: chetan, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: await process.wait() does not work with a new_event_loop type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file40155/test.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24837] await process.wait() does not work with a new_event_loop
STINNER Victor added the comment: It's better to use asyncio.get_event_loop() to create the event loop. Otherwise, you have to create manually the child watcher: https://docs.python.org/dev/library/asyncio-subprocess.html#subprocess-and-threads If I recall correctly, you have to call asyncio. get_child_watcher(). What is your OS? Maybe subprocess_exec/shell may ensure that a child watcher exist. Maybe only in debug mode? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24837 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24831] Load average in test suite too high
Stefan Krah added the comment: Actually, for ecryptfs we could just check for ~/.ecryptfs and then use /tmp. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24831 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24831] Load average in test suite too high
Stefan Krah added the comment: Yes, the current scheme is probably good for easy buildbot cleanup. Maybe we can blacklist some filesystems to choose the temporary directory. If that's easily possible, it would be a good solution at least for ecryptfs. I've removed ecryptfs from my setup, since speedwise it's not production-ready for encrypting an entire home directory. The Ubuntu setup is a bit of a trap, since the encryption is completely transparent to the user (i.e. mounting ecryptfs occurs automatically on login). So if you install Ubuntu as the first system on new hardware and choose the ecryptfs option, after a while you forget about ecryptfs entirely and blame any slowness on the hardware or the software. -- priority: high - normal ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24831 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue24769] Interpreter doesn't start when dynamic loading is disabled
Petr Viktorin added the comment: Apologies for the delay; I was on vacation. This was indeed a mistake in PEP 489 implementation. I agree with Nick on the solution. Here is a patch that adds exec_builtin, with implementation shared with exec_dynamic. -- keywords: +patch Added file: http://bugs.python.org/file40156/issue24769.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24769 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com