[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Ronald Oussoren
Ronald Oussoren added the comment: On 2 Aug, 2010, at 21:49, Bill Janssen wrote: > > Bill Janssen added the comment: > > So the problem is in the _mac_ver_xml() routine in Lib/platform.py, which > says: > > >machine = os.uname()[4] >if machine == 'ppc': ># for compatibilit

[issue8739] Update to smtpd.py to RFC 5321

2010-08-02 Thread Richard Jones
Richard Jones added the comment: The smtpd module now has a test suite. Please add your unit tests to test_smtpd.py -- nosy: +richard ___ Python tracker ___

[issue2423] test_smtplib.py no longer butt slow

2010-08-02 Thread Richard Jones
Richard Jones added the comment: Merged mock socket from test_smtpd.py and committed. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ __

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

2010-08-02 Thread R. David Murray
R. David Murray added the comment: The combined patches look good to me, and I tested the tests and patch. (I accidentally deleted the earlier fix patch, sorry). It would be nice to add one more test case that does prefix="+-/" to make sure - is used when it isn't first. Steven, I'd be hap

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: I'll have to investigate the possibility of the privilege occurring on XP -- I'm doubtful that it exists there, but I'll confirm. Currently "os._symlink" is not exposed -- it gets swallowed up in Lib/os.py in the "nt" section starting on line 55 (it is availabl

[issue8739] Update to smtpd.py to RFC 5321

2010-08-02 Thread Alberto Trevino
Alberto Trevino added the comment: On Monday, July 05, 2010 10:41:28 am you wrote: > Yes, the fact that there are no unit tests for the new functionality. Sorry to take so long to reply. I have attached the latest version of the patch which does everything in rev. 2 of the patch, patches the

[issue9457] Wrong URL in Python-3.2a1/README

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83584. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8119] Minor comment error in configure.in ("malloc support" appears twice)

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83580. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9292] Dead code in Modules/pyexpat.c

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

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

2010-08-02 Thread R. David Murray
Changes by R. David Murray : Removed file: http://bugs.python.org/file18298/argparse_char_fix.patch ___ Python tracker ___ ___ Python-bugs-list

[issue9458] xml.etree.ElementTree.write(): encoding handling problems

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : If one wants to use the encoding parameter of ElementTree.write() the file must be opened with "wb". Without encoding parameter normal files can be used, but the should be opened with the encoding "UTF-8", because otherwise this may create an error. Probably c

[issue9292] Dead code in Modules/pyexpat.c

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: "fp" can probably be just removed? -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list

[issue6696] Profile objects should be documented

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- priority: normal -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9457] Wrong URL in Python-3.2a1/README

2010-08-02 Thread Uli Kunitz
New submission from Uli Kunitz : The URL http://docs.python.org/dev/3.2/whatsnew/3.2.html is wrong. It should be replaced with http://docs.python.org/dev/whatsnew/3.2.html. -- assignee: d...@python components: Documentation messages: 112548 nosy: d...@python, kune priority: normal sever

[issue4011] Create DAG for PEP 101

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: I'll probably get around to do this during the 3.2 period. -- assignee: -> georg.brandl nosy: +georg.brandl ___ Python tracker ___ __

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Jason R. Coombs
Jason R. Coombs added the comment: I love it -- especially all of the '-' lines in the patch! Good work. Is it conceivable that a Windows XP user would have that privilege (and thus would have access to a non-functional os.symlink function)? One thing I particularly like is this provides an i

[issue9238] zipfile incorrectly documented as not supporting archive comments

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83575. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9239] zipfile: truncating comment can corrupt the zipfile

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Patch looks good to me. Alan, can you comment? -- assignee: -> aimacintyre nosy: +aimacintyre, georg.brandl priority: normal -> high ___ Python tracker

[issue6915] os.listdir inconsistenly releases the GIL on win32

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: loewis -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue6867] return value of epoll.register

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83574. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: Forgot to mention: I've only run this on Win7 at the moment. I'll need to take a look at how this works on older Windows. -- ___ Python tracker _

[issue9456] Apparent memory leak in PC/bdist_wininst/install.c

2010-08-02 Thread Zachary Blair
New submission from Zachary Blair : >From inspecting the code in install.c's DeleteRegistryValue() and >DeleteRegistryKey() functions, it appears as though there can be a small >memory leak in the event that either function is passed an invalid argument. This patch corrects this issue by makin

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Brian Curtin added the comment: Here's a patch implementing a similar idea to what Jason mentioned, complete with the test updates and code removals. It initially adds win_symlink as "_symlink", and on module initialization it will be renamed to "symlink" if the privilege is available. There

[issue7688] TypeError: __name__ must be set to a string object

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Out of date for Python 2.x, and strings are always unicode objects in 3.x. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker __

[issue7797] base64 module docs should indicate that encode methods return bytes, not strings

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83569. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py

[issue9333] Expose a way to enable os.symlink on Windows

