[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

[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:

[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

[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

[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 É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

[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 ___ _

[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

[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

[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 _

[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

[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

[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 ___

[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 ___ ___

[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 ___ ___

[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

[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

[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 ___

[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

[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

[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. -- _

[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

[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

[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 ___

[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

[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.

[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

[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

[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

[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 ___ _

[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 ___

[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: 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

[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

[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

[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

[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

[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 ___ ___

[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 _

[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

[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 ___ ___

[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

[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

[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

[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

[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

[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

[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. --

[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 Benjamin Peterson
Benjamin Peterson added the comment: r86844 -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[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

[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 __

[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

[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 ___

[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

[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

[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

[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

[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 _

[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 ___

[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

[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

[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 __

[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

[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

[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 __

[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

[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

[issue10500] Palevo.DZ worm msix86 installer 3.x installer

2010-11-27 Thread Vil
Vil added the comment: http://www.python.org/ftp/python/3.1.2/python-3.1.2.msi it was this link on download page for msi windows x86 installer On Tue, Nov 23, 2010 at 6:03 AM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > What file specifically did you download? > > ---

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the > iterator protocol is being used. You can't use the iterator protocol on a non-PyObject, and Py_UNICODE_* (as opposed to PyUnicode_*) suggests the macro operates on a raw array of code points.

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Raymond Hettinger
Raymond Hettinger added the comment: I suggest Py_UNICODE_ADVANCE() to avoid false suggestion that the iterator protocol is being used. -- ___ Python tracker ___ __

[issue7663] narrow build incorrectly translates cases for non-BMP code points

2010-11-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- title: UCS4 build incorrectly translates cases for non-BMP code points -> narrow build incorrectly translates cases for non-BMP code points ___ Python tracker __

[issue10556] test_zipimport_support mucks up with modules

2010-11-27 Thread Antoine Pitrou
New submission from Antoine Pitrou : This test failure is due to test_zipimport_support loading and unloading modules, which leads to them being reloaded. Then the ssl.CertificateError which is checked for by assertRaises isn't the same as the one raised by the module under test (I have printe

[issue10551] mimetypes read from the registry should not overwrite standard mime mappings

2010-11-27 Thread Kovid Goyal
Kovid Goyal added the comment: I apologize for the multiple issue in the ticket. To my mind they were all basically one issue, stemming from the decision to read mimetypes from the registry. Since there are other tickets for the first two issues, I'll change the summary for this issue to ref

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 27, 2010 at 5:41 PM, Ezio Melotti wrote: > > Ezio Melotti added the comment: > >> * the Py_UNICODE_JOIN_SURROGATES() macro should use Py_UCS4 as prefix since >> it returns Py_UCS4 values, i.e. Py_UCS4_JOIN_SURROGATES() >> * same for the Py_U

[issue10551] mimetypes reading from registry in windows completely broken

2010-11-27 Thread Ned Deily
Ned Deily added the comment: (Sorry, I skipped over the third: this is one reason why one should not include multiple problems in one tracker issue.) As to your third point, a quick search of "mimetypes" in the bugtracker shows that looking in the Windows registry for mimetypes was a new feat

[issue10552] Tools/unicode/gencodec.py error

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Please ignore Makefile changes in the patch. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue10552] Tools/unicode/gencodec.py error

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Attached patch uses MISSING_CODE as Mark suggested. There are still errors apparently because parsecodes() may return either an int or a tuple. I think only mac encodings are affected, so I would like to commit the current patch before tackling this i

[issue10518] Bring back callable()

2010-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > ABCs are still the exception in Python, and duck typing is still the > rule. > > Then why do we callable again? Because the way __call__ is looked up means hasattr(x, "__call__") is not the right answer. Otherwise there would be no point in bringing it bac

[issue10551] mimetypes reading from registry in windows completely broken

2010-11-27 Thread Kovid Goyal
Kovid Goyal added the comment: And what about the third issue? Allow me to elaborate: mimetypes are a relatively standard set of mappings from well known file extensions to MIME descriptors. Reading mimetype mappings from the registry, a location that is writable to by random programs the

[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost
SilentGhost added the comment: > ABCs are still the exception in Python, and duck typing is still the rule. Then why do we callable again? Don't worry, I'll deal with it. It's not like this whole discussion mattered. -- ___ Python tracker

[issue10518] Bring back callable()

2010-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > yes, my problem is that callable was removed and a way was shown how > to do this check. The way which is consistent with the check for any > other type (ABC). ABCs are still the exception in Python, and duck typing is still the rule. > I don't like that we'

[issue10547] FreeBSD: wrong value for LDSHARED in sysconfig

2010-11-27 Thread Stefan Krah
Stefan Krah added the comment: Upgrading to critical, since I just verified that C extensions in general don't build on FreeBSD due to this issue. Sorry for bringing this up on the release day, it's a coincidence that I discovered it today... -- priority: normal -> critical __

[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost
SilentGhost added the comment: yes, my problem is that callable was removed and a way was shown how to do this check. The way which is consistent with the check for any other type (ABC). Now out of the blue, w/o any justification this way is going to be ignored, because "ah, sure. I can't be

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Ezio Melotti
Ezio Melotti added the comment: > * the Py_UNICODE_JOIN_SURROGATES() macro should use Py_UCS4 as prefix since > it returns Py_UCS4 values, i.e. Py_UCS4_JOIN_SURROGATES() > * same for the Py_UNICODE_NEXT() macro, i.e. Py_UCS4_NEXT() I'm not so familiar with the prefix conventions, but wouldn't

[issue10518] Bring back callable()

2010-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I thought that moratorium meant Guido dis/approval is not applicable to the > 3.2 Guido can decide of everything: PEPs, etc. That's what "BDFL" means. So he can also decide of exceptions to the rules he decided on. (rules can have exception in any reasonable

[issue10518] Bring back callable()

2010-11-27 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/11/27 SilentGhost : > > SilentGhost added the comment: > > I thought that moratorium meant Guido dis/approval is not applicable to the > 3.2 > > Another listed change was help ease adoption of py3k. How's that helping? By causing one less discontinuit

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

2010-11-27 Thread Stefan Krah
Stefan Krah added the comment: Anurag, could you check out #941346 and see if there is anything that might help? I think this is AIX specific. -- nosy: +sable ___ Python tracker ___

[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost
SilentGhost added the comment: I thought that moratorium meant Guido dis/approval is not applicable to the 3.2 Another listed change was help ease adoption of py3k. How's that helping? -- ___ Python tracker _

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Eric Smith
Eric Smith added the comment: > The idea is that the first part refers to what the macro > returns (Py_UCS4) and the "read" part of the name refers > to moving a pointer across an array (any array of integers). I thought the first part generally meant the type of the first parameter. Although

[issue10518] Bring back callable()

2010-11-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Le samedi 27 novembre 2010 à 22:23 +, SilentGhost a écrit : > SilentGhost added the comment: > > I thought PEP 3003 was quite unambiguous: The stated goal of the moratorium is to make it easier for alternate implementations to catch up with the current la

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg > wrote: > .. >> * same for the Py_UNICODE_NEXT() macro, i.e. Py_UCS4_NEXT() >> >> * in order to make the macro easier to un

[issue10518] Bring back callable()

2010-11-27 Thread SilentGhost
SilentGhost added the comment: I thought PEP 3003 was quite unambiguous: >This PEP proposes a temporary moratorium (suspension) of **all changes** to >the Python language syntax, semantics, and built-ins for a period of at least >two years from the release of Python 3.1. In particular, the mo

[issue7663] UCS4 build incorrectly translates cases for non-BMP code points

2010-11-27 Thread Ezio Melotti
Ezio Melotti added the comment: This is not yet fixed but will be addressed in #10521 and #10542. -- ___ Python tracker ___ ___ Python

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg wrote: .. >  * same for the Py_UNICODE_NEXT() macro, i.e. Py_UCS4_NEXT() > >  * in order to make the macro easier to understand, please rename it to > Py_UCS4_READ_CODE_POINT(); that's a little more typ

[issue10552] Tools/unicode/gencodec.py error

2010-11-27 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Sat, Nov 27, 2010 at 5:03 PM, Marc-Andre Lemburg wrote: .. [I'll respond to skipped when I update the patch] > In any case, we should clearly document where these macros are used and > warn about the implications of using them in the wrong places. It

[issue10550] Windows: leak in test_concurrent_futures

2010-11-27 Thread Stefan Krah
Stefan Krah added the comment: Committed posixmodule_listdir.patch in r86843. Unfortunately this is unrelated to the test_concurrent_futures leak. -- ___ Python tracker ___

[issue10552] Tools/unicode/gencodec.py error

2010-11-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Alexander Belopolsky wrote: > > Alexander Belopolsky added the comment: > > Attached patch addresses the issue by using -1 instead of None for missing > codes. Comparison of generated encoding files to those in Lib/encodings > shows only whitespace cha

[issue10542] Py_UNICODE_NEXT and other macros for surrogates

2010-11-27 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: I like the idea and thanks for putting work into this. Some comments: * when using macro variables, always put the variables in parens in the expansion; this avoids precedence issues, weird syntax errors, etc. - even if it may not be necessary * a f

  1   2   >