[issue15457] consistent treatment of generator terminology

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: Up until today, I had assumed that it was the generator.__next__ method that was associated with the compiled body. But in writing my response, I investigated and discovered >>> def gf(): yield None >>> gf().gi_code is gf.__code__ True Th

[issue15457] consistent treatment of generator terminology

2012-07-27 Thread Terry J. Reedy
Terry J. Reedy added the comment: I will try to read your new patch when I am fresher. -- ___ Python tracker <http://bugs.python.org/issue15457> ___ ___ Pytho

[issue15451] PATH is not honored in subprocess.Popen in win32

2012-07-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: What I understand you two as saying is that there seems to be an undocumented difference in execxxe between unix and windows which has been carried over to subprocess. In particular, for both, the PATH component of the env parameter is used to search for the

[issue8847] crash appending list and namedtuple

2012-07-30 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +ncoghlan ___ Python tracker <http://bugs.python.org/issue8847> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8847] crash appending list and namedtuple

2012-07-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I presume the previously crashing test cases should be added to the test suite, to detect reversion. Is there a method (faulthandler?) to keep tests going, or stop gracefully, when adding a once-crasher that could revert

[issue15295] Import machinery documentation

2012-08-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: Hope I'm not too late to the bikeshed painting party; just wanted to chip in with the suggestion of "self-contained package" for non-namespace packages. (i.e., a self-contained package is one that cannot be split across different sys.path ent

[issue15502] Meta path finders and path entry finders are different, but share an ABC

2012-08-02 Thread Phillip J. Eby
Phillip J. Eby added the comment: Per Nick's request that I redirect this here instead of #15295... (w/already-fixed things deleted): Hope I'm not too late to the bikeshed painting party; just wanted to chip in with the suggestion of "self-contained package" for no

[issue15550] Trailing white spaces

2012-08-05 Thread Terry J. Reedy
Terry J. Reedy added the comment: How is it more of a nuisance for C files than for .py files? Editor 'trim trailing' tools certainly don't care. -- nosy: +terry.reedy ___ Python tracker <http://bugs.pyt

[issue15554] correct and clarify str.splitlines() documentation

2012-08-05 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15554> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy
New submission from Terry J. Reedy: On Windows, 3.3 socketserver defines 12 classes in 3 categories: servers, server mixins, and handlers. (At least, these are the one listed with dir(socketserver). Only BaseServer is indexed. I think all should be. There are also a couple of text issues

[issue15608] Improve socketserver doc

2012-08-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: BaseRequestHandler.__init__(self, request) apparently attaches request to the instance as self.request. The methods are called in this order: setup, handle, finish. If they must be confusingly documented in the opposite order, it would be good for the head

[issue15618] turtle.pencolor() chokes on unicode

2012-08-10 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15618> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11549] Build-out an AST optimizer, moving some functionality out of the peephole optimizer

2012-08-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: In msg132312 Nick asked "where do we stand in regards to backwards compatibility of the AST?" The current ast module chapter, second sentence, says ""The abstract syntax itself might change with each Python release;" this

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: On Windows, .rst files are not part of the install, so running doctests on .rst files cannot be a required part of the standard regrtest. -- nosy: +terry.reedy versions: +Python 3.4 ___ Python tracker <h

[issue15634] Add serialized decorator to the threading module

2012-08-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- title: synchronized decorator for the threading module -> Add serialized decorator to the threading module ___ Python tracker <http://bugs.python.org/issu

