[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-10 Thread Serhiy Storchaka
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 ___

[issue24832] Issue building viewable docs with newer sphinx (default theme - classic)

2015-08-10 Thread Benjamin Peterson
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

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Serhiy Storchaka
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

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Brett Cannon
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 ___

[issue12892] UTF-16 and UTF-32 codecs should reject (lone) surrogates

2015-08-10 Thread Martijn Pieters
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Steve Dower
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

[issue23672] IDLE can crash if file name contains non-BMP Unicode characters

2015-08-10 Thread sanad
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

[issue24838] tarfile.py: fix GNU and USTAR formats to properly handle paths with special characters that are encoded with more than one byte each

2015-08-10 Thread Roddy Shuler
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

[issue24835] Consistent failure in test_asyncio on Windows 7 buildbot

2015-08-10 Thread Yury Selivanov
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,

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Larry Hastings
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). --

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Larry Hastings
Changes by Larry Hastings la...@hastings.org: -- assignee: larry - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24492 ___ ___

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Armin Rigo
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Steve Dower
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 ___

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Brett Cannon
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

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Eric Snow
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

[issue24764] cgi.FieldStorage can't parse multipart part headers with Content-Length and no filename in Content-Disposition

2015-08-10 Thread Berker Peksag
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

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-10 Thread Eric Snow
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

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-10 Thread Petr Viktorin
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 ___

[issue24760] IDLE settings dialog shouldn't be modal

2015-08-10 Thread Mark Roseman
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Larry Hastings
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

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Larry Hastings
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

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
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:

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread R. David Murray
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 ___ ___

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Yury Selivanov
Changes by Yury Selivanov yseliva...@gmail.com: -- nosy: +ethan.furman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24840 ___ ___

[issue23051] multiprocessing.pool methods imap()[_unordered()] deadlock

2015-08-10 Thread Gregory Szorc
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

[issue24272] PEP 484 docs

2015-08-10 Thread Daniel Andrade Groppe
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

[issue24272] PEP 484 docs

2015-08-10 Thread Daniel Andrade Groppe
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Roundup Robot
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Steve Dower
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

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Steve Dower
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 ___

[issue24842] Mention SimpleNamespace in namedtuple docs

2015-08-10 Thread Chris Rebert
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:

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Larry Hastings
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

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
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

[issue24492] using custom objects as modules: AttributeErrors new in 3.5

2015-08-10 Thread Larry Hastings
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 ___

[issue24841] Some test_ssl network tests fail if svn.python.org is not accessible.

2015-08-10 Thread Vinson Lee
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:

[issue24840] implement bool conversion for enums to prevent odd edge case

2015-08-10 Thread Mike Lundy
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:

[issue24839] platform._syscmd_ver raises DeprecationWarning

2015-08-10 Thread Larry Hastings
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 ___

[issue24841] Some test_ssl network tests fail if svn.python.org is not accessible.

2015-08-10 Thread Vinson Lee
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 ___

[issue24832] Issue building viewable docs with newer sphinx (default theme - classic)

2015-08-10 Thread R. David Murray
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

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread Guido van Rossum
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

[issue24835] Consistent failure in test_asyncio on Windows 7 buildbot

2015-08-10 Thread STINNER Victor
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

[issue24831] Load average in test suite too high

2015-08-10 Thread STINNER Victor
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. --

[issue24831] Load average in test suite too high

2015-08-10 Thread Serhiy Storchaka
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 =

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread Chetan Reddy
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

[issue24837] await process.wait() does not work with a new_event_loop

2015-08-10 Thread STINNER Victor
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.

[issue24831] Load average in test suite too high

2015-08-10 Thread Stefan Krah
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 ___

[issue24831] Load average in test suite too high

2015-08-10 Thread Stefan Krah
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,

[issue24769] Interpreter doesn't start when dynamic loading is disabled

2015-08-10 Thread Petr Viktorin
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: