[issue4279] Module 'parser' fails to build

2008-11-26 Thread Yaakov (Cygwin Ports)
Yaakov (Cygwin Ports) [EMAIL PROTECTED] added the comment: Attempting to export and use Py_meta_grammar() gives me a broken module, based on the results of test/test_parser.py. This patch, which exports _PyParser_Grammar, is very simple and the test passes. I will gladly take guidance on this

[issue4433] _ctypes.COMError crash

2008-11-26 Thread Thomas Heller
New submission from Thomas Heller [EMAIL PROTECTED]: The following code, which only works on Windows, crashes with an access violation somewhere in the garbage collector in a debug build: import _ctypes [43470 refs] _ctypes.COMError(1, 2, 3) The problem is that the PyComError_Type's tp_flags

[issue4429] ctypes.FormatError raises when the string to return contains non-ascii characters

2008-11-26 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Thanks for the review. I commited the 'better' patch plus a NEWS entry as svn rev. 67391. -- resolution: - fixed status: open - closed type: - crash ___ Python tracker [EMAIL PROTECTED]

[issue4426] UTF7 decoding is far too strict

2008-11-26 Thread Marc-Andre Lemburg
Marc-Andre Lemburg [EMAIL PROTECTED] added the comment: On 2008-11-25 19:56, Nick Barnes wrote: Nick Barnes [EMAIL PROTECTED] added the comment: Well, I could submit a diff for unicodeobject.c, but I have never contributed to Python (or used this particular tracking system) before. Is

[issue4434] Embedding into a shared library fails

2008-11-26 Thread rb
New submission from rb [EMAIL PROTECTED]: Python cannot be embedded in shared library due to dependency problems with lib-dynload. I am implementing a shared library (in C) that implements a specific API as a dynamically loadable plugin to an application. To implement this library, I am calling

[issue4434] Embedding into a shared library fails

2008-11-26 Thread rb
Changes by rb [EMAIL PROTECTED]: Added file: http://bugs.python.org/file12135/myprog.c ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4434 ___ ___

[issue4435] Sphinx does not show failed doctests in quiet mode

2008-11-26 Thread Robert Schuppenies
New submission from Robert Schuppenies [EMAIL PROTECTED]: Sphinx does not show failed doctests when run in quiet mode. Any output from the tests seems to be suppressed. The same applies to the linkckeck builder. -- assignee: georg.brandl components: Documentation tools (Sphinx)

[issue4279] Module 'parser' fails to build

