[issue9420] gdbm with /usr/include/ndbm.h

2010-07-29 Thread Peter Häring
Changes by Peter Häring : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Leonhard Vogt
Changes by Leonhard Vogt : Removed file: http://bugs.python.org/file18223/functions.rst.patch4.txt ___ Python tracker ___ ___ Python-bugs-list

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Leonhard Vogt
Leonhard Vogt added the comment: Thank you Georg, I updated the patch Ezio, wouldn't start=0 in the signature imply that sum accepted a keyword argument? I read "Documenting Python" (4.3) but am not sure about the distinction of default values or keyword arbuments. >>> sum([1,2,3], start=

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Łukasz Langa
Łukasz Langa added the comment: The oldest interfaces tend to have quirks like that. Similar issue: #9379. Won't be changed as well. I'm thinking of a better docstring though. -- nosy: +lukasz.langa ___ Python tracker

[issue9416] complex formatting incorrectly omits a negative zero real part

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Well, that's a separate issue, so should have its own feature request. The main difficulty is that Python has no notion of a 'pure imaginary' type: one would have to implement such a type to get this behaviour. C99 defines the _Imaginary types for exactly th

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-07-29 Thread David Watson
David Watson added the comment: "Leaving IDNA ASCII-compatible encodings in ASCII form" is just preserving the existing behaviour (not doing IDNA decoding). See http://tools.ietf.org/html/rfc3490 and the docs for codecs -> encodings.idna ("xn--lzg" in the example is the ASCII-compatible enc

[issue9421] configparser.ConfigParser's getint, getboolean and getfloat don't accept `vars`

2010-07-29 Thread Łukasz Langa
New submission from Łukasz Langa : ConfigParser (and in effect SafeConfigParser) accept `vars` in the `get()` method so one can override values from the section, merge data from different sources or simply state some required keys for interpolation. `getint()`, `getfloat()` and `getboolean()`

[issue9355] argparse add_mutually_exclusive_group more than once has incorrectly formatted help

