[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

[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

[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

[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

[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

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

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

[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

[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

[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

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

[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

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

[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

[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

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

[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

[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

[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

[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

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

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

[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

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

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

[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

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

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

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

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

[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

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

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

[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

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

[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

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

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

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

[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

[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

[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

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

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

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

[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

[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

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

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

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

[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

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

[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

[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

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

[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

[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

[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

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

[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()`

[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

[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

[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

[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 Leonhard Vogt
Changes by Leonhard Vogt : Removed file: http://bugs.python.org/file18223/functions.rst.patch4.txt ___ Python tracker ___ ___ Python-bugs-list

[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

[issue4108] robotparser.py fail when more than one User-Agent: * is present

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch, fixed in r83238. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue6156] Error compiling valid regex

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Closing in favor of #2636, which allows this regex to be compiled. -- resolution: -> out of date status: open -> closed superseder: -> Regexp 2.7 (modifications to current re 2.2.2) ___ Python tracker

[issue1710703] zipfile.ZipFile behavior inconsistent.

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Alan, I've updated the patch for current 3.2 trunk, see attached, but the new test now fails. Can you find out why? -- nosy: +georg.brandl versions: +Python 3.2 -Python 2.7 Added file: http://bugs.python.org/file18257/zipfile_empty.diff ___

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

2010-07-29 Thread Peter Häring
New submission from Peter Häring : There are systems out there, wich don't have ndbm, but gdbm and ndbm.h directly in the include-path (usually /usr/include), not in the subdirectory i.e. gdbm. setup.py at the moment assumes, that there is ndbm on the system, if there is ndbm.h in the include

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Sorry, I'm busy with other stuff and won't be able to look into this for another week or so. -- ___ Python tracker ___ ___

[issue8603] Create a bytes version of os.environ and getenvb()

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 29 juillet 2010 03:00:03, Ezio Melotti a écrit : > FWIW os.environb is missing from os.__all__. Fixed by r83237 -- ___ Python tracker

[issue6535] optparse required field for Options

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: I don't think optparse will get this update -- new features should go into argparse instead. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker

[issue6630] string.Template custom pattern not working

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Added in r83236. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9404] IDLE won't launch on XP

2010-07-29 Thread Chris Leaf
Chris Leaf added the comment: I solved the problem myself by editing the EditorWindow.py file where it sets self.recent_files_path by setting it to a different file location (I created a file in my Python31 directory named recent-files.lst and then set the recent_files_path to the absolute pa

[issue8603] Create a bytes version of os.environ and getenvb()

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: Le jeudi 29 juillet 2010 03:08:27, Ezio Melotti a écrit : > A quick search[0] also shows that environ.data is used by several projects. _Environ is a wrapper on data: call putenv() when a value is changed and unputenv() when a value is removed. Since os.enviro

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

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: I'm quite sure nobody will want to do anything about it... -- nosy: +georg.brandl status: open -> languishing ___ Python tracker ___ _

[issue9419] RUNSHARED needs LDFLAGS

2010-07-29 Thread Peter Häring
New submission from Peter Häring : test_distutils fails with 2.7 on a shared build (at least if building outside the source tree), 2.6 versions work. The reason for this is, that the test tries to link and doesn't find libpython-2.7.so.1. A solution (or workaround) is to add LDFLAGS=-L`pwd` to

[issue6504] infinite recursion from calling builtins.open()

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Cannot reproduce with current 3.2 trunk, closing. -- resolution: -> out of date status: open -> closed ___ Python tracker ___ ___

[issue6480] code.runsource() parsing bug

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: code.runsource() uses the "single" start symbol by default, which will parse only a single statement. Only your second snippet is a single statement, while the others are two statements. -- nosy: +georg.brandl resolution: -> invalid status: open -> cl

[issue1195571] simple callback system for Py_FatalError

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Amaury, any interest in getting this committed for 3.2? -- nosy: +georg.brandl ___ Python tracker ___ _

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: This is not so easy: the __mro__ tuple, as its name says, is used internally for method resolution, or finding attributes on the type's bases. __objclass__ is used whenever the descriptor is accessed. These operations are involved in every method call. If you

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

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I wonder if complex addition/subtraction should preserve -0.0 when it is added to a purely imaginary number. I.e., >>> -0.0+1j (-0+1j) -- nosy: +belopolsky ___ Python tracker

[issue812369] module shutdown procedure based on GC

2010-07-29 Thread Andrea Corbellini
Changes by Andrea Corbellini : -- nosy: +candrea ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue3873] Unpickling is really slow

2010-07-29 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- nosy: +belopolsky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue3873] Unpickling is really slow

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: > Victor, have you tried using peek() instead of seek()? > I mentioned this previously in msg85780. In a file encoded in protocol 0, backward seek are needed to each call to unpickler_readline... and this function is called to read a number, a boolean, etc.

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: This was discussed in issue1545463 which was deemed not to be worth fixing. The particular bug described in issue1545463 would also be fixed by the still open issue812369. So yes, there are cases where these cycles are a problem even with gc. ---

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2010-07-29 Thread Ezio Melotti
Ezio Melotti added the comment: #9172 has been closed as duplicate of this. -- nosy: +ezio.melotti stage: -> committed/rejected type: -> behavior ___ Python tracker ___ ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: This is an unwanted an unexpected behavior, so this is a bug by definition. If it's not easy to fix, it's a different matter. However here's a proposed solution: * for the __mro__: instead of using a tuple, use a new object that inherits from it. This new

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: I'm working on #3873 to add a read buffer (fixed size, 4096 bytes) to the unpickler. It's 6 to 8 times faster with the read buffer: but this patch is mainly to avoid the overhead introduced by the new I/O library (in Python2, unpickler was faster because it d

[issue9397] Remove references to the missing dbm.bsd module

2010-07-29 Thread STINNER Victor
STINNER Victor added the comment: > Removed in r83231, thanks. I commited also r83235 to remove references in the source code. The last reference is the following comment, but I don't know how to fix it: # some dbm emulations based on Berkeley DB generate a .db file # some do not, but they sh

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +krisvale ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9410] Add Unladden Swallow's optimizations to Python 3's pickle.

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: For those not familiar with Unladen Swallow, can you describe what the "most interesting optimizations" are? Maybe there is an Unladen Swallow document you can point to. Would any of these optimizations apply to python implementation? -- __

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Whether this is a bug is not clear. Sometimes it's just impossible not to create cycles, and classes may just be one instance of that. -- ___ Python tracker ___

[issue6522] docs for unittest.expectedFailure do not syntactically show it's a decorator

2010-07-29 Thread Georg Brandl
Georg Brandl added the comment: Done in r83234. Thanks for the suggestion! -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue9417] Declaring a class creates circular references

2010-07-29 Thread Andrea Corbellini
Andrea Corbellini added the comment: Having a __del__ inside a metaclass is strange, I know... but probably there are situations where you need to do so. Why shouldn't a developer be able to add a __del__ to a metaclass without creating uncollectable objects? I don't think this behavior is by

[issue3173] external strftime for Python?

2010-07-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Jul 28, 2010 at 11:22 PM, Guido van Rossum wrote: .. > What about the licensing? That look like the BSD license *with* > advertising clause... > I am not a lawyer and I am not intimately familiar with PSF policies, but this license does not look

  1   2   >