[issue18958] Exception('No JSON object could be decoded') when parsing a valid JSON

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +easy nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: If the goal is avoiding merging conflicts, a Mercurial hook might solve this problem. This has been already suggested and discussed on python-dev a while ago. Anything more complex than that would likely cause more problems that it solves. --

[issue18968] Find a way to detect incorrectly skipped tests

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: Isn't this a duplicate of #16056? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list m

[issue18968] Find a way to detect incorrectly skipped tests

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: See also 16079. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: Antoine: Script isn't far enough along to care about manual edits. David: That's fine, but I'm opposed to having to manually edit Misc/NEWS. =) -- ___ Python tracker ___

[issue18059] Add multibyte encoding support to pyexpat

2013-09-13 Thread Eli Bendersky
Changes by Eli Bendersky : -- nosy: -eli.bendersky ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mai

[issue18937] add unittest assertion for logging

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch: - documentation added - tests improved a bit and style fixed (removed leading underscores on helper methods) -- Added file: http://bugs.python.org/file31750/assertlogs2.patch ___ Python trac

[issue18959] Create a "Superseded modules" section in standard library ToC

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18986] Add a case-insensitive case-preserving dict

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Did you try any other microbenchmarks? Your approach sounds promising. Any microbenchmarks which I tried did not show any interesting. Until I found the cause of slowing down ComplexPythonFunctionCalls I have no idea which tests can be representable. Of c

[issue18971] Use argparse in the profile/cProfile modules

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: Is the command-line interface covered by tests? -- nosy: +ezio.melotti ___ Python tracker ___ ___ Pyth

[issue18990] Remove unnecessary API inconsistency from ElementTree.XMLPullParser.close()

2013-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: I've updated the lxml documentation to reflect the new implementation. It also has a couple of examples that show how the API works now. https://github.com/lxml/lxml/blob/74ab4b10176750e7797eb0eff3c7c91901ab6adb/doc/parsing.txt#L509 --

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I am opposed to generating NEWS from the commit messages. I thought Antoine > was too. I am *a priori* skeptical that auto-generating NEWS can give good enough results, but I don't mind being proven wrong :-) --

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: I get the argument against, but from my experience the difference between the opening line of a commit and what goes into Misc/NEWS is negligible at best. All of the commit-specific stuff for me goes "below the fold" after \n\n. And while the goal is partially t

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.09.2013 22:23, R. David Murray wrote: > > R. David Murray added the comment: > > Just to be clear: the reason I am opposed is that the audience for Misc/NEWS > is different from the audience for commit messages, and I would prefer that > the text re

[issue18716] Deprecate the formatter module

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: Making a deferred blocker to make sure I get around to deprecating before b1. -- priority: normal -> deferred blocker ___ Python tracker ___ _

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread R. David Murray
R. David Murray added the comment: I am opposed to generating NEWS from the commit messages. I thought Antoine was too. -- ___ Python tracker ___ __

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: > it's also to avoid writing the same thing essentially twice Before committing I always make an "hg di" to double-check, and then copy (part of) the Misc/NEWS entry (that usually happens to be conveniently placed at the end of the diff) in the commit message.

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: I would argue, MAL, that what you want Misc/NEWS to be should instead be merged into the end of What's New. If something changed which could potentially break a user it should be listed in the most visible upgrade doc we have. Otherwise pouring through Misc/NEWS

[issue18955] Confusing documentation in Lib/importlib/util.py

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ecc18ec4a12e by Brett Cannon in branch 'default': Issue #18955: clarify what is removed by importlib.util.module_for_loader. http://hg.python.org/cpython/rev/ecc18ec4a12e -- nosy: +python-dev ___ Python t

[issue19014] Allow memoryview.cast() for empty views

2013-09-13 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: This is one of most annoying things in Python to me. When you want accept any bytes-like object in you bytes-processing function you need special case empty input. def foo(data): data = memoryview(data) if data: data = data.cast('B') el

[issue18955] Confusing documentation in Lib/importlib/util.py

2013-09-13 Thread Brett Cannon
Changes by Brett Cannon : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue18981] Typo in the ctypes tests

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! -- assignee: docs@python -> ezio.melotti nosy: +ezio.melotti resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.6, Python 3.1, Python 3.2, Python 3.5