2008-11-26 Thread Yaakov (Cygwin Ports)
Changes by Yaakov (Cygwin Ports) [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file12132/3.0rc3-parsermodule.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4279 ___

[issue4436] Sphinx latex writer crashes when encountering deep section levels

2008-11-26 Thread Robert Schuppenies
New submission from Robert Schuppenies [EMAIL PROTECTED]: The Sphinx latex writer crashes if a documentation has more than 7 levels in a section hierarchy. The LaTeXTranslator class defines 7 section names, each corresponding to a level. If a deeper level is encountered, no appropriate section

[issue4437] Windows 32-bit installer crash on cancel in advanced settings

2008-11-26 Thread Francois Grieu
New submission from Francois Grieu [EMAIL PROTECTED]: On an Windows XP 32-bit system without Python installed - launch python-2.6.msi (md5 6c62c123d248a48dccbaa4d3edc12680) - click next next advanced cancel yes - msiexex.exe crashes (repeatable). Installation works fine if one do not press

[issue2090] __import__ with fromlist=[''] causes double initialization of modules

2008-11-26 Thread Mart Sõmermaa
Mart Sõmermaa [EMAIL PROTECTED] added the comment: Just for reference, the simplest workaround is to use: modname = foo.bar.baz.baq mod = __import__(modname, {}, {}, [modname.rsplit(., 1)[-1]]) -- nosy: +mrts ___ Python tracker [EMAIL PROTECTED]

[issue2090] __import__ with fromlist=[''] causes double initialization of modules

2008-11-26 Thread Mart Sõmermaa
Mart Sõmermaa [EMAIL PROTECTED] added the comment: See also http://bugs.python.org/issue4438 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2090 ___ ___

[issue2491] io.open() handles errors differently on different platforms

2008-11-26 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc [EMAIL PROTECTED]: -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2491 ___

[issue4437] Windows 32-bit installer crash on cancel in advanced settings

2008-11-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Already corrected with issue4289. -- nosy: +amaury.forgeotdarc resolution: - duplicate status: open - closed superseder: - Python 2.6 installer crashes when selecting 'advanced' and cancelling it

[issue4434] Embedding into a shared library fails

2008-11-26 Thread John Levon
Changes by John Levon [EMAIL PROTECTED]: -- nosy: +movement ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4434 ___ ___ Python-bugs-list mailing list

[issue4439] Typo in sqlite3 documentation.

2008-11-26 Thread olt
New submission from olt [EMAIL PROTECTED]: There is a small typo in the possible Connection.isolation_level http://docs.python.org/library/sqlite3.html#connection-objects Its EXCLUSIVE not EXLUSIVE. -- components: Distutils messages: 76465 nosy: olt severity: normal status: open title:

[issue4439] Typo in sqlite3 documentation.

2008-11-26 Thread olt
Changes by olt [EMAIL PROTECTED]: -- assignee: - georg.brandl components: +Documentation -Distutils nosy: +georg.brandl ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4439 ___

[issue4402] os.getenv('PATH') return different result between 2.5 and 3.0rc3

2008-11-26 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: (Clive's message was entirely in the HTML unnamed attachement) Clive said: My python2.5 is from ActiveState, and python3.0 is the official. Great. But -- didn't you get the same behavior *before* installing python 3.0? when python2.5

[issue4366] cannot find -lpythonX.X when buinding Python on FreeBSD

2008-11-26 Thread Akira Kitada
Akira Kitada [EMAIL PROTECTED] added the comment: Martin, Two questions: 1. Isn't Christian's patch enough for this? 2. How about Python 3.0 and 2.6.1? Are they also out of scope for this? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4366

[issue4438] Add an easy way to __import___ submodules

2008-11-26 Thread Mart Sõmermaa
Mart Sõmermaa [EMAIL PROTECTED] added the comment: Attached is a naive proof-of-concept implementation (that breaks things, i.e. the real implementation should strive for better general compatibility), but works as expected: __import__('imprt.foo.foo', submodule=True) module 'imprt.foo.foo'

[issue4440] sort command doesn't work in pstats if run interactively

2008-11-26 Thread Marcin Bachry
New submission from Marcin Bachry [EMAIL PROTECTED]: Sort command in Python's 3.0 pstats doesn't accept any valid argument and views help all the time: $ python3.0 -m pstats pstats Welcome to the profile statistics browser. % sort cumulative Valid sort keys (unique prefixes are accepted):

[issue4438] Add an easy way to __import___ submodules

2008-11-26 Thread Mart Sõmermaa
New submission from Mart Sõmermaa [EMAIL PROTECTED]: The need to dynamically import module foo given a module name string 'bar.baz.foo' is quite common. Quite often, the hack described in http://bugs.python.org/issue2090 is used (see e.g. the Google code results linked from the issue). Quoting

[issue1772794] Telnetlib dosn't accept u'only ascii'

2008-11-26 Thread sebek
sebek [EMAIL PROTECTED] added the comment: I wonder if it is the same problem as bug #3725. In this case it has been fixed in r66904 where telnetlib knows only understand bytes instead of characters. see http://bugs.python.org/issue3725 -- nosy: +sebek

[issue4438] Add an easy way to __import___ submodules

2008-11-26 Thread Mart Sõmermaa
Mart Sõmermaa [EMAIL PROTECTED] added the comment: Just a note that `make test` passes: 322 tests OK. 38 tests skipped: test_aepack test_al test_applesingle test_bsddb test_bsddb185 test_bsddb3 test_cd test_cl test_codecmaps_cn test_codecmaps_hk test_codecmaps_jp test_codecmaps_kr

[issue4329] base64 does not properly handle unicode strings

2008-11-26 Thread Terry J. Reedy
Terry J. Reedy [EMAIL PROTECTED] added the comment: 2.6 is, as far as I know, intended to be backwards compatible except for where it fixes bugs. Upgrading to 2.6 does (should) not change strings (type str) to unicode. Only importing the appropriate __future__ or upgrading to 3.0 will do that.

[issue4433] _ctypes.COMError crash

2008-11-26 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok. Looks good. -- keywords: -needs review nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4433 ___

[issue3020] doctest should have lib2to3 integration

2008-11-26 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: collinwinter - priority: - low ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3020 ___

[issue4441] Improve os open flag options doc

2008-11-26 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: os module doc, File Descriptor Operations, at end. Suggestions: 1. Replace The following data items are available for use in constructing the flags parameter to the open() function. with The following data items are options for the flag

[issue4329] base64 does not properly handle unicode strings

2008-11-26 Thread Michael Becker
Michael Becker [EMAIL PROTECTED] added the comment: Terry, I had a feeling Django had something to do with this. I'll have a closer look there. For reference, in my django code, I did not explicitly declare the string as a unicode string. Django must be importing unicode_literals from __future__

[issue4442] datetime not subclassable in the usual way

2008-11-26 Thread Chris Withers
New submission from Chris Withers [EMAIL PROTECTED]: from datetime import datetime class defaultdatetime(datetime): ... defaults=(2001,1,1) ... def __init__(self,*args): ... if not args: ... args = self.defaults ... datetime.__init__(self,*args) ... defaultdatetime()

[issue4442] datetime not subclassable in the usual way

2008-11-26 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: This is because datetime does all its initialization in __new__ instead of __init__. -- nosy: +benjamin.peterson priority: - normal type: - feature request versions: +Python 2.7, Python 3.1 -Python 2.5

[issue4423] 2to3 replaces arbitrary variables

2008-11-26 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Wed, Nov 26, 2008 at 12:45 AM, Martin v. Löwis [EMAIL PROTECTED] wrote: Martin v. Löwis [EMAIL PROTECTED] added the comment: This is true of many fixers. What is the use case? In this case, I wanted to work around the fixer working

[issue4442] datetime not subclassable in the usual way

2008-11-26 Thread Chris Withers
Chris Withers [EMAIL PROTECTED] added the comment: But that isn't documented anywhere... -- assignee: - georg.brandl components: +Documentation nosy: +georg.brandl type: feature request - ___ Python tracker [EMAIL PROTECTED]

[issue4434] Embedding into a shared library fails

2008-11-26 Thread Ralf Schmitt
Ralf Schmitt [EMAIL PROTECTED] added the comment: ubuntu comes with a static libpython.a which you can also link against. Linking the c modules against the shared python library would make that static library pretty much useless... -- nosy: +schmir

[issue4366] cannot find -lpythonX.X when buinding Python on FreeBSD

2008-11-26 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: 1. Isn't Christian's patch enough for this? No. It should be dealt with in the same way as on Linux (or the Linux way should be changed). 2. How about Python 3.0 and 2.6.1? Are they also out of scope for this? Not yet, no. However, they

[issue4433] _ctypes.COMError crash

2008-11-26 Thread Thomas Heller
Thomas Heller [EMAIL PROTECTED] added the comment: Thanks for the review; committed as svn rev. 67402. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4433

[issue4423] 2to3 replaces arbitrary variables

2008-11-26 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I wonder if a better way would be to configure the imports fixer through the options dict passed to RefactoringTool. i.e. RefactoringTool(..., {fix_imports:dont_transform : [commands, other_module]}) That's very obscure, IMO. I didn't

[issue4423] 2to3 replaces arbitrary variables

2008-11-26 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Ok. The building of the pattern in fix_imports is changed to compile_pattern in r67404. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4423 ___

[issue4443] Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' has failed

2008-11-26 Thread LuisC
New submission from LuisC [EMAIL PROTECTED]: The project goal is to incorporate the functionality of interaction of the excel application (gnumeric) with the XO's journal. All the activities needs to register any change in that datastore (save and open files are made throw it). In order to

[issue4443] Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' has failed

2008-11-26 Thread Brett Cannon
Brett Cannon [EMAIL PROTECTED] added the comment: Is this an actual bug report or more of a request for help? If it is the former then a test case is needed in order to help figure out what is going on. If it is the latter you should ask on comp.lang.python/python-list.

[issue4443] Python/pystate.c:561 :PyGILState: The assertion 'autoInterpreterState' has failed

2008-11-26 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- nosy: -benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4443 ___ ___

Re: [issue4336] Fix performance issues in xmlrpclib

2008-11-26 Thread Jeremy Hylton
I think we're making progress, but I'm still not sure about the new httplib api. My current worry is that endheaders() behaves very differently when send_data is false. My chief concern is that the __state variable is going to indicate that the request has been sent when we're really depending

[issue1755388] Problem with socket.gethostbyaddr() and KeyboardInterrupt

2008-11-26 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: Yes, I know it's a bug, and certainly closing this report won't help solve it. I can't reopen this. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1755388