[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
New submission from Roger Serwy: This issue is a split from #5492, where Terry noticed a serious regression that "quit()" and "exit()" no longer work in IDLE. Before #9290, the PyShell object itself was stdin and it didn't have a "fileno" method. The code in site.py would skip over the call to

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought of this exact patch, but then decided against it. 1. The bug is in site.py -- see thread [Python-Dev] Idle, site.py, and the release candidates for a better explanation and solution. 2. The Idle behavior, inherited from io.IOBase is correct. 3. The cons

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I agree that site.py's Quitter exception logic has a flaw as described on the email from python-dev. But I disagree that the problem of IDLE not exiting is due to site.py. Even if you fix site.py (which I did), calling sys.stdin.close() won't close IDLE since Pse

[issue15494] Move test/support.py into a test.support subpackage

2013-03-31 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: If there are no objections, I will apply this patch after 2013-04-05. -- assignee: -> roger.serwy versions: -Python 3.2 ___ Python tracker ___ __

[issue17546] Document the circumstances where the locals() dict get updated

2013-03-31 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue17586] fix typo in contextlib.rst

2013-03-31 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- assignee: docs@python components: Documentation files: typo.diff keywords: patch nosy: docs@python, tshepang priority: normal severity: normal status: open title: fix typo in contextlib.rst versions: Python 3.4 Added file: http://bugs.python.org/file2

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-31 Thread Mark Dickinson
Mark Dickinson added the comment: > Amaury, why do you mention -R flag He's talking about the -R argument to regrtest: """ -R runs each test several times and examines sys.gettotalrefcount() to see if the test appears to be leaking references. The argument should be of the form stab:run:fname

[issue17583] IDLE HOWTO

2013-03-31 Thread Amit Saha
Amit Saha added the comment: Hi Todd, I just signed the Python contributor agreement electronically. You probably missed the link to the rSt source in my original report. Here it is [1]. I would want this HOWTO to cover all aspects of IDLE from an user's perspective. I have some ideas abou

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-31 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the updated patch. Some comments: - In the tests, your functions should have return type PyObject* rather than void; you can use Py_RETURN_NONE as a convenient way to return something of the correct type. E.g.: static PyObject * test_decref_does

[issue10044] small int optimization

2013-03-31 Thread Mark Dickinson
Mark Dickinson added the comment: > Do we need to keep this issue open while this research is being > carried out? I'd say not. -- resolution: -> rejected status: open -> closed ___ Python tracker ___

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-31 Thread Mark Shannon
Mark Shannon added the comment: Mark, it was written 20 years ago. Who knows (or cares) why it was written that way? Let's just write it correctly this time. Py_INCREF, Py_DECREF, Py_XDECREF and Py_XINCREF should all expand their argument exactly once. Py_CLEAR should expand its argument exa

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I see that now. Then both files should be fixed. I still object to introducing a buggy .fileno ;-). -- ___ Python tracker ___ _

[issue17583] IDLE HOWTO

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: Yes I missed the link sorry. Can you add the rst file to Doc/faq in the tip of the repository then do a hg diff and post the patch as an attachment to this issue? At that point I will review and send any changes or edits with the review system. Others can sugg

[issue17587] Have all core library modules imported by default

2013-03-31 Thread Daniel Ellis
New submission from Daniel Ellis: The other day I was trying to make a script to import a CSV file but for the life of me couldn't remember what the name of the csv library was (turns out it was csv). So I started thinking "hey, what if all the standard library were just *there* by default"?

[issue17587] Have all core library modules imported by default

2013-03-31 Thread R. David Murray
Changes by R. David Murray : -- resolution: -> invalid stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17587] Have all core library modules imported by default

2013-03-31 Thread R. David Murray
Changes by R. David Murray : -- Removed message: http://bugs.python.org/msg185630 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue16887] IDLE - tabify/untabify applied when clicking Cancel

2013-03-31 Thread Todd Rovito
Changes by Todd Rovito : -- nosy: +Todd.Rovito ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: Roger, You are a genius! The example program duplicates the bug exactly. It works on Mac (I assume Linux but I will test on Linux) and it does not work on correctly on Windows. On Windows as soon as the text widget looses focus then the hi-light disappea