2010-07-29 Thread Drake Dowsett
Drake Dowsett added the comment: Problem is `inserts' dictionary is overwriting previous closing bracket, so checking for existing value and then appending if found. -- keywords: +patch nosy: +ddowsett versions: +Python 2.6 Added file: http://bugs.python.org/file18260/argparse.diff __

[issue5262] PythonLauncher considered harmfull

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Kevin: what's your opinion on changing PythonLauncher to check if it is the default action for opening python files and warning about that? What about refusing to run when Python Launcher is the default action for python files? Users would still be able to

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Interesting. Here is a case for disabling GC: We intentionally disable GC in Eve-online, because of the unpredictable lag spikes it produces. In a server application with gigabytes of python objects, GC can cause hickups of some seconds, which is

[issue9214] Most Set methods of KeysView and ItemsView do not work right

2010-07-29 Thread Daniel Urban
Daniel Urban added the comment: The patch applies cleanly to the py3k branch (r83238). The unittests pass. The code looks good to me (it does exactly what was described as the solution). There are some trailing whitespace on some lines, that will need to be deleted. -- nosy: +durban

[issue901727] extra_path kwarg to setup() undocumented

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: I've attached a documentation patch for this (for py3k) -- keywords: +needs review, patch Added file: http://bugs.python.org/file18261/apiref.patch ___ Python tracker __

[issue5154] OSX broken poll testing doesn't work

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: Time to try to get this going again... What exactly is wrong with poll on OSX? Both the configure test and the runtime test for poll behavior work as designed. According to the first message there are other problems with poll on OSX, but without a clear d

[issue5154] OSX broken poll testing doesn't work

2010-07-29 Thread James Y Knight
James Y Knight added the comment: The reason it's a problem is because a "device" is everything other than a socket, pipe, slave-side of tty, or file. That is, /dev/null, /dev/zero, /dev/tty, psuedo-tty masters from openpty (e.g. for running subprocesses), etc. I find it quite amazing that th

[issue4841] io's close() not handling errors correctly

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: Might as well close as nobody appears interested. -- status: open -> pending ___ Python tracker ___ _

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Winston451
New submission from Winston451 : The s_init function of the _struct.c file does not free the s_codes field before storing a new address into it. So when a Struct object is reinitialized the memory block pointed to by s_codes is lost. The file attached with the bug report shows a code which rep

[issue2744] Fix test_cProfile

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: Nobody has responded to msg109475 so I'll close unless there are any objections. -- priority: high -> normal status: open -> pending ___ Python tracker _

[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: As no response to msg109476 I'll close unless anyone objects. -- priority: high -> normal status: open -> pending ___ Python tracker ___

[issue3401] wsgiref can't handle unicode environments

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: As nobody has responded to msg109622 I'll close unless anyone objects. -- priority: high -> normal status: open -> pending ___ Python tracker ___

[issue2744] Fix test_cProfile

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: > I'll close unless there are any objections. Yes, I object! :) If there's still a bug present, it seems inappropriate to close this issue. So as a first step, someone needs to look at this closely to determine whether there *is* still a problem that needs

[issue9385] _ctypes module uses 'rwx' mmap() calls

2010-07-29 Thread Radoslaw Madej
Radoslaw Madej added the comment: Arfrever, do you mean this patch? http://bugs.python.org/file13897/issue5504-linux.patch It does not cleanly apply to Gentoo's 2.6.5-r3 ebuild, neither it does apply to 2.6.5, 2.7 or 3.2.1 releases from the Python website. Which python release/branch should i

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2010-07-29 Thread Mark Lawrence
Mark Lawrence added the comment: Changing priority as nobody appears to have lost any sleep over this issue. -- priority: high -> normal ___ Python tracker ___ __

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the report! I'll look into this. Do you happen to have a patch available, or an interest in writing one? -- nosy: +mark.dickinson ___ Python tracker __

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Mark Dickinson
Changes by Mark Dickinson : -- assignee: -> mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Add versions. -- stage: -> needs patch versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker ___ ___

[issue2001] Pydoc interactive browsing enhancement

2010-07-29 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file18160/pydoc_server.diff ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue2001] Pydoc interactive browsing enhancement

2010-07-29 Thread Ron Adam
Changes by Ron Adam : Removed file: http://bugs.python.org/file18163/pydoc_server2.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: For Python functions, all arguments can be keyword arguments. For many builtins, none can be (and maybe there should be a note to that effect at the top of the built-in functions chapter). 'Param = default' merely means that the parameter has a default argume

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Winston451
Winston451 added the comment: Hi Mark, I added a patch in the file list that should correct the bug. -- keywords: +patch Added file: http://bugs.python.org/file18263/leak.patch ___ Python tracker _

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Great! Thank you. I wonder whether the weakreflist field needs to be cleared similarly. -- ___ Python tracker ___

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Łukasz Langa
Łukasz Langa added the comment: > For Python functions, all arguments can be keyword arguments. For many > builtins, none can be (and maybe there should be a note to that effect at the > top of the built-in functions chapter). +1 Many Python users don't really grasp how builtins are differen

[issue2001] Pydoc interactive browsing enhancement

2010-07-29 Thread Ron Adam
Ron Adam added the comment: Link to the discussion on the python-dev new group. Subject: [isssue 2001] Pydoc enhancement patch questions http://permalink.gmane.org/gmane.comp.python.devel/115474 -- ___ Python tracker

[issue7447] Sum() doc and behavior mismatch

2010-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: Please do. This issue comes up often enough on python-list. Make it a separate doc issue, which will be auto-assigned to d...@python and add me as nosy. -- ___ Python tracker

[issue1773632] Remove references to _xmlrpclib from xmlrpclib.py

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Same here. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue9366] Reference leak for local new style class

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: This is caused by the fact that new-style classes create reference cycles. Try calling the cyclic garbage collector using gc.collect() after the function call, and the leaked references will vanish again. -- nosy: +georg.brandl resolution: -> duplicat

[issue3401] wsgiref can't handle unicode environments

2010-07-29 Thread Brian Curtin
Brian Curtin added the comment: Unless this is confirmed to have been fixed, it should not be closed. -- nosy: +brian.curtin status: pending -> open ___ Python tracker ___ __

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Winston451
Winston451 added the comment: I don't think that the weakreflist should be cleared. After all the object is just reinitialized not destructed. -- ___ Python tracker ___

[issue6612] 'import site' fails when called from an unlinked directory

2010-07-29 Thread W. Trevor King
W. Trevor King added the comment: I just fixed it myself ;). As I said before, not really a big deal, but it was an easy fix. I've attached a patch, or you can merge my hg branch f python-trunk at http://www.physics.drexel.edu/~wking/code/hg/hgwebdir.cgi/python/ -- keywords: +pat

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Mark Dickinson
Mark Dickinson added the comment: Yes, you're right of course. Fixed in r83239 (py3k), r83240 (release31-maint), r83241 (release27-maint) and r83242 (release26-maint). Thanks! BTW, just out of curiosity: I don't think I've ever seen anyone re-initialize a struct.Struct object before. What

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Winston451
Winston451 added the comment: I was just looking at the code of the struct when i saw this problem. Personnally I have never had to reinitialize a Struct object but Python allows it so... -- ___ Python tracker __

[issue4377] tokenize.detect_encoding() and Mac newline

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Well, it looks like nobody cares (including me), so I close this issue. -- resolution: -> wont fix status: open -> closed ___ Python tracker __

[issue8129] Wrong arguments in sqlite3.connect() documentation

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I was trying to fix but, but... oh! Georg fixed that 2 weeks ago (r82763). Thank you! -- resolution: -> fixed status: open -> closed ___ Python tracker __

[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I created a new svn branch for my work on import in unicode. I will open a new issue and so I close this one. -- ___ Python tracker ___ ___

[issue8242] Improve support of PEP 383 (surrogates) in Python3: meta-issue

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Remove dependency on #6697 to be able to close this issue. -- dependencies: -Check that _PyUnicode_AsString() result is not NULL resolution: -> invalid status: open -> closed ___ Python tracker

[issue9419] RUNSHARED needs LDFLAGS

2010-07-29 Thread Roumen Petrov
Changes by Roumen Petrov : -- nosy: +rpetrov ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9422] Memory leak when reinitializing a Struct object

2010-07-29 Thread Winston451
Winston451 added the comment: BTW, I am really amazed by your reactivity. I submitted a bug report at 22:33 and one hour later it's fixed. It's really great! Keep up the good work! :) -- ___ Python tracker __

[issue9423] Error in urllib2.do_open(self, http_class, req)

2010-07-29 Thread Lyle Ross
New submission from Lyle Ross : W:\Production Apps\PyLib>python ProxyHTTPConnection.py W:\Production Apps\PyLib>set path=C:\Python26;C:\Perl\bin\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\ Wbem;;C:\Program Files\RSA Security\RSA Authentication Agent\Agenthost Autoreg Utility;C:\WINDOW

[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: Lack of response is not an appropriate reason to close. -- status: pending -> open ___ Python tracker ___ ___

[issue4724] setting f_exc_traceback aborts in debug builds

2010-07-29 Thread Michael Foord
Michael Foord added the comment: Yup, still active: $ ./python.exe Python 2.7.0+ (release27-maint:83247, Jul 30 2010, 00:41:50) [GCC 4.2.1 (Apple Inc. build 5659)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import sys [35067 refs] >>> sys._getframe(0)

[issue9424] deprecate unittest.TestCase.assertEquals

2010-07-29 Thread Michael Foord
New submission from Michael Foord : Now that deprecations are silent by default it would be much less intrusive to deprecate unittest.TestCase.assertEqual We have a persistent issue in the Python test suite of developers using assertEquals when we have standardised on assertEqual. In regrtest

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread STINNER Victor
New submission from STINNER Victor : Python (2 and 3) is unable to load a module installed in a directory containing characters not encodable to the locale encoding. And Python doesn't work if it's installed in non-ASCII directory on Windows or with a locale encoding different than UTF-8. On W

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Oh, I forgot to say that I created an svn branch including my work: import_unicode. http://svn.python.org/view/python/branches/import_unicode/ You can try it if you prefer svn to an huge patch. I created a branch so you can follow my work commit by commit usi

[issue3080] Full unicode import system

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I posted a patch: #9425. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue8988] import + coding = failure (3.1.2/win32)

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I wrote a patch on import machinery to support unicode characters: see #9425. -- ___ Python tracker ___

[issue4352] imp.find_module() fails with a UnicodeDecodeError when called with non-ASCII search paths

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I wrote a patch to fix this issue, see #9425. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue8611] Python3 doesn't support locale different than utf8 and an non-ASCII path (POSIX)

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I posted a patch to fix this issue: see #9425. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread Ezio Melotti
Ezio Melotti added the comment: I wrote a few minor comments on codereview. The patch should also include more tests. -- nosy: +ezio.melotti ___ Python tracker ___ __

[issue9423] Error in urllib2.do_open(self, http_class, req)

2010-07-29 Thread Senthil Kumaran
Senthil Kumaran added the comment: urllib2 currently supports the HTTPS over Proxy, you might want to use that Handler (HTTPSProxyHandler) instead of using the recipe that you attached. -- nosy: +orsenthil ___ Python tracker

[issue8988] import + coding = failure (3.1.2/win32)

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I tested pybug-import-coding.zip on Windows with my import_unicode branch (see #9425): it works correctly, whereas it fails with py3k (Python 3.2). -- ___ Python tracker _

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue5262] PythonLauncher considered harmfull

2010-07-29 Thread Kevin Walzer
Kevin Walzer added the comment: Ronald, I'd vote for warning if it's the default action. Would your other proposed change require users to set PythonLauncher as the opening app for each Python file, or would there be a way to manually set it as the default from Finder or elsewhere? Kevin

[issue8591] update mkpkg to latest coding standards

2010-07-29 Thread Éric Araujo
Éric Araujo added the comment: I have six changesets that make progressive improvements on cosmetic things, so that the code gets more readable. You can start with http://bitbucket.org/Merwok/distutils2-killsetup/changeset/5e2906cabeab and follow the parent links. The other changes you made

[issue8591] update mkpkg to latest coding standards

2010-07-29 Thread Éric Araujo
Éric Araujo added the comment: After speaking with a Montreal-Python hacker about my use case and reading the PyMOTW page for cmd, I think that using raw_input and print is actually the way to go. We don’t want the user to enter commands, just to answer questions. --

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: > The patch should also include more tests. Which kind of test? Run the test suite in a non-ASCII directory with encoding different than utf-8 is enough. If the patch is accepted, the solution is maybe a specific buildbot. -- ___

[issue9425] Rewrite import machinery to work with unicode paths

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Another important TODO: use weak references for the code objects list. -- I tested my patch on Windows. I fixes #8988 because non-ASCII characters are now correctly decoded with mbcs and not UTF-8. But it doesn't work with characters not encodable to mbcs. I

[issue5262] PythonLauncher considered harmfull

2010-07-29 Thread Ronald Oussoren
Ronald Oussoren added the comment: > Would your other proposed change require users to set PythonLauncher as the > opening app for each Python file, or would there be a way to manually set it > as the default from Finder or elsewhere? I would no longer be possible to set PythonLauncher as th

[issue7330] PyUnicode_FromFormat segfault

2010-07-29 Thread Ray.Allen
Ray.Allen added the comment: Is this really worthy to fix? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue9399] Provide a 'print' action for argparse

2010-07-29 Thread Steven Bethard
Steven Bethard added the comment: The equivalent to optparse callback is basically to define __call__ in a subclass of Action. Pretty much the same amount of work because they both have complicated parameters. The "callable" I (not fully confidently) proposed would just be a shorthand for de

[issue6612] 'import site' fails when called from an unlinked directory

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks! Reopening. -- components: +Library (Lib) stage: -> patch review status: languishing -> open type: -> behavior versions: +Python 3.1, Python 3.2 -Python 2.5, Python 2.6 ___ Python tracker

<    1   2