Terry J. Reedy added the comment:
My understanding is that an undocumented internal methods has two bugs that
cancel, so that correct calls work correctly -- but tracebacks do not. I think
this should be fixed, especially given a working patch.
Optionally add a doc string, which is how we
Terry J. Reedy added the comment:
Try upgrading to 2.6.6, 2.6.7 or 2.7.2.
In any case, 2.6 is in security-fix only mode, so unless you have a problem
with the most recent releases (2.7.2 or 3.2.2) this issue should be closed as
out-of-date.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
This issue has come up enough (tracker and python-list) that I think adding a
mild adaptation of the C standard paragraph might be a good idea. Changing to a
doc issue.
--
assignee: -> docs@python
components: +Documentation -IO, Library (
Changes by Terry J. Reedy :
--
stage: -> patch review
type: -> behavior
___
Python tracker
<http://bugs.python.org/issue13174>
___
___
Python-bugs-list
Terry J. Reedy added the comment:
This is more of a feature request than a bug report, in that the behavior
appear intentional. But that is a moot point in that new IDLE features do not
have to wait for a new release. The proposed new behavior seems plausibly
better. I just wonder if
Terry J. Reedy added the comment:
[Yes, indexing will still be O(1), though I personally consider that less
important than most make it to be. Consistency across platforms and total time
and space performance of typical apps should be the concern. There is ongoing
work on improving the new
Terry J. Reedy added the comment:
> I'm not sure what you mean with "turn them into bug reports" though.
In about the last month, there have been, I think, 4 reports about IDLE
crashing (quitting unexpectedly with no error traceback). I would consider it
preferable if it
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue415492>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Terry J. Reedy :
Newbies too often do something like (3.2.2, )
>>> id(getattr(x, 'pop')) == id(x.pop)
True
and get confused by the (invalid) result, whereas
>>> a,b=getattr(x, 'pop'),x.pop
>>> id(a)==id(b)
False
works prope
Terry J. Reedy added the comment:
I gave a maximum addition. The first sentence may be enough (or even just the
second half of it). What people do not get is that the lifetime of new arg
objects is the duration of the function call -- and that the output of id for
departed objects is
Terry J. Reedy added the comment:
To be more exact, "optional arguments" should be more extended to "optional
arguments whose default maintains the existing behavior"
--
___
Python tracker
<http://bug
Terry J. Reedy added the comment:
Ezio's comment got me to reread the entire paragraph. I do not like it. 'Having
you think' is wrong; 'Basically just' is unneeded; 'guaranteed' is hyperbole;
and the paragraph is otherwise repetitive, vague, and pretty
Terry J. Reedy added the comment:
For the tracker, 'crash' == seqfault or equivalent, with no traceback.
Unwanted traceback is bad behavior.
Please test with 3.2 also if you can.
--
nosy: +brett.cannon, ncoghlan, terry.reedy
type: crash -
Changes by Terry J. Reedy :
--
type: -> feature request
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue13197>
___
___
Python-bugs-lis
Terry J. Reedy added the comment:
Try running without IDLE (double click, right-click run, Command Prompt window,
or paste into interpreter window). IDLE runs code in a subprocess with stdout
directed back to the IDLE process, so it occasionally affects otherwise legal
and correct Python
Changes by Terry J. Reedy :
--
nosy: +loewis
___
Python tracker
<http://bugs.python.org/issue13234>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In the doc, the signature line is followed by a list of short descriptions in a
third order. That perhaps should be changed to follow the same corrected order
as the signature line. On the other hand, it matches the order of the detail
sections that follow
Terry J. Reedy added the comment:
I am guessing that because the extension could be either .py or .pyw, the
initial save does not add either but forces the user to type one or the other.
I find this annoying too, so I am thinking about separating the choices and see
if .py, .pyw, and maybe
Terry J. Reedy added the comment:
This came up on python-list with
os.spawnl (os.P_NOWAIT, r"c:\windows\notepad.exe")
Tim Golden confirmed crash with Win7 on 2.7.?
I did same with 3.2.2 in both interpreter and from IDLE (IDLE hangs and then
restarts after closing the 'pyth
Terry J. Reedy added the comment:
This may be a 'cannot fix' issue due to the way Windows connects the output and
input streams of various processes. It would be helpful to know if *nix has the
same difference of behavior between interpreter and IDLE shell. Otherwise some
exper
Terry J. Reedy added the comment:
The doc says "All functions accepting path or file names accept both bytes and
string objects, and result in an object of the same type, if a path or file
name is returned." It does that now (the encoding assumed or produced for bytes
is not spec
Terry J. Reedy added the comment:
Yuval, you are assuming that *no one* who uses the os byte APIs on Windows is
either checking for '?' in returned paths or catching later exceptions. With
Google code search, I did find one instance where someone tests paths for '?'
aft
Terry J. Reedy added the comment:
The difflib deprecations are mine and I think they should happen in 3.3.
This will serve as a reminder.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
I agree and commented about this on some previous issue (which I cannot find
now). I actually would like it to save the window position and size.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
In the tutorial, "The xml.dom and xml.sax packages" should be expanded to "The
xml.dom, xml.sax, and xml.etree packages". I suspect that the current line
predates the addition of .etree.
We try to mostly not give opinion-based recommend
Terry J. Reedy added the comment:
Because of the line break, clicking that link gives "Server error 404".
http://www.robotstxt.org/norobots-rfc.txt
works (so please pay attention to formatting). The main page is
http://www.robotstxt.org/robotstxt.html
The way I read the grammar
Terry J. Reedy added the comment:
Sorry, the visual linebreak depends on font size. It *is* the comma that caused
the problem.
You missed my question about the current test suite.
Senthil, you are the listed expert for urllib, which includes robotparser. Any
opinions on what to do
Terry J. Reedy added the comment:
Since following the spec is not a bug, this issue is a feature request for 3.3.
I agree with just being lenient with no added parameter. Perhaps that should be
mentioned in the doc with (or in) a version-added note. Senthil: does doc
standard allow something
Terry J. Reedy added the comment:
The robotparser is currently doing exactly what it is documented as doing.
20.9. urllib.robotparser — Parser for robots.txt
says "For more details on the structure of robots.txt files, see
http://www.robotstxt.org/orig.html."; (Since there are n
Terry J. Reedy added the comment:
> I'd have written "an opened file descriptor" instead (in 5 places).
Yes, 'open' is an adjective as well as a verb, and the correct one in
this context. Something that has been opened, such as a sealed jar or
envelope, might ha
Terry J. Reedy added the comment:
The patch implements my suggestion. Looking again, I think the English is fine
;-).
--
stage: -> commit review
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
New features only go in future versions: Given the doc: "With a module, class
or class instance object as argument (or anything else that has a __dict__
attribute), return that attribute." So you are proposing a change in the
definition of vars()
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13298>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13300>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue13306>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
The conflict is not fatal for keyboard users because repeating alt-o switches
between Format and Options. To resolve the conflict, I would prefer to keep
alt-o for Options, both because it is the first letter of Options and because
Options appears on Shell
Changes by Terry J. Reedy :
--
nosy: +rhettinger, terry.reedy
___
Python tracker
<http://bugs.python.org/issue13330>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
2.5 in no longer maintained. 2.6 only gets security patches.
So please test with the latest 2.7 (currently 2.7.2).
If you cannot do that, please close.
--
nosy: +terry.reedy
versions: -Python 2.6
___
Python tracker
Changes by Terry J. Reedy :
--
versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.4
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
Yes. I think in locale.rst (assuming that is the name)
'''
exception locale.Error
Exception raised when setlocale() fails.
locale.setlocale(category, locale=None)
If *locale* is specified, it may be a string, a tuple of the form (language
Terry J. Reedy added the comment:
PyUnicode_Check may still be correct. I have not examined PEP393 in detail.
--
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
Py 3.2 on Win 7. 'Comment out region' is Alt-3 here.
--
___
Python tracker
<http://bugs.python.org/issue13319>
___
___
Terry J. Reedy added the comment:
Yes, parentheses would be better.
--
___
Python tracker
<http://bugs.python.org/issue3067>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I am closing this because there is no issue for currently maintained CPython.
If you have further questions, try python-list or a question-answer forum such
as StackOverflow.
--
resolution: -> out of date
status: open ->
Terry J. Reedy added the comment:
def parrot(voltage, state='a stiff', action='voom', type='Norwegian Blue'):
+accepts one :term:`positional argument` (``voltage``) and three
+:term:`keyword arguments ` (``state``, ``action``,
+and ``type``).
This is simply fal
Terry J. Reedy added the comment:
>Would adding 'required' before 'positional' and 'optional' before 'keyword
>arguments' be ok?
No! What is false in the original and the above is the equation and confusion
of 'required' with 'pos
Terry J. Reedy added the comment:
My suggested doc change is how to change the doc along with the patch.
--
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
The two methods are defined differently, and act as defined, so this is a
feature request, not a bug report.
str.split([sep[, maxsplit]])
... If maxsplit is given, at most maxsplit splits are done (thus, the list will
have at most maxsplit+1 elements). If
Terry J. Reedy added the comment:
Improving error messages has been a long, slow process as people are irritated
enough to make a change. Please go ahead.
Guido has explicitly excluded exception detail from the language spec multiple
times. Test that depend on details are broken. Doc
Terry J. Reedy added the comment:
3.2 doc entry:
random.triangular(low, high, mode)
Return a random floating point number N such that low <= N <= high and with the
specified mode between those bounds. The low and high bounds default to zero
and one. The mode argument defaults
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13386>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In English also, to vend is to sell, direct from Fr. *vendre*. However, ideas
are not necessarily sold for money, but for assent, adoption, or other action.
My dictionary has 'publish' as a secondary meaning of vend. So
'vendor-packages'
Terry J. Reedy added the comment:
I agree with Eric both as to placement (first paragraph) and wording (with
explanation). I don't have time to review otherwise at the moment.
--
___
Python tracker
<http://bugs.python.org/is
Terry J. Reedy added the comment:
The test suite has code (functions) that restrict the length on AssertEqual
(and other) failure messages. (I do not know the location though.) Perhaps that
can be reused. This almost seems like something that should be more easily
available
Terry J. Reedy added the comment:
>From Ezio's original post: '''
If a function has optional arguments but it doesn't accept keyword arguments,
the "func([arg1])" notation is used instead. ... The notation
"func([arg=default])" should never be u
Terry J. Reedy added the comment:
The doc section has no reference, as in a live web link, to any version of the
POSIX specification. This is unlike other doc sections that implement various
RFCs (which also get updated). The docs also link to specific references for
the Unicode version
Terry J. Reedy added the comment:
The 'official' PSF build for 2.7 (and 3.x) is done with VS2008, so this may not
be the last problem you have. I am pretty sure this will never change for 2.7,
but that is not to say we cannot make a simple change to accommodate VS2010. I
am su
Terry J. Reedy added the comment:
I find the doc for g/G less than clear.
1. (main entry) "Uses lowercase exponential format if exponent is less than -4
or not less than precision, decimal format otherwise."
'not less' means 'equal or greater', which to
Terry J. Reedy added the comment:
Does this apply to 2.7 as well?
I believe msg148146 is due to a commit message typo.
--
nosy: +haypo, terry.reedy
versions: +Python 3.2, Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue13
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13437>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Or expand 'Reporting Bugs' to 'Reporting Bugs and Requesting Features', perhaps
renamed to 'Suggesting Improvements'. My point is that aspiring developers are
not the only one that need to read the guideline, not withstanding the
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13443>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue10747>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13504>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
This current line is
"Read and return a list of lines from the stream. hint can be specified to
control the number of lines read: no more lines will be read if the total size
(in bytes/characters) of all lines so far exceeds hint."
I would like to
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue9090>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In Python 3, where all classes inherit from object, the default rules are, by
experiment, (which someone can verify from the code) simpler than you stated.
3. By default, == and /= compare identities.
4. By default, order comparisons raise TypeError.
ob <=
Changes by Terry J. Reedy :
--
versions: +Python 2.7 -Python 2.5
___
Python tracker
<http://bugs.python.org/issue3907>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue13495>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
On 3.2.2, I get
>>> import sys
>>> sys.path
['C:\\Programs\\Python32\\Lib\\idlelib', 'C:\\Windows\\system32\\python32.zip',
'C:\\Programs\\Python32\\DLLs', 'C:\\Programs\\Python32\\lib',
'C:\\P
Terry J. Reedy added the comment:
Running on Win 7, 3.2.2, IDLE, I get
'''
Traceback (most recent call last):
File "F:\Python\mypy\tem.py", line 19, in
the_rowconfigure_info = the_frame.rowconfigure(the_row_index)
File "C:\Programs\Python32\lib\tkint
Terry J. Reedy added the comment:
Roger Serway pointed me to the PastePyShell.py extension that is part of the
IdleX package http://idlex.sourceforge.net/
That does the conversion when *pasting* interpreter text into an edit window. I
would have File/Save do the same thing when saving the
Terry J. Reedy added the comment:
Either way, it would be nice to have erroneous commands flagged or filtered.
That can be detected when the first line of output is
Traceback (most recent call last):
I typically would copy, correct, and rerun a line until I get it correct, so I
would want
Terry J. Reedy added the comment:
Interesting example. This issue is a bit more complicated than I thought.
Clearly, the call that reveals an error in previous lines should not be simply
deleted.
--
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
I am a little puzzled by the patch. In logic, 'A and B' is equivalent to 'not A
or not B'. But in the patch,
-if (_Py_stat(filename, &statbuf) == 0 && /it exists */
-S_ISDIR(statbuf.st_mode)) /* it&
Terry J. Reedy added the comment:
OK, I gather from the comment added in the second patch that you intentionally
changed the logic to restart the loop more often.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Comments:
1. The first sentence is a bit too opinionated for my taste. Consider:
map(f, seq)
[f(x) for x in seq]
The map is *more* concise, by 8 chars, than the list comp and, in *my* opinion,
clearer and easier to read without the extra boilerplate and
Terry J. Reedy added the comment:
v.2 looks great to me.
--
___
Python tracker
<http://bugs.python.org/issue13549>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
Showing both was the intent of my comment. Since I am about 60:40 on that, I
was and am willing for you, having grabbed and pushed the issue, to drop the
half-expanded version if you thought it better. With or without, we have
improved this section. But I
Changes by Terry J. Reedy :
--
resolution: -> duplicate
status: open -> closed
superseder: -> idle filename extension
___
Python tracker
<http://bugs.python.or
Terry J. Reedy added the comment:
Re-verified on 3.2.2, win 7.
#13532 shows a worse problem with sys.stdout.write on the above.
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue7
Terry J. Reedy added the comment:
We should like the IDLE shell to give the same results as the standard shell.
See #7163
On 3.2.2 on Win7, the problem is worse: sys.stdout.write(100) crashes IDLE --
as in it just fades away after a short (1/2 sec?) delay.
sys.stdout.write(sys)
gives me the
Terry J. Reedy added the comment:
I think Eric's suggestion is the proper approach.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/is
Terry J. Reedy added the comment:
The doc specified the Action API as the interface inherited from
argparse.Action plus the addition of a custom __call__ method with 4 params (5
with self) as described. That seems mostly adequate to me, unless there is
something missing in the parameter
Terry J. Reedy added the comment:
(Snippet examples can be made 2/3 agnostic with
from __future__ import print_function)
3.2.2 on win7, IDLE, gives me
F:\Python\mypy\tem.py 7 call
F:\Python\mypy\tem.py 8 line
F:\Python\mypy\tem.py 10 line
F:\Python\mypy\tem.py 11 line
F:\Python\mypy\tem.py 13
Terry J. Reedy added the comment:
My guess from the way the docs are written now is that subclassing from Action
and over-riding just the __call__ method is the intended way, not just the
recommended. If so, Action is a quasi-private class, only exposed so it could
be subclassed with one
Terry J. Reedy added the comment:
In English, "We should like" is far from an absolute statement. "IDLE must"
would be such. In any case, I hope you agree that crashing is bad. It is also
not good if IDLE, as a development environment, enables code that violates the
do
Terry J. Reedy added the comment:
I believe that that list includes all symbols and symbol combinations that are
syntactically significant in expressions. This is the generalized meaning of
'operator' that is being used. What do not appear are '#' which marks comments,
Terry J. Reedy added the comment:
If you are responding to me, I am baffled. I gave a concise way to document the
current behavior with respect to .OP, which you said you wanted.
--
___
Python tracker
<http://bugs.python.org/issue2
Terry J. Reedy added the comment:
Both the proposed text and 3.3 addition look good to me.
--
___
Python tracker
<http://bugs.python.org/issue2134>
___
___
Pytho
Terry J. Reedy added the comment:
In the python-ideas thread "list / array comprehensions extension"
Guido replied in reference to an earlier quote from him:
"I think that -0 was contextual (too many moving parts for the original Py3k
release). Today I am +1."
There
Terry J. Reedy added the comment:
I agree with Roger that developing an extension elsewhere is the proper first
step. I suspect that you will want to experiment with the exact behavior and
interface. So I am closing this for now, though you can reopen later if there
is a renewed proposal to
Terry J. Reedy added the comment:
Is this complete and ready to close, or does the doc need a note?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
At line 237 of string.py:
def convert_field(self, value, conversion):
# do any conversion on the resulting object
if conversion == 'r':
return repr(value)
elif conversion == 's':
return str
Changes by Terry J. Reedy :
--
stage: -> needs patch
type: -> behavior
versions: +Python 2.7, Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/i
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +ghaering
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue13583>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
In 3.2 on Win 7, selected text *is* put in the 'find' field of Replace boxes,
just as with Find boxes, just as it should be. So there is something specific
either to 2.7 (which is unusual, since the code base in mostly the same, but
possible) or
Changes by Terry J. Reedy :
--
title: Replace selected not working/consistent with find -> IDLE: Replace
selected not working/consistent with find
___
Python tracker
<http://bugs.python.org/issu
Changes by Terry J. Reedy :
--
versions: -Python 2.6, Python 3.1, Python 3.4
___
Python tracker
<http://bugs.python.org/issue13587>
___
___
Python-bugs-list m
301 - 400 of 12740 matches
Mail list logo