[issue14146] IDLE: source line in editor doesn't highlight when debugging

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: Bug report has been filed with Tk here: https://sourceforge.net/tracker/?func=detail&aid=3609608&group_id=12997&atid=112997 -- ___ Python tracker _

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Terry, I agree that the original patch introduces a buggy fileno and it "knows" too much about the internals of site.py which could change. The attached patch modifies site.py, similar to how Nick Coghlan split the two function calls in a single try/except block

[issue17588] runpy cannot run Unicode path on Windows

2013-03-31 Thread Drekin
New submission from Drekin: runpy.run_path("\u222b.py") raises UnicodeEncodeError when trying to use mbcs codec on Windows. However opening the file using open() is ok. So why is runpy trying to encode the name using mbcs encoding when it's not necessary or even correct? See http://bpaste.net/

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Please read http://mail.python.org/pipermail/python-dev/2013-March/125021.html . The fileno() check shouldn't be needed anymore. Also, it can't effect 2.7, or you have another problem. -- nosy: +pitrou versions: -Python 2.7, Python 3.2 __

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: (s/effect/affect/, sorry) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Antoine, it does affect 2.7 since sys.stdin.close() doesn't call PyShell's close method. #9290 introduced this regression. I accept some responsibility because my manual testing of those patches in #9290 didn't include trying the exit() and quit() methods. The a

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I would also argue that the fileno_close.patch ought to be applied to the 3.2.4 and 3.3.1 release candidates. The changes in #9290 were applied only two months ago. -- versions: +Python 3.2 ___ Python tracker

[issue6419] Broken test_kqueue.py on OpenBSD

2013-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset cfd4cd15809e by Charles-Francois Natali in branch '2.7': Issue #6419: Fix a test_kqueue failure on some BSD flavors. http://hg.python.org/cpython/rev/cfd4cd15809e New changeset 96776fc3cbcc by Charles-Francois Natali in branch '3.3': Issue #6419: Fi

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I won't argue about any changes in IDLE, but the fileno-checking code in site.py should probably be removed, not complicated. -- ___ Python tracker ___

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2013-03-31 Thread Éric Araujo
Éric Araujo added the comment: Ah, okay. I can’t wait for the time when unittest.main() is used everywhere and we delete run_unittest :) -- ___ Python tracker ___ _

[issue17585] IDLE - regression with exit() and quit()

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I agree with Antoine that fileno checking code should be removed. I dug deeper into why that was introduced in the first place. 00b136b7da84 introduced the warning "Trying to close unclosable fd!" 86358b43c8bb intoduced the change to site.py about not closing stdi

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-31 Thread Larry Hastings
Larry Hastings added the comment: For the record: I care. Generally speaking CPython is a lovingly crafted source tree, and the choices its architects made are nearly always sensible and well-reasoned. When I see things like this, things that seem kind of dumb on first glance, I worry that we'r

[issue1470548] Bugfix for #1470540 (XMLGenerator cannot output UTF-16 or UTF-8)

2013-03-31 Thread Sebastian Ortiz Vasquez
Sebastian Ortiz Vasquez added the comment: I have been working with this in order to generate an RSS feed using web2py. I found, XMLGenerator method does not validate if is an unicode or string type, and it does not encode accord the encoding parameter of the XMLGenerator. I added changed the

[issue17584] collections.Iterator __subclasshook__ does not check if next() is callable

2013-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: It's the nature of duck typing in a dynamic language. You can tell whether something is present but can't tell whether it words correctly until you call it. For example, in Python 3, all objects have __lt__ defined, but all it does is return NotImplemente

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-03-31 Thread Larry Hastings
New submission from Larry Hastings: CPython API "functions" implemented as macros can expand into either rvalues or statements. Most expand into statements (often using the do {} while (0) syntactic sugar trick), but occasionally they're legal as rvalues. As of this writing Py_INCREF works as a

[issue17590] mingw: translate gcc internal defines to python platform specific defines

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Build, Cross-Build files: 0002-MINGW-translate-gcc-internal-defines-to-python-platf.patch keywords: patch messages: 185647 nosy: rpetrov priority: normal severity: normal status: open title: mingw: translate gcc interna

