[issue2423] test_smtplib.py no longer butt slow

2010-08-02 Thread Richard Jones
Richard Jones richardjo...@optushome.com.au added the comment: The patch to test_smtplib.py no longer applies since trunk is now py3k. I'm looking into it - and seeing whether the mock socket work I implemented for test_smtpd.py will have any common code. I'm hitting some fun areas of

[issue8620] wrong truncation of last line in cmd.Cmd

2010-08-02 Thread Mattelaer
Mattelaer olivier.mattel...@uclouvain.be added the comment: Thanks a lot for the fix. On 02-août-10, at 01:58, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Thanks, Éric. Fixed. -- ___ Python tracker

[issue6858] This is a python file, apply syntax highlighting

2010-08-02 Thread Tal Einat
Tal Einat talei...@gmail.com added the comment: I think we are in agreement :) Regarding the warning message, I was referring only to the case that the syntax highlighter fails completely and raises an exception. I'm not even sure if that can happen, but in case it does an informative message

[issue8688] distutils sdist is too laze w.r.t. recalculating MANIFEST

2010-08-02 Thread Dirkjan Ochtman
Changes by Dirkjan Ochtman dirk...@ochtman.nl: -- nosy: +djc ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8688 ___ ___ Python-bugs-list mailing

[issue8612] multiprocessing Queue module failes to send INIConfig objects

2010-08-02 Thread Zaar Hai
Zaar Hai haiz...@gmail.com added the comment: Exactly. Thank you. On Mon, Aug 2, 2010 at 1:59 AM, Georg Brandl rep...@bugs.python.org wrote: Georg Brandl ge...@python.org added the comment: The issue in the iniparse tracker has been closed as fixed now, so I assume the problem was on that

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Note that pickle deliberately does not support serializing code objects. This is a security feature and should not be broken ! If you need to pickle such objects, you can easily register handlers that take care of this. -- nosy:

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Łukasz Langa
Łukasz Langa luk...@langa.pl added the comment: Good questions, thanks! The answers will come useful for documentation and later hype :) READING CONFIGURATION FROM A DATA STRUCTURE --- This is all about templating a decent set of default values. The

