[issue17483] Can not tell urlopen not to check the hostname for https connections.
Senthil Kumaran added the comment: Here is the final patch (17483.patch) for this support. I am including Ezio David for their review comments before I check this in. Thanks! -- nosy: +ezio.melotti, r.david.murray Added file: http://bugs.python.org/file29644/17483.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7057] tkinter doc: more 3.x updates
Ned Deily added the comment: I just noticed that the changes committed earlier for this issue added a reference to the Tcl/Tk 8.6 man pages. Since there are known problems with using 8.6 with tkinter (for example, Issue16809) and we don't currently ship 8.6 with any of our binary installers, it would be better to reference the 8.5 man pages until the status of 8.6 support is resolved. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7057 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11406] There is no os.listdir() equivalent returning generator instead of list
Charles-François Natali added the comment: That way the scandir name would be left available for a future version of this that yields namedtuples of directory entry details as Martin wants to see. Which might very w'ell be Nick's walkdir, see issue #13229. BTW, I'm strongly +1 on this addition. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11406 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
Antoine Pitrou added the comment: I'm sorry, I'm -1 on this. It simply doesn't make sense to check the certificate but skip hostname checking. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1944] Documentation for PyUnicode_AsString (et al.) missing.
Marc-Andre Lemburg added the comment: On 30.03.2013 13:09, Mark Lawrence wrote: Is it worth applying the patch given the complete rewrite of unicode for 3.3 via PEP393? PEP 393 only changed the way Unicode is internally stored. The Unicode API is mostly unaffected by this change. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16893] Create IDLE help.txt from Doc/library/idle.rst
Ned Deily added the comment: Zach, thanks for addressing most of the comments. The Makefile does now work as intended and more information is retained in the help.txt. But I'm still troubled by the plaintext rendering, particularly of the inline code markup. With the `` marks from the reStructuredText directives appearing in the help.txt, the help file as displayed is, IMO, more cluttered and, more importantly, more confusing. Using `` to delimit displayed plaintext in lieu of more sophisticated text styling is unconventional at best. I think changing the help file to include such marks would be a step backward. But that's just one of the more obvious drawbacks of trying to use a plaintext format for help. Ironically, the Tk text widget is perfectly capable of rendering richer text styles. But, AFAIK, there hasn't been a use case up to now to support some sort of rich text format (be it rtf or html or rst directly) from a file in IDLE. My initial thought was to suggest adding some sort of Tk-friendly Sphinx/Docutils builder. That might be more generally useful but that will probably take a fair amount of work to define and implement. Then it struck me that having an html-format help file would be able to represent all the existing Sphinx styles and, with the doc changes in the patch, we already have an html file that contains all the help text! So rather than trying to sync the help file with the IDLE doc in the library, why not just display the library IDLE doc in a browser window? IDLE already has a menu item and code to launch a web browser for the whole Python documentation set. It would be easy to adapt that to change the IDLE help menu item to launch a web browser window w ith the IDLE page and get rid of help.txt. There are a few issues that would need to be resolved. The python.org binary installers and most Unix-y distributions can optionally install local copies of the Python doc set to eliminate the need for network access to docs.python.org. There is platform-specific code in EditorWindow.__init__ to search locally for the doc files, falling back to http://doc.python.org if a local copy is not found. The simplest approach would be to do the same for IDLE help, however that would have the drawback of there being no help available if the local copy had not been installed and there was no internet access. Of course, that is the case today for the Python documentation. If that is not acceptable for the help text, the docs build process could make a copy of a version of the library/idle.html into idlelib or, less desirable, the proposed plain text file could be the fallback. Also, on Windows, AFAIK, the doc set is usually installed as a chm file which normally opens to the top-level inde x page in the help viewer. A question is how to open directly to the IDLE page. By inspection in the help viewer on Windows 7, it seems that a web browser.open call to a URL that appends '::/library/idle.html' to the existing pythonxxx.chm URL will open a browser window to the right page. But there may be a better way to do that. From the user's perspective, ISTM that having the help in the rich format possible with the existing doc html would be a huge advantage over what can be provided with any plain text format. Comments? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16893 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17608] configparser not honouring section but not variable case
Eric V. Smith added the comment: Can you show us the code that causes the problem? -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17608] configparser not honouring section but not variable case
Rodney Persky added the comment: I'd probably revise this to say it's a quirk - not a bug. As looking over https://bitbucket.org/ambv/configparser/src/4bf6a6d8ebdf6eec068750a2b940944a9b1b2938/configparser.py?at=default (the configparser source) information is converted to .lower(). So it seems intended for some reason. Attached is a snippet of code that will reproduce the bug in the context of my app. -- Added file: http://bugs.python.org/file29645/Bug16708.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16893] Create IDLE help.txt from Doc/library/idle.rst
Terry J. Reedy added the comment: Great idea. Using a browser to display help text has become pretty common. For many games, for instance, this has superseded .pdf manuals, which supercedes paper. Unless there is already a tk extension to display html this seems like a good idea. We could even put a link to a youtube video tutorial if there is one or if someone makes one. (There seems to be some creative types interested in helping with Idle. This would be a good way for someone to contribute. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16893 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6698] IDLE no longer opens only an edit window when configured to do so
Todd Rovito added the comment: Roger, Yes I will add another issue covering the enhancement. Ned, Thanks for the review. I forgot to mention it but I too tested on the Mac :-). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6698 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17609] IDLE: Remove config option 'editor on startup' and utilize command line options only
New submission from Todd Rovito: Based on enhancements from this issue: http://bugs.python.org/issue6698 Comments from Tal Einat The editor-on-startup config option should be removed. Running IDLE without arguments should open a shell. If IDLE is asked to open any files for editing, it should open just editor windows. IDLE should open both a shell window and one or more editor windows only when explicitly asked to do so on the command line. If this is done, the -e option (open an editor) would tell IDLE to open an empty editor window if no files are asked to be opened for editing. If no other arguments are given, IDLE will open just an editor window (no shell window). The -i option (open a shell) would tell IDLE to open a shell window even if asked to open files for editing. I think this is more obvious and easier to work with. It will also make the command line argument processing code simpler. And as a bonus we remove a config option :) I will also post on idle-dev for discussion as Terry Reedy requested. -- components: IDLE messages: 185731 nosy: Todd.Rovito, roger.serwy, taleinat, terry.reedy priority: normal severity: normal status: open title: IDLE: Remove config option 'editor on startup' and utilize command line options only type: enhancement versions: Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17609 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16893] Create IDLE help.txt from Doc/library/idle.rst
Todd Rovito added the comment: Ned, Using a web browser is a great idea I like it because it removes code from IDLE making IDLE even simpler (and better). Besides it would take us forever to duplicate some of the functionally that exists in today's modern web browser. Zach, What do you think? Terry, What is this paper technology that you speak of? A youtube video showing off IDLE would be fantastic. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16893 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17609] IDLE: Remove config option 'editor on startup' and utilize command line options only
Ronald Oussoren added the comment: I agree with the change, but keep in mind that at least on OSX a lot of users start IDLE by double clicking on the IDLE application in the Finder (or double-clicking a .py file) and as such don't have an easy way to specify the -e or -i options. -- nosy: +ronaldoussoren ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17609 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
Ronald Oussoren added the comment: d9pouces: are you willing to sign a contributor agreement? The agreement is needed before we can add these changes to the stdlib, and I'd like to that for the 3.4 release. More information on the contributor agreement: http://www.python.org/psf/contrib/contrib-form/ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
R. David Murray added the comment: It may not make sense, but I've seen it supported in the wild, in a different library. Of course, we *did* treat it as a bug in our code and fix it once we realized that's what the library was doing (we were inadvertently passing it None for the hostname, and its response to that was to not check it). So I think Antoine is probably right here. Especially since this has never been reported as a bug by someone trying to use it in an application. Since it wasn't documented, perhaps we should just add a deprecation warning (that says it is a noop) instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17608] configparser not honouring section but not variable case
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +lukasz.langa ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17608 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14455] plistlib unable to read json and binary plist files
d9pouces added the comment: I just signed this agreement. Thanks for accepting this patch! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14455 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17609] IDLE: Remove config option 'editor on startup' and utilize command line options only
Guilherme Simões added the comment: IDLE is widely used by students and should have its most relevant settings available in the GUI also. -- nosy: +Guilherme.Simões ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17609 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17610] Qsort function misuse in typeobject.c
New submission from Zbigniew Halas: Comparison function slotdef_cmp in Objects/typeobject.c is based on the assumption that qsort may be stabilised by taking memory addresses of compared objects into consideration. This assumption is not guaranteed by the C standard and may not always be true, like for example in the case of qsort implemented as a typical quicksort. Sometimes it may be even more harmful, as some implementations may be unhappy about comparison function changing its value just because an element was moved to another memory location (I discovered this problem while porting Python to HelenOS, where this comparison function caused qsort to enter infinite recursion). The actual function: /* Comparison function for qsort() to compare slotdefs by their offset, and for equal offset by their address (to force a stable sort). */ static int slotdef_cmp(const void *aa, const void *bb) { const slotdef *a = (const slotdef *)aa, *b = (const slotdef *)bb; int c = a-offset - b-offset; if (c != 0) return c; else /* Cannot use a-b, as this gives off_t, which may lose precision when converted to int. */ return (a b) ? 1 : (a b) ? -1 : 0; } -- components: Interpreter Core messages: 185738 nosy: zhalas priority: normal severity: normal status: open title: Qsort function misuse in typeobject.c type: behavior versions: Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10340] asyncore doesn't properly handle EINVAL on OSX
Brett Cannon added the comment: I'm assuming that the buildbots stabilized so I'm going to go ahead and close this. -- nosy: +brett.cannon status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10340 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1176504] locale._build_localename treatment for utf8
Mark Lawrence added the comment: Presumably this patch should be accompanied by an equivalent for _localemodule.c, or am I in cloud cuckoo land? FTR #1699853 referenced above is closed but it refers to #10466 which is Windows specific. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1176504 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17611] Move unwinding of stack for pseudo exceptions from interpreter to compiler.
New submission from Mark Shannon: The handling of pseudo exceptions (return, break and continue) are currently handled in the interpreter. This make the interpreter loop more complex and slower than it needs to be. This change moves the handling of pseudo exceptions into the compiler. The net effects of this patch are: Simpler interpreter loop: no 'psuedo-exceptions', fewer bytecodes and some simplifed bytecodes. Eliminate the 'why_code' state variable in the interpreter. Execution is always in the 'normal' state except during explicit exception handling. Small increase in size and complexity of compiler. Speedup of 1.5% (Intel i7); this should be considered a happy side-effect rather than a motivation for the change. -- hgrepos: 181 messages: 185741 nosy: Mark.Shannon priority: normal severity: normal status: open title: Move unwinding of stack for pseudo exceptions from interpreter to compiler. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17611] Move unwinding of stack for pseudo exceptions from interpreter to compiler.
Changes by Mark Shannon m...@hotpy.org: -- keywords: +patch Added file: http://bugs.python.org/file29646/b16527f84774.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Roundup Robot added the comment: New changeset 4fcd50a6dca7 by Brett Cannon in branch 'default': Issue #14135: Make sure tests don't leave the locale changed for any http://hg.python.org/cpython/rev/4fcd50a6dca7 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Brett Cannon added the comment: Sorry it took so wrong to get to this. It simply fell out of my purview. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
Roundup Robot added the comment: New changeset 4ed8a8e781c3 by Antoine Pitrou in branch 'default': Issue #17483: remove unreachable code in urlopen(). http://hg.python.org/cpython/rev/4ed8a8e781c3 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Antoine Pitrou added the comment: I had to back out this changeset as it totally broke the test suite here: [ 91/372/90] test_defaultdict test test_defaultdict crashed -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/test/regrtest.py, line 1287, in runtest_inner with saved_test_environment(test, verbose, quiet) as environment: File /home/antoine/cpython/default/Lib/test/regrtest.py, line 1251, in __enter__ in self.resource_info()) File /home/antoine/cpython/default/Lib/test/regrtest.py, line 1250, in genexpr self.saved_values = dict((name, get()) for name, get, restore File /home/antoine/cpython/default/Lib/test/regrtest.py, line 1237, in get_locale return tuple(map(locale.getlocale, self._locale_categories)) File /home/antoine/cpython/default/Lib/locale.py, line 523, in getlocale raise TypeError('category LC_ALL is not supported') TypeError: category LC_ALL is not supported (etc.) -- nosy: +pitrou status: closed - open versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2889] curses for windows (alternative patch)
Mark Lawrence added the comment: @Christoph Gohlke any chance of providing a build for 3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2889 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17357] Add missing verbosity message to importlib
Brett Cannon added the comment: Also done in default but since I forgot to say it was a merge for this issue it didn't add the commit message. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17357] Add missing verbosity message to importlib
Roundup Robot added the comment: New changeset ac89e7bc0e2f by Brett Cannon in branch '3.3': Issue #17357: Add missing verbosity messages when running under http://hg.python.org/cpython/rev/ac89e7bc0e2f -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17357 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6335] Add support for mingw
Mark Lawrence added the comment: @Brian,Tim any comments on this? Out of curiosity how does cygwin manage Python? -- nosy: +brian.curtin, tim.golden versions: +Python 3.4 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Brett Cannon added the comment: Can you check the attached patch works for you, Antoine? -- Added file: http://bugs.python.org/file29647/check_locale.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6335] Add support for mingw
Brian Curtin added the comment: None from me. Not familiar with what cygwin does. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Antoine Pitrou added the comment: It does, thank you. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: -flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7475 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Roundup Robot added the comment: New changeset dfe04eaa3924 by Brett Cannon in branch 'default': Issue #14135: Let's try this again. http://hg.python.org/cpython/rev/dfe04eaa3924 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14135] check for locale changes in test.regrtest
Changes by Brett Cannon br...@python.org: -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14135 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17609] IDLE: Remove config option 'editor on startup' and utilize command line options only
Terry J. Reedy added the comment: I think whatever we do should be done on all versions. This is not a 'major rewrite'. As I remember, installing Python on Windows adds 'edit with IDLE' to the right-click context menu. I cannot check at the moment because my substitute machine only has repository builds. I do not know what happens with multiple installs. Perhaps there should be 'Edit with Idle x.y' for each. 'Run with Idle' might be nice, -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17609 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
Senthil Kumaran added the comment: Antoine - I approached it from idea that check_hostname as a setting is allowed from HTTPSConnection (http/client.py) but it not controllable from urllib. Is there a case where it is useful in HTTPSConnection, but it should not be from urllib? - Thanks for the changes. One comment on the changeset 4ed8a8e781c3 +https_handler = HTTPSHandler(context=context, check_hostname=True) check_hostname=True is redundant here. You could send the context and by default it checks the hostname. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
Antoine Pitrou added the comment: Antoine - I approached it from idea that check_hostname as a setting is allowed from HTTPSConnection (http/client.py) but it not controllable from urllib. Is there a case where it is useful in HTTPSConnection, but it should not be from urllib? HTTPSConnection is lower-level, so it makes sense to allow more deviations there. That's why HTTPSConnection also takes the context directly. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1528154] New sequences for Unicode groups and block ranges needed
Terry J. Reedy added the comment: I am trying to decide if this issue still serves a purpose. It seems to be a request to add something to the existing re module. Fredrik semi-rejected the idea without a (micro)-pep. A python-ideas discussion is now another option. Matthew's regex implementation already has the feature, so this issue would be moot if it were ever part of the stdlib. But the fate of #2636 is unclear. Rereading, it now seems that implementing the feature in the current re module using the TR18 syntax would be this issue, if someone were to do it. So I will not close yet. -- dependencies: +Adding a new regex module (compatible with re) versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1528154] New sequences for Unicode groups and block ranges needed
Ezio Melotti added the comment: We should really just include regex in 3.4. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1528154 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7094] Add alternate float formatting styles to new-style formatting.
Mark Lawrence added the comment: @Eric looks as if the bulk of the work has been done so would you like to dot the i's and cross the t's? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7094 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Mark Lawrence added the comment: @Éric I'd be interested in using this as print/pprint are part of my debugging kit, so could you take this forward please? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7559] TestLoader.loadTestsFromName swallows import errors
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Éric Araujo added the comment: Still waiting for a review. -- keywords: +needs review stage: needs patch - patch review versions: +Python 3.4 -Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Brett Cannon added the comment: Barry, Eric: can you clarify why you made module_repr an abstractmethod and thus require its overloading? It seems like its default is fine and you should only need to overload it when you can say something better than the default. -- nosy: +barry, eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Barry A. Warsaw added the comment: On Apr 01, 2013, at 07:40 PM, Brett Cannon wrote: Barry, Eric: can you clarify why you made module_repr an abstractmethod and thus require its overloading? Maybe Eric can, but I can't. ;) I honestly don't remember why we made it abstract, except perhaps because we put it in the Loader class which already had an abstract load_module() method. It seems like its default is fine and you should only need to overload it when you can say something better than the default. Note that moduleobject.c can handle the case of a missing or uncallable module_repr() attribute. Then it implements the defaults specified in PEP 420. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] python modules.zip is not documented
Marc-Andre Lemburg added the comment: I don't think that's enough documentation for the feature. There's a whole PEP 338 just for the -m option due to the subtle issue associated with the run a module logic, so I'd expect somewhat more detail or an update of the PEP with the needed details. This page would be the appropriate place for a section on the topic, I guess: http://docs.python.org/3/library/runpy.html A mention on this page would also be good: http://docs.python.org/3/tutorial/interpreter.html Since the feature was added in Python 2.6, the documentation patch should also be backported to the Python 2.6 and 2.7. PS: I wonder why the documentation search doesn't even return the page you mentioned. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] python modules.zip is not documented
Changes by Marc-Andre Lemburg m...@egenix.com: -- versions: +Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17561] Add socket.create_server_sock() convenience function
Giampaolo Rodola' added the comment: Being Tulip asynchronous I think that what it needs is an utility function which returns *multiple* sockets as are the addresses returned by getaddrinfo() and also possibly even disable the IPv4/6 dual stack in order to be consistent across all platforms. After the sockets are returned they can be registered against the event loop as two separate entities such as, say, (0.0.0.0, 8000) *and* (::, 8000). If you think this makes sense I can contribute something like this into Tulip, or I can bring it up on Tulip's ml and ask for other people's opinions. My current recipe is different in that it provides a function which bind()s on one socket only and tries to enable the dual stack whenever possible in order to support IPv4 and IPv6 with a single socket. In this it is similar to socket.create_connection() and clearly favors blocking socket usages (although it can also be used in non-blocking apps) which kind of represents the default for the stdlib. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17561 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] python modules.zip is not documented
Changes by Éric Araujo mer...@netwok.org: -- versions: -Python 2.6, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17571] broken links on Lib/datetime.py docstring
Ezio Melotti added the comment: Here's a patch. -- keywords: +patch stage: - commit review type: - enhancement Added file: http://bugs.python.org/file29648/issue17571.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17571 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Antoine Pitrou added the comment: I don't understand how this is supposed to work or what the point is. By construction, pprint prints a *single* object, and it will split the representation over several lines if necessary. Therefore the print() semantics (print several objects one after another, without linebreak) are incompatible with pprint. -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6743] Add function compatible with print to pprint module
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6743 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17609] IDLE: Remove config option 'editor on startup' and utilize command line options only
Terry J. Reedy added the comment: A corollary of what I said is that if something is a bad idea for 3.3, it is probably a bad idea for 3.4. On idle-dev thread Feedback requested on issue 17609: ..., Bruce Sherwood says For the thousands of students in our intro physics curriculum who use VIDLE (which I hope eventually can be replaced by using an updated IDLE), it is extremely important that starting IDLE (by clicking on an icon) display only an edit window at startup. Idle is both a shell with editor and an editor with shell. The latter is a legitimate use case and I do not think we should remove the feature of making it a configuration option. So I think this issue should be closed as rejected (and see below). On Windows, I believe one could accomplish Bruce's purpose with a customized Window's shortcut. Even is something similar is true on *nix and Mac, the details would probably be different on both. Learning all three systems is too much to expect of anyone. I am sympathetic with the idea of making option processing easier (but not as the cost of making things harder for users). I believe using the newer argparse instead of the ancient getopt in PyShell.main might do that. It seems to me that the flow should be dict of builtin default updated by user configuration file updated by command line or function args. 'Function' refers to a possible new idlelib.idle.main for starting Idle from Python by passing options directly as arguments rather than by manipulating sys.argv. I do not see 'remove a config option' as a goal. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17609 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17583] IDLE HOWTO
Ezio Melotti added the comment: I added a few more comments. To clarify, when I said two documents, I meant that there will be only a single HOWTO, but on 2.7 it will be specific to Python 2, whereas on 3.x it will be specific to Python 3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Brett Cannon added the comment: If Eric doesn't have anything to add then I would like to change importlib.abc.Loader.module_repr() to no longer be abstract and the default to be defined as ``return repr(module)``. Else it should be entirely optional and not have a default implementation, but having it be required as abstract doesn't seem quite right to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue7944] Use the 'with' statement in conjunction with 'open' throughout test modules
Mark Lawrence added the comment: #7232 has been closed so test_tarfile can presumably now be committed, also test_os. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7944 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Eric V. Smith added the comment: I was going to blame Barry, but I see he beat me to it :) It looks like an oversight, and it shouldn't be abstract. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17610] Qsort function misuse in typeobject.c
Roundup Robot added the comment: New changeset 9431a092b708 by Benjamin Peterson in branch '3.3': list slotdefs in offset order rather than sorting them (closes #17610) http://hg.python.org/cpython/rev/9431a092b708 New changeset 96c0efe93774 by Benjamin Peterson in branch 'default': merge 3.3 (#17610) http://hg.python.org/cpython/rev/96c0efe93774 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17610] Qsort function misuse in typeobject.c
Benjamin Peterson added the comment: Thanks for the report. I fixed the 3.3 and 3.4 branches. If you felt motivated to do the associated shuffling around in 2.7, I would accept a patch. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17610 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Barry A. Warsaw added the comment: On Apr 01, 2013, at 09:04 PM, Brett Cannon wrote: If Eric doesn't have anything to add then I would like to change importlib.abc.Loader.module_repr() to no longer be abstract and the default to be defined as ``return repr(module)``. Else it should be entirely optional and not have a default implementation, but having it be required as abstract doesn't seem quite right to me. I have no problem making it non-abstract, but I don't think you need to define a default. The built-in module object already does the right thing by default. Maybe that's why we (mistakenly?) made it abstract. We might have hoped to document the API but not provide a default implementation, since if module_repr() is not both defined and callable, moduleobject.c already does the right thing. But at least there are unit tests so it should be hard for you to break things. :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17583] IDLE HOWTO
Amit Saha added the comment: Thanks Ezio. I am almost done with incorporating the changes suggested and will submit a patch sometime in the next day or so. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17612] hooks/mail.py requires [smtp] host to be set, despite a comment to the contrary
New submission from Eric V. Smith: In the mail hook, there's a comment that says: ''' To set the SMTP server to something other than localhost, add a [smtp] section to your hgrc: [smtp] host = mail.python.org port = 25 ''' This is not true. The default host is '', which tells smtplib.SMTP to not make an initial connection. If we want the comment to be correct, then we need to set 'localhost' as the default: -host = ui.config('smtp', 'host', '') +host = ui.config('smtp', 'host', 'localhost') I guess there's some chance that we want to force the smtp host to be set. If that's the case then then comment should be changed and the code modified to require the host be specified in the config file (or at least a better error message than 'please run connect() first'). Adding Antoine because annotate points to him for these lines. -- assignee: eric.smith keywords: easy messages: 185777 nosy: eric.smith, pitrou priority: normal severity: normal status: open title: hooks/mail.py requires [smtp] host to be set, despite a comment to the contrary ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17612 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17566] Document that importlib.abc.Loader.module_repr is abstract and thus needed by various other ABCs
Brett Cannon added the comment: Totally optional and no default argument it is. -- assignee: docs@python - brett.cannon ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] Mention __main__.py explicit in command line docs
Nick Coghlan added the comment: The previous title was not accurate, as the directory and zipfile execution feature is documented at http://docs.python.org/2/using/cmdline.html#interface-options It is also documented in http://docs.python.org/3/library/runpy#runpy.run_path -- title: python modules.zip is not documented - Mention __main__.py explicit in command line docs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] Mention __main__.py explicitly in command line docs
Changes by Nick Coghlan ncogh...@gmail.com: -- title: Mention __main__.py explicit in command line docs - Mention __main__.py explicitly in command line docs ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17359] Mention __main__.py explicitly in command line docs
Nick Coghlan added the comment: There's also a problem where the CLI docs claim __main__.py support was added in 2.5 - that's not accurate, it was only added in 2.6. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17359 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14097] Improve the introduction page of the tutorial
Ezio Melotti added the comment: Attached a new patch that should address all the points except the last example with Fibonacci. -- stage: needs patch - patch review versions: -Python 3.2 Added file: http://bugs.python.org/file29649/issue14097-2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14097 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8079] make install fails with -j8 with python2.6/config on FreeBSD
Terry J. Reedy added the comment: Garrett, I don't know that any of our active developers use FreeBSD. Is this a problem with 2.7.3 or 3.3.0 (or 2.7.4 or 3.3.1 when they come out in a week)? If you have lost interest, please say so and we will close until such time as it becomes current again. -- nosy: +terry.reedy versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8079 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6335] Add support for mingw
Ned Deily added the comment: This issue has likely been superseded by more recent activity to support mingw, for example, activity tracked in Issue17605. Roumen? -- nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6335 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE error
New submission from Raymond Hettinger: Running ILDE with 2.7.4 RC 1 on Mac OS X 10.8 and with ActiveTCL 8.5.13 using python -m idlelib.idle, I object the following traceback messages. I'm unsure what events are triggering it: Traceback (most recent call last): File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py, line 1470, in __call__ return self.func(*args) File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py, line 531, in callit func(*args) File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/ColorDelegator.py, line 153, in recolorize self.recolorize_main() File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/ColorDelegator.py, line 186, in recolorize_main next = self.index(mark + +%d lines linestart % File /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/Delegator.py, line 10, in __getattr__ attr = getattr(self.delegate, name) # May raise AttributeError AttributeError: 'NoneType' object has no attribute 'index' -- components: IDLE messages: 185784 nosy: rhettinger priority: normal severity: normal status: open title: IDLE error type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17611] Move unwinding of stack for pseudo exceptions from interpreter to compiler.
Raymond Hettinger added the comment: Additional effect: Destabilizes lots of code that has had a decade to mature. It messes with the compiler, the eval loop, the peephole optimizer, the disassembler, every third-party tool that examines or alters byte codes, any tool or VM that implements python byte codes, etc. Changes like this tend to invalidate previous efforts to time and optimize code. -- nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17611 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17483] Can not tell urlopen not to check the hostname for https connections.
Senthil Kumaran added the comment: HTTPSConnection is lower-level, so it makes sense to allow more deviations there. That's why HTTPSConnection also takes the context directly. That's okay of an explanation. HTTPSHandler in urllib module provides an option to send the context and the check_hostname and we are using that here. I can understand the security benefits in sending the check_hostname=True (which is sane thing to do). But if someone explicitly wants to use the check_hostname=False in the HTTPSHandler, he will have to create a new local opener object and then use the opener.open to carry on with the request as he would expect it to behave. ( Do you think this warrants a doc update. Personally I am 0 on it). I am okay this change. This should be back ported as the code was unreachable 3.3 in the first place and there is no behavior change. Thanks! -- assignee: orsenthil - pitrou resolution: - fixed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17483 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE error
Todd Rovito added the comment: Raymond, Is then when you simply startup IDLE or are you opening a Python file to edit? The only reason why I ask about editing a file is because ColorDelegator is used to by the EditorWindow to perform the syntax hi-lighting (I think). I have a few Macs so I can try and duplicate. In addition I added a few people to the nosy list that might know better than I do what the problem is. Thanks for the report. -- nosy: +Todd.Rovito, ned.deily, roger.serwy, terry.reedy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue8913] Document that datetime.__format__ is datetime.strftime
Mark Lawrence added the comment: Can issue8913-3.patch be committed or are any further tweaks needed? -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8913 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14679] Define an __all__ for html.parser
Senthil Kumaran added the comment: I think, HTMLParseError should also be defined __all__ (all also servers as what public classes/methods to look for sometimes and sets some expectation while reading the code.) There is no deprecation warning added in the class here. -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14679 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17583] IDLE HOWTO
Todd Rovito added the comment: Sorry about using the wrong word, I should of used HowTo not FAQ. I really meant to suggest replacing guide with the word HowTo. A HowTo would be perfect Sorry about the confusion. Thanks again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17583 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6822] Error calling .storlines from ftplib
Mark Lawrence added the comment: ftplib_doc.patch is so simple I'm assuming this has slipped under the radar, so would someone like to do the honours and commit the patch please. -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6822 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10379] locale.format() input regression
Mark Lawrence added the comment: msg120978 The bug has been fixed upstream Have I missed something as on Windows Vista...? c:\Users\Mark\MyPythonpython Python 3.3.1rc1 (v3.3.1rc1:92c2cfb92405, Mar 25 2013, 22:39:19) [MSC v.1600 32 bit (Intel)] on win32 Type help, copyright, credits or license for more information. import locale; print(locale.format('%.0f KB', 100)) Traceback (most recent call last): File stdin, line 1, in module File c:\python33\lib\locale.py, line 193, in format format specifier, %s not valid) % repr(percent)) ValueError: format() must be given exactly one %char format specifier, '%.0f KB' not valid -- nosy: +BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10379 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Ned Deily added the comment: Setting as 2.7.4 release blocker pending further analysis. Roger, any ideas? Would having the contents of Raymond's .idlerc files be of help? Raymond, does IDLE terminate when the exception occurs or does it keep running? -- nosy: +benjamin.peterson priority: normal - release blocker title: IDLE error - IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17587] Have all core library modules imported by default
Benjamin Peterson added the comment: Well, the fun has been had. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17587 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17587] Have all core library modules imported by default
Daniel Ellis added the comment: It was a hell of a ride. On Mon, Apr 1, 2013 at 10:59 PM, Benjamin Peterson rep...@bugs.python.orgwrote: Benjamin Peterson added the comment: Well, the fun has been had. -- nosy: +benjamin.peterson resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17587 ___ -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17587 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Terry J. Reedy added the comment: Do you get the same traceback with python -m idlelib? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Ned Deily added the comment: python -m idlelib isn't implemented for 2.7.x, is it? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1274] doctest fails to run file based tests with 8bit paths
Terry J. Reedy added the comment: I am closing this for lack of evidence that there is a bug in a current release 2.7.3 or 3.3.0 or release candidate for 2.7.4 or 3.3.1. What would be needed is a self-contained example that shows a problem with one of the above. -- assignee: tim_one - nosy: +terry.reedy resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1274 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14905] zipimport.c needs to support namespace packages when no 'directory' entry exists
Phillip J. Eby added the comment: Just a note: the zip files produced by the distutils and friends (sdist, bdist_dumb, eggs) do not include entries for plain directories. I would guess that this is also true for wheels at the moment, unless something was specifically done to work around this property of distutils-generated zip files. So ISTM the right thing to do is to synthesize the entries at directory read time, when they're being looped over anyway. Reviewing the patch, there is a performance optimization possible by making a slight change to the algorithm. Currently the patch loops from the start of the string to the end, looking for path prefixes. This means that the total overall performance is determined by the length of the strings and especially the average directory depth. However, there is a significant shortcut possible: looping from the *end* of each string to the beginning, it's possible to break out of the loop if the prefix has already been seen -- thus saving (depth-1) dictionary lookups in the average case, and only looking at the characters in the base filename, unless a new directory is encountered... for a typical overhead of one unicode substring, dictionary lookup, and strrchr per zipfile directory entry. (Which is very small compared to what else is going on at that point in the process.) To elaborate, if you have paths of the form: x/y/a x/y/b x/y/c/d Then when processing 'x/y/a', you would first process x/y -- it's not in the dict, add it. Then x -- not in the dict, add it. Then you go to x/y/b, your first parent is x/y again -- but since it's in the dict you skip it, and don't even bother with the x. Next you see x/y/c, which is not in the dict, so you add it, then x/y, which is, so you break out of the loop for that item. Basically, about all that would change would be the for() loop starting at the end of the string and going to the beginning, with the loop position still representing the end of the prefix to be extracted. And the PyDict_Contains check would result in a break rather than a continue. So, if the only concern keeping the patch from being accepted is that it adds to startup time, this approach would cut down quite a bit on the overhead for generating the path information, in cases of repeated prefixes. (And in the common cases for zipfile use on sys.path, one would expect to see a lot of common prefixes, if only for package names.) -- nosy: +pje ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14905 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Roger Serwy added the comment: It's a race condition due to ColorDelegator calling .update() in its recolorize method. The call to .update() flushes pending events, including callbacks into Python code that can change out the ColorDelegator in the Percolator chain. Here's a way to trigger this bug reliably. First we need an unreasonably large file that will make the syntax highlighting routine take a while. This code will generate such a file: fid = open('/tmp/bigfile.py', 'w') L = '\n'.join(map(lambda x: #%i\n'%i'\n % (x,x), range(1))) fid.writelines(L) fid.close() These next two steps need to be performed quickly to trigger the race condition. $ python -m idlelib.idle -e /tmp/bigfile.py As soon as it loads, press Ctrl+Shift+S to bring up the Save-As dialog. You can take your time now. Overwrite the file. This triggers the filename_change_hook to call ResetColorizer, which removes the current ColorDelegator from the Percolator chain and inserts a new one. Wait a moment for the traceback to arrive. The attached patch fixes the issue. When the ColorDelegator is removed by Percolator's removefilter, the delegate is set to None. The patch detects that condition and then sets flags to stop the colorizer from continuing. In testing for this bug, I encountered another one. Pressing Alt-F4 quickly after the window loading bigfile appears triggers another traceback. I'll open a separate issue for that. -- keywords: +patch nosy: +georg.brandl, larry stage: - patch review versions: +Python 3.2, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file29650/stop_colorizer.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Terry J. Reedy added the comment: Yes, idlelib.__main__.py was only added to 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17614] IDLE - quickly closing a large file triggers a traceback
Roger Serwy added the comment: I misworded the first sentence. It should have read: Using bigfile.py as generated by the program in #17613 can trigger the following traceback when quickly closing the editor. Other large files can be used to trigger the bug as well, like Lib/decimal.py. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17614] IDLE - quickly closing a large file triggers a traceback
New submission from Roger Serwy: Using the bigfile.py generation program from #17613 triggers the following traceback: Traceback (most recent call last): File /usr/bin/idle, line 5, in module main() File /usr/lib/python3.3/idlelib/PyShell.py, line 1431, in main if flist.open(filename) is None: File /usr/lib/python3.3/idlelib/FileList.py, line 36, in open edit = self.EditorWindow(self, filename, key) File /usr/lib/python3.3/idlelib/PyShell.py, line 113, in __init__ if self.io.filename: self.restore_file_breaks() File /usr/lib/python3.3/idlelib/PyShell.py, line 229, in restore_file_breaks filename = self.io.filename AttributeError: 'NoneType' object has no attribute 'filename' -- components: IDLE messages: 185802 nosy: roger.serwy priority: critical severity: normal status: open title: IDLE - quickly closing a large file triggers a traceback type: behavior versions: Python 2.7, Python 3.2, Python 3.3, Python 3.4 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17614] IDLE - quickly closing a large file triggers a traceback
Roger Serwy added the comment: Like #17613, the root cause is a call to .update() in Lib/idlelib/PyShell.py .restore_file_breaks(). The attached patch fixes the issue. -- keywords: +patch stage: - patch review Added file: http://bugs.python.org/file29651/issue17614.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17614 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17535] IDLE: Add an option to show line numbers along the left side of the editor window, and have it enabled by default.
Roger Serwy added the comment: I received permission from UIUC to relicense IdleX code used for contributions into Python. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17535 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16887] IDLE - tabify/untabify applied when clicking Cancel
Todd Rovito added the comment: Roger, I tested the patch and it does seem to function as you describe so feel free to apply the patch. The tabify function makes me scratch my head a little, according to help.txt: Tabify Region -- Turns *leading* stretches of spaces into tabs (Note: We recommend using 4 space blocks to indent Python code.) Yet this code doesn't seem to get tabifyed. a=[1,2,3,4,5] for i in range(0, len(a)): print(%d % a[i]) I would expect that the print statement be tabbed in but on my Mac it does not seem to do that it just puts back in the single space in front of the print. This might be a separate issue but I was wondering if perhaps I misunderstand the purpose of this function? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue16887] IDLE - tabify/untabify applied when clicking Cancel
Roger Serwy added the comment: Todd, Tabify/Untabify are functions to deal with the great tabs vs. spaces debate (though PEP8 says that spaces are the way to go). The tabify function needs a minimum of 2 spaces before it replaces it with a tab. Its implementation in Lib/idlelib/EditorWindow.py under the tabify_region_event and untabify_region_event reveals a curiousity in its implementation. Tabify will replace spans of space characters with tabs, but still leave in extra space characters if needed. Untabify simply expands all tabs to a fixed number of spaces. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16887 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Roger Serwy added the comment: Removing Geoge and Larry from nosy. I'm not sure how they got added. I didn't click on anything in the Nost List box. Ned, did you mean to add Benjamin to the nosy list? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Roger Serwy added the comment: Is there an automatic nosy-list adder routine in the bug-tracker that I should know about? Georg and Larry were re-added to nosy even after I removed them. (I'm sorry for the spam.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue17613] IDLE AttributeError: 'NoneType' object has no attribute 'index' from Delegator.py
Raymond Hettinger added the comment: Raymond, does IDLE terminate when the exception occurs or does it keep running? It keeps running. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17613 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com