[issue17591] mingw: use header in lowercase

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Cross-Build files: 0003-MINGW-use-header-in-lowercase.patch keywords: patch messages: 185648 nosy: rpetrov priority: normal severity: normal status: open title: mingw: use header in lowercase versions: Python 3.4 Added

[issue17584] collections.Iterator __subclasshook__ does not check if next() is callable

2013-03-31 Thread Byron Ruth
Byron Ruth added the comment: Thank you for the education. I didn't think about duck-typing extending to the level of whether or not something is callable.. then again the property _could_ return a callable and it would be transparent to the caller. --

[issue17592] mingw: configure MACHDEP and platform for build

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Build, Cross-Build files: 0004-MINGW-configure-MACHDEP-and-platform-for-build.patch keywords: patch messages: 185650 nosy: rpetrov priority: normal severity: normal status: open title: mingw: configure MACHDEP and platf

[issue8900] IDLE crashes when using keyboard shortcuts to open a file.

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I changed the title to better reflect the original bug report. @Bruce: I did review Guilherme's patch a while ago in #10079. The editor window bug can be found in #6698. These are on my todo-list, especially now that PEP434 has been accepted. -- assignee

[issue17593] mailbox.py tries to link even on filesystem wihch does not support symbolic links

2013-03-31 Thread Dominik Stadler
New submission from Dominik Stadler: I tried to use NoPriv (https://github.com/RaymiiOrg/NoPriv/) to backup emails to an USB Disk which is formatted for Windows compatibility, i.e. FAT-type filesystem, but got the error below. Seems mailbox.py still tries to create a symbolic link, which is no

[issue17584] collections.Iterator __subclasshook__ does not check if next() is callable

2013-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I responded to this on python-list. -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-lis

[issue17594] mingw: preset configure defaults

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871, but implement ed differently - externalize some configure defaults instead to update configure script for each check -- components: Build, Cross-Build files: 0005-MINGW-preset-configure-defaults.patch keywords: patch messages: 18565

[issue17595] mingw: configure largefile support for windows builds

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Build, Cross-Build files: 0006-MINGW-configure-largefile-support-for-windows-builds.patch keywords: patch messages: 185655 nosy: rpetrov priority: normal severity: normal status: open title: mingw: configure largefile s

[issue17596] mingw: add wincrypt.h in Python/random.c

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Build, Cross-Build files: 0007-MINGW-add-wincrypt.h-in-Python-random.c.patch keywords: patch messages: 185656 nosy: rpetrov priority: normal severity: normal status: open title: mingw: add wincrypt.h in Python/random.c

[issue17597] mingw: add $srcdir/PC to CPPFLAGS

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871. May be best solution is to move "errmap.h" from PC/ to Objects/ and to use platform specific filename. -- components: Build, Cross-Build files: 0008-MINGW-add-srcdir-PC-to-CPPFLAGS.patch keywords: patch messages: 185657 nosy: rpetr

[issue6696] Profile objects should be documented

2013-03-31 Thread Éric Araujo
Éric Araujo added the comment: Ezio, would you like to commit this? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list

[issue17598] mingw: init system calls

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871. -- components: Build, Cross-Build files: 0009-MINGW-init-system-calls.patch keywords: patch messages: 185659 nosy: rpetrov priority: normal severity: normal status: open title: mingw: init system calls type: enhancement versions: Pyt

[issue17599] mingw: detect REPARSE_DATA_BUFFER

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871. -- components: Build, Cross-Build files: 0010-MINGW-detect-REPARSE_DATA_BUFFER.patch keywords: patch messages: 185660 nosy: rpetrov priority: normal severity: normal status: open title: mingw: detect REPARSE_DATA_BUFFER type: enhance

[issue17600] mingw: build-in windows modules (winreg)

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871. -- components: Build, Cross-Build files: 0011-MINGW-build-in-windows-modules-winreg.patch keywords: patch messages: 185661 nosy: rpetrov priority: normal severity: normal status: open title: mingw: build-in windows modules (winreg) t

[issue15964] SyntaxError in asdl when building 2.7 with system Python 3

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I use Arch Linux which has /usr/bin/python as 3.3.0. I can confirm that "touch Include/Python-ast.h Python/Python-ast.c" fixes the problem. But would it have been simpler just to convert the print statements to functions so that asdl_c.py would work with Python

[issue17601] mingw: determine if pwdmodule should be used

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871. (now without to impact other platforms - it will remain build-in module) -- components: Interpreter Core files: 0012-MINGW-determine-if-pwdmodule-should-be-used.patch keywords: patch messages: 185663 nosy: rpetrov priority: normal se

[issue17602] mingw: default sys.path calculations for windows platforms

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: Part is split of issue3871. Based of feedback to issue3871 users prefer to use posix installation scheme and this is implementation of 'relative' posix prefix. -- components: Interpreter Core files: 0013-MINGW-default-sys.path-calculations-for-windows-

[issue17603] AC_LIBOBJ replacement of fileblocks

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 - actually this is not mingw* specific - it is for all platforms without fileblocks -- components: Build, Cross-Build files: 0014-MINGW-AC_LIBOBJ-replacement-of-fileblocks.patch keywords: patch messages: 185665 nosy: rpetrov priority

[issue17604] mingw: use main() to start execution

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 -- components: Interpreter Core files: 0015-MINGW-use-main-to-start-execution.patch keywords: patch messages: 185666 nosy: rpetrov priority: normal severity: normal status: open title: mingw: use main() to start execution type: enhanc

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-03-31 Thread Georg Brandl
Georg Brandl added the comment: There are also some macros usable as lvalues, such as Py_REFCNT or Py_SIZE (they aren't documented at all currently). Anyway, documenting as statement-only unless explicitly stated differently is fine with me. -- ___

[issue17605] mingw-meta: build interpeter core

2013-03-31 Thread Roumen Petrov
New submission from Roumen Petrov: split of issue3871 - this is meta issue only for part related to build interpreter core. Goal is statically linked python executable (python.exe). Patch set consist of : - 01 Issue17148 : nt thread model detection - 02 issue17590 : translate gcc internal define

[issue17589] Make documentation about macros in C API explicit about rvalue vs statement

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Py_INCREF usable as an rvalue sounds more like an accident than a deliberate feature, and it would be IMO counter-productive to codify this behaviour in the docs. As for the lvalue usage of Py_REFCNT and Py_SIZE, I think it would be better if it were limited

[issue17591] mingw: use header in lowercase

2013-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 58fcd81acfb1 by Antoine Pitrou in branch 'default': Issue #17591: Use lowercase filenames when including Windows header files. http://hg.python.org/cpython/rev/58fcd81acfb1 -- nosy: +python-dev ___ Python

[issue17591] mingw: use header in lowercase

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed, thanks. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue17596] mingw: add wincrypt.h in Python/random.c

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Why the "#ifdef __MINGW32__"? I suppose the include is harmless anyway. -- nosy: +pitrou ___ Python tracker ___

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: Here's an updated patch that fixes the windows build based on twouters' comments. It goes ahead and removes the old C implementation of listdir in favor of the trivial Python wrapping of scandir. -- Added file: http://bugs.python.org/file29638/issue1

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Bikeshedding: I would find "iterdir" much easier to remember than "scandir" (especially in relationship with "listdir"). -- ___ Python tracker

[issue8900] IDLE crashes when using keyboard shortcuts to open a file.

2013-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37352a3ccd54 by Roger Serwy in branch '2.7': #8900: Using keyboard shortcuts in IDLE to open a file no longer raises an exception. http://hg.python.org/cpython/rev/37352a3ccd54 New changeset 61092bbd1464 by Roger Serwy in branch '3.3': #8900: Using

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I prefer iterdir also. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

[issue8900] IDLE crashes when using keyboard shortcuts to open a file.

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I am closing this issue as being fixed. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Added test case -- resolution: -> duplicate status: open -> closed Added file: http://bugs.python.org/file29639/test.py ___ Python tracker ___ ___

[issue11406] There is no os.listdir() equivalent returning generator instead of list

2013-03-31 Thread Gregory P. Smith
Gregory P. Smith added the comment: While i don't personally like things with iter in the name I won't object. 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. --

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Joshua Chia
Joshua Chia added the comment: Seems to be duplicate of http://bugs.python.org/issue12776 -- ___ Python tracker ___ ___ Python-bugs-li

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-31 Thread Phil Connell
Phil Connell added the comment: I like the suggested API: "iterator with indexing" is a good articulation of the request. -- ___ Python tracker ___ _

[issue1470548] xml.sax.saxutils.XMLGenerator cannot output UTF-16

2013-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Sebastian Ortiz Vasquez: Please file a new issue and attach a patch (in unified format) instead of a whole Python module. -- title: Bugfix for #1470540 (XMLGenerator cannot output UTF-16 or UTF-8) -> xml.sax.saxutils.XMLGenerator c

[issue13271] When -h is used with argparse, default values that fail should not matter

2013-03-31 Thread Éric Araujo
Changes by Éric Araujo : -- stage: test needed -> committed/rejected superseder: -> argparse: type conversion function should be called only once ___ Python tracker ___

[issue12776] argparse: type conversion function should be called only once

2013-03-31 Thread Éric Araujo
Éric Araujo added the comment: FTR a contributor to #13271 (--help should work even if a type converter fails) indicated that it’s fixed by this patch, so it may be good to add a regression test. -- ___ Python tracker

[issue17606] BUG: XMLGenerator cannot output with the correct encoding

2013-03-31 Thread Sebastian Ortiz Vasquez
New submission from Sebastian Ortiz Vasquez: The XMLGenerator character method is unable to detect and encode using the encoding defined in the constructor. This yields to an UnicodeEncode exception, because always tries to encode using 'ascii' as default in python 2 -- components: XM

[issue1470548] xml.sax.saxutils.XMLGenerator cannot output UTF-16

2013-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- versions: +Python 3.2, Python 3.3, Python 3.4 ___ Python tracker ___ ___ Python-

[issue17606] xml.sax.saxutils.XMLGenerator cannot output with the correct encoding

2013-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Your patch does not apply cleanly to 2.7 branch. Please read documentation: http://docs.python.org/devguide/ http://docs.python.org/devguide/setup.html#checkout Use e.g. 'hg diff' to create patch. Only security fixes are allowed in 2.6 branc

[issue17606] xml.sax.saxutils.XMLGenerator cannot output with the correct encoding

2013-03-31 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: Also please try to write a new test. -- ___ Python tracker ___ ___ Python-bugs-

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: We can fix the "bug" as-is and then open a separate enhancement issue for Tal's suggestions. I place bug in quotes because the correct behavior is not documented. -- assignee: -> roger.serwy nosy: +Todd.Rovito stage: -> patch review type: -> behavior

[issue17583] IDLE HOWTO

2013-03-31 Thread Amit Saha
Amit Saha added the comment: Adding the patch here. I am not sure about how to add the screenshots, so I haven't done them. Just attached the document as a patch (note that I have placed in doc/howto). Thanks for the comments. -- hgrepos: +180 keywords: +patch Added file: http://bugs

[issue17206] Py_XDECREF() expands its argument multiple times

2013-03-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 31.03.2013 21:29, Larry Hastings wrote: > > Larry Hastings added the comment: > > For the record: I care. Generally speaking CPython is a lovingly > crafted source tree, and the choices its architects made are nearly > always sensible and well-reasoned.

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Closing the shell window while in the nested event loop for readline fails to exit the nested event loop. I updated the title to reflect the broader problem with readline's handling of the nested event loop. The rev1 patch causes the nested event loop to exit whe

[issue17583] IDLE HOWTO

2013-03-31 Thread Ezio Melotti
Changes by Ezio Melotti : -- hgrepos: -180 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Ned Deily
Ned Deily added the comment: With the rev1 patch (on OS X), the cursor seems to end up on the wrong line after the restart: >>> import sys >>> sys.stdin.readline() >>> RESTART >>> *Cursor left here at (*), i.e. the left margin

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Ned Deily
Ned Deily added the comment: However, the patch *does* fix the original problem that the first input after restart is skipped. -- ___ Python tracker ___

[issue17583] IDLE HOWTO

2013-03-31 Thread Ezio Melotti
Ezio Melotti added the comment: I left a few comments on rietveld. I wonder if it's better to make two separate versions, one for py2 and one for py3, and avoid repeating things (like the name of the packages) twice. You should also be able to include the images in the patch by using "hg add"

[issue5492] Error on leaving IDLE with quit() or exit() under Linux

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I found the root cause of the original error. Entering "exit()" at the shell raises SystemExit which gets written to the shell's text widget. The call to actually write the text passes through .write() in Lib/idlelib/OutputWindow.py, which calls text.update(). T

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: Ned, I can confirm the behavior you are seeing. I am trying to trace down why this spurious '\n' gets inserted. -- ___ Python tracker ___

[issue17583] IDLE HOWTO

2013-03-31 Thread Amit Saha
Amit Saha added the comment: Hi Ezio, thanks for your review comments. I will make the changes to the document, and also add the images in a later patch. I do agree that repeating package names for Python 2 and Python 3 is perhaps not an ideal way. I am also trying to think of other ways to

[issue17586] fix typo in contextlib.rst

2013-03-31 Thread Roundup Robot
New submission from Roundup Robot: New changeset 18e699c4d8c0 by Ned Deily in branch 'default': Issue #17586: fix typo in contextlib.rst http://hg.python.org/cpython/rev/18e699c4d8c0 -- nosy: +python-dev ___ Python tracker

[issue17586] fix typo in contextlib.rst

2013-03-31 Thread Ned Deily
Ned Deily added the comment: Thanks for catching this! -- nosy: +ned.deily resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue17593] mailbox.py tries to link even on filesystem wihch does not support symbolic links

