[issue14198] Backport parts of the new memoryview documentation

2014-05-14 Thread Stefan Krah
Stefan Krah added the comment: This is actually a lot of work, I don't think I'll have time for it. Please just reopen if you think there's a chance that someone will take the task. -- resolution: -> wont fix stage: -> resolved status: open -> closed

[issue21027] difflib new cli interface

2014-05-14 Thread Berker Peksag
Berker Peksag added the comment: > The HTML output contains an encoding in the : > See issue2052 for this. -- ___ Python tracker ___ ___

[issue21509] json.load fails to read UTF-8 file with (BOM) Byte Order Marks

2014-05-14 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +serhiy.storchaka ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://

[issue21504] can the subprocess module war using os.wait4 and so return usage?

2014-05-14 Thread donald petravick
donald petravick added the comment: Victor, thanks so much for reading my ticket and contacting me. I prototyped what makes sense to me by subclassing subprocess.Popen and Over-ridden the wait method to do what I suggested. Proof of concept attached. \ It¹s a bit of a hack since I cribbed code

[issue21507] set and frozenset constructor should use operator.length_hint to guess the size of the iterator

2014-05-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: I think the argument against using PyObject_LengthHint for the general iterable case is that for inputs other than sets or dicts, the assumption is that significant deduplication will occur. With your patch, if I run: myset = frozenset([0] * 100) it will

[issue21508] C API PyArg_ParseTuple doc is innacurate

2014-05-14 Thread Josh Rosenberg
Josh Rosenberg added the comment: You'd prefer it say it returns 1 on success and 0 on failure? Or non-zero on success, zero on failure? Is true/false that bad? After all, C says 0 is false, all other integer values are true; phrasing it as zero vs. non-zero may be slightly more technically a

[issue21027] difflib new cli interface

2014-05-14 Thread Raymond Hettinger
Raymond Hettinger added the comment: After more thought, I think this should remain in tools as a demo. We don't have an objective to create command-line tools to compete with existing well developed, tested tools. For the most part, our command line tools exposed through the -m option are fe

[issue21510] fma documentation should provide better example.

2014-05-14 Thread Jayanth Koushik
New submission from Jayanth Koushik: The documentation for decimal.fma provides an example which fails to illustrate the most important feature of the function i.e. single rounding. In fact: Decimal(2).fma(3, 5) == Decimal(2)*3 + 5 An example such as this would make it much more clear:

<    1   2