Terry J. Reedy added the comment:
I am not much familiar with the C api but I presume that all functions return
-1 on error and that this is documented somewhere in the beginning. I also
presume that functions that return values thru passed in pointers and that are
documented as returning an
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file19192/unnamed
___
Python tracker
<http://bugs.python.org/issue10060>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
The unnamed quasi-html file loaded with msg118397 was a unless, essentially
unreadable duplicate of that message, hence removed.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
To me, Alexander's example
>>> calendar.isleap("%d")
False
is a buggy result. So I would reclassify the issue.
The rationale for not checking input types is that bad types result in an
error, but that does not happen here due t
Terry J. Reedy added the comment:
The input to itertools.product must be a finite sequence of finite iterables.
itertools.count(startvalue) produces an infinite sequence of ints (which are
not iterable). Passing the latter to the former causes the latter to run until
memory is exhausted. You
Terry J. Reedy added the comment:
I think the title is slightly misleading. As I read the patch, the issue is
that PyArg_ParseTupleAndKeywords requires that string args to C functions be
valid Unicode strings (and that it does this by trying to encode to utf-8).
Your patch subverts this by
Terry J. Reedy added the comment:
Pardon my ignorance, but given that code.co_filename is a string attribute
given as a string, which is to say, unicode in 3.x, I do not see what
filesystem encodings, or any other encoding to bytes should really have to do
with the attribute. I actually
Terry J. Reedy added the comment:
Assuming it is true, the rewrite strikes me as an improvement.
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
Bruce, what Ned suggests is what I intended with my IDLE-list message, and in
accord with usual tracker practice. Issues often apply to multiple versions and
thereby require multiple patches and commits. I know you are relatively new at
this and very much
Changes by Terry J. Reedy :
--
resolution: -> duplicate
status: open -> closed
superseder: -> idlelib for Python 3 with Guilherme Polo GSoC enhancements
___
Python tracker
<http://bugs.python.or
John J Lee added the comment:
dstanek> Would it be better to file bugs against buggy implementations instead
of changing Python's implementation to be more lenient?
No. Another app running on the same domain that knows nothing about RFC 2109
(and why should it?) shouldn'
Terry J. Reedy added the comment:
2.7 is in security-fix only mode. I am assuming that this is still a problem in
2.7 (and possibly 3.x). It would be good to confirm this.
--
nosy: +terry.reedy
versions: +Python 2.7 -Python 2.6
___
Python tracker
Terry J. Reedy added the comment:
>I am not sure whether I should attach a zip/tar file with both the attachments
>(the sample benchmark and the diff); so I'll attach the diff in a further
>comment.
Uploading separate files with .py, .diff extensions that can be viewed in
Terry J. Reedy added the comment:
2.7 only (verified); 3.1 and 3.2 are fine.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10172>
___
___
Terry J. Reedy added the comment:
Various comments:
I usually expect things in stdlib to be usefully importable. Idlelib is clearly
an exception.
>> Also many people don't expect to find any code in a file named
>> __init__.py (and most of the time I agree with this).
Terry J. Reedy added the comment:
I think questions like this are better answered on python-list or even pydev.
In the absence of an observed problem, I would presume it is ok.
This question should be answered in the C-API doc. If it is not, you could
reopen this as a doc issue
Terry J. Reedy added the comment:
Shutdown has been a 'forever' problem ;-). It would seem sensible to me to have
a fixed end-of-shutdown sequence for essential modules.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
In the absence of doc references in this and #10211 that would *clearly* settle
the bug vs. feature issue, it strikes me as a bit murky. So I am inclined to
agree with MAL that failure to achieve the stated, documented purpose is a bug.
I strongly suspect
Terry J. Reedy added the comment:
I have not tried your testcase yet, but agree that issue 4 sounds pretty bad. I
guess what you are looking for is either a patch to tkinter that solves at
least one of the listed problems (even if only a workaround for a TK bug) or a
determination that
Terry J. Reedy added the comment:
I ran testcase.py with stock 3.1.2 on winxp (under IDLE).
Changes needed (one place each) were
Tkinter -> tkinter
print x -> print(x)
<> -> !=# <> is long since deprecated!
I get 3 line box windowing 10 lines. If I enlarge window,
Terry J. Reedy added the comment:
Éric, go ahead and consolidate to one issue if you can get to it.
Do the other issues shows problems with 3.1 or 3.2 also? I wonder because I
have never seen the box in the posted .png and wonder if that is a new
'feature' with 2.7 and possibly 3.
Terry J. Reedy added the comment:
On initialization: the json doc has 6 examples. Each starts with 'import json'
so each is independent. However, I agree that doing the same for turtle
examples would be a bit much. On the other hand, I think
24.5.3. *Methods of RawTurtle/
Terry J. Reedy added the comment:
GREGOR, I think we need your help to answer a few of these.
Subissues from my opening post not resolved in rev85732
"version of python installed with Tk support.": cap 'python' to 'Python'
Is there any st
New submission from Terry J. Reedy :
Lib/lib2to3/fixes/fix_urllib.py, near the top, has
'''
MAPPING = {'urllib': [
('urllib.request',
['URLOpener', 'FancyURLOpener', 'urlretrieve',
''
Terry J. Reedy added the comment:
For me, with a standard Python install, 'use tix' would be a good answer. After
thanking the respondent, you could try answering 'why' ('I am using a custom
build.'). Just remember that python-list and mirrors are like the Wi
Terry J. Reedy added the comment:
In #10050 you suggest deprecating *URLopener (not *Opener, the misspelling also
in fix_urllib.py #10286) and other stuff. Which do you actually prefer, upgrade
or degrade?
--
nosy: +terry.reedy
___
Python tracker
Phillip J. Eby added the comment:
Committed to Py3K in r86146, with added docs and a larger list of transcodable
CGI variables.
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
I am closing this as some combination of wrong, inapplicable, out-of-date, and
postponed.
1. In 3.1, ssl *is* documented as optional in the sense of dependent on an
external library. "This module uses the OpenSSL library. It is available on all
m
Terry J. Reedy added the comment:
In 3.1.2, range handles large numbers.
>>> list(range(10, 500, 100))
[10, 110, 210, 310, 410]
# those are all billions
This means that the 'equivalent' code in the doc will wor
Terry J. Reedy added the comment:
Robert, I interpret your response to Hirokazu to mean that his suggestion
works. Hence I am following his suggestion. Reopen is I erred.
--
resolution: -> works for me
status: open -> closed
___
Python t
Changes by Terry J. Reedy :
--
stage: -> commit review
___
Python tracker
<http://bugs.python.org/issue10245>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue10245>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
stage: -> commit review
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue10270>
___
___
Python-bugs-list
Terry J. Reedy added the comment:
+1 from me on a table at the top of the functions page.
I am assuming that the markup will induce hotlinks.
The main problem I see is the need to hand rewrite when another function is
added
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
The sentence should be deleted. Print is *not* used in any of the previous
examples. This is the first mention of print() in the chapter and is
nonsensical in context.
--
keywords: +easy
nosy: +terry.reedy
stage: -> needs patch
versions: +Python
Terry J. Reedy added the comment:
1. Rather than add a blank line to the output, the input should have the
newline suppressed with \ (which has been done in previous examples).
print("""\
2. It is rather difficult to see that there is no blank at the end (highlight
wit
Changes by Terry J. Reedy :
--
keywords: +easy
___
Python tracker
<http://bugs.python.org/issue10304>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
As near as I can tell, since && and || are logical rather than bitwise, and
since the variable reference 'quotetabs' has no side effect, you are correct.
Have you run the unittest on a patched build?
--
nosy: +terry.reedy
stage:
Changes by Terry J. Reedy :
--
versions: +Python 2.7 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue10328>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
With 3.2 on WinXP, I get no error report in interactive mode,
with either IDLE or plain interpreter, nor from 'python file' in Command Prompt
window. But now with the print added to what I ran before, I see no print
output, and I see that IDLE is
New submission from Terry J. Reedy :
People occasionally ask on python-list about the following error message when
trying to create a class:
> TypeError: Error when calling the metaclass bases
> module.__init__() takes at most 2 arguments (3 given)
It is a bit cryptic. It is also acci
Terry J. Reedy added the comment:
2.5 and 2.6 are only open for security issues.
I am guessing that 2.7, 3.1, and 3.3 are affected.
I cannot test as I only have Windows currently.
--
nosy: +terry.reedy
stage: -> test needed
versions: +Python 2.7, Python 3.1, Python 3.3 -Python
Terry J. Reedy added the comment:
My haphazard sample gave 8 without, 5 with.
I suspect trailing dot is analogy with lists:
1. something.
2. something else.
2.1. detail of else
2.2. more detail
Books without generally have extra space instead of '.'.
--
nosy: +t
Terry J. Reedy added the comment:
2.6 is only open for security fixes.
--
nosy: +terry.reedy
resolution: -> invalid
status: open -> closed
superseder: -> remove/delete method for zipfile/tarfile objects
versions: -Python 2.6
___
Pytho
Terry J. Reedy added the comment:
"Methods defined within a class may reference..."
would make the tutorial correct without introducing the complication of methods
defined outside a class, let alone in another module.
--
nosy: +t
Terry J. Reedy added the comment:
With fix, test, and news in 3.2 and 3.3, is anything left to do?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Eugene has started work on AST optimizer in #11549
--
nosy: +terry.reedy
superseder: -> Rewrite peephole to work on AST
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
A couple of somewhat related issues:
#10399 AST Optimization: inlining of function calls
#1346238 A constant folding optimization pass for the AST
Obviously, ast optimizers should work together and not duplicate.
Nice to see increased attention
Terry J. Reedy added the comment:
#11549 Rewrite peephole to work on AST
includes constant folding. I have not compared.
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue1346
Terry J. Reedy added the comment:
2.6 is only open for security issues, so any verification should use later
version.
--
nosy: +terry.reedy
status: pending -> open
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issu
Changes by Terry J. Reedy :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue11463>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
There is no end of helpful articles at Wikipedia and elsewhere. Wikipedia
articles are especially easy to find with a special search in some browsers and
on the site. In my experience on python-list, for instance, people have much
more problem with floats
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
1001 - 1100 of 1938 matches
Mail list logo