2013-03-31 Thread R. David Murray
R. David Murray added the comment: The problem is that mailbox decides if links are possible based on the OS rather than on the file system. This is a general problem that Python has...when the Python file system APIs, and this code, were written, OSes could only read their own file systems,

[issue17587] Have all core library modules imported by default

2013-03-31 Thread R. David Murray
R. David Murray added the comment: Ah, I see I misunderstood the argument, here. Upon reflection, this clearly deserves an opportunity for input from other developers. -- nosy: +r.david.murray resolution: invalid -> stage: committed/rejected -> status: closed -> open ___

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg185533 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17577] Add lookahead/peek wrapper to itertools

2013-03-31 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- Removed message: http://bugs.python.org/msg185534 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue17583] IDLE HOWTO

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: Ezio, I left a few comments on rietveld. This is a really nice start to a great FAQ. Thanks for your contribution I think Python needs a nice FAQ on IDLE. You might want to add some detail about the right click menu which allows a user to cut, copy, paste,

[issue17583] IDLE HOWTO

2013-03-31 Thread Amit Saha
Amit Saha added the comment: Hi Todd, thanks for your comments. I wanted to clarify that I intend to make this a HOWTO, not a FAQ. I hope that's fine? -Amit. -- ___ Python tracker ___

[issue17586] fix typo in contextlib.rst

