[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Ezio Melotti
Ezio Melotti 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 codepoints[1]; 3) if

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky 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 somewhat inefficient code for "by co

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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 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 changes. issue_2001_g.d

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : Added file: http://bugs.python.org/file19847/issue_2001_g.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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 __

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

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo versions: -Python 2.6 ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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

[issue9281] Race condition with mkdir/makedirs in distutils2

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

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

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy 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 _

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

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I want to eliminate ABI flags in file names. -- ___ Python tracker ___ ___ Pyt

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Nick Coghlan
Nick Coghlan 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 case, I would move the

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

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue3243] Support iterable bodies in httplib

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy resolution: accepted -> stage: patch review -> needs patch ___ Python tracker ___ ___ Pyth

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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 ___

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

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: Hello Filip. Could you give us a status update on this patch? -- ___ Python tracker ___ ___ Python-bug

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-11-27 Thread Éric Araujo
Éric Araujo 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 __

[issue9281] Race condition with mkdir/makedirs in distutils2

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: I suggest to backport only makedirs() function. -- ___ Python tracker ___ ___ P

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

2010-11-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: r86844 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue3243] Support iterable bodies in httplib

2010-11-27 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: jhylton -> orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 added the comment: Hey Matt, can you give us a status update? -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[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 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 later? ExEx? For

[issue10557] Malformed error message from float()

2010-11-27 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : >>> float('½') Traceback (most recent call last): File "", line 1, in ValueError: could not convert string to float: � >>> float('42½') Traceback (most recent call last): File "", line 1, in ValueError With the attached patch, float-error.diff

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

2010-11-27 Thread Ned Deily
New submission from Ned Deily : [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 --enable-loadable-sqlite-extensions=yes, contrary

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

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> ncoghlan versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9584] Allow curly brace expansion

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: Latest patch looks good. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9709] test_distutils warning: initfunc exported twice on Windows

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: I don’t think we can remove a method. Can you make a patch with your other suggestion? Thanks. -- ___ Python tracker ___ ___

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

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy 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 I copied os.py an

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-27 Thread Éric Araujo
Éric Araujo 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 : -- keywords: +patch Added file: http://bugs.python.org/file19850/env-python3.diff ___ Python tracker ___ ___

[issue7982] extend captured_output to simulate different stdout.encoding

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- keywords: +easy stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue7982] extend captured_output to simulate different stdout.encoding

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky 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? -- ___ Python tracker

[issue10318] "make altinstall" installs many files with incorrect shebangs

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: Good call. +1 on removing them. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

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

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis 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 : -- stage: needs patch -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

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

2010-11-27 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: 2.7 branch: --with-system-expat and --with-system-ffi 3.1 branch: --with-system-ffi -- ___ Python tracker ___

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

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: All tests pass on my Debian. (I suggest removing the unnecessary backslash before committing.) -- ___ Python tracker ___ _

[issue6454] Add "example" keyword argument to optparse constructor

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: This may be interesting for argparse too. -- nosy: +bethard, eric.araujo ___ Python tracker ___ ___ Pyt

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

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1043706] External storage protocol for large email messages

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo -BreamoreBoy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[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 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 files 1. configure.in 2.

[issue10557] Malformed error message from float()

2010-11-27 Thread Ezio Melotti
Ezio Melotti 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 "", line 1, in ValueEr

[issue9028] test_support.run_unittest cmdline options and arguments

2010-11-27 Thread Éric Araujo
Éric Araujo 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 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: Automatically recogn

[issue8841] GetoptError strings should be localized

2010-11-27 Thread Éric Araujo
Éric Araujo added the comment: Do you want to provide a patch? -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list maili

[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 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 : -- nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue5877] Add a function for updating URL query parameters

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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 ___

[issue8214] Add exception logging function to syslog module

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[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 : -- dependencies: +Enhance Object/structseq.c to match namedtuple and tuple api ___ Python tracker ___ ___ Pyth

[issue964437] idle help is modal

2010-11-27 Thread Éric Araujo
Éric Araujo 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 ___ ___

[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 : -- nosy: +eric.araujo versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6, Python 3.0 ___ Python tracker ___ ___

[issue4343] New function in Tkinter.py: setup_master

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> gpolo keywords: +needs review stage: -> commit review type: -> feature request versions: +Python 3.2 -Python 2.7, Python 3.1 ___ Python tracker ___

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

2010-11-27 Thread Éric Araujo
Éric Araujo 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 tracker

[issue5209] nntplib needs updating to RFC 3977

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +jelie, pitrou versions: +Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list mailing

[issue4214] no extension debug info with msvc9compiler.py

2010-11-27 Thread Éric Araujo
Éric Araujo 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 _

[issue10557] Malformed error message from float()

2010-11-27 Thread Ezio Melotti
Ezio Melotti 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 be fixed to display t

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

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- 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 : -- assignee: terry.reedy -> eric.araujo status: open -> pending versions: +Python 3.1 ___ Python tracker ___ _

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
New submission from Éric Araujo : >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 propose this simpl

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue10559] NameError in tutorial/interpreter

2010-11-27 Thread Ezio Melotti
Ezio Melotti 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 understand what

[issue2001] Pydoc interactive browsing enhancement

2010-11-27 Thread Ron Adam
Ron Adam 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 the patch was written with the i

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

2010-11-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: \ at end of os.py addition -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

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

2010-11-27 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton 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 time, and could

<    1   2