[issue18981] Typo in the ctypes tests

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset b90ba60c5029 by Ezio Melotti in branch '2.7': #18981: fix a typo in a comment (noticed by Anoop Thomas Mathew). http://hg.python.org/cpython/rev/b90ba60c5029 New changeset 9fcb9deb70f5 by Ezio Melotti in branch '3.3': #18981: fix a typo in a comment

[issue19014] Allow memoryview.cast() for empty views

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: This actually sounds like a bug to me. A view over the empty bytestring is a one-dimensional zero-length view, it isn't a special kind of entity. -- nosy: +ncoghlan stage: -> needs patch type: enhancement -> behavior versions: +Python 3.3

[issue18971] Use argparse in the profile/cProfile modules

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: No. And I know your next proposition. :-( -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue18948] deliberately crashing tests should prevent core dumps

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I've left a comment on the review tool above. You can click on the "review" link if you haven't received an e-mail. -- ___ Python tracker _

[issue19014] Allow memoryview.cast() for empty views

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Cool. Therefore I can hope on fixing this in maintained releases? -- ___ Python tracker ___ ___ Py

[issue19014] Allow memoryview.cast() for empty views

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Cool. Therefore I can hope on fixing this in maintained releases? Provided someone makes a patch :-) -- ___ Python tracker ___ __

[issue18985] Improve the documentation in fcntl module

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.p

[issue18206] license url in site.py should always use X.Y.Z form of version number

2013-09-13 Thread R. David Murray
R. David Murray added the comment: The test needs to be fixed so that it runs even when the LICENSE file exists. (It is also missing the skip when the network resource is not asserted.) I have a patched test, and a fix for the 3.4 problem, but I can't apply it because the 3.4.0 license file d

[issue18022] Inconsistency between quopri.decodestring() and email.quoprimime.decode()

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: So what scheme we will picked? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti, neologix stage: -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Berker Peksag
Changes by Berker Peksag : -- nosy: +berker.peksag ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail

[issue18731] Increased test coverage for uu and telnet

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue19014] Allow memoryview.cast() for empty views

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. I can't tell whether it's right for sure, since the whole buffer thing has become so complicated. -- keywords: +patch Added file: http://bugs.python.org/file31751/zerocast.patch ___ Python tracker <

[issue18967] Find a less conflict prone approach to Misc/NEWS

2013-09-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.09.2013 22:51, Brett Cannon wrote: > > Brett Cannon added the comment: > > I would argue, MAL, that what you want Misc/NEWS to be should instead be > merged into the end of What's New. If something changed which could > potentially break a user it s

[issue18948] deliberately crashing tests should prevent core dumps

2013-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18987] distutils.utils.get_platform() for 32-bit Python on a 64-bit machine

2013-09-13 Thread Ned Deily
Ned Deily added the comment: A compatibility issue here is that the value provided by get_platform() is also used outside of Distutils, in particular by pkg_resources (provided by setuptools) and by pip, in both cases to help determine whether a binary distribution of an extension module is co

[issue18999] Robustness issues in multiprocessing.{get, set}_start_method

2013-09-13 Thread Richard Oudkerk
Richard Oudkerk added the comment: I'll review the patch. (According to http://www.python.org/dev/peps/pep-0429/ feature freeze is expected in late November, so there is not too much of rush.) -- ___ Python tracker

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 1d08ce952592 by Antoine Pitrou in branch 'default': Issue #19013: add unittest.main() epilogs to unittest's own test modules http://hg.python.org/cpython/rev/1d08ce952592 New changeset f81a53580c45 by Antoine Pitrou in branch 'default': Issue #19013

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: When trying to use a standard load_tests() inside a __main__.py, I get the following kind of errors: == ERROR: test_suite (unittest.loader.ModuleImportFailure) -

[issue18961] Non-UTF8 encoding line

2013-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18994] Inside fcntl module, we does not check the return code of all_ins function

2013-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19005] PyIter_Next crashes if passed a non-iterator

2013-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue19001] test_gdb fails on Fedora buildbot

2013-09-13 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.python

[issue18553] os.isatty() is not Unix only

