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
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
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
Changes by Terry J. Reedy :
--
nosy: +ncoghlan
___
Python tracker
<http://bugs.python.org/issue8847>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15554>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15618>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Changes by Terry J. Reedy :
--
resolution: -> fixed
___
Python tracker
<http://bugs.python.org/issue15660>
___
___
Python-bugs-list mailing list
Unsubscri
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
Changes by Terry J. Reedy :
--
assignee: docs@python -> terry.reedy
___
Python tracker
<http://bugs.python.org/issue15660>
___
___
Python-bugs-list mai
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
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
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.
Terry J. Reedy added the comment:
If necessary, ask on pydev.
--
___
Python tracker
<http://bugs.python.org/issue15645>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
resolution: -> rejected
stage: -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Terry J. Reedy :
--
nosy: +serwy
___
Python tracker
<http://bugs.python.org/issue1207589>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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
Changes by Terry J. Reedy :
--
nosy: +serwy, terry.reedy
___
Python tracker
<http://bugs.python.org/issue15786>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15809>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
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,
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
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
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
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
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."
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15880>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
type: behavior -> enhancement
___
Python tracker
<http://bugs.python.org/issue15883>
___
___
Python-bugs-list mailing list
Un
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
Terry J. Reedy added the comment:
Context: http://issues.roundup-tracker.org/issue2550765
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue15990>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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
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
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
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
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
Changes by Terry J. Reedy :
--
stage: -> test needed
versions: -Python 3.3
___
Python tracker
<http://bugs.python.org/issue15987>
___
___
Python-bugs-list mai
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
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
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
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
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
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
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
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.
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
Changes by Terry J. Reedy :
--
resolution: -> invalid
___
Python tracker
<http://bugs.python.org/issue16010>
___
___
Python-bugs-list mailing list
Unsubscri
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
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
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
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 ""
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
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.
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
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue16144>
___
___
Python-bugs-list mailing list
Unsubscribe:
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__', '__
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
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
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 ==
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
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
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
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
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
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
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
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
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
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
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
Changes by Terry J. Reedy :
--
stage: needs patch -> patch review
___
Python tracker
<http://bugs.python.org/issue8425>
___
___
Python-bugs-list mailing list
Un
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
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
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
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
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
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
8501 - 8600 of 13135 matches
Mail list logo