2013-03-31 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks. -- nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: Roger, I reviewed and tested the patch, it does seem to fix the "bug". Now when the on startup configure option is selected IDLE will behave as expected. I think this makes sense to fix the bug even though it is not documented we can infer the behavior based

[issue14254] IDLE - shell restart or closing during readline does not exit nested event loop

2013-03-31 Thread Roger Serwy
Roger Serwy added the comment: I reworked the patch to fix the cursor problem. The new code, hopefully, is simpler to understand and harder to break. Essentially, all code paths that terminate the subprocess must also call stop_readline which exits that nested event loop if needed. --

[issue16893] Create IDLE help.txt from Doc/library/idle.rst

2013-03-31 Thread Todd Rovito
Todd Rovito added the comment: I added roger.serwy to the nosy list. Terry Reedy is already on the list. I think this issue will help maintain the IDLE documentation now and in the future. Right now it has to manually be synced between help.txt and idle.rst. Only Python 3.4 is synced right n

[issue6698] IDLE no longer opens only an edit window when configured to do so

2013-03-31 Thread Roundup Robot
Roundup Robot added the comment: New changeset 240c83902fca by Roger Serwy in branch '2.7': #6698: IDLE now opens just an editor window when configured to do so. http://hg.python.org/cpython/rev/240c83902fca New changeset 174caf4c901a by Roger Serwy in branch '3.3': #6698: IDLE now opens just an

  1   2   >