2013-09-13 Thread STINNER Victor
STINNER Victor added the comment: Why only changing Python 2 documentation? http://docs.python.org/dev/library/os.html#os.isatty still mention "Availability: Unix." -- nosy: +haypo ___ Python tracker _

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset bbcdcdb06c66 by Antoine Pitrou in branch 'default': Issue #19013: add a __main__ to unittest.test to ease CLI invocation http://hg.python.org/cpython/rev/bbcdcdb06c66 -- ___ Python tracker

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset c2b926c0d0c2 by Antoine Pitrou in branch 'default': Issue #19013: add a __main__ to unittest.test.testmock to ease CLI invocation http://hg.python.org/cpython/rev/c2b926c0d0c2 -- ___ Python tracker

[issue19013] unittest's own test suite is not CLI-friendly

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue18553] os.isatty() is not Unix only

2013-09-13 Thread Senthil Kumaran
Senthil Kumaran added the comment: I had removed them in all. Something must have gone wrong if still present or I did a mistake. changeset: 85594:678e3c0d2d99 parent: 85591:c116b658aede parent: 85593:14ba90816930 user:Senthil Kumaran date:Sat Sep 07 11:30:04 2013

[issue18206] license url in site.py should always use X.Y.Z form of version number

2013-09-13 Thread py.user
py.user added the comment: R. David Murray wrote: >It is also missing the skip when the network resource is not asserted. How it connects, I copied from another python tests. The test was skipped without network connection. "support.requires('network')" ? >the 3.4.0 license file does not yet

[issue18206] The license url in site.py should always use X.Y.Z form of version number

2013-09-13 Thread py.user
Changes by py.user : -- title: license url in site.py should always use X.Y.Z form of version number -> The license url in site.py should always use X.Y.Z form of version number ___ Python tracker

[issue18206] The license url in site.py should always use X.Y.Z form of version number

2013-09-13 Thread py.user
py.user added the comment: The patch needs to be compatible with version 2.7 Now there urllib.request is importing only. -- ___ Python tracker ___ ___

[issue18948] deliberately crashing tests should prevent core dumps

2013-09-13 Thread Valerie Lambert
Valerie Lambert added the comment: Oops! That was careless. Fixed. -- Added file: http://bugs.python.org/file31752/issue-18948_v2.patch ___ Python tracker ___ ___

[issue19015] Too long command returns 32512

2013-09-13 Thread Sworddragon
New submission from Sworddragon: If a command gets too long os.system() will return 32512. As I have figured out from Google this normally happens if the command can't be found. In the attachments is an example command which will fail on os.system() (it was generated as test during development

[issue18989] reuse of enum names in class creation inconsistent

2013-09-13 Thread Nick Coghlan
Nick Coghlan added the comment: +1 from me to just allow the names to be overwritten, even by another enum member. -- ___ Python tracker ___ _

[issue19015] Too long command returns 32512

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Python simply delegates to the system() C function: http://pubs.opengroup.org/onlinepubs/9699919799/functions/system.html I don't think it's a Python-specific issue here. -- nosy: +pitrou ___ Python tracker

[issue19001] test_gdb fails on Fedora buildbot

2013-09-13 Thread Nick Coghlan
Nick Coghlan added the comment: I'd seen this locally, but hadn't got around to looking into it. I just realised it is likely related to the internal changes in sets, so I'll see if I can come up with a patch. -- nosy: +dmalcolm ___ Python tracker

[issue19001] test_gdb fails on Fedora buildbot

2013-09-13 Thread Nick Coghlan
Nick Coghlan added the comment: Running test_gdb on its own didn't reproduce the error in a threads-enabled build on Fedora 19. I'm now trying it with the same command line as the failed buildbot run: /python ./Tools/scripts/run_tests.py -j 1 -u all -W --timeout=3600 --randseed=6475478

[issue18989] reuse of enum names in class creation inconsistent

2013-09-13 Thread Ethan Furman
Ethan Furman added the comment: That is expressly forbidden in the PEP. Can we change it now? -- ___ Python tracker ___ ___ Python-bu

[issue18059] Add multibyte encoding support to pyexpat

2013-09-13 Thread Stefan Behnel
Stefan Behnel added the comment: I don't think I have my head deep enough in the encodings implementation to say that this is the correct/best way to do it, but the patch looks mostly reasonable to me and would be a helpful addition. I have two comments on the pyexpat_encoding_convert() functi

<    1   2