Terry J. Reedy added the comment:
Since this is not a doc issue, doc people would not especially see it. That
aside...
What is *your* review. Does it satisfy you?
Answer on #7198 if you want.
And please be a bit patient as people are learning the new hg system
Terry J. Reedy added the comment:
Whoops. That should be 'Cannot subclass a module' or 'Cannot subclass module
%s' % modulename. Types.ModuleType can indeed by subclassed.
I agree that this is not a pressing issue, but it will at least provide an
answer to anyone searc
Changes by Terry J. Reedy :
--
stage: test needed -> needs patch
___
Python tracker
<http://bugs.python.org/issue11397>
___
___
Python-bugs-list mailing list
Un
Terry J. Reedy added the comment:
You misunderstood my last response. The first paragraph *dismisses* the case of
temporary print (raised by Charles-Axle) as out of scope for doctests and hence
this issue. The next ones addresses *your* case of code *permanently* intended
to print and raise
Terry J. Reedy added the comment:
As Victor noted, this issue is essentially a duplicate of #3080 (and others)
and now #11619 and needs no independent action apart from the latter. Since the
discussion with ingemar seems finished, I am now closing.
--
resolution: -> duplicate
sta
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11619>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Python 3.2, WinXP, IDLE edit window, F5 Run:
'Processing ...' appears immediately, 'Done' 3 sec later.
The only difference between printtest2/3 is where 'Done' appears.
Behavior is same when pasting into interactive interpreter
Changes by Terry J. Reedy :
Added file: http://bugs.python.org/file21350/ebe5760afa08.diff
___
Python tracker
<http://bugs.python.org/issue11591>
___
___
Python-bug
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21350/ebe5760afa08.diff
___
Python tracker
<http://bugs.python.org/issue11591>
___
___
Python-bug
Terry J. Reedy added the comment:
I completely agree that file/socket output should be left alone. Flushing char
by char to either is a bit insane. The two interactive to screen use cases I
can think of are text progress meters, mentioned by Anatoly, such as :
Working (1 dot printed at
Terry J. Reedy added the comment:
I suspect someone will sometime. There is bit of a backlog of older issues.
--
___
Python tracker
<http://bugs.python.org/issue11
Phillip J. Eby added the comment:
> It is not uncommon that developers provide web applications
to the public in which the HTTP response headers are not filtered for
newlines but are controlled by the user.
Really? Which applications, and which response headers?
> Therefore, I sugg
Phillip J. Eby added the comment:
Just as an FYI, it *is* possible to do generic functions that work with
Python's ABCs (PEAK-Rules supports it for Python 2.6), but it requires caching,
and a way of handling ambiguities. In PEAK-Rules' case, unregistering is
simply ignored, and
Terry J. Reedy added the comment:
While I would not be happy to use class X above, the 3.2 manual explicitly says
"There are no implied relationships among the comparison operators. The truth
of x==y does not imply that x!=y is
Terry J. Reedy added the comment:
2.6 only gets security fixes now.
--
nosy: +terry.reedy
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
I agree with Ray. This is essentially a feature request which you say has
already been implemented in Py 3 but which cannot go into Py2.7. Only fixes for
bugs (discrepancies between doc and behavior) can go into 2.7. I suspect 2.6
and before acted the same
Terry J. Reedy added the comment:
If the docs literally use "X.Y", so that that can be grepped, then attaching a
grep result would make this even easier for someone on Windows without grep.
--
nosy: +terry.reedy
___
Python trac
New submission from Terry J. Reedy :
l=[1,3,2]
l.sort(cmp=lambda x,y:y-x, key=lambda x: x)
print(l)
With CPython 2.7 this
1) could raise an exception like TypeError: conflicting arguments passed;
2) could ignore cmp= and print [1,2,3] on the basis that the new should
override the old;
3) does
Terry J. Reedy added the comment:
On pydev, Mathew Woodcraft says the actual rule is
4) Neither 'wins': cmp is applied to the output of key.
which is consistent with my experiment also.
--
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
The 2.7 doc actually says that the two arguments to cmp are list items, rather
than list items or keys "cmp specifies a custom comparison function of two
arguments (list items)". And this "In general, the key and reverse conversion
processes
Changes by Terry J. Reedy :
--
title: 2.5.4.3 and 2.6.2 / test_threading hangs on Solaris -> 2.7:
test_threading hangs on Solaris
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
Closing until there is a confirmed problem with current Python.
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/iss
Changes by Terry J. Reedy :
--
resolution: -> out of date
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue2657>
___
___
Pyth
Changes by Terry J. Reedy :
--
versions: +Python 3.2 -Python 2.6, Python 3.0
___
Python tracker
<http://bugs.python.org/issue3154>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Elvis, I agree that the masking is not nice. To call it a tracker bug (as
opposed to design bug), you need to show that the behavior is different from
what is documented. Of course, This issue illustrates why one should have unit
tests that try to test each
Terry J. Reedy added the comment:
I verified this for 3.2 (and IDLE) with
import sys, tkinter
"ttk" in dir(sys.modules['tkinter']) # False
import tkinter.ttk
"ttk" in dir(sys.modules['tkinter']) # True
reload
import sys,imp
imp.load_mo
Terry J. Reedy added the comment:
If today's multi-site message is not a joke, Arch, Debian, Gentoo, Grml, and
openSUSE are about to be joined into the Canterbury distribution.
--
nosy: +terry.reedy
stage: -> patch review
___
Python tracke
Changes by Terry J. Reedy :
--
title: Documentation for get_option_group is wrong -> Doc for
optparse.OptionParser.get_option_group is wrong
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
I strongly agree. This would make it easy to see modules of 3rd party packages
loaded, for instance, in site-packages. Once pack/__init__.py is opened,
selecting File/Open in its edit window displays the package directory.
Dotted names work, but must be
Terry J. Reedy added the comment:
The help(linecache) Description is more specific as to the intention (based on
traceback usage):
"This is intended to read lines from modules imported -- hence if a filename is
not found, it will look down the module search path for a file by that name.
Changes by Terry J. Reedy :
--
stage: -> test needed
title: Setting sys.stdin to an invalid input stream causes interpreter run loop
forever. -> Setting Invalid sys.stdin in interactive mode => loop forever.
___
Python track
Terry J. Reedy added the comment:
I would make the same guess about 'winner calculation'. I am surprised that the
class statement does not result in the same calculation (why else would
type_new do it). Perhaps __build_class__ (which I have not read) should either
call type_ne
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue1294232>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Terry J. Reedy :
Two related proposals.
1. Add a warning similar to the one for the dis module. As modified:
"CPython implementation detail: The ast definition is specific to the CPython
interpreter! Ast nodes may be added, removed, or changed between versions. Use
Terry J. Reedy added the comment:
Modify entry slightly to
String constant with version number of the abstract grammar file.
3.1: '67616'; 3.2: '82163'; 3.3: 'x'
--
keywords: +patch
___
Python tr
Terry J. Reedy added the comment:
[Question from python-list]
Would a C version only be for 3.3 or backported to 3.2 and 2.7. The rationale
for backport to 2.7 is that .cmp_to_key was added to 2.7 to aid transition to
3.x. A faster version would make use in 2.7 more inviting.
I understand
Terry J. Reedy added the comment:
I had some of the same questions, so I agree this would be a good addition.
--
nosy: +terry.reedy
stage: -> needs patch
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
Filip, you can look at the changed Benjamin made. One needs to be OP or have
admin privileges to change the headers.
Could you reupload your patch to this issue?
--
versions: +Python 3.3 -Python 3.2
___
Python
Terry J. Reedy added the comment:
I would say yes (if you are sure changes are correct) unless Nick speaks up to
say he wants to review first.
--
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
@Tim: was it your intention that difflib track gnu diff?
I am on the fence with this issue. Without input from Tim other than the doc, I
am tempted to call this a feature request and retitle it "Make unified_diff
match gnu diff for [] input". The d
Terry J. Reedy added the comment:
I do not understand 'circular'. The change is from 'attribute exists' to
'attribute has correct value'. If any are changed, I would think all should be
changed.
--
nosy: +terry.reedy
___
Terry J. Reedy added the comment:
All the types in the types module are, being types, potentially callable to
produce instances of that type. But they are in types rather than builtins
precisely because it is not expected that they be called directly. They are
bound to names in types
Terry J. Reedy added the comment:
The error message suggests that somehow a str string has gotten mixed in with
the bytes. Something like '\n' or ' '?
Steffen, if you want to help track this down:
1. What is a minimal msgdata that gives the same error; post it.
2. Add
Terry J. Reedy added the comment:
Devs are aware that there is an exception to the general rule for the 'for'
clause. There is a technical reason why the exception is possible, though I
have forgotten it.
Since you already know that changing the general behavior has been rejected
Terry J. Reedy added the comment:
Title changed.
Generator expressions had the same limitation in 2.x.
All comprehensions have the same limitation in 3.x.
--
title: list and generator expressions in a class definition fail if expression
condition refers to a class variable
Terry J. Reedy added the comment:
Elsewhere, Guido said that this appears *not* to be a security bug since the
crash is "triggered by a logic bug in the user's code, not by bad data." Hence,
not eligible for backport to 2.5/6, which are in security-fix only mode.
Terry J. Reedy added the comment:
Messages that only consist of links are classified that way. To refer to other
issues, use #x, as with #6040, but I have no idea which of the many
messages you were referring to, so use msgxx.
The stack overflow link
http://stackoverflow.com
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg133353
___
Python tracker
<http://bugs.python.org/issue11776>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
For anyone curious, I removed the falsely classified as spam message after
copying the links into my previous message.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Thanks. I remember now: the initial iter_exp is evaluated immediately because
it always *can* be, because it is only evaluated once and can only involve
'outside' names, whereas the result expression and any conditional expressions
and further
Terry J. Reedy added the comment:
Thanks, Raymond. That file says (in the -u section) "If a range is empty, its
beginning line number shall be the number of the line just before the range, or
0 if the empty range starts the file." The last clause says to me that gnu diff
is righ
Changes by Terry J. Reedy :
--
assignee: jvr ->
___
Python tracker
<http://bugs.python.org/issue985064>
___
___
Python-bugs-list mailing list
Unsubscri
New submission from Terry J. Reedy :
One can currently save the contents of a shell window exactly as is, with
opening message, prompts, and restarts. This essentially a screenshot of the
frame -- fine for an IDLE doc but not useful for rerunning the code.
Similarly, if one pastes in
Terry J. Reedy added the comment:
Do those new check finish this issue and should it be closed?
If not, what is left?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
Thanks all for fixing. This 'silently' crashes IDLE with no message.
Just 'poof'.
--
nosy: +terry.reedy
___
Python tracker
<http://bug
Terry J. Reedy added the comment:
Sorry, patches sometimes sit awhile before a developer who can do something
does do something.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Jack, several questions.
Are you saying that when stdin is a pipe and not a tty, pdb works better with
use_rawinput set False?
Are you sure that the auto setting is correct in all use cases?
Are you aware that you can set use_rawinput 'manually'
Terry J. Reedy added the comment:
Swapnil, please pay attention to what people write.
PYTHON 2.6 IS NOT OPEN FOR BUGFIXES.
Please do not add 2.6 to this issue again or reopen until you find a problem
with 2.7.1 or 3.2.0.
--
nosy: +terry.reedy
status: open -> clo
Terry J. Reedy added the comment:
What do you propose for a fix?
1. Find a more reliable host to test with?
2. Change test to catch the error and convert failure to a skip?
3. Both ;-?
4. Something else?
Something like 2 would seem like a good idea for all tests dependent on a
resource out of
Terry J. Reedy added the comment:
I am not sure if this should be called a bug or feature request, but that does
not matter so much with IDLE.
Os.system is documented as executing in a subshell and returning the exit code,
which is does. The doc also says "If command generates any o
Terry J. Reedy added the comment:
Python 2.7.1 ... 32 bit (Intel)] on win32
>>> import sys
>>> sys.stdin.flush()
>>>
stdin.flush() could mean to clear (discard) the input buffer. Given that it is
undefined, the puzzle is that it exists at all, even to be called.
C
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21709/unnamed
___
Python tracker
<http://bugs.python.org/issue8426>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Please do not send html responses, as they result in a spurious 'unnamed' file
being attached.
Please do suggest a specific change.
Should this be changed to a doc issue?
--
___
Python trac
Terry J. Reedy added the comment:
This sentence is awkward, at best.
"Alternative to a private key and a certificate key an optional SSLContext
could be specified."
I suggest something like: "SSLcontext, also optional, is an alternative to
keyfile and certfile; if it is spe
New submission from Terry J. Reedy :
(3.1 not checked because it seems not to have test_argparse)
Python 2.7 or 3.2, WinXP these pass:
C:\Programs\Python27>python -m test.regrtest test_argparse
C:\Programs\Python32>python -m test test_argparse
[1/1] test_argparse
1 test OK.
C:\Programs\Py
Terry J. Reedy added the comment:
If I put the same line I ran interactively in a file and run it
from test import test_argparse as t; t.test_main()
all tests pass. So it is specifically a problem from the interactive prompt.
--
nosy: +michael.foord
Terry J. Reedy added the comment:
I presume you are talking about long boxed grammar or example lines that run
horizontally past the right edge of the window, like
id_start ::=
For both the .html (online) and .chm (windows help) versions of the docs, these
boxes have horizontal scroll
Terry J. Reedy added the comment:
Note: 3.x correct gives the signature at enumerate(iterable, start) rather that
enumerate(sequence, start).
I agree that the current entry is a bit awkward. Perhaps the doc would be
clearer with a reference to zipping. Removing the unneeded definition of
Terry J. Reedy added the comment:
Thanks for the diagnosis. I am glad it is something simple.
--
___
Python tracker
<http://bugs.python.org/issue11906>
___
___
Terry J. Reedy added the comment:
Then this appears to be a duplicate. Closing
--
resolution: -> duplicate
status: open -> closed
superseder: -> PDF documentation: long verbatim lines are cut off at right
hand side
___
Python track
New submission from Terry J. Reedy :
The Windows distribution comes with the docs in a very nice Windows help file
.chm form. When displayed, they is a left side bar with a Contents tab. The top
entry is 'Python vx.y documentation' followed by 'Python Module Index' and
&
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.4
___
Python tracker
<http://bugs.python.org/issue11908>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
The range of interned ints was once much smaller, but it was expanded upwards
to 256 so that the bytes extracted from bytes and bytearray objects, as when
indexing or iterating, would *all* be pre-allocated objects. I should presume
that their indexers and
Terry J. Reedy added the comment:
Carl, anyone is free to submit an incomplete patch, and people often do, but if
people who are affected by an issue do not think it worth their time to
complete it, or even move it along, there is no reason to expect people who are
not affected by it to
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg134607
___
Python tracker
<http://bugs.python.org/issue10060>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
(Note: the word is 'separate', 2 e's and 2 a's, not 'seperate')
(Note: We already know that using unbound unquoted names does not work. Please
do not waste our time telling us the obvious.)
(Note: I am removing IDLE because th
Terry J. Reedy added the comment:
I had not really noticed that the Index *was* the General Index. In trying it
out, I discovered that double-clicking on entries with multiple links in the
General Index, such as 'name,binding' with 7 links, brings up a sub-box with
all seven.
Terry J. Reedy added the comment:
To repeat concisely what I said on pydev list, I think Reference 5.9.
Comparisons, which says
"Tuples and lists are compared lexicographically using comparison of
corresponding elements. This means that to compare equal, each element must
compare equa
Changes by Terry J. Reedy :
--
resolution: -> fixed
___
Python tracker
<http://bugs.python.org/issue4296>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
Is there any reason not to close this as a CPython issue?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Windows Explorer does not so allow, but yes, Windows does. With xp
>>> os.stat('some file ')
nt.stat_result(st_mode=33206, st_ino=6473924464520118, st_dev=0, st_nlink=1,
st_uid=0, st_gid=0, st_size=13, st_atime=1304114221, st_mtime=13
Terry J. Reedy added the comment:
Markus, I agree with Martin that this patch would go against current policy and
should be closed. Rather than close it myself, I will try to persuade you to do
so.
First, CPython is actually in the process of 'slimming down', of removing, not
addi
Terry J. Reedy added the comment:
#11944 is probably a duplicate of this and should be checked when this is fixed
--
___
Python tracker
<http://bugs.python.org/issue4
Changes by Terry J. Reedy :
--
versions: -Python 2.6, Python 3.4
___
Python tracker
<http://bugs.python.org/issue11950>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I believe the patch produces the following as the first sentence
"When a module named :mod:`spam` is imported, the interpreter searches for a
file named :file:`spam.py` in a list of directories given by the variable
``sys.path`` which is initialized fro
Terry J. Reedy added the comment:
Mark, this is a feature request to change the storage of loggers. A behavior
issue (bug report) must report a discrepancy between doc and behavior. Vinay
rejected that request as not really possible.
Questions about using yum should go to a yum list or to
Terry J. Reedy added the comment:
Did you run the httplib test with your patch? Interactively
>>> from test.test_httplib import test_main as f; f()
(verbose mode, over 40 tests)
In 3.x, the patch would be to http/client.py, line 802 in 3.2 release
if isinstance(message_body, str) # b
Terry J. Reedy added the comment:
This is an improvement that I think should be committed before 3.2.1.
Some comments:
+.. function:: run_doctest(module, verbosity=None)
+ Run :mod:`doctest` on the given *module*.
should be, I believe,
+ Run :func:`doctest.testmod` on the given *module
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21890/unnamed
___
Python tracker
<http://bugs.python.org/issue11015>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I think this is the wrong patch for reasons given below.
The example should be replaced instead.
Readline is documented as returning '' at EOF for text files.
Iter(func,sentinel) is documented as calling func until sentinel is returned.
If that nev
Changes by Terry J. Reedy :
--
versions: +Python 2.7, Python 3.1, Python 3.2, Python 3.3 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
I like the idea of an internal REflag class with __new__, __or__, and
__repr__==__str__. Str(re.A|re.L) might print as
"REflag: re.ASCII | re.IGNORE"
If it is *not* an int subclass, any attempt to use or mix with an int would
raise. I checked and th
Terry J. Reedy added the comment:
I looked as the small patch to smptd.py. This strikes me a a reasonable use of
dependency injection to make smptd more usable in testing, especially given
that asyncx are have it.
The only thing I do not understand fully is the redefinition of set_socket
Terry J. Reedy added the comment:
Unlike test.support, whose doc was recently expanded by a patch by Eli
Bendersky, I see no mention of test.script helper in the test doc. [Do you
think there should be?]. I was not aware of it. It might be newer than the 'old
way'.
I would have t
Terry J. Reedy added the comment:
Takayuki is correct, the status and header strings should, it seems, be 'native
strings', not bytes.
The experimental proof is to run the current example code (I did so from IDLE
editor window on WinXP) and then enter http://localhost:8000/
in
Terry J. Reedy added the comment:
OK, passing self.sockmap=None to setsocket matches its current behavior, so
your new code should not change any current smtpd users, while modifying
asyncore.dispatcher.create_socket might possibly affect someone
Terry J. Reedy added the comment:
Agreed, if we go that route.
--
___
Python tracker
<http://bugs.python.org/issue11957>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Running on winxp with IDLE, I get the second traceback, all the same after the
first line. Given "target is the callable object to be invoked by the run()
method.", I would have expected this to work too.
Problem is not builtins:
class C:
def f
Changes by Terry J. Reedy :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue11972>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
stage: -> test needed
title: Can't launch Process on built-in static method -> Can't launch
multiproccessing.Process on methods
___
Python tracker
<http://bugs.py
1101 - 1200 of 13130 matches
Mail list logo