[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument
Eli Bendersky eli...@gmail.com added the comment: Attaching a patch that sets the record straight in 3.3 - the 3 methods will raise TypeError, in both C and Python implementations. Also adds a test that verifies this, and updating the documentation. Note that in the C implementation extend wasn't actually type-checking its argument as well, so I added it for consistency. I don't believe this will be a performance problem. On the contrary, there are some type checking calls inside the implementation that can probably be removed now that we make sure only subclasses of Element get in as children. I'll look into this later. -- keywords: +patch Added file: http://bugs.python.org/file24897/issue13782.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument
Changes by Eli Bendersky eli...@gmail.com: Removed file: http://bugs.python.org/file24897/issue13782.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13782] xml.etree.ElementTree: Element.append doesn't type-check its argument
Changes by Eli Bendersky eli...@gmail.com: Added file: http://bugs.python.org/file24898/issue13782.1.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13782 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: Here is the patch that fixes for 2.7 -- keywords: +patch nosy: +kirubakaran Added file: http://bugs.python.org/file24899/6566.2.7.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: Here is the patch that fixes for 3.3 -- Added file: http://bugs.python.org/file24900/6566.3.3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7c818b4cd98a by Senthil Kumaran in branch '2.7': explain json.dumps for non-string keys in dicts. closes issue6566. Patch contributed Kirubakaran Athmanathan http://hg.python.org/cpython/rev/7c818b4cd98a New changeset 613919591a05 by Senthil Kumaran in branch '3.2': 3.2 explain json.dumps for non-string keys in dicts. closes issue6566. Patch contributed Kirubakaran Athmanathan http://hg.python.org/cpython/rev/613919591a05 New changeset 0554183066b5 by Senthil Kumaran in branch 'default': merge from 3.2 - issue6566 http://hg.python.org/cpython/rev/0554183066b5 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords
Larry Hastings la...@hastings.org added the comment: Shouldn't using vgetargs1 with '$' in the format string just be an error? vgetargs1 doesn't know anything about keyword arguments. Thank you for catching that! Serves me right for search-and-destroy style development--I'm not that familiar with getargs.c. Fixed, which is to say I removed that gunk, in attached patch #4 against current trunk. -- Added file: http://bugs.python.org/file24901/larry.parsekwonly.diff.4.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13210] Support Visual Studio 2010
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'd like to subscribe to this newsletter. IMHO, it is important that people are able to compile python with VS2010 with minimum fuss. Not everyone has access to older compilers and forward compatibility shouldn't be that hard. There are to problems currently, as far as I can tell: 1) errnomodule.c needs to be changed to make sure WSAERROR and ERROR are the same. A patch to this effect exists already. 2) the .vcproj files don't upgrade correctly. The new ones have an extra TargetName property, optionally settable but defaults to ProjectName. This causes linker errors because of python's peculiar _d extension for debug. There is no easy fix for this so a solution would be, unfortunately, to maintain a separate PCBuild10 directory. What is there keeping this from moving forwards? -- nosy: +krisvale ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14315] zipfile.ZipFile() unable to open zip File
Serhiy Storchaka storch...@gmail.com added the comment: This is padding. Other implimentations just ignore it and Python must. -- keywords: +patch Added file: http://bugs.python.org/file24902/fix_zipfile_extra.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14315 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14346] Typos in Mac/README
New submission from Dionysios Kalofonos peite...@gmail.com: Mac/README had a few typos (see attached file for details). -- files: typos.patch keywords: patch messages: 156148 nosy: dk priority: normal severity: normal status: open title: Typos in Mac/README versions: Python 2.7 Added file: http://bugs.python.org/file24903/typos.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14346 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14302] Move python.exe to bin/
Martin v. Löwis mar...@v.loewis.de added the comment: I'm still in favor of the change, accepting any breakage that will result from it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14302 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13210] Support Visual Studio 2010
Martin v. Löwis mar...@v.loewis.de added the comment: IMHO, it is important that people are able to compile python with VS2010 with minimum fuss. Not everyone has access to older compilers and forward compatibility shouldn't be that hard. Not sure what you mean by forward compatibility. You cannot build extension modules with a different version of MSVC than you built Python with; that's inherent in the way the MS CRT works. This means that Python 2.7 and 3.2 will continue to use VS 2008 until their end-of-life, and extensions module authors will continue to need VS 2008. Getting the old compilers isn't that hard, either - the express edition of VS 2008 is still available for download. So whatever forward compatibiltiy is in this context - I think it is extremely hard. What is there keeping this from moving forwards? Brian Curtin has volunteered to work on this. Maybe he can comment on the status; there is little point in people duplicating efforts (except perhaps for publishing hg clones that add project files for the older branches, for people who want that). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14065] Element should support cyclic GC
Martin v. Löwis mar...@v.loewis.de added the comment: As a matter of principle, garbage collection in Python should *always* work, for all types, except for the one documented exception (cycles involving __del__). Failure of a type to properly garbage collect should be considered as serious as an interpreter crash; I hence propose this issue as release blocker. In addition, failure to support tp_traverse means that gc.get_referents doesn't work for the type, which is an inconvenience even in regular (non-cyclic) usage. -- priority: normal - release blocker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14065 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14337] Recent refleaks
Stefan Krah stefan-use...@bytereef.org added the comment: Nice. 0554183066b5 is completely clean except for a leak in test_curses. I think that one may be due to the fact that I'm running the tests in an ssh terminal. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14337 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14276] installing latest version of a project
Changes by Tshepang Lekhonkhobe tshep...@gmail.com: -- nosy: +tshepang ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14276 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13579] string.Formatter doesn't understand the !a conversion specifier
Francisco Martín Brugué franci...@email.de added the comment: However, I have not actually applied and run test_string.py. I've applied the issue13579_4720cc9e.patch to the changeset 0554183066b5 and applies without errors for me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14347] Misc/README
New submission from Dionysios Kalofonos peite...@gmail.com: Misc/README does not enumerate all the files in the Misc directory (see the attached file for more information). -- components: None files: files.patch keywords: patch messages: 156154 nosy: dk priority: normal severity: normal status: open title: Misc/README versions: Python 3.3 Added file: http://bugs.python.org/file24904/files.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue10516] Add list.clear() and list.copy()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 958a98bf924e by Eli Bendersky in branch 'default': updated whatsnew/3.3.rst with the new methods added to list and bytearray (issue 10516) http://hg.python.org/cpython/rev/958a98bf924e -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10516 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14348] Whitespace - Lib/base64.py
New submission from Dionysios Kalofonos peite...@gmail.com: Whitespace changes as of PEP8. -- components: Library (Lib) files: base64.patch keywords: patch messages: 156156 nosy: dk priority: normal severity: normal status: open title: Whitespace - Lib/base64.py versions: Python 3.3 Added file: http://bugs.python.org/file24905/base64.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12619] Automatically regenerate platform-specific modules
Ramchandra Apte maniandra...@gmail.com added the comment: +1 for this. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12619 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13579] string.Formatter doesn't understand the !a conversion specifier
R. David Murray rdmur...@bitdance.com added the comment: To answer your question about wrapping, it is best not to introduce noise into the patch. The person who commits it can rewrap (although even then it is nice to do the rewrapping in a separate changeset). -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14344] repr of email policies is wrong
R. David Murray rdmur...@bitdance.com added the comment: That doesn't produce an evalable repr, though. The repr should actually be Policy(linesep='\\r\\n', max_line_length=None) I'm not immediately seeing how to get that to happen. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14245] float rounding examples in FAQ are outdated
Zbyszek Szmek zbys...@in.waw.pl added the comment: Both appear to be commonly used. Both sound OK to me. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14245 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14349] The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly
New submission from Eli Bendersky eli...@gmail.com: The documentation of the MAKE_FUNCTION opcode in 'dis' says: Pushes a new function object on the stack. TOS is the code associated with the function. Which doesn't appear to be true. In Python/ceval.c: [...] TARGET_WITH_IMPL(MAKE_CLOSURE, _make_function) TARGET(MAKE_FUNCTION) _make_function: { int posdefaults = oparg 0xff; int kwdefaults = (oparg8) 0xff; int num_annotations = (oparg 16) 0x7fff; w = POP(); /* qualname */ v = POP(); /* code object */ x = PyFunction_NewWithQualName(v, f-f_globals, w); [...] -- assignee: docs@python components: Documentation messages: 156161 nosy: docs@python, eli.bendersky, ncoghlan priority: normal severity: normal stage: needs patch status: open title: The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly type: behavior versions: Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14306] try/except block is both efficient and expensive?
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 9a7dcfbcf726 by Georg Brandl in branch '3.2': Closes #14306: clarify expensiveness of try-except and update code snippet http://hg.python.org/cpython/rev/9a7dcfbcf726 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14344] repr of email policies is wrong
Éric Araujo mer...@netwok.org added the comment: I don’t understand why the repr should use \\r instead of \r. It seems to work: from email.policy import Policy, HTTP, strict strict Policy(raise_on_defect=True) eval(repr(strict)) Policy(raise_on_defect=True) HTTP Policy(linesep='\r\n', max_line_length=None) eval(repr(HTTP)) Policy(linesep='\r\n', max_line_length=None) HTTP.__dict__ {'max_line_length': None, 'linesep': '\r\n'} eval(repr(HTTP)).__dict__ {'max_line_length': None, 'linesep': '\r\n'} -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Éric Araujo mer...@netwok.org added the comment: Shouldn’t the 2.7 docs talk about str and unicode, or maybe basestring, instead of just str? -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14306] try/except block is both efficient and expensive?
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7a93f6ee2ebc by Georg Brandl in branch '2.7': Closes #14306: clarify expensiveness of try-except and update code snippet http://hg.python.org/cpython/rev/7a93f6ee2ebc -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14306 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14349] The documentation of 'dis' doesn't describe MAKE_FUNCTION correctly
Changes by Georg Brandl ge...@python.org: -- assignee: docs@python - pitrou nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14349 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Merlijn van Deen valhall...@gmail.com added the comment: Based on the discussion on python-dev [1], this is an updated implementation that uses encoding='bytes' to signal str-bytes behaviour. http://mail.python.org/pipermail/python-dev/2012-March/117536.html -- Added file: http://bugs.python.org/file24906/pickle_bytes_code.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6784] byte/unicode pickle incompatibilities between python2 and python3
Merlijn van Deen valhall...@gmail.com added the comment: ...and the tests to go with that. -- Added file: http://bugs.python.org/file24907/pickle_bytes_tests.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6784 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14342] In re's examples the example with recursion doesn't work
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8172d7dce0ed by Georg Brandl in branch '3.2': Closes #14342: remove out-of-date section about avoiding recursion errors. http://hg.python.org/cpython/rev/8172d7dce0ed -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14343] In re's examples the example with re.split() shadows builtin input()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 6cf5f963e0c4 by Georg Brandl in branch '3.2': Closes #14343: avoid shadowing builtin input() in example code. http://hg.python.org/cpython/rev/6cf5f963e0c4 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14342] In re's examples the example with recursion doesn't work
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 276f79e4b215 by Georg Brandl in branch '2.7': Closes #14342: remove out-of-date section about avoiding recursion errors. http://hg.python.org/cpython/rev/276f79e4b215 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14342 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14343] In re's examples the example with re.split() shadows builtin input()
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 483319c711d4 by Georg Brandl in branch '2.7': Closes #14343: avoid shadowing builtin input() in example code. http://hg.python.org/cpython/rev/483319c711d4 -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14343 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14250] for string patterns regex.flags is never equal to 0
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset b3b3a4a7d7b2 by Georg Brandl in branch '3.2': Closes #14250: regex.flags has not only explicit flags but also implicit flags and those from the pattern http://hg.python.org/cpython/rev/b3b3a4a7d7b2 -- nosy: +python-dev resolution: - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14250] for string patterns regex.flags is never equal to 0
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ac00531a63aa by Georg Brandl in branch '2.7': Closes #14250: regex.flags has not only explicit flags but also those from the pattern http://hg.python.org/cpython/rev/ac00531a63aa -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14250 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: The note added Keys in key/value pairs of JSON are always of the type str. When a dictionary is converted into JSON, all the keys of the dictionary are coerced to strings. is true for unicode keys too. '{foo: bar}' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Kirubakaran Athmanathan pyb...@kirubakaran.com added the comment: json.dumps({u'foo':'bar'}) '{foo: bar}' -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue6566] json.dumps converts None to null (not null)
Merlijn van Deen valhall...@gmail.com added the comment: JSON does not have the distinction between bytes and unicode; py2 strings are coerced into unicode. I think it would be better to speak about 'JSON string' or 'JSON string element' if it's JSON and about 'unicode' (2.7) or 'str' (3.x) when speaking about the data that has been decoded again. json.loads(json.dumps(boo)) u'boo' json.loads(json.dumps({a: b})) {u'a': u'b'} (the keys will always be unicode in 2.7) -- nosy: +valhallasw ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6566 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue11959] smtpd cannot be used without affecting global state
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11959 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13512] ~/.pypirc created insecurely
Barry A. Warsaw ba...@python.org added the comment: I don't think it's worth fixing in Python 2.6, at least not in 2.6.8 which is ready for rc2 today. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13210] Support Visual Studio 2010
Brian Curtin br...@python.org added the comment: Nothing's keeping it from moving forward at this point. Progress stagnated the last few months because I was busy doing organizational and PR work for PyCon. Now that the conference has passed, this and installer changes are on the top of my list. I will follow up with the current state of the port within the next few days (I should have time tomorrow evening). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13210 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Changes by Michele Orrù maker...@gmail.com: -- nosy: +maker ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14346] Typos in Mac/README
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3decf67e1a28 by Ned Deily in branch '2.7': Issue #14346: Fix some typos in the Mac/README file. http://hg.python.org/cpython/rev/3decf67e1a28 New changeset 7464c8cf7466 by Ned Deily in branch '3.2': Issue #14346: Fix some typos in the Mac/README file. http://hg.python.org/cpython/rev/7464c8cf7466 New changeset 4b222467acf4 by Ned Deily in branch 'default': Issue #14346: merge http://hg.python.org/cpython/rev/4b222467acf4 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14346 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14127] add st_*time_ns fileds to os.stat(), add ns keyword to os.*utime*(), os.*utimens*() expects a number of nanoseconds
Larry Hastings la...@hastings.org added the comment: Incorporated Greg's (hopefully) parting shot. Also put the as an integer back for the docs. Finally, munged the note about float seconds vs integer nanoseconds a bit; I think it's an improvement. Can I get the go ahead now, pretty please? -- assignee: - larry stage: - patch review Added file: http://bugs.python.org/file24908/larry.st_mtime_ns.patch.6.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14127 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14346] Typos in Mac/README
Ned Deily n...@acm.org added the comment: Thanks for the suggestions! -- assignee: - ned.deily components: +Documentation nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14346 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13579] string.Formatter doesn't understand the !a conversion specifier
Francisco Martín Brugué franci...@email.de added the comment: Ok, I've updated the patch. The NEWS entry could be: Issue #13579: string.Formatter now understands the !a conversion specifier. (not in the patch because AFAIN it makes the merge easier) Let me know if that's in the line you want. Thank you! -- Added file: http://bugs.python.org/file24909/issue13579_0554183066b5.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13579 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Michele Orrù maker...@gmail.com added the comment: This bug is becouse of Lib/unittest/loader.py:107 . So a quick fix would be to inherit from unittest.TestCase only in the exposed classes; but probably using a class decorator is the best solution. -- keywords: +patch Added file: http://bugs.python.org/file24910/issue14333_decorators.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Changes by Michele Orrù maker...@gmail.com: Added file: http://bugs.python.org/file24911/issue14333.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14347] Misc/README
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 65a0a6fab127 by Ned Deily in branch 'default': Issue #14347: Update Misc/README list of files. http://hg.python.org/cpython/rev/65a0a6fab127 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14347] Update Misc/README
Ned Deily n...@acm.org added the comment: Thanks for the suggestion! -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed title: Misc/README - Update Misc/README ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14347 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14328] Add keyword-only parameter support to PyArg_ParseTupleAndKeywords
Larry Hastings la...@hastings.org added the comment: Incorporated the latest round of suggestions from Benjamin's most recent--and very thorough!--review. Thanks, Benjamin! -- Added file: http://bugs.python.org/file24912/larry.parsekwonly.diff.5.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14328 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Georg Brandl ge...@python.org added the comment: The decorator solution looks overly mind-boggling for this simple case. BTW, I'm not sure we support calling our tests in this way, but it would be a good goal to, so I'm in favor of fixing these kinds of problems. -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12684] profile does not dump stats on exception like cProfile does
Georg Brandl ge...@python.org added the comment: The same fix should be applied to runctx() too. The SystemExit handling is fine, it's in the original code also. I would recommend making a single try-except-finally statement. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
New submission from Jakob Bowyer jkb...@gmail.com: Running: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] Code: import copy copy.copy(iter([1,2,3])) Exception: --- TypeError Traceback (most recent call last) T:\languages\Python27\Scripts\ipython-input-2-4b0069a09ded in module() 1 copy.copy(iter([1,2,3])) T:\languages\Python27\lib\copy.pyc in copy(x) 94 raise Error(un(shallow)copyable object of type %s % cl s) 95 --- 96 return _reconstruct(x, rv, 0) 97 98 T:\languages\Python27\lib\copy.pyc in _reconstruct(x, info, deep, memo) 327 if deep: 328 args = deepcopy(args, memo) -- 329 y = callable(*args) 330 memo[id(x)] = y 331 T:\languages\Python27\lib\copy_reg.pyc in __newobj__(cls, *args) 91 92 def __newobj__(cls, *args): --- 93 return cls.__new__(cls, *args) 94 95 def _slotnames(cls): TypeError: object.__new__(listiterator) is not safe, use listiterator.__new__() Either this is a bug or not a clear error message in the exception -- components: None messages: 156189 nosy: Jakob.Bowyer priority: normal severity: normal status: open title: Strange Exception from copying an iterable type: behavior versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14344] repr of email policies is wrong
R. David Murray rdmur...@bitdance.com added the comment: Ach, I screwed up my testing at the interactive interpreter. Yes, it does work, and I will commit the fix. Thanks for the report. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14344] repr of email policies is wrong
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 97b0cf9df420 by R David Murray in branch 'default': #14344: fixed the repr of email.policy objects. http://hg.python.org/cpython/rev/97b0cf9df420 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14344] repr of email policies is wrong
R. David Murray rdmur...@bitdance.com added the comment: Committed. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14344 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Antoine Pitrou pit...@free.fr added the comment: Sorry for the delay. I've run the tests (with OpenSSL 1.0.1-beta3) in debug mode and got an error: == ERROR: test_npn_ext (test.test_ssl.ThreadedTests) -- Traceback (most recent call last): File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1882, in test_npn_ext chatty=True, connectionchatty=True) File /home/antoine/cpython/default/Lib/test/test_ssl.py, line 1210, in server_params_test s.connect((HOST, server.port)) File /home/antoine/cpython/default/Lib/ssl.py, line 543, in connect self._real_connect(addr, False) File /home/antoine/cpython/default/Lib/ssl.py, line 533, in _real_connect self.do_handshake() File /home/antoine/cpython/default/Lib/ssl.py, line 513, in do_handshake self._sslobj.do_handshake() ssl.SSLError: [Errno 1] _ssl.c:434: error:140920E3:SSL routines:SSL3_GET_SERVER_HELLO:parse tlsext I've determined that this is because of the use of strlen() on a non-zero terminated string. I'll try to come up with an updated patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12757] undefined name in doctest.py
R. David Murray rdmur...@bitdance.com added the comment: The patch was actually by Brian Curtin, before he got commit privs :). Attached is a fix. I don't know what t.py has to do with the issue, though. I'm experimenting to see if I can trigger the bug before I apply the fix. -- keywords: +patch stage: needs patch - test needed Added file: http://bugs.python.org/file24913/doctest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12757] undefined name in doctest.py
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +brian.curtin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14351] Script error in 3.2.3rc1 Windows doc
New submission from Terry J. Reedy tjre...@udel.edu: 3.2.3rc1: When I click the Python manuals Start Menu icon, the Windows help version of the docs comes up, but with a Script Error box. Contents of the box: warning sign A error has occurred in the script on this page Line : 1 Char : 1 Error : The value of the property '$' is null or undefined, not a Function object Code : 0 URL : mk:@MSITStore:C:\...\pthon323rc1.chm:/_static/copybuttom.js Do you want to continue running script on this page? [yes] [no] Whether I click yes or no, clicking on anything, for instance, Language Reference, brings up the the error box again. After clicking away the error box, I get what I intended, but having to do that with every click makes that nice form of the doc, which I use daily, unusable. So I think this should be a release blocker. I did not notice before because I have been using and testing 3.3.0a1. The chm manual for that works fine, as normal. I have not loaded 2.7.3rc1. I am on Win7, 64bit. -- assignee: docs@python components: Documentation, Windows messages: 156195 nosy: docs@python, georg.brandl, loewis, terry.reedy priority: normal severity: normal status: open title: Script error in 3.2.3rc1 Windows doc type: behavior versions: Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2 won't install on Ubuntu
New submission from Alex Grönholm alex.gronholm+pyt...@nextday.fi: Running distutils2 hg tip (changeset 2cec52b682a9): The command pysetup install fails with: u'Python': u'2.7.2+' is not a valid version (field 'Version') Not that it should matter, but this is Ubuntu 11.10. Also, distutils2 installs fine using setup.py. -- assignee: eric.araujo components: Distutils2 files: d2log.txt messages: 156196 nosy: agronholm, alexis, eric.araujo, tarek priority: normal severity: normal status: open title: Distutils2 won't install on Ubuntu type: behavior versions: Python 3.3 Added file: http://bugs.python.org/file24914/d2log.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12757] undefined name in doctest.py
R. David Murray rdmur...@bitdance.com added the comment: OK, ./python -OO -m test test_json will trigger it. Updated fix attached. I'm not completely happy with it, though, since it prints the 'skipping test from module XXX' twice, and I don't know why (some unittest thing I'm not getting right, doubtless). -- nosy: +michael.foord Added file: http://bugs.python.org/file24915/doctest.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12757] undefined name in doctest.py
R. David Murray rdmur...@bitdance.com added the comment: Oh, in case anyone is wondering, the fix for -OO test runs was originally made because the unladen swallow folks ran the test suite that way. (I think someone else wanted it too, but I don't remember who). It's broken again, so I doubt anyone is actually doing this now, and if we want to keep supporting this use case (maybe we don't), then we should have a buildbot running the test suite with -OO. I might be able to set one up at some point. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12757 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14204] Support for the NPN extension to TLS/SSL
Antoine Pitrou pit...@free.fr added the comment: Here is a fixed patch. It also came to me that selected_protocol could be ambiguous, so I renamed it to selected_npn_protocol. -- Added file: http://bugs.python.org/file24916/npn.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14204 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14351] Script error in 3.2.3rc1 Windows doc
R. David Murray rdmur...@bitdance.com added the comment: I believe this was already found by someone (Georg, Martin?) and fixed by Ezio. -- assignee: docs@python - ezio.melotti nosy: +ezio.melotti, r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 118f7bdd631b by R David Murray in branch '3.2': #14333: fix test_queue so it can be run via standard unittest test discovery. http://hg.python.org/cpython/rev/118f7bdd631b New changeset 3ea4d7adb3e7 by R David Murray in branch 'default': Merge #14333: fix test_queue so it can be run via standard unittest test discovery. http://hg.python.org/cpython/rev/3ea4d7adb3e7 New changeset 340053208864 by R David Murray in branch '2.7': #14333: fix test_queue so it can be run via standard unittest test discovery. http://hg.python.org/cpython/rev/340053208864 -- nosy: +python-dev ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14353] Proper gettext support in locale module
Mel Flynn rfl...@acsalaska.net added the comment: Additional patch for 2.7 branch. -- Added file: http://bugs.python.org/file24918/python27-configure.in.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
R. David Murray rdmur...@bitdance.com added the comment: Not only do I think we should support calling our tests via unittest, I think we should move in the direction of having regrtest be implemented via standard unittest hooks rather than the monster it currently is. That will take quite a bit of effort, though :) Given that we are in fact using unittest, I think it is much clearer to follow the standard unittest pattern and have tests that are supposed to be run marked by subclassing TestCase, rather than by being explicitly nominated in boilerplate at the bottom. Certainly any new test files I write work that way (and I even explicitly use test discovery in test_email). -- nosy: +r.david.murray resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 2.7, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14353] Proper gettext support in locale module
New submission from Mel Flynn rfl...@acsalaska.net: Gettext support in Python is configured by two tests: - textdomain in libc or libintl - bind_textdomain_codeset in libc only The latter causes incomplete gettext support in the locale module. Since the implementation uses two different defines, the provided patch provides them and also ensures they exist. The issue is not present in 3.x branches, as only a single test is done for full gettext support in locale. -- components: Build files: python26-configure.in.patch keywords: patch messages: 156203 nosy: melflynn priority: normal severity: normal status: open title: Proper gettext support in locale module type: enhancement versions: Python 2.6, Python 2.7 Added file: http://bugs.python.org/file24917/python26-configure.in.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14353] Proper gettext support in locale module
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14353 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14355] imp module should omit references to init_frozen
New submission from Eric Snow ericsnowcurren...@gmail.com: The imp.init_frozen() function was removed from the documentation prior to 3.2 (changeset 2cf7bb2bbfb8). One reference to the function was left behind. I've attached a very intricate patch. wink -- assignee: docs@python components: Documentation files: imp_doc.rst messages: 156206 nosy: docs@python, eric.snow priority: normal severity: normal status: open title: imp module should omit references to init_frozen versions: Python 3.2, Python 3.3 Added file: http://bugs.python.org/file24920/imp_doc.rst ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14355 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14354] Crash in _ctypes_alloc_callback
New submission from Joe Rumsey pyt...@rumsey.org: I have reproduced this crash in Apple's default 2.7.1 python, and in 2.7.3 built from source myself. But only in release mode. If I rebuild 2.7.3 in debug, the crash goes away. The attached file reproduces the issue, which has to do with a union containing multiple structs being used as a value for a callback argument. I've stripped it down as much as I can. Removing any fields from either the union or the Dice struct will cause this to no longer crash. The original source of this is libtcod's python wrapper library, which seems to work fine on platforms other than Mac, though it had a lot of other problems on 64-bit systems before I got to this one. This issue may also be more 64-bit specific than Mac specific. This is the callstack from Apple's python: #0 0x0001010c7712 in _ctypes_alloc_callback () #1 0x0001010c4a1c in PyCData_AtAddress () #2 0x000100050afa in icu::DigitList::getDouble () #3 0x0001bd32 in PyObject_Call () #4 0x00010008bf63 in ubrk_swap () #5 0x00010008ecd8 in triedict_swap () #6 0x00010008ed4d in triedict_swap () #7 0x0001000a608f in ucnv_openStandardNames () #8 0x0001000a614f in ucnv_openStandardNames () #9 0x0001000a72a2 in ucnv_getUnicodeSet () #10 0x0001000b72af in ucnv_getDisplayName () #11 0x00010e88 in ?? () -- assignee: ronaldoussoren components: Macintosh, ctypes files: testctypes.py messages: 156205 nosy: ogre, ronaldoussoren priority: normal severity: normal status: open title: Crash in _ctypes_alloc_callback type: crash versions: Python 2.7 Added file: http://bugs.python.org/file24919/testctypes.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14295] PEP 417: adding mock module
Michael Foord mich...@voidspace.org.uk added the comment: Interesting. As I have to keep the external version of mock in sync with unittest.mock, and I have more important things to do first (like the docs) it would be a gratuitous change for no benefit. If you have any more substantive suggestions for code cleanup then feel free to suggest them. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14295 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14351] Script error in 3.2.3rc1 Windows doc
Terry J. Reedy tjre...@udel.edu added the comment: I hope you are right. The module docs server is also not working for me. Has that also been found and fixed (I don't see any issues) or should I file a separate report? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14351] Script error in 3.2.3rc1 Windows doc
Georg Brandl ge...@python.org added the comment: Yes, it should be fixed in rc2. The module docs server (I'm not familiar with that) is probably another issue. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14351] Script error in 3.2.3rc1 Windows doc
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: fixed - duplicate superseder: - 2.7.3rc1 chm gives JS error ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14351 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14354] Crash in _ctypes_alloc_callback
Joe Rumsey pyt...@rumsey.org added the comment: I just built python 3.2.2 from source, and reproduced the issue there as well. Same location. Here's the slightly more informative stack trace from my release-with-symbols 3.2.2 build: #0 _ctypes_alloc_callback (callable=0x7fff5fbfef20, converters=0x10003, restype=0x7fff5fbfef20, flags=1606414112) at callbacks.c:432 #1 0x0001010c5395 in PyCFuncPtr_new (type=0x7fff5fbfefc0, args=0x101010580, kwds=0x7fff5fbfefc0) at _ctypes.c:3372 #2 0x00010004986c in type_call (type=0x1006ca940, args=0x101041b90, kwds=0x0) at typeobject.c:676 #3 0x00018605 in PyObject_Call (func=0x1006ca940, arg=0x101041b90, kw=0x0) at abstract.c:2149 #4 0x00010008afcc in do_call [inlined] () at /Users/ogre/src/Python-3.2.2/Python/ceval.c:4141 #5 0x00010008afcc in PyEval_EvalFrameEx (f=0x7fff5fbff1c0, throwflag=1606414784) at ceval.c:3944 #6 0x00010009131b in PyEval_EvalCodeEx (_co=0x7fff5fbff260, globals=0x0, locals=0x1066c880101, args=0x7fff5fbff260, argcount=1606414944, kws=0x7fff5fbff260, kwcount=0, defs=0x0, defcount=0, kwdefs=0x0, closure=0x0) at ceval.c:3350 #7 0x00010009139f in PyEval_EvalCode (co=0x101066828, globals=0x101066c88, locals=0x0) at ceval.c:767 #8 0x0001000b0a21 in run_mod [inlined] () at /Users/ogre/src/Python-3.2.2/Python/pythonrun.c:1783 #9 0x0001000b0a21 in PyRun_FileExFlags (fp=0x7fff7c677ee0, filename=0x101066828 \002, start=0, globals=0x101066c88, locals=0x0, closeit=1, flags=0x7fff5fbff420) at pythonrun.c:1740 #10 0x0001000b2992 in PyRun_SimpleFileExFlags (fp=0x7fff7c677ee0, filename=0x10104ac20 testctypes.py, closeit=1606415200, flags=0x7fff5fbff360) at pythonrun.c:1265 #11 0x0001000c45af in run_file [inlined] () at /Users/ogre/src/Python-3.2.2/Modules/main.c:297 #12 0x0001000c45af in Py_Main (argc=1606415440, argv=0x7fff5fbff450) at main.c:692 #13 0x00011522 in main (argc=17197096, argv=0x100609fe0) at python.c:59 converters doesn't seem to be pointing at valid data. (gdb) p *converters $2 = { ob_refcnt = 3302829852670, ob_type = 0xe000200 } But, being an optimized build, it's hard to say (especially for me, having never debugged python itself before) if that's the real data or some optimizer-mangled version. -- versions: +Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2 won't install on Ubuntu
Éric Araujo mer...@netwok.org added the comment: Your log file seems to tell that the installation goes fine. The last message is just a warning. So what makes you say that d2 doesn’t install? -- versions: +3rd party ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2 won't install on Ubuntu
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: Being new to d2, I wouldn't know that the installation was completed successfully or if there was something left out. Regardless, this needs to be fixed. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2 won't install on Ubuntu
Éric Araujo mer...@netwok.org added the comment: I would agree, if you told me *what* needs to be fixed :) First, the unhelpful warning will go (that’s another bug); second, would you be satisfied if I added a logging message to tell that the installation completed successfully? The tradition of unix command-line applications is to say nothing if everything goes fine, but if we’re not working in quiet mode then a final logging message would be better. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2 won't install on Ubuntu
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: It doesn't say Warning there, so how was I supposed to determine that it's not an error which terminated the installation process? If it is indeed just a warning, just getting rid of it would fix this for me. However, will this cause trouble with requires-python in setup.cfg? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2: add logging message to report successful installation
Éric Araujo mer...@netwok.org added the comment: It doesn't say Warning there Right, so that’s a problem with our logging config. However, will this cause trouble with requires-python in setup.cfg? I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does produce the warning, so it’s unrelated. (The warning comes from d2.database.) -- title: Distutils2 won't install on Ubuntu - Distutils2: add logging message to report successful installation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13370] test_ctypes fails when building python with clang
Ned Deily n...@acm.org added the comment: An update: test_ctypes continues to fail on 2.7.3rc2 with exactly the same failures as originally reported when compiled non-debug 64-bit (x86_64) with either the latest clang *or* llvm-gcc from Xcode 4.3.1. It does not fail when compiled with gcc-4.2 from Xcode 3.2.6. Not does it fail with any of the three compilers when compiled and run as 32-bit (i386). So it does seem to come down to a difference between standard gcc and with the llvm-based compilers (clang, llvm-gcc), and not just clang. Python 2.7.3rc2 (2.7:f59ab537a5dc, Mar 17 2012, 15:26:37) [GCC 4.2.1 Compatible Apple Clang 3.1 (tags/Apple/clang-318.0.54)] on darwin Python 2.7.3rc2 (2.7:f59ab537a5dc, Mar 17 2012, 15:47:25) [GCC 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)] on darwin Python 2.7.3rc2 (2.7:f59ab537a5dc, Mar 17 2012, 16:08:58) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13370 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14352] Distutils2: add logging message to report successful installation
Alex Grönholm alex.gronholm+pyt...@nextday.fi added the comment: I’m not sure why you’re asking that, as d2’s setup.cfg does not use requires-python and does produce the warning, so it’s unrelated. (The warning comes from d2.database.) I was concerned that maybe the version comparator would barf on a version like 2.7.2+ and refuse to process the requires-python directive, but if you say this is not the case then I'll just leave it at that. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14352 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14354] Crash in _ctypes_alloc_callback
Ned Deily n...@acm.org added the comment: This is likely related to Issue13370 which documents test_ctypes failures when using either of the llvm-based compilers (clang or llvm-gcc) supplied with recent versions of Xcode 4. test_ctypes and your test both do not fail when Python is compiled with the standard (non-llvm) gcc-4.2 supplied in Xcode 3.2.6 (for OS X 10.6). -- nosy: +meador.inge, ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14354] Crash in _ctypes_alloc_callback
Joe Rumsey pyt...@rumsey.org added the comment: Thanks for that. This does seem to be the case. I rebuilt with CC=gcc-4.2 and my short sample and the full library I took it from both work fine. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14354 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14333] queue unittest errors
Matt Joiner anacro...@gmail.com added the comment: Yes, FWIW much of the standard library tests are callable this way without issue. I have patches that fix the discoverability of a few test modules. I'll submit these in another issue. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14333 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue12684] profile does not dump stats on exception like cProfile does
Matt Joiner anacro...@gmail.com added the comment: I will submit a patch for this soon. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12684 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14348] Whitespace - Lib/base64.py
Éric Araujo mer...@netwok.org added the comment: Hi Dionysios. In the standard library, we do not usually make cosmetic changes, because they don’t bring much value, make the version control history less useful, and take time that could be spent on fixing bugs or adding features. Please read msg154729 for a longer explanation. Adding another core developer to confirm. Please don’t let this stop you from making other patches; there are a ton of bugs to choose from and your willingness to contribute is very much appreciated. -- nosy: +eric.araujo, r.david.murray resolution: - wont fix stage: - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13009] Remove documentation in distutils2 repo
Éric Araujo mer...@netwok.org added the comment: Done in 21b8e29bcd5c. -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13009 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13512] ~/.pypirc created insecurely
Benjamin Peterson benja...@python.org added the comment: Check it in. It looks innocent enough to put in 2.7.3 final. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13512] ~/.pypirc created insecurely
Benjamin Peterson benja...@python.org added the comment: On the other hand, it doesn't seem to be a very pressing issue, so let's wait for 2.7.4. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue13512] ~/.pypirc created insecurely
Éric Araujo mer...@netwok.org added the comment: Alright, I’ll commit normally to the stable and development versions, skipping the security-mode branches. -- type: security - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13512 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
Ramchandra Apte maniandra...@gmail.com added the comment: I get a normal exception. I see ipython at the top level in 'T:\languages\Python27\Scripts\ipython-input-2-4b0069a09ded in module()' Perhaps you ran ipython accidentally? -- nosy: +ramchandra.apte ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14348] Whitespace - Lib/base64.py
R. David Murray rdmur...@bitdance.com added the comment: Yes, our preferred approach is to make such cleanups when we touch that section of code for some other reason. Like Éric said, your willingness to contribute is very much appreciated and we hope you'll find another bug to work on. -- status: pending - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14348 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
R. David Murray rdmur...@bitdance.com added the comment: @Ramchandra: I think you referring to the traceback format (which is indeed less useful than a normal Python traceback in the context of this tracker). The OP, however, is referring to the exception itself: TypeError: object.__new__(listiterator) is not safe, use listiterator.__new__() This is indeed a bit unexpected, though I don't know that copying iterators is actually supported. -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue14350] Strange Exception from copying an iterable
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14350 ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com