[issue818201] distutils: clean does not use build_base option from build

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Sorry for the long delay without reply. Thank you for the report, I’ll look into it in the following weeks. In distutils2, I think clean could use the configure command (#8254) or maybe it’ll be simpler to just set_undefined_options from build.

[issue2377] Replace import.c with a pure Python implementation

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.2 -Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___ ___

[issue4636] bdist_wininst installer with install script raises exception

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Can you still reproduce in 3.1 and 3.2? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4636 ___

[issue2945] bdist_rpm does not list dist files (should effect upload)

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Tarek, can this bug be fixed or is it outdated? IOW, is bdist_rpm officially discouraged or do you still accept bugfixes for it? -- nosy: +merwok versions: +Python 3.2 ___ Python tracker

[issue763043] unable to specify another compiler

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: The bug has been fixed in 2.3, apparently it’s a doc bug now, so reassigning. -- assignee: tarek - d...@python nosy: +d...@python, merwok versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org

[issue8821] Range check on unicode repr

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: Well, the patch was technically useless since, as mentioned, unicode strings are terminated by a NUL character by design. There are two things to keep in mind:

[issue8821] Range check on unicode repr

2010-08-02 Thread Marc-Andre Lemburg
Changes by Marc-Andre Lemburg m...@egenix.com: -- resolution: fixed - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8821 ___

[issue7219] Unhelpful error message when a distutils package install fails due to a permissions error

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Could you run ipy.exe setup.py build, then set DISTUTILS_DEBUG in the environment and run ipy.exe setup.py install? -- nosy: +merwok ___ Python tracker rep...@bugs.python.org

[issue1644987] ./configure --prefix=/ breaks, won't build C modules

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - tarek components: +Distutils nosy: +merwok, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1644987 ___

[issue1436203] getpass.getpass() should allow Unicode prompts

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I agree with Victor. Use 3.1 if you don’t depend on unported libraries, else explicitly encode with sys.stdout.encoding or set PYTHONIOENCODING in the environment. -- resolution: - out of date stage: unit test needed -

[issue3984] python interpreter import dependency with disutils/util

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: get_config has moved to sysconfig, which is now a top-level module, and site is fixed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker

[issue1180267] expanding platform module and making it work as it should

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: You appear to be requesting two things: 1. Determine the Windows version by looking at sys.getwindowsversion() rather than relying on the ver command line tool. 2. Use lsb_release to fetch the release name on Linux systems that support

[issue7299] setup.py install doesn't honor PYTHONUSERBASE

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Closing in two weeks if there is no additional information. Please reopen if needed. -- status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7299

[issue9106] remove numbers from 3-.. level entries in docs toc

2010-08-02 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: (Rationale for this resolution: On #3143, it was used to remind us to change a setting in Doc/conf.py after the switch to a new version of Sphinx with the new feature.) -- resolution: invalid - remind

[issue870479] Scripts need platform-dependent handling

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- dependencies: +Make installed scripts executable on windows ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue870479 ___

[issue8821] Range check on unicode repr

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: * Unicode objects are NUL-terminated, but only very external APIs rely on this (e.g. code using the Windows Unicode API). Please don't make the code in unicodeobject.c itself rely on this subtle detail. That's wishful thinking,

[issue8821] Range check on unicode repr

2010-08-02 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8821 ___ ___ Python-bugs-list

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2010-08-02 Thread Mark Smith
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk: pulldom.SAX2DOM raises a TypeError if it encounters a processing instruction before the root element of an XML document. It is valid to have a processing instruction before the root node of a document (and SAX2DOM's superclass,

[issue9453] pulldom.SAX2DOM Doesn't support processing instructions before the root element

2010-08-02 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: My recommendation is that SAX2DOM is deprecated and removed from the standard library rather than fixing this issue. The class is currently undocumented, has weird behaviour, and is unused within the Python standard library, so I

[issue1553375] Add traceback.print_full_exception()

2010-08-02 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: David Murray, where is the patch? -- nosy: +ysj.ray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1553375 ___

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread Doug Hellmann
Doug Hellmann doug.hellm...@gmail.com added the comment: Yes, that doc change is clear. Thanks! -- nosy: +ted.turocy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9444 ___

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: This is a security feature and should not be broken ! Can you explain this? I don't think I agree, since an attacker can always serialize whatever they feel like. It's the person doing the deserialization that has to be

[issue8821] Range check on unicode repr

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Antoine Pitrou wrote: Antoine Pitrou pit...@free.fr added the comment: * Unicode objects are NUL-terminated, but only very external APIs rely on this (e.g. code using the Windows Unicode API). Please don't make the code in

[issue9209] pstats module crashes on trailing backslash

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83523. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9209

[issue7781] interactive pstats broken

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Thanks, fixed in r83523. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7781

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Jean-Paul Calderone wrote: Jean-Paul Calderone exar...@twistedmatrix.com added the comment: This is a security feature and should not be broken ! Can you explain this? I don't think I agree, since an attacker can always serialize

[issue8572] httplib getheader() throws error instead of default

2010-08-02 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: Fixed in revision 83521 (py3k) and 83522 (release31-maint). I made slight modifications to the patch to include non-iterable values,like int, for default too. If you feel the documentation could be made better, please suggest the wordings

[issue9428] profile.py bug with the main file being profiled

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed (also for cProfile) in r83524. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9428

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: By adding default support for unpickling code objects, you can trick the unpickling code into executing serialized code: This doesn't sound correct to me. You can *already* trick unpickling code into executing serialized code.

[issue8821] Range check on unicode repr

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: But all that is off-topic for this ticket, since codecs operate on Py_UNICODE* buffers together with a size parameter and relying on those buffers being NUL-terminated is bound to cause problems. That's right. Then perhaps a fixed patch can

[issue6436] trace module doesn't seem to produce .cover files for Py3 (but does for Py2)

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Duplicate of #1690103. -- nosy: +georg.brandl resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6436

[issue7563] yield in except clause causes exception context to be lost

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: This won't get backported now that 2.7 is in maintenance. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread Mark Smith
New submission from Mark Smith mark.sm...@practicalpoetry.co.uk: When running tests with -v, the test runner prints out the docstring of each test method, if present, and falls back to the method name if it's not present. Test methods wrapped with @expectedFailure do not print out their

[issue3821] trace module bug when using --missing

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed the test cases and committed them in r83527. -- nosy: +georg.brandl status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3821

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: Provided a patch to demonstrate this issue. Demonstrates that docstrings aren't copied to the decorator function. -- keywords: +patch Added file: http://bugs.python.org/file18321/unittest_failing_test.patch

[issue8821] Range check on unicode repr

2010-08-02 Thread Matt Giuca
Matt Giuca matt.gi...@gmail.com added the comment: OK, I finally had time to review this issue again. Firstly, granted the original fix broke a test case, shouldn't we figure out why it broke and fix it, rather than just revert the change and continue relying on this tenuous assumption?

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread Mark Smith
Changes by Mark Smith mark.sm...@practicalpoetry.co.uk: Removed file: http://bugs.python.org/file18321/unittest_failing_test.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9454 ___

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: Removed the failing test patch, because it didn't demonstrate what I thought it did. Unwrapped tests also don't have docstrings, because they are instances of the TestCase, not references to the function. --

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Jean-Paul Calderone wrote: Jean-Paul Calderone exar...@twistedmatrix.com added the comment: By adding default support for unpickling code objects, you can trick the unpickling code into executing serialized code: This doesn't sound

[issue1553375] Add traceback.print_full_exception()

2010-08-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Morning does make a difference. Revised patch that also works at the top level of a module. (Let's see if I can manage to actually attach it this time...) -- keywords: +patch Added file:

[issue8959] WINFUNCTYPE wrapped ctypes callbacks not functioning correctly in Python 2.7

2010-08-02 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: The test added here is crashing my Windows 7 x64 machine on py3k in debug mode. It hangs indefinitely in release mode. This isn't occurring with the buildbots... (Sorry for not reporting this sooner...I came to see the status and apparently the

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: Closed this issue. The initial report was in error -- it turns out I can't even read my own console. I'm an idiot :) -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue1581182] Definition of a character is wrong

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Without patch, I don't see how this issue can be moved forward. Adding a list of such Unicode term definitions would at best cause additional confusion and only address people knowledgable in the Unicode field. Note that Python's use of

[issue1581182] Definition of a character is wrong

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: - d...@python nosy: +d...@python stage: - needs patch versions: +Python 2.6, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1581182

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: For example: exar...@boson:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type help, copyright, credits or license for more information. class x(object): ... def __reduce__(self): ...

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Aug 2, 2010 at 9:25 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. You can *already* trick unpickling code into executing serialized code.  You don't need this feature in order to be able to do it.

[issue8572] httplib getheader() throws error instead of default

2010-08-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Right, the join behavior is correct. But the definition of a *default* (aka sentinel) value is that it is returned *unchanged*. It is counter intuitive that if you pass a list of strings as a default, that what you get back is those

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +michael.foord ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9454 ___ ___

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- nosy: +alexandre.vassalotti, pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9276 ___

[issue9454] unittest.expectedFailure decorator does not maintain target function's docstring.

2010-08-02 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Woops, sorry for making you nosy on a closed issue, Michael. Apparently I can't read either. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Jean-Paul Calderone wrote: Jean-Paul Calderone exar...@twistedmatrix.com added the comment: For example: exar...@boson:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type help, copyright, credits

[issue9444] argparse does not honor prefix_chars when adding default options

2010-08-02 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: Attached a unit test patch corresponding to Ted's patch. http://bugs.python.org/file18320/argparse_test.patch -- nosy: +catherine ___ Python tracker rep...@bugs.python.org

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Aug 2, 2010 at 10:05 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. Without the definition of class x on the receiving side, there would be no exploit. You are mistaken. Try adding del x (or del evil in

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I think methods should be picklable just like global functions are, that is, by pickling a tuple of the fully-qualified class name (mymodule.myclass), method name (mymethod), and self. -- ___ Python

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: M.-A. Lemburg wrote: Jean-Paul Calderone wrote: Jean-Paul Calderone exar...@twistedmatrix.com added the comment: For example: exar...@boson:~$ python Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15) [GCC 4.4.1] on linux2 Type help,

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Aug 2, 2010 at 10:11 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. Hmm, I just tried the code and it seems that you're right: The pickle string does not contain a reference to class x, but only the

[issue9276] pickle should support methods

2010-08-02 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: Alexander Belopolsky wrote: Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Aug 2, 2010 at 10:11 AM, Marc-Andre Lemburg rep...@bugs.python.org wrote: .. Hmm, I just tried the code and it seems that

[issue6074] .pyc files created readonly if .py file is readonly, python won't overwrite

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Apparently this may have become Windows-specific at some point. I can't reproduce under Linux with Python 2.6.5, 2.7 or 3.2. I get a strange warning with -v under 2.7, though: $ touch b.py ~/cpython/27/python -v a.py 21 | grep b.py #

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: I also like Antoine's idea of pickling the function/method name instead of the whole code object. I like it too. That's why I suggested it in the first comment on the ticket (read the linked code). I guess Alexander likes it

[issue8743] set() operators don't work with collections.Set instances

2010-08-02 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: In my opinion, the set's operator should be a bit more liberal and accept any collections.Set instances. Given collections.Set is an ABC and isinstance(set, collections.Set) is True, the set methods should(strong recommended) follow all the

[issue9373] pulldom has low code coverage

2010-08-02 Thread Mark Smith
Mark Smith mark.sm...@practicalpoetry.co.uk added the comment: Added a patch to increase code coverage for the pulldom module to 90%. This patch also includes 3 'expectedFailure' tests that I believe indicate erroneous behaviour, associated with issues #9453 (SAX2DOM doesn't like processing

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: There's already issue558238 on the same topic. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9276 ___

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Aug 2, 2010 at 10:32 AM, Jean-Paul Calderone rep...@bugs.python.org wrote: Jean-Paul Calderone exar...@twistedmatrix.com added the comment: I also like Antoine's idea of pickling the function/method name instead

[issue558238] Pickling bound methods

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue558238 ___ ___ Python-bugs-list mailing

[issue9276] pickle should support methods

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9276 ___ ___ Python-bugs-list mailing

[issue8634] get method for dbm interface

2010-08-02 Thread Ray.Allen
Ray.Allen ysj@gmail.com added the comment: +1 on generalize the dbm.gnu and gbm.ndbm, and also dbm.dumb. All of them should follow the Collections.MutableMapping ABC. I will work out a patch to fix this. -- nosy: +ysj.ray ___ Python tracker

[issue8634] get method for dbm interface

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +merwok ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8634 ___ ___ Python-bugs-list mailing

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

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Doc review: Small typo, Flase vs False. Also, exceptions are raised rather than thrown in Python land (same for the docstring). Both exception references should be :exc:`OSError`. Otherwise, looks fine to me. Raising priority; this should go

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Yes, I think we have a consensus on this point. Note, however that since unbound methods have been removed in 3.x, it is not trivial to find a fully qualified name of a method anymore. I suppose only bound methods should be pickleable: class

[issue558238] Pickling bound methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Let's continue the discussion on issue9276. -- nosy: -merwok resolution: - duplicate status: open - closed superseder: - pickle should support methods ___ Python tracker rep...@bugs.python.org

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +hinsen, loewis, obamausa8, rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9276 ___

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@twistedmatrix.com added the comment: Note, however that since unbound methods have been removed in 3.x, it is not trivial to find a fully qualified name of a method anymore. This is a rather sad loss of functionality. --

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: You have about 5 hours as of this writing to apply the doc patch for Python 2.6.6 rc1 and then it will be too late to get it into Python 2.6.6 (though I might make an exception for doc-only patches like this, for post rc1). While I haven't

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- priority: release blocker - high ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___ ___

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: Georg committed this patch to the 2.6 tree, and besides, this is doesn't seem like a blocking issue, so I'm kicking 2.6 off the list and knocking the priority down. -- priority: release blocker - high versions: -Python 2.6

[issue1748064] inspect.getargspec fails on built-in or slot wrapper methods

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: It *is* a feature request. The signature of functions implemented in C is currently not exposed to introspection. -- nosy: +georg.brandl type: behavior - feature request ___ Python tracker

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I'll try to meet the deadline. :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264 ___

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Oh, this is not assigned to me. Terry, do you need help with this? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9264

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye x...@jwp.name added the comment: Would it be possible to require the embedding application to define the Py_FatalError symbol? Admittedly, it would be nice to not have the callback installation code. =\ -- ___ Python tracker

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This sounds like a good idea but why the strange semantics of needing it to be defined before calling PyInitialize()? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org

[issue9276] pickle should support methods

2010-08-02 Thread Alexandre Vassalotti
Alexandre Vassalotti alexan...@peadrop.com added the comment: The security issue mentioned previously has been known for years. And, it is easy to protect against. See http://docs.python.org/py3k/library/pickle.html#restricting-globals Also I am against adding pickling support to code

[issue5752] xml.dom.minidom does not escape CR, LF and TAB characters within attribute values

2010-08-02 Thread W. Trevor King
W. Trevor King wk...@drexel.edu added the comment: As a workaround until the patch gets included, you can import this monkey patch module. -- nosy: +labrat Added file: http://bugs.python.org/file18325/minidom.py ___ Python tracker

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye x...@jwp.name added the comment: I guess it seemed so unlikely that (C) extensions should be installing the callback that installation should be restricted pre-Py_Initialize(); the area completely controlled by the embedding app. However, I have no strong attachment to that.

[issue8042] mmap buffer implementation does not respect seek pos

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: If you want to slice into a writable buffer, you can use a memoryview: b = io.BytesIO(babc) m = mmap.mmap(-1, 10) b.readinto(memoryview(m)[5:]) 3 m[:] b'\x00\x00\x00\x00\x00abc\x00\x00' This only works on 3.x, though. As for changing the

[issue5510] patches for Modules/socketmodule.c for NetBSD

2010-08-02 Thread Piotr Meyer
Piotr Meyer an...@smutek.pl added the comment: On Sun, Aug 01, 2010 at 12:27:50AM +, Éric Araujo wrote: Éric Araujo mer...@netwok.org added the comment: Does the bug still exist in 3.2 (branch named py3k in subversion)? Do the patch still apply? (The workflow is to patch the version

[issue8572] httplib getheader() throws error instead of default

2010-08-02 Thread Senthil Kumaran
Senthil Kumaran orsent...@gmail.com added the comment: David, your suggested description was much better. Modified the documentation in r83529 and r83530. -- status: open - closed ___ Python tracker rep...@bugs.python.org

[issue7372] Regression in pstats

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed with your patch in r83531. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7372 ___

[issue9348] Calling argparse's add_argument with the wrong number of metavars causes delayed error message

2010-08-02 Thread Catherine Devlin
Catherine Devlin fredv8vi...@liquidid.net added the comment: I'm attaching a unit test patch that does something vaguely like Steven suggests. It definitely needs review. Also, I'm assuming that it's OK to specify *fewer* metavars than nargs, just not more... but I'm not sure about that.

[issue8578] PyWeakref_GetObject

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: I added a note to the docs in r83536. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8578 ___

[issue6928] Doc: Class statements and metaclass = xxx

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Should be fixed in r83538. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6928 ___

[issue7849] Improve test_support.check_warnings()

2010-08-02 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I backported this to 2.6 in r83537 in order to fix #7092. I used a leading underscore on _check_py3k_warnings to make it private because no new features should be added to 2.6. -- ___ Python

[issue2716] Reimplement audioop because of copyright issues

2010-08-02 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Current status: no lawsuit yet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2716 ___ ___

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
Changes by James William Pye jw...@users.sourceforge.net: -- nosy: -jwpye ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1195571 ___ ___

  1   2   >