[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Stefan Behnel
Stefan Behnel sco...@users.sourceforge.net added the comment: I don't see this having much to do with the DRY principle. It's explicit is better than implicit and better safe than sorry that applies here. -- ___ Python tracker rep...@bugs.python.org

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: I recommend to revert this change. It seems that some users are opposed to any kind of folding (as my earlier folding experiment has demonstrated); users who *really* don't want to see the history would need to step forward and request a

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- Removed message: http://bugs.python.org/msg137107 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8583 ___

[issue12163] str.count

2011-05-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- components: +Interpreter Core versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12163 ___

[issue9670] Exceed Recursion Limit in Thread

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset ecf0ef85c72a by Ned Deily in branch '2.7': Issue #9670: Increase the default stack size for secondary threads on http://hg.python.org/cpython/rev/ecf0ef85c72a New changeset 0cded2f2cea3 by Ned Deily in branch '3.1': Issue #9670:

[issue9670] Exceed Recursion Limit in Thread

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Version 4 looks good and the tests pass on OS X with pydebug enabled. Applied in 2.7 (for release in 2.7.2), 3.1 (for 3.1.4). 3.2 (for 3.2.1), and default (for 3.3). -- resolution: - fixed stage: patch review - committed/rejected status:

[issue12196] add pipe2() to the os module

2011-05-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Out of interest, is there any reason that the configure check for pipe2 is a special case near the bottom of configure.in instead of with all the other function checks in the AC_CHECK_FUNCS[] section in the middle? I know this patch

[issue12188] PEP 7, C style: add ++ policy and explanation

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: I'm not sure it's worth adding this to the PEP 7. The PEP is about conventions and style not idioms. PEP 8 has a section about Programming Recommendations that contains a few idioms, but since PEP 7 doesn't have an equivalent section, I

[issue11906] test_argparse failure in interactive mode

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Terry, I think you can apply the patch you proposed in msg137085 and close this issue. If the recommended structure of test files is not documented, a section in the devguide should be added, but that's another issue. (FWIW I'm not even

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Python 3.1.4 should be released today, so I think it's too late for this to be fixed. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10449

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The release date of 3.1.4 is actually June 11th. Today will be released an RC though, so what I said should still apply. -- ___ Python tracker rep...@bugs.python.org

[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12170 ___ ___

[issue9382] os.popen referenced but not documented in Python 3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9382 ___ ___ Python-bugs-list

[issue10224] Build 3.x documentation using python3.x

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10224 ___ ___

[issue10225] Fix doctest runable examples in python manual

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10225 ___ ___

[issue985064] plistlib crashes too easily on bad files

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a2688e252204 by Ned Deily in branch '3.1': Issue #985064: Make plistlib more resilient to faulty input plists. http://hg.python.org/cpython/rev/a2688e252204 New changeset f555d959a5d7 by Ned Deily in branch '3.2': Issue #985064:

[issue985064] plistlib crashes too easily on bad files

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thank you for the patch and tests! Applied in 3.1 (for 3.1.4), 3.2 (for 3.2.1), and 3.3. (The 2.x version of plistlib differs somewhat from the 3.x version so the patch would need some rework and testing for 2.7; that is probably not worth the effort

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Does this change have a visible effect? If so, can it have some unit test? Otherwise pypy and other alternative implementations are likely to miss this change. -- nosy: +amaury.forgeotdarc

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___ ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Out of interest, is there any reason that the configure check for pipe2 is a special case near the bottom of configure.in instead of with all the other function checks in the AC_CHECK_FUNCS[] section in the middle? No clue. I'll

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: -- nosy: +gregory.p.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12196 ___ ___

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: I think, if you speak to RM, you can just have this change in. Don't we get no commits please email request from RM with hg or is the branch already cut? -- ___ Python tracker

[issue12199] Unify TryExcept and TryFinally

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: From my review: One genuine problem with a stale assert and comment in ast.c, and a small objection to style in compile.c (I'd like a new compile_try() function to match the new AST node). Otherwise looked good in a desk review. --

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: The AST version changed, and, more importantly, if other implementations pick up our AST changes without updating their compilers accordingly, their symbol table analysis and code compilation processes will break. So yes, the test suite does

[issue12196] add pipe2() to the os module

2011-05-28 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: Also, the pure python implementation of subprocess for posix can now be updated to use pipe2 if it exists (previously on _posixsubprocess.c used it). I don't understand the last part :-) What do you suggest? Perhaps, os.pipe2 can

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Thanks for this answer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___ ___

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: One other thing I should mention is that in a later checkin, Benjamin did add a couple of explicit with statement examples to test_ast. These will fail if other implementations don't update the front end of their compilation processes

[issue12106] reflect syntatic sugar in with ast

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: That would be c4ddb460f4f2. -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12106 ___

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: Note that usually 'self' is not included in the arguments of methods. The 3.3 doc correctly uses e.g. copy_sign(other). A 'd.' could also be added so that the end result looks like: d.copy_sign(other) but it's not mandatory (if done,

[issue10449] “os.environ was modified by test_httpservers”

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10449 ___ ___

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12185 ___ ___

[issue11699] Doc for optparse.OptionParser.get_option_group is wrong

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11699 ___ ___

[issue12084] os.stat() on windows doesn't consider relative symlink

2011-05-28 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: To the extent that we can, we should try to support relative symlinks. Absolute symlinks aren't the right thing in some cases, where the symlinks should be movable with their targets. I use relative links extensively. Is it worth

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-05-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset a2f088cf7ced by Ned Deily in branch '2.7': Issue #11217: For 64-bit/32-bit Mac OS X universal framework builds, http://hg.python.org/cpython/rev/a2f088cf7ced New changeset 7f2e3c466d57 by Ned Deily in branch '3.2': Issue #11217: For

[issue11644] Cross-link 2to3 documentation, what’s new and pyporting howto

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11644 ___ ___

[issue11203] gzip doc is behind

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11203 ___ ___

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the suggested patch. In addition to the installunixtools target, the altinstallunixtools target needed to be updated; it is used by default in the Python 3.x Makefiles. The applied fix causes the following additional symlinks to be added

[issue12201] Returning FILETIME is unsupported in msilib.SummaryInformation.GetProperty()

2011-05-28 Thread Mark Mc Mahon
New submission from Mark Mc Mahon mtnbikingm...@gmail.com: In _msi.c, summary_getproperty() and summary_setproperty() raise an exception if the type being set/got is VT_FILETIME. This issue is to track adding support for (or declining to support) FILETIMEs in

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-28 Thread Jonas H.
Jonas H. jo...@lophus.org added the comment: Does that look good to you? If it does, I'll go on using the script (http://paste.pocoo.org/show/396661/) on the 3.x docs. -- keywords: +patch Added file: http://bugs.python.org/file22164/p1.patch ___

[issue12202] Check status returns in msilib.SummaryInformation.GetProperty()

2011-05-28 Thread Mark Mc Mahon
New submission from Mark Mc Mahon mtnbikingm...@gmail.com: Per Eric V. Smith's comment issue1104 (msg134976) the return value of the call MsiSummaryInfoGetProperty() in summary_getproperty() (pc\_msi.c) is only checked for the error return ERROR_MORE_DATA. Other error values should be

[issue1104] msilib.SummaryInfo.GetProperty() truncates the string by one character

2011-05-28 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: Responding to Eric's comments 1. There are only three valid property types returned by MsiInteger, String FILETIME. (http://msdn.microsoft.com/en-us/library/aa372045%28v=VS.85%29.aspx) 2. That comment makes sense - I have entered a new

[issue12202] Check status returns in msilib.SummaryInformation.GetProperty()

2011-05-28 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: I have added tests to the patch - but it's not easy to know what would cause an error in MsiSummaryInfoGetProperty which would trigger the new code. -- keywords: +patch Added file:

[issue3099] On windows, import nul always succeed

2011-05-28 Thread Mark Mc Mahon
Mark Mc Mahon mtnbikingm...@gmail.com added the comment: I am not sure that I fully understand the issue - but it seems that trunk still has this issue. As stated by Amaury - this is on DEBUG builds only. c:\pcbuild\python_d.exe Python 3.3a0 (default, May 28 2011, 20:22:11) [MSC v.1500 32 bit

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Eric V. Smith
Eric V. Smith e...@trueblade.com added the comment: I'm not talking about the method itself but rather the descriptive text. For example: copy_sign(other) Return a copy of the first operand with the sign set to be the same as the sign of the second operand. There is no second operand,

[issue11217] python-32 not linked in /usr/local/bin in framework builds

2011-05-28 Thread Tom Loredo
Tom Loredo lor...@astro.cornell.edu added the comment: Thanks for handling this, Ned! -Tom -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11217 ___

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-05-28 Thread sorin
sorin sorin.sbar...@gmail.com added the comment: I think that distutils must me modified to auto detect supported architectures and use them, this without requiring you to hack ARCHFLAGS. The number of developers that need to build PPC binaries is at least one order of magnitude lower than

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: I just nuked the pure Python POSIX subprocess implementation in 70467:75ca834df824. No need for both implementations. _posixsubprocess is now the only option. -- ___ Python tracker

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Raymond Hettinger
Changes by Raymond Hettinger raymond.hettin...@gmail.com: -- assignee: docs@python - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12185 ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22154/posix_pipe2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12196 ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Changes by Charles-François Natali neolo...@free.fr: Removed file: http://bugs.python.org/file22151/support_pipe_max.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12196 ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I just nuked the pure Python POSIX subprocess implementation Nice. I've updated both patches to address Victor's comments on test_io and test_subprocess usage of PIPE_MAX_SIZE, and Ross' comment on pipe2's configure tests. I left

[issue11906] test_argparse failure in interactive mode

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I will when I get setup to do that again. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11906 ___

[issue12129] Document Object Model API - validation

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I suspect you are right, but do not know the rules, and have never used the module. There is no particular person maintaining xml.dom.X at present. Could you please fill in the ... after the import to give a complete minimal example that

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
John O'Connor tehj...@gmail.com added the comment: I started a draft in python. I am attaching the _pyio version along with tests. I will continue work on the C implementation and eventually documentation if this is well received. It seems straightforward, I am interested to see what you guys

[issue12053] Add prefetch() for Buffered IO (experiment)

2011-05-28 Thread John O'Connor
Changes by John O'Connor tehj...@gmail.com: Added file: http://bugs.python.org/file22169/issue12053-tests.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12053 ___

[issue12199] Unify TryExcept and TryFinally

2011-05-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Thanks for the review. New patch. -- Added file: http://bugs.python.org/file22170/try2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12199

[issue11893] Obsolete SSLFakeFile in smtplib?

2011-05-28 Thread Catalin Iacob
Catalin Iacob iacobcata...@gmail.com added the comment: Attached v1 of patch. Please review. There are some tests using GMail in test_smtpnet.py. They still pass with the patch. I also did manual tests with GMail with both SMTP + starttls and SMTP_SSL. The idea of the patch is that

[issue12134] json.dump much slower than dumps

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: From just reading the docs, it appears that json.dump(obj,fp) == fp.write(json.dumps(obj)) and it is easy to wonder why .dump even exists, as it seems a trivial abbreviation (and why not .dump and .dumpf instead). Since, '_one_shot' and

[issue12177] re.match raises MemoryError

2011-05-28 Thread Matthew Boehm
Matthew Boehm boehm.matt...@gmail.com added the comment: Here are some windows results with Python 2.7: import re re.match(()*?1, 1) _sre.SRE_Match object at 0x025C0E60 re.match(()+?1, 1) re.match(()+?1, 11) _sre.SRE_Match object at 0x025C0E60 re.match(()*?1, 11) _sre.SRE_Match object at

[issue12137] Error EBADF in test_urllibnet

2011-05-28 Thread Terry J. Reedy
Changes by Terry J. Reedy tjre...@udel.edu: -- title: EBADF in test_urllibnet - Error EBADF in test_urllibnet ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12137 ___

[issue12142] Reference cycle when importing ctypes

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: If you are able to rebuild Python, have you tried running the ctypes test after rebuilding with this change? And, does the test cover the internal uses of _array_type? -- nosy: +terry.reedy ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org added the comment: Include an appropriate Version Added annotation in the pipe2 documentation. Otherwise the current patches look good to me. -- ___ Python tracker rep...@bugs.python.org

[issue11785] email subpackages documentation problems

2011-05-28 Thread Adam Woodbeck
Changes by Adam Woodbeck adam.woodb...@gmail.com: -- nosy: +adam.woodbeck ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11785 ___ ___

[issue12196] add pipe2() to the os module

2011-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: For the record (for people reading this ticket later), the removal of the python version of the unix subprocess code was discussed on IRC, and it was clarified there that the reason for removing it is not that it duplicates the C code.

[issue12144] cookielib.CookieJar.make_cookies fails for cookies with 'expires' set

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Exceptions with traceback are ordinary behavior issues. 'Crash' means segfault or equivalent on Windows. And Jesus is correct. In general, include system with reports. With 3.2.0 IDLE on Winxp, adjusted 3.x code import urllib.request as ur,

[issue12148] Clarify or-ing together doctest option flags

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The basic fix is to replace the fake verb 'to or', conjugated not really properly as or's or or'ing, with the real noun 'bitwise-or'. help(doctest.testmod) ... Optional keyword arg optionflags or's together module constants, and

[issue12155] queue example doesn't stop worker threads

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The proposed change adds about 7 lines to show the 'trick' of putting num-worker Nones on the queue. I think that is worth it. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I ran with 3.2, winxp with if __name__ == '__main__': added after the def statement (without this, process spawned 150 processes before I got logged out) and ()s added to prints. Hung on pool.join as OP said. I could only stop by closing

[issue12162] Documentation about re \number

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: The doc consistently does NOT quote re's in the text. Rather, they are shaded gray, both in Windows help version and html version. So this one should not be treated differently. Most of the confusion reported is due to not reading the intro

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: Return a copy of *self* with the sign set to be the same as the sign of *other*. seems clearer to me. -- nosy: +terry.reedy ___ Python tracker rep...@bugs.python.org

[issue12157] join method of multiprocessing Pool object hangs if iterable argument of pool.map is empty

2011-05-28 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: When map is called, a MapResult object is created, which adds itself to the Pool's result cache. When the pool is shut down, the result handler thread waits until the cache drains (while cache and thread._state != TERMINATE). But

[issue12162] Documentation about re \number

2011-05-28 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Why it works is due to a quirk in the handling of python strings: if an apparent escape sequence doesn't mean anything, it is retained verbatim, including the '\' character. This is documented in

[issue11623] Distutils is reporting OSX 10.6 w/ XCode 4 as universal

2011-05-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: All that said, the best solution to the problem is to use an appropriately configured Python for the task at hand. If you want to build Python executables that are compatible with older OS X versions and Mac hardware (in particular, all machines

[issue12203] isinstance not functioning as documented

2011-05-28 Thread Joesph
New submission from Joesph someone...@gmail.com: #Example: class a(object): pass b = a() print([isinstance(a,object), isinstance(b,object)]) ''' outputs: [True, True] expected: [False, True] As class a is not instantiated it should return false. As-is isinstance is just a synonym for

[issue12203] isinstance not functioning as documented

2011-05-28 Thread Alex Gaynor
Alex Gaynor alex.gay...@gmail.com added the comment: I don't see why this is incorrect, type(a) - type, and object is a superclass of type. -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12203

[issue12203] isinstance not functioning as documented

2011-05-28 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Everything is an instance of object. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12203

[issue12185] Decimal documentation lists first and second arguments, should be self and other

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: In this case using: d.copy_sign(other) and then refer to 'd' and 'other' might be clearer. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12185

[issue8583] Hardcoded namespace_separator in the cElementTree.XMLParser

2011-05-28 Thread library.engine
library.engine library.eng...@gmail.com added the comment: What is so implicit in the passing of a list of undesired namespaces to the parse function? This is quite explicit, in my humble opinion, and it lets you not to repeat yourself for each and every tag you want to find in the tree, as

[issue12162] Documentation about re \number

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The regex sets (\d\w\s\D\W\S) don't match any Python escape sequence, so even if some suggest to always use r'' regardless, I don't find it necessary, especially for simple regexs. The two conflicting escape sequences to keep in mind are

[issue12134] json.dump much slower than dumps

2011-05-28 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com added the comment: The name dump and dumps exist to match the same API provided by pickle and marshal. I agree that a note marked as CPython implementation detail should be added. -- keywords: +easy -patch stage: - needs patch versions: +Python

[issue11975] Fix referencing of built-in types (list, int, ...)

2011-05-28 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +georg.brandl stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11975 ___

[issue12204] str.upper converts to title

2011-05-28 Thread py.user
New submission from py.user port...@yandex.ru: specification 1) str.upper()¶ Return a copy of the string converted to uppercase. 2) str.isupper()¶ Return true if all cased characters in the string are uppercase and there is at least one cased character, false otherwise. Cased