2010-08-02 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file18132/enable_symlink.diff ___ Python tracker ___ ___ Python-bugs-list mailin

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

2010-08-02 Thread R. David Murray
Changes by R. David Murray : -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue6728] To avoid hang up in using CGIXMLRPCRequestHandler under IIS 7.x

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Why would one read 2 bytes less than CONTENT_LENGTH? -- nosy: +georg.brandl resolution: -> works for me status: open -> closed ___ Python tracker ___

[issue9019] wsgiref.headers.Header() does not update headers list it was created with.

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83566. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9111] cmd.do_help documentation should mention docstrings

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83565. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9037] Add explanation as to how to raise a custom exception in the extending python intermezzo on exceptions

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Added in r83563. Thanks! -- nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker ___ ___

[issue4280] Version Checker

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, removed in r83561. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9087] json docstrings on 3.x still use 'unicode' and 'str'

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83560. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: d...@python -> tjreedy nosy: -barry, d...@python stage: commit review -> patch review versions: -Python 2.6 ___ Python tracker ___ _

[issue8648] The UTF-7 codec functions are undocumented

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r83558. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8562] hasattr(open, 'newlines') example gives incorrect results from PEP0278

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83556. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
Bill Janssen added the comment: So the problem is in the _mac_ver_xml() routine in Lib/platform.py, which says: machine = os.uname()[4] if machine == 'ppc': # for compatibility with the gestalt based code machine = 'PowerPC' and perhaps should say: machine = os.un

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
Bill Janssen added the comment: This is on a PowerPC machine running Leopard: >>> os.uname()[4] 'Power Macintosh' >>> -- ___ Python tracker ___ _

[issue8622] Add PYTHONFSENCODING environment variable

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8861] curses.wrapper : unnessesary code

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83555. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue7280] PCBuild instruction says to use nasmw.exe but it no longer exist

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83554. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9438] Clarify __debug__ restrictions

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83552. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue8590] test_httpservers.CGIHTTPServerTestCase failure on 3.1-maint Mac OS X

2010-08-02 Thread Michael Foord
Michael Foord added the comment: Yep: test_post (__main__.CGIHTTPServerTestCase) ... Traceback (most recent call last): File "/private/var/folders/WD/WDk8J3uFE7OM9tRer5Oy4E+++TI/-Tmp-/tmp3KtUFW/cgi-bin/file2.py", line 2, in import cgi File "/compile/release31-maint/Lib/cgi.py", line

[issue9451] Strengthen __*__ system name warning

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Thanks, applied in r83550. -- dependencies: -Clarify __debug__ restrictions nosy: +georg.brandl resolution: -> accepted status: open -> closed ___ Python tracker __

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed in release26-maint, r83549, to beat the rc1 deadline. I'll comment on a few improvements that we can do for 3.x later. Eli, I needed to fix white space issues in your patch before committing. Please run make patchcheck on your changes befo

[issue3849] FUD in documentation for urllib.urlopen()

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> d...@python nosy: +d...@python ___ Python tracker ___ ___ Python-bugs-list maili

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Łukasz Langa
Łukasz Langa added the comment: Corrected a simple mistake in the patch. -- Added file: http://bugs.python.org/file18329/issue9452.diff ___ Python tracker ___ ___

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Łukasz Langa
Changes by Łukasz Langa : Removed file: http://bugs.python.org/file18319/issue9452.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue8172] Documentation of Property needs example

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83548. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue7386] More precise document on os.path.normpath()

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83547. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bug

[issue7862] fileio.c: ValueError vs. IOError with impossible operations

2010-08-02 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7973] Wrong spelling of distutils options in error messages and docs

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r83546. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9455] platform test borked in 2.7 branch on Power PC

2010-08-02 Thread Bill Janssen
New submission from Bill Janssen : Looks like some test borked the 2.7 tests on the buildbots. Here's the offending test: test test_platform failed -- Traceback (most recent call last): File "/Users/buildbot/buildarea/2.7.parc-leopard-1/build/Lib/test/test_platform.py", line 196, in test_

[issue2609] Tests fail if ./@test is not writeable

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Out of date now -- regrtest now uses "with temp_cwd()", changing directory to either the Python build dir or a tempdir. -- nosy: +georg.brandl resolution: -> out of date status: open -> closed ___ Python tracker

[issue8560] regrtest: add a minimal "progress bar"

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Committed patch adding the [x/y] style indicator in r83543. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8312] Add post/pre hooks for distutils commands

2010-08-02 Thread Konrad
Changes by Konrad : -- nosy: -Konrad.Delong ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8312] Add post/pre hooks for distutils commands

2010-08-02 Thread Konrad Delong
Konrad Delong added the comment: I see no reasons to limit the command set to just these two. -- nosy: +Konrad.Delong ___ Python tracker ___ _

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: I cannot do commits yet, so please do it. I expected this to be picked up by a doc person. -- ___ Python tracker ___ __

