[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

[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

[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

[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

[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

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

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

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

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

[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

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

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

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

[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

[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

[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

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

[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

[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

[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

[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

[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

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

[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

[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

[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

[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

[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

[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

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

[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

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

[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

[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

[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

[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

[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

[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

[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

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

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

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

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

[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

[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

[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

[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

[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

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

[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

[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

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

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

2013-09-13 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +brett.cannon type: -> enhancement ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[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 R. David Murray
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 reflect that. Mine do :) -- ___ Python tracker

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

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Does it slow down regular dicts? > > I were surprized, but yes. The ComplexPythonFunctionCalls test from > pybench is 40% slower with ctransformdict.patch (and I still don't > known why). With dict__transform__.patch it is only 2% slower. All > other pybench

[issue18059] Add multibyte encoding support to pyexpat

2013-09-13 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- nosy: +scoder ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.pyt

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

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: > Does it slow down regular dicts? I were surprized, but yes. The ComplexPythonFunctionCalls test from pybench is 40% slower with ctransformdict.patch (and I still don't known why). With dict__transform__.patch it is only 2% slower. All other pybench tests a

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

2013-09-13 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Here is an alternative C implementation. It adds to the dict class support of the __transform__() method. If this method is defined in dict subclass it used to transforming keys. collections.TransformDict is just utilizes this feature as collections.defaultd

[issue18937] add unittest assertion for logging

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Question: should the default level threshold be INFO or WARNING? My initial patch uses INFO, but WARNING might be better since that's also logging's default level filter when not configured. -- ___ Python tracker

[issue19012] liburl2: bad proxy configuration throws "getaddrinfo" error

2013-09-13 Thread Sjoerd
New submission from Sjoerd: I'm sorry for providing very little information, but I don't have the system at hand anymore. Therefore I will try to reproduce what I know, hoping that you recognise the problem. If not, I will get back to the system and try to obtain the necessary information. Ca

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

2013-09-13 Thread Antoine Pitrou
New submission from Antoine Pitrou: Nothing happens when you try to execute it on the command line: $ ./python -m unittest.test /home/antoine/cpython/default/python: No module named unittest.test.__main__; 'unittest.test' is a package and cannot be directly executed $ ./python -m unittest.test.

[issue18951] In unittest.TestCase.assertRegex change "re" and "regex" to "r"

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 03e94f9884ce by Ezio Melotti in branch '3.3': #18951: use consistent names in unittest docs. http://hg.python.org/cpython/rev/03e94f9884ce New changeset eb332e3dc303 by Ezio Melotti in branch 'default': #18951: merge with 3.3. http://hg.python.org/c

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

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Decisions to make: Another important question: how do we manage manual edits to Misc/NEWS? Is the script smart enough to recognize those edits and not override them? -- ___ Python tracker

[issue18206] 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 : -- status: closed -> pending ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

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

2013-09-13 Thread Tshepang Lekhonkhobe
Changes by Tshepang Lekhonkhobe : -- nosy: +tshepang ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://ma

[issue18951] In unittest.TestCase.assertRegex change "re" and "regex" to "r"

2013-09-13 Thread Ezio Melotti
Ezio Melotti added the comment: Fixed, thanks for the report and the patch! I also updated the table entry for assertRaisesRegex and assertWarnsRegex. I avoid using "regex" instead of "re" or "r" to keep it short and avoid confusion with the re/regex modules. The documentation of the methods us

[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: Senthil Kumaran changed the pattern from: r'^See (http://www\.python\.org/[^/]+/license.html)$' to: r'^See (http://www\.python\.org/download/releases/[^/]+/license/)$' test doesn't pass [guest@localhost cpython]$ ./python Python 3.4.0a2+ (default, Sep 14 2013, 05:5

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

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: Example file at Antoine's request. Just don't forget, very rough and not at all finished. =) We probably can't use something like this until Python 3.5 in order to make sure everyone uses commit messages that make sense, but you can get a sense of whether it has

[issue18951] In unittest.TestCase.assertRegex change "re" and "regex" to "r"

2013-09-13 Thread py.user
py.user added the comment: ok, I will repeat patch contents in message by words to avoid guessing -- ___ Python tracker ___ ___ Python

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

2013-09-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I like the script name :-)... Other than that, can you attach a NEWS file such as generated by this script? -- ___ Python tracker ___ _

[issue19006] UnitTest docs should have a single list of assertions

2013-09-13 Thread Roy Smith
Roy Smith added the comment: The new text suggested by terry.reedy works for me. -- ___ Python tracker ___ ___ Python-bugs-list mailin

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

2013-09-13 Thread Brett Cannon
Brett Cannon added the comment: Attached is my rough attempt at a script to auto-generate Misc/NEWS from commit logs. Key points: - Works from the hg log in XML format as dumped to a file - Considers a commit newsworthy if it isn't a merge and either has an issue number or has an "interesting"

[issue19006] UnitTest docs should have a single list of assertions

2013-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I like the current division, but agree that The TestCase class provides a number of methods to check for and report failures, such as: is slightly misleading. I would change it to The TestCase class provides a number of methods to check for and report fa

[issue18974] Use argparse in the diff script

2013-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue18968] Find a way to detect incorrectly skipped tests

2013-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue18968] Find a way to detect incorrectly skipped tests

2013-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- components: +Tests ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.

[issue16201] socket.gethostbyname incorrectly parses ip

2013-09-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 540a9c69c2ea by Charles-François Natali in branch 'default': Issue #16201: socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for http://hg.python.org/cpython/rev/540a9c69c2ea -- nosy: +python-dev

[issue18965] 2to3 can produce illegal bytes literals

2013-09-13 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https:/

[issue18961] Non-UTF8 encoding line

2013-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: Which behavior do you propose to change? Does PEP263 specify the response to a self-contradictory encoding comment? What do you think it should say? I raising is the better behavior. Idle notices that it cannot save the file with iso8859-15 encoding, so it sa

[issue18951] In unittest.TestCase.assertRegex change "re" and "regex" to "r"

2013-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: [The information in titles, especially long titles that do not fit in the title box (on my system, at least) should be repeated in the opening message.] The point of the patch is to use the same name for the same object in the two columns* and to use a single

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
Chris Lambacher added the comment: For what it's worth, I was confused by the inability to access the class members from the instance for like 3 or 4 weeks until I realized that the instances were not actually on the class and the implications of that for class attribute access. -- _

[issue18960] First line can be executed twice

2013-09-13 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 13.09.2013 19:24, Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > I thought that that was the specification*: the encoding comment should be > the first line unless it has to be the second line to allow for an executable > comment. Exec

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
Chris Lambacher added the comment: You are not comparing the same thing. Normally when there is a class parameter, those are available from instances of the class. >>> class Test: ...pass ... >>> Test.this = Test() >>> Test.that = Test() >>> Test.this.that <__main__.Test instance at 0x7ff68

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Ethan Furman
Ethan Furman added the comment: My apologies, you are correct. I am still against this for the Alice reason, but lets see what the others think. -- resolution: rejected -> status: closed -> open ___ Python tracker

[issue17087] Improve the repr for regular expression match objects

2013-09-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: Added the new version. -- Added file: http://bugs.python.org/file31746/sre_repr3.patch ___ Python tracker ___

[issue18993] There is an overshadowed and invalid test in testmock.py

2013-09-13 Thread Vajrasky Kok
Vajrasky Kok added the comment: Okay, I found the difference. The second test case is to test the case on which we delete the attribute of the mock instance before being referenced by any variable. The we make sure the attribute is gone for good. The first test case is to test the case on whi

[issue18960] First line can be executed twice

2013-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: I thought that that was the specification*: the encoding comment should be the first line unless it has to be the second line to allow for an executable comment. Executing a non-comment first line twice is definitely contrary to the intent of the PEP. * I hav

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Ethan Furman
Ethan Furman added the comment: --> class Test: ... this = 'that' ... these = 'those' ... --> Test.this 'that' --> Test.this.these Traceback (most recent call last): File "", line 1, in AttributeError: 'str' obje

[issue19011] Enum should have a __getattr__ that makes all the instances available from an instance

2013-09-13 Thread Chris Lambacher
New submission from Chris Lambacher: The use case for this is that when you are in a template and you want to use the Enum instances in a conditional, then you need to pass the Enum class to the template or start using someenumvariable.__class__.someenumvalue. Instead it would be useful to be

[issue17087] Improve the repr for regular expression match objects

2013-09-13 Thread Claudiu.Popa
Claudiu.Popa added the comment: Here's the new version. I added a few replies on the Rietveld. -- Added file: http://bugs.python.org/file31744/sre_repr2.patch ___ Python tracker

[issue19010] Make XMLPullParser in ElementTree inherit from XMLParser

2013-09-13 Thread Stefan Behnel
New submission from Stefan Behnel: As mentioned in tickets #18902 and #17741, the XMLPullParser in the external lxml.etree package inherits from the existing XMLParser class. This makes the interface simpler, both simpler to explain and to implement. The implementation in ElementTree should do

  1   2   >