[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Once a version goes off normal maintenance, we stop patching the manual except for changes related to security fixes. So the 3.1 manual is also frozen (except for possible security fixes). The same is true of 2.6 and will be true of 3.2 when its final

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: Your OS and distribution/version might be relevant information. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15

[issue15660] In str.format there is a misleading error message about alignment

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I read the docs, the error message is correct and this issue is invalid as a behavior issue. I read the OP's second message as more or less saying this also. "'='Forces the padding to be placed after the sign (if any) but before

[issue15660] In str.format there is a misleading error message about alignment

2012-08-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> fixed ___ Python tracker <http://bugs.python.org/issue15660> ___ ___ Python-bugs-list mailing list Unsubscri

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2012-08-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> committed/rejected status: open -> closed title: In str.format there is a misleading error message about alignment -> Clarify 0 prefix for width specifier in str.format doc, ___ Pytho

[issue15660] Clarify 0 prefix for width specifier in str.format doc,

2012-08-17 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- assignee: docs@python -> terry.reedy ___ Python tracker <http://bugs.python.org/issue15660> ___ ___ Python-bugs-list mai

[issue15718] Possible OverflowError in __len__ method undocumented (when called via len() function)

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: In #12159, Victor correctly labelled this an implementation (IE, CPython) detail (limitation). I don't believe any implementation has to limit the range of len(). So the question is whether we should add a CPython implementation limit note, includin

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-17 Thread Terry J. Reedy
Terry J. Reedy added the comment: I believe there are known problems with 3.3 and mac, so I added the mac experts. -- nosy: +hynek, ned.deily, ronaldoussoren ___ Python tracker <http://bugs.python.org/issue15

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: I had the impression that there *were* problems with compiling 3.3 on the new OSX and Xcode or something. If that is wrong or all fixed, great. Sorry for the noise. -- ___ Python tracker <http://bugs.python.

[issue15645] 2to3 Grammar pickles not created when upgrading to 3.3.0b2

2012-08-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: If necessary, ask on pydev. -- ___ Python tracker <http://bugs.python.org/issue15645> ___ ___ Python-bugs-list mailing list Unsub

[issue13799] Base 16 should be hexadecimal in Unicode HOWTO

2012-08-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> rejected stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue1207589] Right Click Context Menu

2012-08-22 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy ___ Python tracker <http://bugs.python.org/issue1207589> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11776] Constructor signatures missing in types module documentation

2012-08-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: "class types.MappingProxyType(mapping) Read-only proxy of a mapping. ..." is the only class in 7.11.2. Standard Interpreter Types that *does* have a signature given in the text. However, the extra word 'class' here and for SimpleNamespa

[issue11776] Constructor signatures missing in types module documentation

2012-08-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: LambdaType is a synonym for FunctionType. There should be just one entry, as currently, but perhaps make that a bit clearer, as one could misread the current line as saying that FunctionType is the type of def statements and LambdaType is the type of lambda

[issue15136] Decimal accepting Fraction

2012-08-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: After reading the comments, I am ambivalent about a conversion function, and given the lack of consensus or even a clear majority, -1. (Which implies a change in issue title.) I am +1 on using the new .format() machinery to have fractions format themselves

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Terry J. Reedy
New submission from Terry J. Reedy: I propose that we add 'of ' to all ZeroDivisionError messagesso it is less necessary to use a debugger to add print statements to recover the information currently tossed away. (I also propose to change denominator from 'zero' to &#

[issue15815] Add numerator to ZeroDivisionError messages

2012-08-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: In case the value of the numerator helps find out why the denominator is 0. The example given by Mike Graham on python-ideas, Verbose traceback formatting was def f(a): x = a * 4 y = a - 4 return x / y

[issue14783] Make int() and str() docstrings correct

2012-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: The large issue is documenting complex signatures that do not really fit in any of the standard one-line patterns. I was initially puzzled by Raymond describing the 3.3 line as 'confusing', but putting on 'newbie glasses' I see now th

[issue15780] IDLE (windows) with PYTHONPATH and multiple python versions

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3 ___ Python tracker <http://bugs.python.org/issue15

[issue15786] IDLE code completion window does not scoll/select with mouse

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +serwy, terry.reedy ___ Python tracker <http://bugs.python.org/issue15786> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15809] IDLE console uses incorrect encoding.

2012-08-31 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15809> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
New submission from Terry J. Reedy: For the Windows Help version of the docs, the left side box has 4 tabs: Contents, Index, Search, Favorites. I now mostly use the Index tab. That means that I can enter an indexed keyword, topic, or object name and jump from place to place in the docs. The

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I am not the only person who finds the 4 lines of Quick search [ ] [go] Enter search terms or a module, class or function name. more eye-catching than the more useful modules | index in

[issue15871] Online docs: make index search always available.

2012-09-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'print' *is* a function name ;-) which also happens to be a common word. If the current search box gives you the page where the function is defined, searching the index first should give you the

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Enhancements can only be targeted at 3.4, where robotparser is now urllib.robotparser I wonder if documenting the simple solution would be sufficient. -- nosy: +orsenthil, terry.reedy versions: +Python 3.4 -Python 2.7

