[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: AFAIU the macro returns lone surrogates as they are, this means that: 1) if the string contains only surrogate pairs, Py_UNICODE_NEXT will iterate on scalar values[0]; 2) if the string contains only lone surrogates, it will iterate on

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I am attaching a patch that defines Py_UNICODE_PUT_NEXT() macro (tentative name) and uses it to fix str.upper method. The implementation of surrogate-aware str.upper shows that NEXT/PUT_NEXT abstractions may lead to

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patch still applies without errors. Georg, since you reviewed the patch and approved it for 3.2, I’m marking as pending and assigning to you. Tell me if I shouldn’t have. -- assignee: - georg.brandl status: open - pending

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: First, thanks for your work on this. I have some feature requests for pydoc too and I’m hoping to work with you in the future :) I found it more efficient (and fair) to make a new diff instead of listing all nitpicks and have you do the

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: Added file: http://bugs.python.org/file19847/issue_2001_g.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2001 ___

[issue6878] changed return type from tkinter.Canvas.coords

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: tkinter/__init__.py and tix.py are not consistent throughout with their indentation, your commit did not add hard to read code, so it’s okay. -- ___ Python tracker rep...@bugs.python.org

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue940286 ___

[issue940286] pydoc.Helper.help() ignores input/output init parameters

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Patchset 3 on codereview looks good. I’d like another review, so I’m adding the latest developers who touched pydoc. -- nosy: +belopolsky, georg.brandl ___ Python tracker rep...@bugs.python.org

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Maybe issue #9299 could be fixed first. Next you could backport new os.makedirs() in distutils2/_backport/os.py. -- ___ Python tracker rep...@bugs.python.org

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Patch is missing version-added directive and News entry. I will try to add these and re-upload for final check. -- status: pending - open ___ Python tracker rep...@bugs.python.org

[issue10262] Add --disable-abi-flags option to `configure`

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I want to eliminate ABI flags in file names. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10262 ___

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Regarding question 1 (_start_server docstring): I have no problem with docstrings on private functions in general. It just means they're for the benefit of developers of the module itself rather than users of the module. However, in this

[issue8887] “pydoc str” works but not “ pydoc str.translate”

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8887 ___ ___ Python-bugs-list

[issue3243] Support iterable bodies in httplib

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy resolution: accepted - stage: patch review - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3243 ___

[issue8710] test_xpickle: compat tests: workaround for missing test_support

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I think this is a distro bug. Debian for example does not ship tests but has test.__init__, regrtest and test_support. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8710

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hello Filip. Could you give us a status update on this patch? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4256 ___

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: We could backport the new version of the function in our compat module (I’d rather not backport the whole os module), if you think it’s worth it. -- ___ Python tracker rep...@bugs.python.org

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I suggest to backport only makedirs() function. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9281 ___

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-11-27 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r86844 -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10268 ___

[issue3243] Support iterable bodies in httplib

2010-11-27 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: jhylton - orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3243 ___ ___

[issue10268] Add --enable-loadable-sqlite-extensions option to `configure`

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: About --enable-loadable-sqlite-extensions=no, this behavior also occurs with --with-system-expat=no and --with-system-ffi=no options. Please file a new issue, add me to nosy list and I will attach a patch.

[issue9621] Graphviz output for 2to3 fixer patterns

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Hey Matt, can you give us a status update? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9621 ___

[issue10553] Add optimize argument to builtin compile() and byte-compilation modules

2010-11-27 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: This looks fairly complete. I spotted the word optimze in there :) As for the C api, I always cringe when I add an Ex function myself, because it feels like I'm spending my last bullet. What to do if I need yet another parameter

[issue10557] Malformed error message from float()

2010-11-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: float('½') Traceback (most recent call last): File stdin, line 1, in module ValueError: could not convert string to float: � float('42½') Traceback (most recent call last): File stdin, line 1, in module ValueError

[issue10558] non-standard processing of several configure options ignores =no

