[issue21677] Exception context set to string by BufferedWriter.close()
Roundup Robot added the comment: New changeset a3b7b89da34f by Serhiy Storchaka in branch '3.4': Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. http://hg.python.org/cpython/rev/a3b7b89da34f New changeset d6ac4b6020b9 by Serhiy Storchaka in branch 'default': Issue #21677: Fixed chaining nonnormalized exceptions in io close() methods. http://hg.python.org/cpython/rev/d6ac4b6020b9 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21677 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21679] Prevent extraneous fstat during open()
Bohuslav Slavek Kabrda added the comment: Thanks a lot for the code review! I'm attaching a revised version of the patch. Fixes I made: - added check whether PyLong_AsLong returned an error - removed ADD_INTERNED(_blksize) and PyObject *_PyIO_str__blksize; - I noticed that these are only necessary when exported by _iomodule.h, which isn't needed for _blksize ATM - moved blksize to a place of fileio structure where it won't create unnecessary padding I hope attaching the version 2 of the patch here is ok, if I should have attached it in the code review tool somehow, please let me know. -- Added file: http://bugs.python.org/file35540/python3-remove-extraneous-fstat-on-file-open-v2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21679 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21256] Sort keyword arguments in mock _format_call_signature
Roundup Robot added the comment: New changeset 8e05e15901a8 by Kushal Das in branch 'default': Closes #21256: Printout of keyword args in deterministic order in mock calls. http://hg.python.org/cpython/rev/8e05e15901a8 -- nosy: +python-dev resolution: - fixed stage: needs patch - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21256 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21692] Wrong order of expected/actual for assert_called_once_with
Michael Foord added the comment: As David points out - in your example the actual call made is m.some_method('foo', 'bar'). Your assertion (the expectation) is m.some_method.assert_called_once_with('foo', 'baz'). So the traceback is correct. I don't think the ordering of expected/actual in the output matters. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21692 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable
Roundup Robot added the comment: New changeset 1e30ecbfe181 by Serhiy Storchaka in branch '2.7': Issue #21310: Fixed possible resource leak in failed open(). http://hg.python.org/cpython/rev/1e30ecbfe181 New changeset 17e7934905ab by Serhiy Storchaka in branch '3.4': Issue #21310: Fixed possible resource leak in failed open(). http://hg.python.org/cpython/rev/17e7934905ab New changeset 9c724c428e1f by Serhiy Storchaka in branch 'default': Issue #21310: Fixed possible resource leak in failed open(). http://hg.python.org/cpython/rev/9c724c428e1f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21310 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21697] shutil.copytree() handles symbolic directory incorrectly
New submission from Shajunxing: While using shutil.copytree() and the source containing symbolic directory (not symbolic file), an error will be raised. I checked the source code and found an obvlous mistake: shutil.copytree() using os.path.islink() to checker whether the source is a symbolic link, it's okay, but after doing this, os.path.isdir() should be called because a symbolic link may either be a file or a directry, shutil.copytree() just treated all of them as file, and invoke copy_function to copy it, so error happens. I don't know whether newer versions have fixed this bug, but I googled it and found nothing. -- components: Library (Lib) files: 截图 - 2014年06月09日 - 21时14分13秒.png messages: 220088 nosy: shajunxing priority: normal severity: normal status: open title: shutil.copytree() handles symbolic directory incorrectly type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file35541/截图 - 2014年06月09日 - 21时14分13秒.png ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21698] Platform.win32_ver() shows different values than expected on Windows 8.1
New submission from Aviv Avital: On Windows 8.1, win32_ver() returns a Windows 8 version number: C:\\Python27\python.exe Python 2.7.5 (default, May 15 2013, 22:43:36) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import platform platform.win32_ver() ('8', '6.2.9200', '', 'Multiprocessor Free') quit() C:\ver Microsoft Windows [Version 6.3.9600] C:\ -- components: Windows messages: 220089 nosy: AvivAvital priority: normal severity: normal status: open title: Platform.win32_ver() shows different values than expected on Windows 8.1 type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21698 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14758] SMTPServer of smptd does not support binding to an IPv6 address
Milan Oberkirch added the comment: I applied your suggestions. -- Added file: http://bugs.python.org/file35542/smtpd_060914.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14758] SMTPServer of smptd does not support binding to an IPv6 address
Changes by Milan Oberkirch milan...@oberkirch.org: -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21698] Platform.win32_ver() shows different values than expected on Windows 8.1
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +lemburg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21698 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20903] smtplib.SMTP raises socket.timeout
Milan Oberkirch added the comment: Should this task get closed? (see comment above) -- nosy: +jesstess ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
Mark Lawrence added the comment: @Roger, Andrew could you pick this up again? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
Changes by Saimadhav Heblikar saimadhavhebli...@gmail.com: -- nosy: +sahutd ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19143] Finding the Windows version getting messier (detect windows 8.1?)
Changes by STINNER Victor victor.stin...@gmail.com: -- title: Finding the Windows version getting messier - Finding the Windows version getting messier (detect windows 8.1?) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19143 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21698] Platform.win32_ver() shows different values than expected on Windows 8.1
STINNER Victor added the comment: This issue is a duplicate of the issue #19143. -- nosy: +haypo resolution: - duplicate status: open - closed superseder: - Finding the Windows version getting messier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21698 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12739] read stuck with multithreading and simultaneous subprocess.Popen
Changes by Geoffrey Bache gjb1...@users.sourceforge.net: -- nosy: +gjb1002 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12739 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12739] read stuck with multithreading and simultaneous subprocess.Popen
Geoffrey Bache added the comment: Just ran into this on Python 2.6 also. -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12739 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12739] read stuck with multithreading and simultaneous subprocess.Popen
STINNER Victor added the comment: The PEP 446 partially fixes this issue. The issue #19764 should fix it completly. Since you are using Python 2, you should not wait until the issue is fixed, but work around it. To workaround the issue: use you own lock around the creation of processes. Example: --- lock = threading.Lock() ... def run_command(...): with lock: proc = subprocess.Popen(...) return proc.communicate() --- The problem is that a thread B may inherit the handle of a pipe from handle A because the pip is marked as inheritable, and the subprocess module must use CreateProcess() with bInheritHandles parameter set to True to be able to redirect stdout. Said differently: the subprocess is not thread-safe, you have to use your own lock to workaround race conditions. -- nosy: +haypo, sbt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12739 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12739] read stuck with multithreading and simultaneous subprocess.Popen
STINNER Victor added the comment: Oh by the way, this issue was fixed on UNIX in Python 3.2: all file descriptors are now closed by default (close_fds=True by default on UNIX). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12739 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.
New submission from Justin Engel: Venv virtual environments don't work with spaces in the path. (env) C:\My Directory\path pip -V Fatal error in launcher: Unable to create process using 'C:\My Directory\path\env\Scripts\python.exe C:\My Directory\path\env\Scripts\pip.exe -V' -- components: Windows messages: 220098 nosy: Justin.Engel priority: normal severity: normal status: open title: Windows Python 3.4.1 pyvenv doesn't work in directories with spaces. type: crash versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12739] read stuck with multithreading and simultaneous subprocess.Popen
Geoffrey Bache added the comment: Thanks Victor, yes I already created my own lock which fixed the issue for me. Maybe it would be worth adding a note to the documentation about this in the meantime (especially for Python 2)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12739 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.
R. David Murray added the comment: This *can't* work on Linux (see issue 20622). I don't know if it is possible to make it work on Windows, but I wonder: even if it is should we do so, since the point of the launcher is to make shebang lines work on Windows more or less how they do on Unix? (The counter argument is that paths with spaces are *much* more common on Windows.) -- nosy: +r.david.murray, vinay.sajip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21463] RuntimeError when URLopener.ftpcache is full
Erik Bray added the comment: Thanks Skyler for finishing the job. I got busy/distracted. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21463 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21685] zipfile module doesn't properly compress odt documents
Raimondo Giammanco added the comment: hit F9 ?!? I feel ashamed. The need to recalculate the fields simply slipped my mind. Of course, in some way Writer has to be told about the strings replacement. Maybe could my fault be partially justifiable if one consider the autoupdate behaviour with the uncompressed documents? Anyway, the workaround to zip without compression is ok for me as LibreOffice actually will compress the document on first saving. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21677] Exception context set to string by BufferedWriter.close()
Serhiy Storchaka added the comment: Thank you Martin for your report. -- resolution: - fixed stage: patch review - resolved status: open - closed versions: -Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21677 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21310] ResourceWarning when open() fails with io.UnsupportedOperation: File or stream is not seekable
Serhiy Storchaka added the comment: Thanks Victor for the review. Thanks Martin for the report. -- resolution: - fixed stage: patch review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21310 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21372] multiprocessing.util.register_after_fork inconsistency
Marc Schlaich added the comment: Your statement is not correct, it does work on Windows (where fork is not available) if you register the hook on module level instead of in `__main__`. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21372 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21688] Improved error msg for make.bat htmlhelp
Zachary Ware added the comment: Could you give me the exact message you get currently? If it's just 'C:\Program' is not recognized as an internal or external command, operable program or batch file., that's a different issue than if the whole path to hhc.exe is displayed. Otherwise, I like the patch, except you can reuse the %HTMLHELP% variable instead of reconstructing it from %_PRGMFLS%. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21688 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
Terry J. Reedy added the comment: Mark, they are both inactive at the moment. There are a number of issue around configuration, especially key bindings. I think the whole process needs review and redoing. For instance, I understand Roger as saying that the problematical known-invalid list (set) is needed because GetCurrentKeySet is called repeatedly, once for each extension. I want to look into fixing the repeated calls, which will increase with more extensions, and possibly eliminate the need for known-invalid. Another redesign: I think Control-Key-x should automatically mean Control-Key-X, and ditto for Alt-Key-x, and that we should not need both in config-keys even if tk requires separate bind calls. Saimadhav, we should try to do some validation of the key bindings in the unittest for configurations. The pattern seems to be optional Control-, Alt-, or Meta- optional Shift- required Key- required ascii key, bracketleft/right, or Uppercase-key-name, -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue19143] Finding the Windows version getting messier (detect windows 8.1?)
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +steve.dower ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19143 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21659] IDLE: One corner calltip case
Serhiy Storchaka added the comment: Here is a patch. Now names of starred arguments never conflict with other parameters. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file35543/calltips_starred_names.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21659 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13924] Mercurial robots.txt should let robots crawl landing pages.
Antoine Pitrou added the comment: Yes, I think we should whitelist rather than blacklist. The problem with letting engines index the repositories is the sheer resource cost when they fetch many heavy pages (such as annotate, etc.). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13924 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20699] Behavior of ZipFile with file-like object and BufferedWriter.
Changes by Ned Deily n...@acm.org: -- nosy: +benjamin.peterson, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18039] dbm.open(..., flag=n) does not work and does not give a warning
Serhiy Storchaka added the comment: With this patch 2 of 4 modes ('c' and 'n') work as for other dbm modules. So it would be better to document that 'r' and 'w' work nonstandard, than document that 'n' is not ignored. And while you are here, may be add a warning in 'r' and 'w' mode when the file does not exist? -- assignee: - serhiy.storchaka ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21685] zipfile module doesn't properly compress odt documents
R. David Murray added the comment: So if I'm understanding correctly the python update to the file happens correctly in both cases, and the issue with the update not being immediately visible is an issue on the OpenOffice side of things. So I'm closing this as a 3rd party bug (though it sounds like it may not really be a bug). -- nosy: +r.david.murray resolution: - third party stage: - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21685 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21697] shutil.copytree() handles symbolic directory incorrectly
Ned Deily added the comment: Thanks for the report. The bug is still present in the 3.4 and default (what will become the 3.5 release) branches; the 3.3 branch now only accepts security fixes. 2.7 does not fail. Would you be interested in producing a patch for the problem? -- keywords: +easy nosy: +ned.deily stage: - needs patch versions: +Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21697 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue18039] dbm.open(..., flag=n) does not work and does not give a warning
Claudiu.Popa added the comment: Thanks, Serhiy. Here's the new version of the patch. Hope that the warning message is clear enough. -- Added file: http://bugs.python.org/file35544/issue18039_1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18039 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21659] IDLE: One corner calltip case
Terry J. Reedy added the comment: Looks good on reading. When I get my repository copy repaired, I will test and either apply or report back. In 2.7 Lib/*.py, 9 module use 'kwds' and 28 use 'kwargs', so I will accept that change. -- assignee: - terry.reedy stage: patch review - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21659 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8378] PYTHONSTARTUP is not run by default when Idle is started
Mark Lawrence added the comment: Terry what is your opinion on this? -- nosy: +BreamoreBoy, terry.reedy versions: +Python 3.5 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8378 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21692] Wrong order of expected/actual for assert_called_once_with
Fei Long Wang added the comment: Okay, I can see your point now. Thanks for the clarification. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21692 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20903] smtplib.SMTP raises socket.timeout
Roundup Robot added the comment: New changeset 6cd64ef6fc95 by R David Murray in branch '2.7': #20903: clarify what happens when an smtp connection timeout occurs. http://hg.python.org/cpython/rev/6cd64ef6fc95 New changeset ca88bcfa5c15 by R David Murray in branch '3.4': #20903: clarify what happens when an smtp connection timeout occurs. http://hg.python.org/cpython/rev/ca88bcfa5c15 New changeset 20225460ae0f by R David Murray in branch 'default': Merge: #20903: clarify what happens when an smtp connection timeout occurs. http://hg.python.org/cpython/rev/20225460ae0f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20903] smtplib.SMTP raises socket.timeout
R. David Murray added the comment: Well, now that I applied your patch it can be :) Thanks. -- resolution: - fixed stage: needs patch - resolved status: open - closed versions: -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20903 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5594] IDLE startup configuration
Changes by Terry J. Reedy tjre...@udel.edu: -- assignee: kbk - versions: +Python 2.7, Python 3.4, Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5594 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8378] PYTHONSTARTUP is not run by default when Idle is started
Terry J. Reedy added the comment: David, thank you for the research on related issues. #5233 explicitly includes this proposal: The former effect of -s would now be the default,. So I am closing this as a partial duplicate. I will explain here why I reject this. -- resolution: - duplicate stage: - resolved status: open - closed superseder: - Enhance 2.7 IDLE to exec IDLESTARTUP/PYTHONSTARTUP on restart ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8378 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21597] Allow turtledemo code pane to get wider.
Lita Cho added the comment: Hi Terry! 2. More important: when I move the slider right, the text widen and the canvas narrows relatively smoothly. This is not due to the mixing of Pack and Grid Managers. This is due to adding Frames within a Pane Window. If I just create two empty Pane Windows, I don't get the lag. However, if I add a Frame container within Pane Window, I do. I've tried switching between using only the Pack Manager and then again using only the Grid Manager. However, that lag still exists. I have the code here if you want to try the packed version. ``` from tkinter import * root = Tk() m = PanedWindow(root, orient=HORIZONTAL, sashwidth=10) rightF = Frame(m) leftF = Frame(m) top = Label(leftF, text=lefgt pane, bg='blue') bottom = Label(rightF, text=right pane, bg='red') top.pack(fill=BOTH, expand=1) bottom.pack(fill=BOTH, expand=1) m.add(leftF) m.add(rightF) m.pack(fill=BOTH, expand=1) mainloop() ``` -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21597 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21688] Improved error msg for make.bat htmlhelp
Olive Kilburn added the comment: Before I installed HTML Help Workshop it would output many lines followed by build succeeded, 1 warning. C:\Program is not recognized as an internal or external command, operable program or batch file. Build succeeded. All output should be in build\htmlhelp build\htmlhelp would not be created however. Thank you for pointing out the variable, I've fixed it. -- Added file: http://bugs.python.org/file35545/mywork.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21688 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21597] Allow turtledemo code pane to get wider.
Lita Cho added the comment: 1. The minor one: The blue label does not have drop shadows, the red/yellow buttons do. I created a patch to add a border around the label and create some padding between the buttons and the label. Let me know if this is less jarring than the previous version. -- Added file: http://bugs.python.org/file35546/turtledemo_pane.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21597 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue5233] Enhance 2.7 IDLE to exec IDLESTARTUP/PYTHONSTARTUP on restart
Terry J. Reedy added the comment: This is at least 2 issues: startup and restart. I closed #8378 as a partial duplicate of the startup issue. For startup, I reject the idea of changing the default and the meaning of -s. First, it would break the general back-compatibility policy and possibly break scripts of people who read the doc and proceeded accordingly. Second, while I generally prefer Idle to match the console interpreter, there is an important difference in having tkinter and idlelib modules involved. A startup script that works fine for the console could create subtle bugs in Idle. I suspect that whoever chose the current default had some thought like this. To put this a different way, running idle is similar to running 'python -i idle' and python does not run startup files with -i. Third, this change shuffles responsibilities around without any net gain that I see. #5594 suggests adding startup options to the configuration file and dialog. I like this better and consider it possible. For restart, the result of Restart Shell Cntl-F6 should be the same as an initial start (without running a file from the editor). On the other hand, I agree with Beni's concern about matching python -i when running editor files. I also agree with Beni that the run... functions should be reviewed for possible refactoring, and, sadly, that testing is difficult. We would need a test script that documents both current and desired behavior and people to run it (by hand and eye) on Windows, Linux, and Mac. -- assignee: kbk - nosy: +terry.reedy stage: - patch review versions: +Python 3.4, Python 3.5 -Python 2.6, Python 3.0, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5233 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11437] IDLE crash on startup with typo in config-keys.cfg
Changes by Terry J. Reedy tjre...@udel.edu: -- stage: needs patch - patch review versions: +Python 3.4, Python 3.5 -Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11437 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517993] IDLE: config-main.def contains windows-specific settings
Changes by Mark Lawrence breamore...@yahoo.co.uk: -- nosy: +ned.deily, terry.reedy type: - behavior versions: +Python 3.4, Python 3.5 -Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1517993 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517993] IDLE: config-main.def contains windows-specific settings
Terry J. Reedy added the comment: In 3.4, the only Windows-specific settings I see in config-main.def is [Keys] default= 1 name= IDLE Classic Windows I have presumed that this is somehow changed on other systems. If not, that is an issue. Config-keys.def actions (should) have a Meta variant when Alt is used. close-window=Alt-Key-F4 Meta-Key-F4 If 'Alt' were automatically changed to 'Meta' on Mac, before sending to tk, the Meta entries could be removed, with a note in the key-setting dialog about the auto translation. The file would be easier to read; setting keys would then be easier; and Macs would automatically get key bindings. (I notice that some actions have two Alt bindings and only one Meta binding. Is that because Meta in not value for all uses of Alt?) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1517993 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3938] Clearing globals; interpreter -- IDLE difference
Mark Lawrence added the comment: The output from IDLE is still the same using both 3.4.1 and 3.5. FTR the output from iPython 2.0.0 appears the same, although it's pretty printed. -- nosy: +BreamoreBoy versions: +Python 3.5 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3938 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21699] Windows Python 3.4.1 pyvenv doesn't work in directories with spaces.
eryksun added the comment: The py.exe launcher relies on manual quoting in the shebang line. That's the case for the shebang embedded in this pip executable. The problem is the simple launcher used by distlib 0.1.8. It always quotes the executable, even if it's already quoted. This is fixed in distlib 0.1.9, which should be updated in the next release of pip. https://bitbucket.org/pypa/distlib/issue/47 As a workaround, you can use `python -m pip`. -- nosy: +eryksun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21699 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517993] IDLE: config-main.def contains windows-specific settings
Ned Deily added the comment: Issue20580 covers much the same grounds; I was unaware of this issue when I opened it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1517993 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14758] SMTPServer of smptd does not support binding to an IPv6 address
R. David Murray added the comment: When I run the modified test suite on a machine regrtest tells me that the test modified the environment, specifically the asyncore.socket_map. Presumably there is some missing cleanup logic. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14758 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21659] IDLE: One corner calltip case
Roundup Robot added the comment: New changeset 0b181c02df7c by Terry Jan Reedy in branch '2.7': Closes Issue 21659: Improve Idle calltips for *args, **kwargs in 2.7, where actual http://hg.python.org/cpython/rev/0b181c02df7c -- nosy: +python-dev resolution: - fixed stage: commit review - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21659 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21700] Missing mention of DatagramProtocol having connection_made and connection_lost methods
New submission from Allen Riddell: The following important information from PEP 3156 does not appear in the asyncio library documentation: Datagram protocols have connection_made() and connection_lost() methods with the same signatures as stream protocols. Indeed, reading the docs it looks like only ``Protocol`` and ``SubprocessProtocol`` have these methods. (See https://docs.python.org/3.4/library/asyncio-protocol.html#connection-callbacks) The quick fix is to change the lines 275-276 in ``Doc/library/asyncio-protocol.rst`` from: These callbacks may be called on Protocol and SubprocessProtocol instances: to These callbacks may be called on Protocol, DatagramProtocol, and SubprocessProtocol instances: -- assignee: docs@python components: Documentation, asyncio messages: 220130 nosy: ariddell, docs@python, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: Missing mention of DatagramProtocol having connection_made and connection_lost methods type: enhancement versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21700 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue3938] Clearing globals; interpreter -- IDLE difference
Terry J. Reedy added the comment: I decided that anyone with a use case for a bare interpreter, if there is such a person, would and should be using the console, and that a closed issue is sufficient documentation for now. -- resolution: - wont fix stage: test needed - resolved status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3938 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1517993] IDLE: config-main.def contains windows-specific settings
Terry J. Reedy added the comment: Since #20580 has a much more specific plan, I am closing this one as a duplicate and back-referencing this from there. -- resolution: - duplicate status: open - closed superseder: - IDLE should support platform-specific default config defaults ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1517993 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue20580] IDLE should support platform-specific default config defaults
Terry J. Reedy added the comment: I closed #1517993 in favor of this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue20580 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided
New submission from Allen Riddell: Creating a UDP connection through ``create_datagram_endpoint`` when specifying both remote_addr and local_addr does not work; messages are not received. If remote_addr is removed, messages are received. Easy to reproduce: works: python3 client_good.py python3 sender.py 127.0.0.1 blocks?: python3 client_bad.py python3 sender.py 127.0.0.1 From the PEP I gather this really is a bug, since create_datagram_endpoint is supposed to be bidirectional:: create_datagram_endpoint(protocol_factory, local_addr=None, remote_addr=None, options). Creates an endpoint for sending and receiving datagrams (typically UDP packets). Because of the nature of datagram traffic, there are no separate calls to set up client and server side, since usually a single endpoint acts as both client and server. -- components: asyncio messages: 220134 nosy: ariddell, gvanrossum, haypo, yselivanov priority: normal severity: normal status: open title: create_datagram_endpoint does not receive when both local_addr and remote_addr provided type: behavior versions: Python 3.4, Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21701 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided
Allen Riddell added the comment: (couldn't figure out how to attach multiple files) -- client_good.py -- Send and receive a messages using DatagramProtocol import asyncio import time class Helloer(asyncio.DatagramProtocol): def connection_made(self, transport): print('(helloer) connection made') self.transport = transport def connection_lost(self, transport): print('(helloer listener) connection lost!') def datagram_received(self, data, addr): print('(helloer listener) received data from {}: {}'.format(addr, data)) def error_received(self, exc): print('(helloer listener) error received: {}'.format(exc)) loop = asyncio.get_event_loop() # WORKS: coro = loop.create_datagram_endpoint(Helloer, local_addr=('127.0.0.1', )) # FAILS (blocks?): # coro = loop.create_datagram_endpoint(Helloer, local_addr=('127.0.0.1', ), remote_addr=('127.0.0.1', )) transport, protocol = loop.run_until_complete(coro) loop.run_forever() -- client_bad.py -- Send and receive a messages using DatagramProtocol import asyncio import time class Helloer(asyncio.DatagramProtocol): def connection_made(self, transport): print('(helloer) connection made') self.transport = transport def connection_lost(self, transport): print('(helloer listener) connection lost!') def datagram_received(self, data, addr): print('(helloer listener) received data from {}: {}'.format(addr, data)) def error_received(self, exc): print('(helloer listener) error received: {}'.format(exc)) loop = asyncio.get_event_loop() # WORKS: # coro = loop.create_datagram_endpoint(Helloer, local_addr=('127.0.0.1', )) # FAILS (blocks?): coro = loop.create_datagram_endpoint(Helloer, local_addr=('127.0.0.1', ), remote_addr=('127.0.0.1', )) transport, protocol = loop.run_until_complete(coro) loop.run_forever() -- sender.py -- Send a UDP packet to a specified port and quit import argparse import socket import time if __name__ == __main__: parser = argparse.ArgumentParser(description='send a udp packet') parser.add_argument('host', type=str) parser.add_argument('port', type=int) args = parser.parse_args() host, port = args.host, args.port time.sleep(0.1) sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) data = 'message from sender sent to {}:{}'.format(host, port) sent = sock.sendto(data.encode('ascii'), (host, port)) print((sender) sent udp packet to {}:{}.format(host, port)) sock.close() -- Added file: http://bugs.python.org/file35547/client_bad.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21701 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21701] create_datagram_endpoint does not receive when both local_addr and remote_addr provided
Allen Riddell added the comment: I gather this is the desired behavior. If one specifies remote_addr then one only accepts packets from that address and port. Whereas if no remote_addr is given then one accepts packets from any address and any port. Sorry for the noise. -- resolution: - not a bug status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21701 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue21309] Confusing see also for generic C-level __init__ methods in help output
Jacob Beck added the comment: I just got burned by this in io.StringIO, so I did a bit of looking. This was changed in r85710aa396ef in Objects/typeobject.c. The new revision makes as much sense as the old one, which wasn't helpful either and replaced an equally unhelpful revision at some point. Some variation of this goes back at least as far back as Python2.5, which is the oldest version I have installed on my machine. I think the real problem with this is what you touched on in the middle there. It frequently shows up on types that *don't* provide an accurate signature in their docstring or help(). For instance, io.StringIO doesn't discuss its signature at all, you have to look in the docs for the io module itself! I only figured that out after searching for it online. I think the entire exception hierarchy does it. At least in some of the more complicated exceptions you can sort of infer the arguments from the order in which the data descriptors are listed. Based on where the message comes from I'm not sure how one could fix this. It's not clear to me that the type name is really available when this string is being calculated, since it's just a default docstring. The easiest fix might be something like Initializes an object. There is no information about this method's call signature, help for the class may describe it. Or maybe it would be possible to write actual __init__ docstrings for some or all of the classes involved? -- nosy: +Jacob.Beck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21309 ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com