[issue22379] Empty exception message of str.join
Changes by Yongzhi Pan fossi...@users.sourceforge.net: -- versions: +Python 3.5 Added file: http://bugs.python.org/file36604/str_join_exception_message_1.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22379 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22379] Empty exception message of str.join
Yongzhi Pan added the comment: I updated the patches. Since exceptions in 3 do not have a message attribute, I did not check them. Are they OK? -- Added file: http://bugs.python.org/file36605/test_for_35.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22379 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22362] Warn about octal escapes 0o377 in re
STINNER Victor added the comment: re_octal_escape_overflow_raise.patch: you should write a subfunction to not repeat the error message 3 times. +if c 0o377: Hum, I never use octal. 255 instead of 0o377 would be less surprising :-p By the way, you should also check for negative numbers. -3 0xff 253 Before, 0xff also converted negative numbers to positive in range 0..255. -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22389] Generalize contextlib.redirect_stdout
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: - ncoghlan nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22389 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22389] Generalize contextlib.redirect_stdout
Raymond Hettinger added the comment: +1 on Victor's suggestion. I don't think hypergeneralizing it is the way to go. That adds too much complexity for too little benefit. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22389 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22389] Generalize contextlib.redirect_stdout
STINNER Victor added the comment: redirect_stdout(stderr, stream) looks wrong to be: you want to redirect stdout or stderr? If you want to redirect something else (ex: stdin), you can still implement the very simple pattern: old_stdin = sys.stdin try: sys.stdin = mock_input ... finally: sys.stdin = old_stdin By the way, I'm not convinced that we should add redirect_stderr. @Barry: How many usage of this new functions do you see in the standard library? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22389 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19232] Speed up _decimal import
STINNER Victor added the comment: We could speed up the import further by not importing collections in _decimal. That could be done once structseq fully implements the namedtuple protocol (for DecimalTuple). I suggest to close this issue. I guess that importing decimal is already fast enough, and enhance structseq is a completly different issue. (Is there an open issue, just to get the link?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22348] Documentation of asyncio.StreamWriter.drain()
STINNER Victor added the comment: IMO we should mention the write buffer limits (high- and low-water limits for write flow control). get_write_buffer_limits() and set_write_buffer_limits() methods of the transport are public, there is no reason to hide them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22348 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22389] Generalize contextlib.redirect_stdout
Nick Coghlan added the comment: I'm fine with adding redirect_stderr - better to have the obvious counterpart, rather than hypergeneralising, or having to explain why it's missing. It's *currently* missing largely on a wait for someone to ask basis, and Barry asked. (Tangentially related, I should do a contextlib2 release at some point, but my previous CI provider shut down...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22389 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22348] Documentation of asyncio.StreamWriter.drain()
Martin Richard added the comment: Here is an other patch which mentions high and low water limits. I think it's better to talk about it, since it tells extactly what a full buffer and partially drained means. On the other hand, StreamWriter wraps the transport but does not expose the set/get_write_buffer_limits() directly, you reach then through stream_writer.transport (which makes sense, StreamWriter is here to help writing, not to do plumbery) - so I did not mention the functions. -- Added file: http://bugs.python.org/file36606/asyncio-streams-drain-doc-water-limits.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22348 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19232] Speed up _decimal import
Stefan Krah added the comment: I'm fine with closing this. The structseq issue is #1820. -- resolution: - fixed stage: patch review - resolved status: open - closed versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19232 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22378] SO_MARK support for Linux
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +neologix ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22378 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20631] python readline module crashing on NULL access
Ismail Donmez added the comment: Can we please get a review on this? -- nosy: +cartman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20631] python readline module crashing on NULL access
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20631 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22379] Empty exception message of str.join
R. David Murray added the comment: You can check .args[0] in python3. Can you include a complete patch for python3? Your test_for_35 only has a change for test_bytes, not the ones for string_tests. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22379 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional
Michał Górny added the comment: In CPython, the _ssl module is compiled in C. How can we check if libssl provides RAND_egd() or not at compile time? How about... checking whether the function is provided? Unless I'm missing some major point, AC_CHECK_FUNC should be good enough. Is there a way to check if libssl is OpenSSL or LibreSSL? Why would you want to do that? Do you want to make silly assumptions on API depending on provider name, and then add extra conditionals for versions? -- nosy: +mgorny ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20334] make inspect Signature hashable
Yury Selivanov added the comment: Antonie, I'm attaching a patch (issue20334-2.01.patch) to this issue which should fix the problem. Please review. -- Added file: http://bugs.python.org/file36607/issue20334-2.01.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20334 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22394] Update documentation building to use venv and pip
New submission from Brett Cannon: Now that we have ensurepip, is there any reason to not have the Doc/ Makefile create a venv for building the docs instead of requiring people to install sphinx into either their global Python interpreter or some venv outside of their checkout? Basically it would be like going back to the old Makefile of checking out the code but instead do a better isolation job and let pip manage fetching everything, updating the projects, etc. -- assignee: docs@python components: Documentation messages: 226821 nosy: brett.cannon, docs@python priority: low severity: normal stage: needs patch status: open title: Update documentation building to use venv and pip type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22394 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16104] Compileall script: add option to use multiple cores
Roundup Robot added the comment: New changeset 9efefcab817e by Brett Cannon in branch 'default': Issue #16104: Allow compileall to do parallel bytecode compilation. http://hg.python.org/cpython/rev/9efefcab817e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16104] Compileall script: add option to use multiple cores
Brett Cannon added the comment: Thanks for the patch, Claudiu! -- resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16104] Compileall script: add option to use multiple cores
Claudiu Popa added the comment: Thank you for committing it. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16104 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22381] update zlib in 2.7 to 1.2.8
Changes by Matthias Klose d...@debian.org: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22381 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22389] Generalize contextlib.redirect_stdout
Berker Peksag added the comment: Here's a simple implementation. I will add tests and update the documentation. -- keywords: +patch nosy: +berker.peksag stage: - patch review Added file: http://bugs.python.org/file36608/issue22389.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22389 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22362] Warn about octal escapes 0o377 in re
Serhiy Storchaka added the comment: By the way, you should also check for negative numbers. Not in this case. You can't construct negative number from three octal digits. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22362 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22253] ConfigParser does not handle files without sections
kernc added the comment: I am dubious that there are any with a mixture of both sections and additional option lines at the top without a section. rsyncd.conf [1] is one such example, and I wouldn't say there aren't countless more in the wild. Anyone writing an app and planning to parse a .ini file can add [Start] or [Setup] at the top. Indeed. Here lies the problem of this unfortunate issue: MissingSectionHeaderError is only ever caught [9] to mitigate this **awful default behavior** and attach a dummy section at the top, as you say. Or can anyone care to propose another relevant use case for this poorly (un-) thought through exception? I think a more useful new configparser feature would be to keep comment lines and write them back out after a configuration is changed. While this is very much off-topic, configobj [3] does too seem to have done so since ages. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22253 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22395] test_pathlib error for complex symlinks on Windows
New submission from Justin Foo: The _check_complex_symlinks function compares paths for string equality instead of using the assertSame helper function. Patch attached. -- components: Tests messages: 226828 nosy: jfoo priority: normal severity: normal status: open title: test_pathlib error for complex symlinks on Windows type: enhancement versions: Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22395 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22395] test_pathlib error for complex symlinks on Windows
Justin Foo added the comment: The _check_complex_symlinks function compares stringified paths for string equality instead of using the assertSame helper method. Patch attached. -- keywords: +patch Added file: http://bugs.python.org/file36609/issue22395.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22395 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22356] mention explicitly that stdlib assumes gmtime(0) epoch is 1970
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22393] multiprocessing.Pool shouldn't hang forever if a worker process dies unexpectedly
Changes by Chris Rebert pyb...@rebertia.com: -- nosy: +cvrebert ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22393 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22379] Empty exception message of str.join
Serhiy Storchaka added the comment: You can check .args[0] in python3. Or str(cm.exception). This works on 2.7 too. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22379 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22395] test_pathlib error for complex symlinks on Windows
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22395 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20334] make inspect Signature hashable
Antony Lee added the comment: While your patch works, I think it is a good opportunity to simplify the implementation of Signature.__eq__, which is *much* more complicated than what it should be. Please comment on the attached patch, which uses the helper method approach I suggested. -- Added file: http://bugs.python.org/file36610/signature-hash-and-equality.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20334 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22395] test_pathlib error for complex symlinks on Windows
Antoine Pitrou added the comment: Can you explain in which case the assertion breaks? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22395 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21356] Support LibreSSL (instead of OpenSSL): make RAND_egd optional
Antoine Pitrou added the comment: Unless I'm missing some major point, AC_CHECK_FUNC should be good enough. Building extension modules such as ssl doesn't involve autoconf. Do you want to make silly assumptions on API depending on provider name, and then add extra conditionals for versions? Arguably it would be better if LibreSSL exposed the same API as OpenSSL. We're not responsible for the discrepancy here. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21356 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22396] AIX posix_fadvise and posix_fallocate
New submission from David Edelsohn: As with Solaris and Issue10812, test_posix fadvise and fallocate fail on AIX. Python is compiled with _LARGE_FILES, which changes the function signature for posix_fadvise and posix_fallocate so that off_t is long long on 32 bit system passed in two registers. The Python call to those functions does not place the arguments in the correct registers, causing an EINVAL error. This patch fixes the failures in a similar way to Solaris ZFS kludge for Issue10812. -- components: Tests files: 10812_aix.patch keywords: patch messages: 226834 nosy: David.Edelsohn, pitrou priority: normal severity: normal status: open title: AIX posix_fadvise and posix_fallocate type: behavior versions: Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36611/10812_aix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22396 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22253] ConfigParser does not handle files without sections
Serhiy Storchaka added the comment: Microsoft Windows INI files, POSIX-compatible config files, and other formats (e.g. Java properties files) use different methods for escaping, quoting, line continuing, interpolations, etc. Actually there are more differences than similarity between them. -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22253 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22396] AIX posix_fadvise and posix_fallocate
Antoine Pitrou added the comment: The Python call to those functions does not place the arguments in the correct registers Well... isn't there a way to fix this? I don't understand how this issue can come up. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22396 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22397] test_socket failure on AIX
New submission from David Edelsohn: AIX has the same test_socket problem with FDPassSeparate as Darwin in Issue12958 so skip some tests. -- components: Library (Lib) files: 12958_aix.patch keywords: patch messages: 226837 nosy: David.Edelsohn, pitrou priority: normal severity: normal status: open title: test_socket failure on AIX type: behavior versions: Python 3.3, Python 3.4, Python 3.5 Added file: http://bugs.python.org/file36612/12958_aix.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22397 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22396] AIX posix_fadvise and posix_fallocate
Serhiy Storchaka added the comment: See similar Ruby issue: https://bugs.ruby-lang.org/issues/9914 . As workaround we can redeclare posix_fadvise as int posix_fadvise(int fd, long offset, long len, int advice) on 32-bit AIX with enabled _LARGE_FILES. More safe option is to disable posix_fadvise in such case (as Ruby had done). -- nosy: +serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22396 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22398] Tools/msi enhancements for 2.7
New submission from Steve Dower: This patch has some minor changes to the build scripts for Python 2.7 on Windows. They're fully tested on my build machine, but I wanted someone who's more familiar with how the buildbots are set up to either confirm that the Tools/msi scripts are not used or that the changes won't have an impact. The Tools/msi/msi.py changes to use environment variables are mostly to make my life easier. Apparently the old way was to actually modify the file before making an official release... The Tools/msi/msilib.py fix is necessary because of some new files that were added for 2.7.9. Technically it's a release blocker, though it won't actually hold anything up since I spotted it. -- assignee: steve.dower components: Installation, Windows files: Tool_msi_27.patch keywords: patch messages: 226839 nosy: pitrou, steve.dower, tim.golden, zach.ware priority: normal severity: normal stage: patch review status: open title: Tools/msi enhancements for 2.7 type: enhancement versions: Python 2.7 Added file: http://bugs.python.org/file36613/Tool_msi_27.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22398 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22397] test_socket failure on AIX
Changes by Serhiy Storchaka storch...@gmail.com: -- nosy: +ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22397 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20334] make inspect Signature hashable
Roundup Robot added the comment: New changeset 3b974b61e74d by Yury Selivanov in branch 'default': inspect.Signature: Fix discrepancy between __eq__ and __hash__. http://hg.python.org/cpython/rev/3b974b61e74d -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20334 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20334] make inspect Signature hashable
Yury Selivanov added the comment: Antony, I've tweaked the patch a bit and it's now in default branch. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20334 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22343] Install bash activate script on Windows when using venv
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - test needed versions: +Python 3.5 -Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22343 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22398] Tools/msi enhancements for 2.7
Zachary Ware added the comment: Actually, I think the method Martin used was to create a local config.py in Tools/msi/, which provided the proper settings for the release. See http://hg.python.org/cpython/file/2.7/Tools/msi/msi.py#l37 Either way, the buildbots are completely unaffected by Tools/msi, and I don't think anything actually uses PCbuild/build_tkinter.py (unless you do :)), so since the script is now yours, I'd say you're clear to change as you like. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22398 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22351] NNTP constructor exception leaves socket for garbage collector
Changes by Terry J. Reedy tjre...@udel.edu: -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22398] Tools/msi enhancements for 2.7
Steve Dower added the comment: Thanks for confirming. Somehow I never noticed the import config line - guess that's a pattern I'm not really used to seeing. Still, I prefer having the env variables there as I invoke the scripts through some batch files (very specific to my machine, unfortunately, but the 3.5 ones will be more generic). And since you mention it, apparently I'm not using build_tkinter.py any more either. I was at one point, hence the fix. I'll leave it in there - we can probably remove the file completely but no harm in leaving it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22398 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22398] Tools/msi enhancements for 2.7
Roundup Robot added the comment: New changeset 5c55a7bfec0c by Steve Dower in branch '2.7': #22398 Tools/msi enhancements for 2.7 http://hg.python.org/cpython/rev/5c55a7bfec0c -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22398 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22398] Tools/msi enhancements for 2.7
Changes by Steve Dower steve.do...@microsoft.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22398 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22399] Doc: missing anchor for dict in library/functions.html
New submission from Philippe Dessauw: There is a missing anchor for the dict functions in the documentation at library/functions.html. It is present in the documentation of all python version. It seems to impact cross-referencing in Sphinx (using intersphinx). -- assignee: docs@python components: Documentation messages: 226845 nosy: docs@python, pdessauw priority: normal severity: normal status: open title: Doc: missing anchor for dict in library/functions.html type: enhancement versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22399 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22354] Idle: highlite tabs
Terry J. Reedy added the comment: I agree that this is an issue, and I believe others have made similar comments or requests, but I cannot find an existing issue for this. By experiment, it is possible to tag a tab and change the background color for the spaces a tab is visually converted to. import tkinter as tk root = tk.Tk() text = tk.Text(root) text.pack() text.insert('insert', 'a\tb') text.tag_add('TAB', 1.1, 1.2) text.tag_config('TAB', background='#ffd') # light yellow, or text.tag_config('TAB', background='#eee') # light gray http://infohost.nmt.edu/tcc/help/pubs/tkinter/web/text-methods.html The other tag configuration options that refer to text, such as overstrike and underline, have no visual effect. Neither does non-zero borderwidth. I am reluctant to add visible characters. The need to delete them would complicate converting tabs to spaces and saving files. Since Idle normally converts tabs to spaces on input, they are not common in edited files. The main issue, as you mention, is code imported from elsewhere. Some issue remain. 1. Tagging tabs: I presume this is no problem, but will not know until there is a patch. 2. The priority of the TAB tag relative to others. The importance of this depends on the next question. 3. Should tab space in comments and strings be shaded? I think so. If so, should the shading match the comment/string foreground color? -- nosy: +terry.reedy stage: - test needed title: Highlite tabs in the IDLE - Idle: highlite tabs versions: -Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22354 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22355] inconsistent results with inspect.getsource / .getsourcelines
Changes by Terry J. Reedy tjre...@udel.edu: -- title: inconsistent results with inspect.getsource() / inspect.getsourcelines() - inconsistent results with inspect.getsource / .getsourcelines versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22355 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22360] Adding manually offset parameter to str/bytes split function
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22360 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22364] Unify error messages of re and regex
Terry J. Reedy added the comment: I prefer cannot for error messages. Can't is an informal version of cannot, used in speech, dialog representing speech, and 'informal' writing. It looks wrong to me in this context. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22364 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22375] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect results
Changes by Terry J. Reedy tjre...@udel.edu: -- resolution: - duplicate stage: - resolved superseder: - urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22375 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22376] urllib2.urlopen().read().splitlines() opening a directory in a FTP server randomly returns incorrect result
Terry J. Reedy added the comment: You should have just added a new message to #22375 with the revision. #15002 ends with This is fixed in 3.4 and 3.5. I will backport to 2.7 ( I think, it is worth it). Please check whether the backport has been done or whether current you still have a problem with the latest 2.7.8. If so, did the 3.4 patch, included in 3.4.1, fix the issue (ie, install 3.4.1 and test). If you code works on 3.4.1 and not on 2.7.8, you could add a request for a backport to #15002. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22376 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22378] SO_MARK support for Linux
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: - test needed versions: +Python 3.5 -Python 2.7, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22378 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17120] Mishandled _POSIX_C_SOURCE and _XOPEN_SOURCE in pyconfig.h
koobs added the comment: See also: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=192365 -- nosy: +koobs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17120 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22388] Unify style of Contributed by notes
Terry J. Reedy added the comment: I agree with making a complete and separate sentence. There are 3 variations. -- Add parenthetical note after last sentence. (Contributed by me.) -- Add note on next line after short line. (Contributed by me. -- Add note after a blank line. (Contributed by me.) -- I guess version 2 will be formatted the same as version 1. In 3.4 What's New I only say one instance of the 3rd, blank line style, for the multi-paragraph Improvements to Codec Handling, which it arguable was appropriate. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22388 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20537] logging exc_info parameter should accept exception instances
Yury Selivanov added the comment: Vinay, Please take a look at the second patch -- 'logging_02.patch' -- with updated docs -- Added file: http://bugs.python.org/file36614/logging_02.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20537 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22394] Update documentation building to use venv and pip
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22394 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue22351] NNTP constructor exception leaves socket for garbage collector
Changes by Benjamin Peterson benja...@python.org: -- keywords: +easy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22351 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com