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
Terry J. Reedy added the comment:
zipfile.ZipFile takes a file arg that can be a 'path to a file (a string) or a
file-like object'. The .write() method takes a filename arg. I would think that
the proposal should be what the title says, to expand that to a file arg,
either a pat
Terry J. Reedy added the comment:
"Also, the segfault only occurs when python is
compiled with optimizations and run under valgrind."
This says to me that the segfault is not a Python issue.
What change do you expect in the Python source code?
If none, this issue should
Terry J. Reedy added the comment:
I agree that the json module should stick with the json definition. Adding
other stuff would take it even further from simplejson.
A conversion function, if short enough, could be posted on the cookbook.
--
nosy: +terry.reedy
resolution: -> rejec
Terry J. Reedy added the comment:
I verified bug on winxp with 2.7
xrangef [5, 4, 3, 2, 1, 0]
py26 []
py27 [5, 4, 3, 2, 1, 0, -1, -2]
v1 [5, 4, 3, 2, 1, 0]
v2 [5, 4, 3, 2, 1, 0]
v3 [5, 4, 3, 2, 1, 0]
---
xrangef [5, 3, 1, -1, -3]
py26 []
py27 [5, 3, 1, -1, -3, -5]
v1 [5, 3
Terry J. Reedy added the comment:
u'' in 2.7.1 also, on winxp
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12016>
___
___
Changes by Terry J. Reedy :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue12017>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
My title suggestion was meant to say "Yes, if you are willing to expand the
scope of this issue and do more work, go ahead' ;-).
I have not looked at help(test), but it should be complete if it is not.
I was referring to the test module doc 25.
Terry J. Reedy added the comment:
Sandro, import is a somewhat dark corner of Python that newcomers and even
experienced people ofter trip over. So getting the text both correct and clear
is worth some thought.
I just noticed that the text is only true for Python-coded modules and not for
Terry J. Reedy added the comment:
I agree with both Raymond and David's suggestion.
--
___
Python tracker
<http://bugs.python.org/issue11948>
___
___
Pytho
Terry J. Reedy added the comment:
Your title mixes a goal -- exposing more of the MSI api -- with a particular
means -- exposing an object that is only useful with ctypes. So I have taken
the liberty of removing the implementation limitation. While clever, I do not
believe that strategy has
Terry J. Reedy added the comment:
Looking at cjkencodings.py the format is pretty clear. The file consists of one
statement that creates one dict that maps encoding names to a pair of (encoded)
byte strings. The bytes literals are entirely hex escapes, with a maximum of 16
per chunk (line
Terry J. Reedy added the comment:
Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there
is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is
a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes.
(I assume the
Terry J. Reedy added the comment:
Reading http://tools.ietf.org/html/rfc1843 suggests that the reason that there
is no HZ pair in cjkencodings.py is that it is not a cjkencoding. Instead it is
a formatter or meta-encoding for intermixing ascii codes and GB2312(-80) codes.
(I assume the
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg135802
___
Python tracker
<http://bugs.python.org/issue12057>
___
___
Python-bugs-list m
New submission from Terry J. Reedy :
Current 3.2 doc, 5.9. Comparisons, has this paragraph about mixed-type
comparisons.
"The operators <, >, ==, >=, <=, and != compare the values of two objects. The
objects need not have the same type. If both are numbers, they are conve
Terry J. Reedy added the comment:
I disagree (else I would not have suggested change ;-). First, I dislike 'This
allows' on stylistic grounds, when there is a better alternative. It is rather
wishy-washy: 'this allows' -- so what? As for the rest -- why not be specific?
Terry J. Reedy added the comment:
Sandro, thank you for sticking with this. Seemingly simples issues sometimes
'explode' a bit. Having reviewed the patch, I think the it is ready to be
committed.
Éric: if you were to commit this and, in the process, wanted to change sys.path
bac
Changes by Terry J. Reedy :
--
stage: patch review -> commit review
___
Python tracker
<http://bugs.python.org/issue11948>
___
___
Python-bugs-list mai
Terry J. Reedy added the comment:
A possible fix is to condense the output by omitting stuff in the center rather
than as the end:
"x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\n"
"x\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx\nx...x\nx\nx\nx\nx\nx\nx\nx\nx\nx\r\n&
Terry J. Reedy added the comment:
I also found the doc confusing. Does "This exception collects exceptions that
raised during a multi-file operation." that Error is used for .rmtree or .move?
If so, what format. If not, revise. And I also wondered how to access and use
Terry J. Reedy added the comment:
> my class also inherits from subprocess.Popen, which has a __del__ method,
> which might interfere w/ collection
The doc says __del__ *will* prevent collection.
> (although gc.garbage says otherwise ;).
Do you mean that gc.garbage is empty, when
Terry J. Reedy added the comment:
I am past beginner stage and I still open with the Start mene ;-)
If/when I install Ubuntu or other Linux, I would like to still be able to do
whatever is the equivalent, as with other stuff, rather than have to open a
command window and type a command
Terry J. Reedy added the comment:
Should there be a 'versionchanged' note in the doc, even if the error type was
not documented?
--
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
Thanks for persisting with this. Looking at the patch:
@@ -65,7 +63,7 @@
goal was to have Unicode contain the alphabets for every single human language.
It turns out that even 16 bits isn't enough to meet that goal, and the modern
Unicode specification
Terry J. Reedy added the comment:
0 through ... is fine with me.
Yes, hex numeral would be more accurate than hex digit.
--
___
Python tracker
<http://bugs.python.org/issue4
Terry J. Reedy added the comment:
Download and install a current release 2.6.6, 2.7, or 3.1.2 (or 2.7.1 or 3.1.3
in a week or so). Disable or otherwise reconfigure whatever firewall or
security software you have that is blocking the socket connection (as your
screenshot says).
If you still
Changes by Terry J. Reedy :
--
resolution: -> rejected
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue10458>
___
___
Python-bugs-
Terry J. Reedy added the comment:
+1
I have not yet had occasion to use 'with' yet, but in reading the Unicode HOWTO
diff, I noticed that I liked replacing 'open,read,close' with 'with open, read'
just for reading purposes since it turns 3 steps into 1 compound t
Terry J. Reedy added the comment:
Deadline is probably next Fri. However I will apply this or slight revision
thereof in a couple of days to make sure this much is in. I have to fixup some
work stuff today.
--
___
Python tracker
<h
Terry J. Reedy added the comment:
3.2, 3.1, 2.7: r86702, r86703, r86704
--
resolution: -> fixed
stage: commit review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
Georg, if your comment means that you think that the doc patch is ready to
apply, as is, without testing with a doc build, then I will do so for all 3
versions.
Should there really be two blank lines after the note
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file19785/unnamed
___
Python tracker
<http://bugs.python.org/issue1859>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Doc patch applied to 3.2, 3.1, 2.7 in r86717, r86718, r86719
Jeremy Thurgood added to 3.2 Misc/ACKS in r86720.
(I know, I should have added this first before committing.)
I am leaving this open for a possible behavior patch.
Mathew: look at the examples by
Changes by Terry J. Reedy :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue1859>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Terry J. Reedy :
Add list.clear() method with obvious semantics.
Pro:
1. parallel to set/dict/defaultdict/deque.clear(),
usable in generic mutable collection function;
2. makes it easier to switch between list and other collection class;
3. current alternatives are not as
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue8938>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Since I am not sure I will be able to do any more before the 3.2b1 feature
freeze, I went ahead with the minimal patch after checking the differences from
the 2.7 version and redoing the Misc/News entry.
(I suspect putting a new entry immediately after the
New submission from Terry J. Reedy :
Expose and document the junk and popular sets as attributes of the
SequenceMatcher object.
self.junk = junk
self.popular = popular
Deprecate the then unneeded and undocumented isbjunk and isbpopular functions,
currently defined as
self.isbjunk = junk
Terry J. Reedy added the comment:
Agreed. #10534. This is really a 'follow-on' rather than 'superseder',
but the forward reference should be easy for anyone to find.
--
resolution: -> fixed
status: open -> closed
superseder: -> difflib.SequenceMatcher
Terry J. Reedy added the comment:
I would really like something like this -- for 3.2b1 next week.
I am constantly running posted interactive code and the lack of this is a major
nuisance. There seems to be a glitch in how the editor deals with '>>> ' when
trying to dele
Terry J. Reedy added the comment:
An alternative approach would be to leave pasting alone but add a
'Convert interactive code' option to the format menu, with keycode alt-v (not
currently used as far as I can see).
--
___
Python trac
Changes by Terry J. Reedy :
--
resolution: fixed ->
stage: committed/rejected -> commit review
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/
Terry J. Reedy added the comment:
As a practical matter, I think that for at least the next decade, people are at
least as likely to want to fill with a composed, multi-BMP-codepoint 'char'
(grapheme) as with a non-BMP char. So to me, failure with the latter is no
worse than failur
Terry J. Reedy added the comment:
Is this a duplicate of other issues (close?)?
Is this an Apple problem beyond our control (close?)?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
After reading the additional messages here and on a similar issue Alexander
opened after this, I seem the point of wanting to make the difference between
the two types of builds as transparent as sensibly possible. From that
viewpoint, rejection of composed
Terry J. Reedy added the comment:
Éric, please feel free to commit (and even grab Assigned To:) when you feel
patch is ready. You can do final review better than me.
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
Patch is missing version-added directive and News entry. I will try to add
these and re-upload for final check.
--
status: pending -> open
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
I applied mkdir.diff, 08-07, patch to my current working copy, added
version-added and News entry (with credit to Ray Allen) and added Ray Allen to
ACKS. Uploaded as mkdirs.tr.diff
I suspect a complete test should include a linux system, but I copied os.py
Terry J. Reedy added the comment:
\ at end of os.py addition
--
___
Python tracker
<http://bugs.python.org/issue9299>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
Afaik, those error have nothing to do with this issue. I just included them for
completeness in case they were helpful to GB.
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue10537>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
And I checked both .2 and .3 with McAfee "Nothing found"
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
This issue was closed as a duplicate of #9227.
Please direct further comments there.
In any case, all issues wait until a person with the requisite knowledge
volunteers a fix and a core developer commits the fix
Terry J. Reedy added the comment:
I would prefer the module.name without the repr decoration.
--
status: pending -> open
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
I removed trailing '\' and whitespace, refreshed against current repository,
removing conflicts, and committed. r86930
--
assignee: georg.brandl -> terry.reedy
resolution: accepted -> fixed
status
Terry J. Reedy added the comment:
Georg Brandl patched the doc changes in r86931.
Ray, for future reference, you might take a look, particularly
-.. function:: makedirs(path[, mode][, exist_ok=False])
+.. function:: makedirs(path, mode=0o777, exist_ok=False)
In 3.x, (as opposed to 2.x), the
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10610>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Here is a pretty minimal patch to expose bjunk and bpopular as attributes and
document them along with b2j, which is already exposed but not documented.
I suppose the proposed paragraph could be formatted as a list, perhaps after
":class:`SequenceMa
Terry J. Reedy added the comment:
The indentation of the patch 'looks' wrong. That appears to be because you used
tabs instead of spaces (as in the lines removed and I presume elsewhere in the
file -- and because FireFox interprets tabs as 8 spaces. Please redo with
spaces. I w
Terry J. Reedy added the comment:
Added version-added and committed. r86983
--
___
Python tracker
<http://bugs.python.org/issue10534>
___
___
Python-bugs-list m
Changes by Terry J. Reedy :
--
stage: commit review -> needs patch
___
Python tracker
<http://bugs.python.org/issue10534>
___
___
Python-bugs-list mai
Terry J. Reedy added the comment:
Deprecated isbjunk and isbpopular methods, ran doc and unit tests, and
committed as r87000. Still need to add 'gone in 3.3 test' when revise unittests.
--
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
News entry for both commits: r87001
--
___
Python tracker
<http://bugs.python.org/issue10534>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Objects/dictobject.c
--
___
Python tracker
<http://bugs.python.org/issue10516>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
The patch looks same to me as far as I can judge. I would have used .format
instead of %, but you wrote it ;-).
Seeing how many of our tests had to be patched convinced me that we should
treat this like a feature request and only apply to 3.2
Terry J. Reedy added the comment:
#3267 did not expose endless loop possibility and was closed as won't fix.
Rather than reopen that and close this and move nosy list back, I added to nosy
list here.
--
nosy: +brett.cannon, erickt, terry.
Changes by Terry J. Reedy :
--
superseder: -> yield expression inside generator expression does nothing
___
Python tracker
<http://bugs.python.org/iss
1101 - 1200 of 12707 matches
Mail list logo