[issue5412] extend configparser to support mapping access(__*item__)

2010-08-02 Thread Fred L. Drake, Jr.
Changes by Fred L. Drake, Jr. : -- nosy: +fdrake ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue9338] argparse optionals with nargs='+' can't be followed by positionals

2010-08-02 Thread Catherine Devlin
Catherine Devlin added the comment: Here's a unit test for the simplest cases. -- keywords: +patch nosy: +catherine Added file: http://bugs.python.org/file18328/test_pos_after_var_args.patch ___ Python tracker

[issue9452] configparser support for reading from strings and dictionaries

2010-08-02 Thread Fred L. Drake, Jr.
Fred L. Drake, Jr. added the comment: Reading from a string is certainly fairly common, though I'm pretty happy with using an io.StringIO seems reasonable and straightforward. I've never stumbled over the need to "read" from dictionaries as described. -- nosy: +fdrake ___

[issue9451] Strengthen __*__ system name warning

2010-08-02 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- keywords: +patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Applied doc patch to 2.6 in r83539. -- nosy: +georg.brandl priority: release blocker -> critical versions: -Python 2.5, Python 2.6 ___ Python tracker ___

[issue9061] cgi.escape Can Lead To XSS Vulnerabilities

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Unless someone can upload a specific patch to review in the next couple of hours, I'm going to reduce the priority for 2.6.6rc1. -- nosy: +barry ___ Python tracker __

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
Changes by James William Pye : -- nosy: -jwpye ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue2716] Reimplement audioop because of copyright issues

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Current status: no lawsuit yet. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue7849] Improve "test_support.check_warnings()"

2010-08-02 Thread Ezio Melotti
Ezio Melotti 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 tracker

[issue6928] Doc: Class statements and metaclass = xxx

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Should be fixed in r83538. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue8578] PyWeakref_GetObject

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: I added a note to the docs in r83536. -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-li

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

2010-08-02 Thread Catherine Devlin
Catherine Devlin 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. -- keywords: +patch

[issue7372] Regression in pstats

2010-08-02 Thread Georg Brandl
Georg Brandl added the comment: Fixed with your patch in r83531. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ __

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

2010-08-02 Thread Senthil Kumaran
Senthil Kumaran added the comment: David, your suggested description was much better. Modified the documentation in r83529 and r83530. -- status: open -> closed ___ Python tracker __

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

2010-08-02 Thread Piotr Meyer
Piotr Meyer added the comment: On Sun, Aug 01, 2010 at 12:27:50AM +, Éric Araujo wrote: > > Éric Araujo 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 in > development and then b

[issue8042] mmap buffer implementation does not respect seek pos

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: If you want to slice into a writable buffer, you can use a memoryview: >>> b = io.BytesIO(b"abc") >>> 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 mmap

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye 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. --

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

[issue9276] pickle should support methods

2010-08-02 Thread Alexandre Vassalotti
Alexandre Vassalotti 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 objects. Code objects have no

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou 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 __

[issue1195571] simple callback system for Py_FatalError

2010-08-02 Thread James William Pye
James William Pye 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

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Oh, this is not assigned to me. Terry, do you need help with this? -- ___ Python tracker ___

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I'll try to meet the deadline. :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

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

2010-08-02 Thread Georg Brandl
Georg Brandl 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

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw 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

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- priority: release blocker -> high ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9264] trace.py documentation is incomplete

2010-08-02 Thread Barry A. Warsaw
Barry A. Warsaw 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 built the docs, I

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone 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. -- ___ Python tracker <

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +hinsen, loewis, obamausa8, rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue558238] Pickling bound methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Let's continue the discussion on issue9276. -- nosy: -merwok resolution: -> duplicate status: open -> closed superseder: -> pickle should support methods ___ Python tracker __

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou 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 C: ...

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

2010-08-02 Thread Georg Brandl
Georg Brandl 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 into 3.2. -

[issue8634] get method for dbm interface

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue8634] get method for dbm interface

2010-08-02 Thread Ray.Allen
Ray.Allen 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

[issue9276] pickle should support methods

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue558238] Pickling bound methods

2010-08-02 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue9276] pickle should support methods

2010-08-02 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Mon, Aug 2, 2010 at 10:32 AM, Jean-Paul Calderone wrote: > > Jean-Paul Calderone 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 i

[issue9276] pickle should support methods

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: There's already issue558238 on the same topic. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue9373] pulldom has low code coverage

2010-08-02 Thread Mark Smith
Mark Smith 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 instructions before the root eleme

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

2010-08-02 Thread Ray.Allen
Ray.Allen 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 generalized abstract se

[issue9276] pickle should support methods

2010-08-02 Thread Jean-Paul Calderone
Jean-Paul Calderone 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 too, since he basically

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

2010-08-02 Thread Antoine Pitrou
Antoine Pitrou 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 2>&1 | grep b.py # /home/antoine/py3k/_

  1   2   >