[issue15851] Lib/robotparser.py doesn't accept setting a user agent string, instead it uses the default.

2012-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: In any case, a doc change *could* go in 2.7 and 3.3/2. -- ___ Python tracker <http://bugs.python.org/issue15851> ___ ___ Pytho

[issue15863] Fine-grained info about Python versions which support changes introduced in micro releases

2012-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not think there should be references between the Python 2 docs and Python 3 docs. But within each, I think it ok to have exceptional multiple references for what is, I believe, a unique situation: a security fix that required a new feature. Do it however

[issue15865] reflect bare star * in function signature documentation

2012-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: By looking at x.py, I confirmed that the added stars are correct. Also, the correction of 'header' to 'hdr' is correct. However, for threading.py in 3.3.0, I see class Thread: ... def __init__(self, group=None, target=None, name=None,

[issue4356] Add "key" argument to "bisect" module functions

2012-09-12 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue4356> ___ ___ Python-bugs-list mailing list Unsub

[issue15940] Time module: effect of locale

2012-09-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: "Module locale Internationalization services. The locale settings can affect the return values for some of the functions in the time module." This is vague and perhaps misleading. The doc also says "Locale information is not used by asct

[issue15941] Time module: effect of time.timezone change

2012-09-13 Thread Terry J. Reedy
New submission from Terry J. Reedy: "time.timezone The offset of the local (non-DST) timezone, in seconds west of UTC (negative in most of Western Europe, positive in the US, zero in the UK)." Quite aside from #9305 (UTC is not a place), this does not specify the effect of se

[issue15942] Time representation for Windows incorrect when BIOS clock set to localtime when calling time.localtime()

2012-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: For future reference: 2.6 is no longer supported except for security issues The same will soon (a month?) be true of 3.2. Win2k is no longer supported in 3.3 -- ___ Python tracker <http://bugs.python.org/issue15

[issue15941] Time module: effect of time.timezone change

2012-09-13 Thread Terry J. Reedy
Terry J. Reedy added the comment: #8810 and #9305 seem related, if not dups. You are right about module vars. They are all instances of one module class with one __setattr__. How about "Setting this attribute has no effect. See time.TZset or even better, the datetime module."

[issue15880] os.path.split() and long UNC names

2012-09-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15880> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue15883] Add Py_errno to work around multiple CRT issue

2012-09-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- type: behavior -> enhancement ___ Python tracker <http://bugs.python.org/issue15883> ___ ___ Python-bugs-list mailing list Un

[issue15887] urlencode should accept iterables of pairs

2012-09-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first sentence of the urlencode entry is a bit garbled as something is clearly missing. "Convert a mapping object or a sequence of two-element tuples, which may either be a str or a bytes, to a “percent-encoded” string." Mappings, duple sequ

[issue15421] Calendar.itermonthdates OverflowError

2012-09-20 Thread Terry J. Reedy
Terry J. Reedy added the comment: Context: http://issues.roundup-tracker.org/issue2550765 -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15

[issue15990] solidify argument/parameter terminology

2012-09-20 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue15990> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12067] Doc: remove errors about mixed-type comparisons.

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: After further thought: This section is about the syntax operators, not the special methods. The syntax operators never evaluate to NotImplemented as they (apparently) interpret its return from a special method the same as a raising of TypeError, and always