2010-11-27 Thread Ned Deily
New submission from Ned Deily n...@acm.org: [From Issue10268] The configure to Makefile option processing for a few options is non-standard. For example, --enable-loadable-sqlite-extensions=no is treated the same as --enable-loadable-sqlite-extensions or

[issue9573] importing a module that executes fork() raises RuntimeError

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - ncoghlan versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9573 ___

[issue9584] Allow curly brace expansion

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Latest patch looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9584 ___ ___

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I don’t think we can remove a method. Can you make a patch with your other suggestion? Thanks. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9709

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I applied mkdir.diff, 08-07, patch to my current working copy, added version-added and News entry (with credit to Ray Allen) and added Ray Allen to ACKS. Uploaded as mkdirs.tr.diff I suspect a complete test should include a linux system, but

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Attached patch fixes shebangs to use python3 in py3k. There are a lot of examples that use a bare “python”; changing all of those would cause merging pains. -- ___ Python tracker

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +patch Added file: http://bugs.python.org/file19850/env-python3.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___

[issue7982] extend captured_output to simulate different stdout.encoding

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- keywords: +easy stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7982 ___ ___

[issue7982] extend captured_output to simulate different stdout.encoding

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7982 ___ ___ Python-bugs-list

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: -#!/usr/bin/env python +#!/usr/bin/env python3 # -*- coding: UTF-8 -*- Not strictly related to this issue, but do we want to recommend redundant encoding cookie in the docs? --

[issue10318] make altinstall installs many files with incorrect shebangs

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Good call. +1 on removing them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10318 ___ ___

[issue10558] non-standard processing of several configure options ignores =no

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I'm attaching the patch for py3k branch. A part of this patch could be applied also in 2.7 and 3.1 branches. -- keywords: +patch Added file: http://bugs.python.org/file19851/python-3.2-issue10558.patch

[issue10558] non-standard processing of several configure options ignores =no

2010-11-27 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10558 ___ ___

[issue10558] non-standard processing of several configure options ignores =no

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: 2.7 branch: --with-system-expat and --with-system-ffi 3.1 branch: --with-system-ffi -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10558

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: All tests pass on my Debian. (I suggest removing the unnecessary backslash before committing.) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299

[issue6454] Add example keyword argument to optparse constructor

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This may be interesting for argparse too. -- nosy: +bethard, eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6454 ___

[issue1513299] Clean up usage of map() in the stdlib

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1513299 ___ ___

[issue1043706] External storage protocol for large email messages

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1043706 ___ ___

[issue10555] AIX 5.3 - GCC - Python 2.7 Shared Library Support - Fatal Python error: Interpreter not initialized (version mismatch?)

2010-11-27 Thread Anurag Chourasia
Anurag Chourasia anurag.choura...@gmail.com added the comment: Hi Stefen, I looked at http://bugs.python.org/issue941346 and I believe it might help my case, but, the changes made against that issue are not clear to me. It appears that for Python 2.7, the changes were made in the following 5

[issue10557] Malformed error message from float()

2010-11-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I think float() should support non-ascii digits but I agree that it would be better to avoid UnicodeErrors and convert them to ValueErrors so that float('١٢٣٤.٥٦') 1234.56 and float('½') Traceback (most recent call last): File stdin,

[issue9028] test_support.run_unittest cmdline options and arguments

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Closing again, following Michael’s comment. Re: run_unittest, it’s a very small function mostly obsolete now, I don’t think there are compat rules. Just don’t use it. -- nosy: +eric.araujo status: open - closed

[issue9234] argparse: aliases for positional arguments (subparsers)

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: It seems to me that this alias functionality should be integrated into the subparsers code, not another action. Guidelines for patches are at http://www.python.org/dev/patches/ Thanks in advance. (Complementary idea for another bug report:

[issue8841] GetoptError strings should be localized

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do you want to provide a patch? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8841 ___

[issue10555] AIX 5.3 - GCC - Python 2.7 Shared Library Support - Fatal Python error: Interpreter not initialized (version mismatch?)

