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.
Phillip J. Eby added the comment:
Yes, the 'b' is a docs error.
I previously removed this in:
http://hg.python.org/cpython-fullhistory/rev/2697326d4a77
It appears to have been reverted during a merge, here:
http://hg.python.org/cpython-fullhistory/rev/88d04f0143c7
My brows
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
John J Lee added the comment:
Oops, I hadn't noticed that max_redirections isn't part of the API. In that
case, I agree that it's not strictly a bug. I'd also agree it's not very
important.
FWIW: "want[ing] to see all redirects" is not the same thing as p
Phillip J. Eby added the comment:
It looks to me as though this patch reintroduces issue9199, as it passes
multiple arguments to self.announce() once again. The patch needs to be made
against the SVN version of Python, not the released version
Phillip J. Eby added the comment:
Yes, please consider the type->isinstance part of the change rejected. I just
got done reverting a bunch of those in 3.2. Where WSGI specifies types, it
means "type() is", not "isinstance".
(The 3.x version of wsgiref does not need
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
Phillip J. Eby added the comment:
Given that this is a pure bugfix to revert a problem in 2.7 -- where no *new*
development is being done -- a test isn't actually needed for this patch.
There is no point in holding up a distutils1 fix for distutils2's benefit.
Daniel: thanks for
Phillip J. Eby added the comment:
Committed Daniel's patch to r86978 in the 2.7 maintenance branch.
(The 2.x trunk still has this bug, but is permanently closed to new checkins.)
--
stage: needs patch -> committed/rejected
versions: -3rd party, Python 3.1, Py
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
Phillip J. Eby added the comment:
Whoops, my bad... I misread Eric's earlier message as throwing it back onto
*Daniel* to produce a test, not that *he* (Eric) was working on the test.
IOW, I thought that progress had been stalled a second time on this, and went
ahead to pick up the
Phillip J. Eby added the comment:
The urgency was only that I didn't want the other contributors to this issue to
feel as though the bar on their contributions were being raised higher every
time they jumped the previous bar.
IOW, I did it to make them feel like somebody was doing *some
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
Terry J. Reedy added the comment:
In #10545, 'rurpy2' gives a similar critique of this section and suggests that
it be improved or removed. I agree that it needs change and will try to think
of what would be better.
--
nosy: +rurpy2, terry.reedy
versions: -Python 3.0,
Terry J. Reedy added the comment:
This is essentially a duplicate of #7391 where it is already agreed that a
change should be made to that section.
--
nosy: +terry.reedy
resolution: -> duplicate
status: open -> closed
superseder: -> Re-title the "Using Backsla
Terry J. Reedy added the comment:
Marc or Alexander, can you confirm that the patch is correct?
--
assignee: d...@python -> cgw
nosy: +belopolsky, cgw, lemburg, terry.reedy
stage: -> commit review
___
Python tracker
<http://bugs.p
Changes by Terry J. Reedy :
--
assignee: cgw ->
___
Python tracker
<http://bugs.python.org/issue10546>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
assignee: -> d...@python
___
Python tracker
<http://bugs.python.org/issue10546>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
2.6.6 was the last bugfix release
--
type: crash -> behavior
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
The issue is not the specific warnings Rusi got but how, in general, one can
get more information when the warnings are too cryptic to deal with.
One response might be that DeprecationWarnings should be much wordier than they
are -- a paragraph of a few
Terry J. Reedy added the comment:
Your links are to py3k branch, where dictmaker does not appear.
http://svn.python.org/view/python/branches/release27-maint/Grammar/Grammar?view=markup
should that Benjamin just removed it from 2.7.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
This is not a security issue, so removal of 2.6 was right the first time.
Changing the one line would be easy, but I know nothing about what is correct
or if there is even a standard for cookies.
--
stage: -> unit test needed
versions: -Python
Terry J. Reedy added the comment:
Since Éric grabbed Assigned To:, I was expecting him to ;=). But since he is
doing enough other stuff, I will unless there are conflicts in the .rst I do
not know how to fix.
--
status: pending -> open
___
Pyt
Terry J. Reedy added the comment:
Éric beat me. Better that he finish.
--
___
Python tracker
<http://bugs.python.org/issue9264>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Added tweak to .__chain_b to avoid creating list of b2j.keys and .items be
deleting from b2j in separate loop after creating sets. Test with timeit
suggests time about same with 1% deletion. r87276
--
resolution: -> fixed
status: open ->
Phillip J. Eby added the comment:
So, do you have any suggestions for a specific change to the patch?
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
Please try the recent 2.7.1 release. This needs to be tested with current 3.1.3
or 3.1.b+ also.
--
nosy: +eli.bendersky, terry.reedy
title: trace does nto ignore --ignore-module -> trace does not ignore
--ignore-mod
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10702>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file20084/exceptions.rst
___
Python tracker
<http://bugs.python.org/issue10723>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
I do not have much to add, but second the idea of inquiring on python-list or
the gmane mirror, especially about alternatives (other than Notepad, which is
what I started with). Happily, IDLE has nearly always worked fine on my xp
machine, so I have not
Terry J. Reedy added the comment:
This issue is actually a request to add .svg to the types map and the the
abbreviation .svgz for .svg.gx to the suffix_map.
I believe Scalable Vector Graphics are well on the way to becoming *the*
standard vector graphics format for the web, especially with
Terry J. Reedy added the comment:
Separate issue: from the mimetypes doc ...
"MimeTypes.types_map
Dictionary mapping filename extensions to MIME types. This is initially a copy
of the global types_map defined in the module."
But on Windows, I get a *tuple*, not a dict, of two
Terry J. Reedy added the comment:
Vinay, you should look at the logging-cookbook patch.
--
___
Python tracker
<http://bugs.python.org/issue10461>
___
___
Pytho
Changes by Terry J. Reedy :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue10296>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Patch attached.
The instructions, after editing the url, are
# Before adding new types, make sure they are either registered with IANA,
# at http://www.iana.org/assignments/media-types
# or extensions, i.e. using the x- prefix
Since there is no
Changes by Terry J. Reedy :
--
stage: -> commit review
___
Python tracker
<http://bugs.python.org/issue10730>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
I verified the looping behavior of the testcase in both 2.7.1 and, with minor
mods, 3.1.3 and 3.2b1, so this is a valid issue.
The HTMLParcer docs (2.7, 3.2) do not mention the .error method. The default is
def error(self, message):
raise
Terry J. Reedy added the comment:
No, the other combined suffixes are not either.
--
___
Python tracker
<http://bugs.python.org/issue10730>
___
___
Python-bug
1201 - 1300 of 13130 matches
Mail list logo