[issue15997] NotImplemented needs to be documented

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The first three sentences are fine. The problem I have is with the 4th: 'may return' is rather vague. Such methods may raise TypeError instead (the old way), seemingly to the same effect. (See msg170936 in issue #12067, which is about clar

[issue15998] Python GUI idle not working

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The following might also be helpful: which version of Windows? 32 or 64 bit? is python the 32 or 64 bit build? Or just copy the header line from the interactive interpreter. For me: Python 3.3.0rc2 (v3.3.0rc2:88a0792e8ba3, Sep 9 2012, 10:13:38) [MSC v.1600

[issue15956] backreference to named group does not work

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I read it as a 'native speaker' and it looks fine to me. Table is clear, but I will let doc stylist decide. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.o

[issue15974] Optional compact and colored output for regrest

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Great idea. By default, the windows console keeps fewer lines of output than regrtest generates, which means that earlier errors are gone before it finishes. -- nosy: +terry.reedy ___ Python tracker <h

[issue15978] asyncore: included batteries don't fit

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think discussion of this idea on python-ideas list would be better. There might be some controversy and alternatives presented. With a positive response, a PEP should probably follow with details on a module by module basis. As this stands, this is not

[issue15987] Provide a way to compare AST nodes for equality recursively

2012-09-21 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: -> test needed versions: -Python 3.3 ___ Python tracker <http://bugs.python.org/issue15987> ___ ___ Python-bugs-list mai

[issue15988] Inconsistency in overflow error messages of integer argument

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: The reason for the different messages is clear -- there are different internal tests (I presume in different functions), each of which raises its own error. What do you propose to change? The only thing I can imagine is that when the bytes converter calls the

[issue15996] pow() for complex numbers is rough around the edges

2012-09-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: Given that >>> 1.0**float('inf'), 1.0**float('-inf') (1.0, 1.0) works, >>> (1.0+0j)**(float('inf') + 0j) Traceback ... ZeroDivisionError: 0.0 to a negative or complex power (and same for ('-inf') se

[issue12067] Doc: remove errors about mixed-type comparisons.

2012-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: You are right, I did not look deep enough. I was fooled by the conversion of NotImplemented, returned from object.__le__, etc, to TypeError. Sorry for that noise. For comparison and arithmetic, the actual alternative to defining a function that returns

[issue15997] NotImplemented needs to be documented

2012-09-22 Thread Terry J. Reedy
Terry J. Reedy added the comment: I was wrong about TypeError; forget that. The seeming equivalent to 'return NotImplement' is not defining the method. My confusion stemed from the fact that NotImplemented returned from special methods gets intercepted and converted to TypeError exc

[issue15034] Devguide should document best practices for stdlib exceptions

2012-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: I think the Library Manual's chapter 5 on exceptions, currently called Built-in Exceptions, would be a good place for a section on subclassing exceptions. -- ___ Python tracker <http://bugs.python.org/is

[issue13440] Explain the "status quo wins a stalemate" principle in the devguide

2012-09-23 Thread Terry J. Reedy
Terry J. Reedy added the comment: Maybe just add links to the two essays. -- ___ Python tracker <http://bugs.python.org/issue13440> ___ ___ Python-bugs-list mailin

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
New submission from Terry J. Reedy: (from python-list thread "data attributes override method attributes?") "9.4. Random Remarks Data attributes override method attributes with the same name; to avoid accidental name conflicts, which may cause hard-to-find bugs in large progra

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Peter Otten thought the first clause should instead be ""Data attributes and method attributes share the same namespace.", which is also true for a given object. This is a different intepretation of what the original author was getting at.

[issue16048] Tutorial-classes-remarks: replace paragragh

2012-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Ian Kelly reminds me that instance.__xxx__ is only skipped by the internal machinery and not by direct accesses in user code. In the other hand, docs, official or otherwise, are filled with things like 'len(a) calls a.__len__', so I think something

[issue16010] Some Unicode in identifiers improperly rejected

2012-09-25 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- resolution: -> invalid ___ Python tracker <http://bugs.python.org/issue16010> ___ ___ Python-bugs-list mailing list Unsubscri

[issue16001] small ints: cache string representation

2012-09-25 Thread Terry J. Reedy
Terry J. Reedy added the comment: Small int caching saves both time and space. On a nearly fresh IDLE session: >>> sys.getrefcount(0) 772 >>> sys.getrefcount(1) 854 >>> sum(sys.getrefcount(i) for i in range(-5, 257)) 4878 While an interesting idea, I do not see th

[issue15815] Add numerator to ZeroDivisionError messages

2012-09-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: Not enough, at present, to leave this open. -- resolution: -> rejected status: open -> closed ___ Python tracker <http://bugs.python.org/i

[issue16074] bad error message in os.rename

2012-09-28 Thread Terry J. Reedy
Terry J. Reedy added the comment: Could you give a specific example of the message you got, why it is wrong, and what you think it should be? Is there any reason to think that this is Windows-specific? -- components: +Library (Lib) -Windows nosy: +terry.reedy stage: -> needs pa

[issue16103] Help() fails at raw_input readline (IDLE 2.7.3, Win7, pythonw)

2012-10-01 Thread Terry J. Reedy
New submission from Terry J. Reedy: Problem is only 2.7.3 (not 3.2.3, 3.3.0), tested on Windows Command Line Window >>> help() ... help> _ The _ is blinking, waiting for input. IDLE Shell >>> help() ... help> Traceback (most recent call last): File ""

[issue3982] support .format for bytes

2012-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: In 3.3+, somestring.encode('ascii') is a small constant-time operation. So for pure ascii *text* bytes, that seems the appropriate 3.x approach. I agree that something else should be used for binary formatting. Perhaps struct.pack could be extend

[issue3982] support .format for bytes

2012-10-02 Thread Terry J. Reedy
Terry J. Reedy added the comment: Sorry, I was thinking of something else. Encoding ascii-only text is merely much faster (3x?) than in 3.2- because it directly copies without using the codec. -- ___ Python tracker <http://bugs.python.

[issue13290] get vars for object with __slots__

2012-10-03 Thread Terry J. Reedy
Terry J. Reedy added the comment: As I understand it, var(ob) is pretty much a synonym for ob.__dict__. Without knowing the internal details, I think vars should do with slots what it would do if slots were not used and normal dicts were used. In particular, if a class is changed by adding

[issue16144] misleading sentence in reference/import

2012-10-06 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.3 ___ Python tracker <http://bugs.python.org/issue16144> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16155] Some minor doc fixes in Doc/faq

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Doc corrections (can) go in all current docs. 1.2 - 1.0: same change "Hello" * 3: same change dir([]): shouldn't output be line-wrapped 3.3: same 3.2: delete __dir__, clear, copy, giving ['__add__', '__class__', '__

[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I consider some items to be errors. In any case, all current docs can be fixed. First, your questions as to what you did not fix. fsum: I personally would add the import visibly, but at least add it hidden, as Chris suggested. 171 >>> from filec

[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Now your patch: colorsys: same change all versions fractions: ditto Template: ditto I believe the changes I suggested for filecmp and the numbers should also be the same in all versions. ACKS: your name should be inserted in alpha order

[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I considered the directive, but I mildly prefer the code change. end = ' ') guarantees a blank between fields even if one formats a too-large number end = '') does not add a blank to the end. end = '' if base ==

[issue14783] Make int() and str() docstrings correct

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I checked pretty carefully and it looks good to me. -- stage: patch review -> commit review ___ Python tracker <http://bugs.python.org/issu

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: http://docs.python.org/py3k/library/doctest.html#option-flags-and-directives has the improved version. Thanks. Here, the complete example text is more important than the hi-lites. -- ___ Python tracker <h

[issue16154] Some minor doc fixes in Doc/library

2012-10-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: Apparently, I should have suggested "# doctest: +SKIP". The #12947 fix to example directives being deleted from the directive examples came after the 3.3.0 release. Fixed examples are at http://docs.python.org/py3k/library/doctest.html#option

[issue16150] Implement generator interface in itertools.chain.

2012-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: In the python-ideas thread, "Propagating StopIteration value", Guido further elaborated "But that just seems to perpetuate the idea that you have, which IMO is wrongheaded. Itertools is for iterators, and all the extra generator features make

[issue15348] IDLE - shell becomes unresponsive if debugger windows is closed while active.

2012-10-08 Thread Terry J. Reedy
Terry J. Reedy added the comment: I have never used the debugger, but I verified the bug. While something was 'hung', the debugger would not restart because something was 'busy'. I also verified that clicking [quit] first and then [x] works. I will try to test the s

[issue12947] doctest directive examples in library/doctest.html lack the flags

2012-10-10 Thread Terry J. Reedy
Terry J. Reedy added the comment: I looked at http://docs.python.org/py3k/library/doctest.html#directives and the examples with directives looked fine to me, with directive, syntax markup, and 'hide prompt' box. I also checked the next section and saw the one example that needed t

[issue14937] IDLE's deficiency in the completion of file names (Python 32, Windows XP)

2012-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: This patch (I suspect it is this one) disabled the use of '/' in filenames on windows when using filename completion. 'c:\in 3.2.3 and 3.3.0> (If there is no 'r' prefix, it really should require '\\' to be safe.) &qu

[issue16198] IDLE - tabbing in a string always brings up file completion window

2012-10-11 Thread Terry J. Reedy
Terry J. Reedy added the comment: On windows, one tab brings up the box and in 3.2.3 and 2.7.3 also. Perhaps they should be revised also. The difference is that in those latter two, dismisses the box whereas in 3.3.0, it does not, making it even more obnoxious. Two more tabs inserts

[issue16210] combine the two type() definitions in built-in function docs

2012-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: In other words, change ''' type(object) Return the type of an object. ... ... With three arguments, type() functions as a constructor as detailed below. type(name, bases, dict) Return a new type object ''' to

[issue16213] Expose private functions in marshal used by importlib

2012-10-12 Thread Terry J. Reedy
Terry J. Reedy added the comment: marshal currently has a simple, coherent, high-level interface: dump and load serializations. _fix_co_filename sounds a bit hackish and ad hoc. Martin's suggestion looks to me like a better way to publicly expose filename setting. Making a function p

[issue16220] wsgiref does not call close() on iterable response

2012-10-13 Thread Phillip J. Eby
Phillip J. Eby added the comment: FYI, this looks like a bug in wsgiref.handlers.BaseHandler.finish_response(), which should probably be using a try/finally to ensure .close() gets called. (Which would catch a failed write() to the client.) I'm kind of amazed this has gone undetected

[issue8425] a -= b should be fast if a is a small set and b is a large set

2012-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- stage: needs patch -> patch review ___ Python tracker <http://bugs.python.org/issue8425> ___ ___ Python-bugs-list mailing list Un

[issue16083] HTTPServer does not correctly handle bad headers

2012-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: Is this really a security issue? If so, that should be explained. -- nosy: +terry.reedy ___ Python tracker <http://bugs.python.org/issue16

[issue8786] Add support for IEEE 754 contexts to decimal module.

2012-10-14 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue8786> ___ ___ Python-bugs-list mailing list Unsub

[issue8786] Add support for IEEE 754 contexts to decimal module.

2012-10-14 Thread Terry J. Reedy
Terry J. Reedy added the comment: I do not think IEEEContext should not be made a class rather than a function until it really *is* a subclass with altered or added behavior. This means at least its own __str__ method and in this case, a __setattr__ that enforces the invariants. Here that

[issue10836] urllib.request.urlretrieve calls URLError with 3 args

2012-10-15 Thread Terry J. Reedy
Terry J. Reedy added the comment: The presence of "During handling of the above exception, another exception occurred:" is part of an intentional change between 2.x and 3.x. Exception handling has been tweaked a bit more in the past year. 3.2.3 only gives the second half of the

[issue13897] Move fields relevant to sys.exc_info out of frame into generator/threadstate

2012-10-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue13897> ___ ___ Python-bugs-list mailing list Unsub

[issue13607] Move generator specific sections out of ceval.

2012-10-15 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- versions: +Python 3.4 -Python 3.3 ___ Python tracker <http://bugs.python.org/issue13607> ___ ___ Python-bugs-list mailing list Unsub

<    81   82   83   84   85   86   87   88   89   90   >