2010-11-27 Thread Anurag Chourasia
Anurag Chourasia anurag.choura...@gmail.com added the comment: Just received a message from Benjamin Peterson informing the release of 2.7.1. I will now download that tar ball and it should have sebastian's changes as well. I will update the results of my build process shortly. --

[issue8040] It would be nice if documentation pages linked to other versions of the same document

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8040 ___ ___ Python-bugs-list

[issue5877] Add a function for updating URL query parameters

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5877 ___ ___ Python-bugs-list

[issue5863] bz2.BZ2File should accept other file-like objects.

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Do you want to work on patch? -- components: +Extension Modules -IO, Library (Lib) nosy: +eric.araujo stage: unit test needed - needs patch ___ Python tracker rep...@bugs.python.org

[issue8214] Add exception logging function to syslog module

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8214 ___ ___ Python-bugs-list

[issue7796] No way to find out if an object is an instance of a namedtuple

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Enhance Object/structseq.c to match namedtuple and tuple api ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7796 ___

[issue964437] idle help is modal

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Making the help window non-modal sounds like a great change to me. -- nosy: +eric.araujo versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue964437

[issue4613] Can't figure out where SyntaxError: can not delete variable 'x' referenced in nested scope us coming from in python shows no traceback

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4613 ___

[issue4343] New function in Tkinter.py: setup_master

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - gpolo keywords: +needs review stage: - commit review type: - feature request versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker rep...@bugs.python.org

[issue5043] get_msvcr() returns None rather than []

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you explain what the bug is? Thanks in advance. -- assignee: - eric.araujo components: +Distutils, Distutils2 -Build nosy: +eric.araujo versions: +3rd party, Python 3.1, Python 3.2 ___ Python

[issue5209] nntplib needs updating to RFC 3977

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +jelie, pitrou versions: +Python 3.2 -Python 3.0 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5209 ___

[issue4214] no extension debug info with msvc9compiler.py

2010-11-27 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: What are pdb files, by the way? -- components: +Distutils2 nosy: +eric.araujo versions: +3rd party, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker rep...@bugs.python.org

[issue10557] Malformed error message from float()

2010-11-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: FWIW the UnicodeError comes from PyUnicode_EncodeDecimal (unicodeobject.c:6212) and the ValueError: could not convert string to float with the buggy � comes from PyOS_string_to_double (pystrtod.c:316). Maybe PyOS_string_to_double should

[issue6887] executables in lib use /usr/bin/env python, not python3

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - make altinstall installs many files with incorrect shebangs ___ Python tracker

[issue9264] trace.py documentation is incomplete

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: terry.reedy - eric.araujo status: open - pending versions: +Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
New submission from Éric Araujo mer...@netwok.org: From the docs@ mailing list: “Tutorial 2.1.1: name 'sys' is not defined When the student tells python to evaluate sys.argv[0] as described, she gets the following error: name 'sys' is not defined” Imports have not been introduced yet, so I

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +d...@python ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10559 ___ ___ Python-bugs-list

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: What about In order to use ``sys.argv`` you have to import the :mod:`sys` module doing ``import sys``.. reference sounds weird to me, and imho saying import the module is ok even if imports have not been introduced yet. If the user doesn't

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Ron Adam
Ron Adam ron_a...@users.sourceforge.net added the comment: Thanks for the review and style edits Éric. I think it's a much better patch with the changes and suggestions from you, Nick, and Alexander. I'll check my white space settings. Thanks for noticing it. As Nick points out, parts of

[issue9299] os.makedirs(): Add a keyword argument to suppress File exists exception

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: \ at end of os.py addition -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9299 ___ ___

[issue5043] get_msvcr() returns None rather than []

2010-11-27 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: i'm really sorry, eric, but the decision to ban me from interacting with python developers for 18 months+ has left me with zero working knowledge of many of these complex issues which i was heavily and actively involved in at the

<    1   2