Terry J. Reedy added the comment:
Verified for 3.2.2 cmd window and idle. Fix looks good.
--
keywords: +patch
nosy: +terry.reedy
stage: -> needs patch
type: -> behavior
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/i
Terry J. Reedy added the comment:
In 3.2, http.client.py, insertion would be at line 718.
However, only one statement is needed to break. 3.2 elsewhere has
if line in (b'\r\n', b'\n', b''):
break
But I note that at 512, there is the code luzakiru pa
Terry J. Reedy added the comment:
I am aware that the docstring, shown at help(compile), is what you were talking
about. The docstring and manuals should say the same thing, or at least not
contradict each other, so it is common for both to be out of date and both to
be updated at the same
Terry J. Reedy added the comment:
I would like that to be a help() option, such as help(module, -b) or more
verbosely, help(module, browser=True). This would be useful for the regular
interactive interpreter as well.
--
___
Python tracker
<h
Terry J. Reedy added the comment:
Santiago, if you are still running 2.6.5 code, use the most recent 2.6 docs at
http://docs.python.org/release/2.6.6/
This will have all the corrections made after the 2.6.5 release. Contrary to
what you might think the header line says, there is no particular
Terry J. Reedy added the comment:
Sorry, /George/Georg/
--
___
Python tracker
<http://bugs.python.org/issue8416>
___
___
Python-bugs-list mailing list
Unsub
New submission from Terry J. Reedy :
Current 3.2.2 docs:
id(object) Return the “identity” of an object. This is an integer which is
guaranteed to be unique and constant for this object during its lifetime.
[model]
hash(object) Return the hash value of the object (if it has one). Hash values
Terry J. Reedy added the comment:
In #13707 I suggest a change to the current hash() entry which is needed
independently of this issue, because the default hash (for object()), being
tied to id() is already limited to an object's lifetime. But this change will
become more imperative if
Terry J. Reedy added the comment:
Martin, I do not understand. The default hash is based on id (as is default
equality comparison), not value. Are you OK with hash values changing if the
'value' changes? My understanding is that changing hash values for objects in
sets and di
Terry J. Reedy added the comment:
Given that the doc says that use of hash() is to compare dict keys, it does not
seem wrong to me to suggest that hash() should be usable to do so.
I believe id() and consequently hash() are unique among builtins in being
run-dependent. That is currently
Terry J. Reedy added the comment:
To expand on Marc-Andre's point 1: the DOS attack on web servers is possible
because servers are generally dumb at the first stage. Upon receiving a post
request, all key=value pairs are mindlessly packaged into a hash table that is
then passed on to a
Terry J. Reedy added the comment:
Those who use or advocate a simple randomized starting hash (Perl, Ruby,
perhaps MS, and the CCC presenters) are presuming that the randomized hash
values are kept private. Indeed, they should be (and the docs could note this)
unless an attacker has direct
Terry J. Reedy added the comment:
"You're suggesting that in order for a Python application to be secure,
it's a requirement that we randomly kill and restart processes from
time to time?"
No, that is not what I said.
--
___
P
Changes by Terry J. Reedy :
--
nosy: +bethard
___
Python tracker
<http://bugs.python.org/issue13685>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +jnoller
___
Python tracker
<http://bugs.python.org/issue13686>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I agree. It should explain the three options:
help(object): help on object or class of object, except
help('name'): help on object/module named 'name'
help(): run utility, which starts with utility help
help(help) prints unhelpful
"
Terry J. Reedy added the comment:
If this is fixed in 3.2, can this be closed?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
The code works fine on 3.2.2, Win7, IDLE, narrowest window possible (about 14
chars), which actually wraps to the window width. (In command window, lines are
fixed length and scroll bar is added if window is narrowed.) What system and
version are you running
Terry J. Reedy added the comment:
I am not setting columns, so that might be the important difference.
--
___
Python tracker
<http://bugs.python.org/issue13
Terry J. Reedy added the comment:
Now I get error, even with Window actually about 100 columns wide.
--
___
Python tracker
<http://bugs.python.org/issue13
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg150848
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg150837
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
"For each keyword only default" is not in my text, but if you are referring to
"keyword only name, default parameter object pairs ", yes. Here is a revised
suggested wording:
MAKE_FUNCTION(argc)
Pushes a new function object on the stack
Terry J. Reedy added the comment:
http://docs.python.org/release/2.6.7/
has the same problem that the 3.x 'in development' version is called 3.2, while
there is no link to current stable 3.2.2 except indirectly by going to 'old
versions' (which perhaps should be 'o
Terry J. Reedy added the comment:
Well, actually I do have an idea. When 3.3 comes out, I think docs.python.org
should point to that, and another url should point to the most recent 2.7.x
release. The url for all versions is already stable. Then the sidebar could
have entries for most recent
Terry J. Reedy added the comment:
My specific suggestion is that the sidebar be time-independent (for at least a
decade, until Python 4 ;-) and say
Docs for other versions
Current Python 3
Current Python 2
In development
Everything else
with stable links for each
Terry J. Reedy added the comment:
To make my idea work both now and after we switch docs.python.org, that url
should not be used as either of the first two links. Rather there should be a
docs.python.org/py2k (or whatever) that is the permanent 'latest Python 2
release'
Terry J. Reedy added the comment:
I just got 'fatal error' running python_d 3.3.a0 checked out yesterday. When I
closed message, test continued (but really crashed later).
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
http://docs.python.org/devguide/runtests.html
"If you don’t have easy access to a command line, you can run the test suite
from a Python or IDLE shell:
>>> from test import autotest"
However, argparse is the least of the test suite problems
Terry J. Reedy added the comment:
No, I don't think so. Another issue will not magically create more time for
anyone.
--
___
Python tracker
<http://bugs.python.org/is
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg150846
___
Python tracker
<http://bugs.python.org/issue13703>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
Senthil, any comment on this?
--
nosy: +orsenthil
___
Python tracker
<http://bugs.python.org/issue9637>
___
___
Python-bug
Terry J. Reedy added the comment:
The current doc says
"print([object, ...], *, sep=' ', end='\n', file=sys.stdout)
Print object(s) to the stream file, separated by sep and followed by end. sep,
end and file, if present, must be given as keyword arguments.
All
Changes by Terry J. Reedy :
--
assignee: -> terry.reedy
resolution: -> fixed
stage: -> committed/rejected
___
Python tracker
<http://bugs.python.or
Terry J. Reedy added the comment:
Sandro, I think you can apply this.
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue11948>
___
___
Terry J. Reedy added the comment:
This paragraph follows a discussion and example of the fact that methods do
*not* have to be defined within a class statement.
Any objections to changing
"The global scope associated with a method is the module containing the class
definition. (The
Changes by Terry J. Reedy :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue13168>
___
___
Python-bugs-
New submission from Terry J. Reedy :
The 3.2.2 doc for compile() says "The filename argument should give the file
from which the code was read; pass some recognizable value if it wasn’t read
from a file ('' is commonly used)."
I am not sure what 'recognizable'
Terry J. Reedy added the comment:
The short doc strings do not mention the issue either way. I think it ok to
leave them as they are. While the claim is how the functions *should* operate,
I verified that it is how they *do* operate in all three branches.
--
assignee: docs@python
Changes by Terry J. Reedy :
--
assignee: docs@python -> terry.reedy
keywords: +easy, patch
nosy: +terry.reedy
versions: +Python 2.7, Python 3.3
___
Python tracker
<http://bugs.python.org/issu
Changes by Terry J. Reedy :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue13753>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
See #13754 for commits (not here because 'close' != 'closes' or closed')
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<
Terry J. Reedy added the comment:
The idea and design look good to me. I will test on Windows when I am able to
do so in development builds (unless someone beats me ;-).
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.3
___
Python tracker
Changes by Terry J. Reedy :
--
title: IDLE no longer respects .Xdefaults insertOffTime -> IDLE: add cursor
noblink option
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
My supposition that compile() rejects some real file names appears correct:
from python-list
ME: Is this a filename that could be an actual, valid filename on your system?
OP: Yes it is. open works on that file
Terry J. Reedy added the comment:
#13761 proposes to add flush=False param with option for True.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
I added a couple of lines to the 3.2, 3.3 print doc in #11633. When a change is
made here, they could be updated to something like:
"Output buffering is normally determined by *file*. Use flush=True to force
immediate output to a device such as a s
Terry J. Reedy added the comment:
Given that the note is already gone* as obsolete in 3.x, I think a minimal
maintenance fix for correctness should be fine for 2.7.
* It is replaced, in essence, by "Ranges containing absolute values larger than
sys.maxsize are permitted but some fea
Terry J. Reedy added the comment:
The __sizeof__ special attribute shows up in dir(object) but appears not to be
documented other than with
>>> help(object.__sizeof__)
Help on method_descriptor:
__sizeof__(...)
__sizeof__() -> size of object in memory, in bytes
Should it have
Terry J. Reedy added the comment:
I presume and hope David meant the process, as I would have no idea how to add
a directory. And David did not seem completely sure.
--
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
> It is certainly unusual for n to be in the sequence, but not to be able to
> find it.
Agreed. Doc Lib: 4.6. Sequence Types — str, bytes, bytearray, list, tuple,
range says '''
s.index(i) index of the first occurence of i in s
s.cou
Changes by Terry J. Reedy :
--
title: Bytes.index() and bytes.count() do not accept byte ints -> Bytes.index()
and bytes.count() should accept byte ints
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
Another problem with the current text is that it fails to exclude enclosing
class scopes, and I had to test to be sure they were., and some of the phrasing
strikes me as awkward. Here is a possible rewrite.
"When the definition of a function is n
Changes by Terry J. Reedy :
--
title: Does nonlocal include global? -> Nonlocal does not include global;
clarify doc
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
Did I read right?
Clicking F5 crashes while clicking Run and then 'Run Module F5' works?
(They ought to be the same thing.)
If so, check the key bindings. Options/Configure IDLE .../Keys.
There should be an entry 'Run Module - '.
Is F5 bo
New submission from Terry J. Reedy :
In response to a discussion of a patch removing 'useless' post-increments,
(which issue has apparently come up before)
Guido posted
"> Sorry to butt in here, but I agree with Eric that it was better
> before. There is a common idi
New submission from Terry J. Reedy :
BACKGROUND
One of most common recurring topics on python-list (perhaps monthly) is newbies
tripping over a mutation method returning None when they expect the collection.
Today's example: "Puzzled by list-appending behavior".
An excerpt fro
Terry J. Reedy added the comment:
Jesse, I do not understand your comment, including 'REPL'
--
components: +Windows
versions: +Python 3.2 -Python 3.4
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
Ahem. Interactive mode is an approved method of running Python code, along with
batch mode. The core interpreter and stdlib modules should run correctly in
both modes. So the entire test suite should pass in both modes too. If the
tests are written correctly
Terry J. Reedy added the comment:
After looking at the doc chapter, I get that 'if __name__' block is needed on
Windows.
OK. batch mode with if __name__ block:
testmp.py
-
print('Top of Module')
class C:
def f(s): print('Method C.f')
if __name__ =
Terry J. Reedy added the comment:
Unless the doc for a module explicitly diclaims interactive mode (as does
multiproccessing), it should run interactively as documented. Batch and
interactive are not mutually exclusive; python -i runs a file in batch mode and
switches to interactive mode
Terry J. Reedy added the comment:
Darn, I knew there might be an exception I was overlooking ;-).
Anyway, I considered the general statements to be drafts, to be rewritten after
comments.
As to the footnote (9) suggestion: the set and dict sections list each method
separately with normal
Terry J. Reedy added the comment:
I will when I get setup to do that again.
--
___
Python tracker
<http://bugs.python.org/issue11906>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
I suspect you are right, but do not know the rules, and have never used the
module. There is no particular person maintaining xml.dom.X at present.
Could you please fill in the ... after the import to give a complete minimal
example that fails? Someone could
Terry J. Reedy added the comment:
>From just reading the docs, it appears that json.dump(obj,fp) ==
>fp.write(json.dumps(obj)) and it is easy to wonder why .dump even exists, as
>it seems a trivial abbreviation (and why not .dump and .dumpf instead). Since,
>'_one_shot
Changes by Terry J. Reedy :
--
title: EBADF in test_urllibnet -> Error EBADF in test_urllibnet
___
Python tracker
<http://bugs.python.org/issue12137>
___
___
Py
Terry J. Reedy added the comment:
If you are able to rebuild Python, have you tried running the ctypes test after
rebuilding with this change? And, does the test cover the internal uses of
_array_type?
--
nosy: +terry.reedy
___
Python tracker
Terry J. Reedy added the comment:
Exceptions with traceback are ordinary behavior issues. 'Crash' means segfault
or equivalent on Windows. And Jesus is correct.
In general, include system with reports.
With 3.2.0 IDLE on Winxp, adjusted 3.x code
import urllib.request as ur, http.co
Terry J. Reedy added the comment:
The basic fix is to replace the fake verb 'to or', conjugated not really
properly as "or's" or "or'ing", with the real noun 'bitwise-or'.
help(doctest.testmod)
...
Optional keyword arg "optionflags
Terry J. Reedy added the comment:
The proposed change adds about 7 lines to show the 'trick' of putting
num-worker Nones on the queue. I think that is worth it.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
I ran with 3.2, winxp with "if __name__ == '__main__':" added after the def
statement (without this, process spawned 150 processes before I got logged out)
and ()s added to prints. Hung on pool.join as OP said. I could only stop by
closi
Terry J. Reedy added the comment:
The doc consistently does NOT quote re's in the text. Rather, they are shaded
gray, both in Windows help version and html version. So this one should not be
treated differently.
Most of the confusion reported is due to not reading the intro paragrap
Terry J. Reedy added the comment:
Return a copy of *self* with the sign set to be the same as the sign of *other*.
seems clearer to me.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
Thank you for the test and explanation. There currently is no specific cytpes
maintainer. But from what you have said, I might feel comfortable enough
applying this, if no one else does, when I have the necessary setup on a new
machine
Changes by Terry J. Reedy :
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue1621>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue1669349>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
2.5 is done with and no response to question about more recent versions.
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Terry J. Reedy added the comment:
2.5 is closed and 2.6 and 3.1 are or soon will be security fix only.
I do not know if any developer works with NetBSD.
--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.1
___
Python
Changes by Terry J. Reedy :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9812>
___
___
Python-bugs-
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue9699>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue9972>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue8678>
___
___
Python-bugs-
Changes by Terry J. Reedy :
--
versions: +Python 3.2, Python 3.3 -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
Never verified for current release. 2.5 closed.
--
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6
___
Python tracker
<http://bugs.python.org/issue10878>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11374>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python
3.3
___
Python tracker
<http://bugs.python.org/issue11
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11409>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
2.5 is closed; 2.6 security fix only, 3.1 soon will be
--
nosy: +terry.reedy
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11453>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue11439>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue11419>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue11671>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
stage: -> test needed
type: -> behavior
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/i
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6
___
Python tracker
<http://bugs.python.org/issue11767>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 3.1
___
Python tracker
<http://bugs.python.org/issue11792>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 2.5, Python 2.6, Python 3.1
___
Python tracker
<http://bugs.python.org/issue9667>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: -Python 2.5
___
Python tracker
<http://bugs.python.org/issue11934>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +alanmcintyre
versions: +Python 2.7 -Python 2.6
___
Python tracker
<http://bugs.python.org/issue12198>
___
___
Python-bug
Changes by Terry J. Reedy :
--
type: -> feature request
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue12201>
___
___
Py
401 - 500 of 12707 matches
Mail list logo