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
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:
I should have said that IDLE puts >>> on a new line.
--
___
Python tracker
<http://bugs.python.org/issue10304>
___
Terry J. Reedy added the comment:
test_binascii.py
--
___
Python tracker
<http://bugs.python.org/issue10324>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
This is an editor rather than Python problem. Are you using the IDLE editor or
something else. Which version of Windows?
Orange and purple are IDLE's default for keywords and built-in names. But
running 3.1.2 under XP, I have no problem as you des
New submission from Terry J. Reedy :
In 3.x, "(object)" is now superfluous in class statements. Reference manual
7.7. Class definitions has simply
class Foo: pass
In library manual 2. Built-in Functions, class examples for classmethod and
staticmethod are the same. Class exampl
Terry J. Reedy added the comment:
If it is an editor window that you launch from IDLE, with a red script Tk in
the upper left corner, with 'About IDLE' on the help menu, then it is an IDLE
editor window and part of IDLE -- and appropriate for bug reports here ;-).
This could be
Terry J. Reedy added the comment:
I take that as a yes, IDLE edit window. 2.5 is beyond fixing at this point, but
that is useful data. I will look out for this problem when I load Python on
Win7.
--
components: +IDLE
versions: +Python 2.7, Python 3.2
Terry J. Reedy added the comment:
I like it!
--
___
Python tracker
<http://bugs.python.org/issue7061>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Yes, this could be reopened with a patch. Someone else would have to judge its
usefulness and acceptability. So no guarantees.
--
___
Python tracker
<http://bugs.python.org/issue960
Terry J. Reedy added the comment:
To me, the mini change logs are both distracting noise and contrary to the
general start-fresh policy for 3.x docs, stated somewhere by Georg B, which I
really like.
--
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
Looks good in a cursory reading. I presume trace test still passes.
If you change the signature of the renamed functions, that would break the
current wrappings. Would you use new private functions with different names, or
change the wrappings where possible
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue2986>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Tim told me to continue with this as he has no time.
rev86401 - apply 3.1 doc fix
--
assignee: tim_one -> terry.reedy
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
Tim told me to continue with this as he has no time.
rev86401 - apply 3.1 doc fix
I cannot apply 2.7 patch. I has different header lines. In particular,
TortoiseSVN cannot fetch nonexistent revision "Mon Aug 30 06:37:52 2010 +0300".
Please regenera
Changes by Terry J. Reedy :
--
Removed message: http://bugs.python.org/msg120925
___
Python tracker
<http://bugs.python.org/issue2986>
___
___
Python-bugs-list m
Terry J. Reedy added the comment:
issue2986.fix27.5.patch applied, with version note added to doc, as
rev86418
Only thing left is patch for 3.2, which Eli and I will produce.
--
stage: commit review -> needs patch
versions: -Python 2.7
___
Pyt
Terry J. Reedy added the comment:
Ok with me also to commit and backport for next releases.
--
___
Python tracker
<http://bugs.python.org/issue9312>
___
___
Pytho
Terry J. Reedy added the comment:
Georg, do you have any idea what the source of the index glitch is?
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
1. I decided to add '\' since this is what I normally do and also add one
sentence explanation.
2. I changed ending from ' ' to ','.
Uploaded patch committed in rev86422, rev86423
--
keywords: +patch
resolution
Terry J. Reedy added the comment:
The .../orig.html link now works and was last updated in August.
It has a link to .../robotstext.html.
--
___
Python tracker
<http://bugs.python.org/issue1437
Changes by Terry J. Reedy :
--
resolution: -> out of date
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue1654974>
___
___
Pyth
Changes by Terry J. Reedy :
--
resolution: -> rejected
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue1733259>
___
___
Pyth
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue1777134>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Too late for 2.6.6 ;-)
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue3720>
___
___
Python-
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
versions: +Python 3.2 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4015>
___
___
Changes by Terry J. Reedy :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue4037>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
status: pending -> closed
___
Python tracker
<http://bugs.python.org/issue5578>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
Two weeks left for 3.2 ;-)
--
___
Python tracker
<http://bugs.python.org/issue6216>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.2 -Python 3.0
___
Python tracker
<http://bugs.python.org/issue6335>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue6942>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Thank you for reporting back. This could be closed as invalid, but since I
think this is something I should have known or guessed, I will leave it open
for now as a reminder to look at the docs sometime and see if anything should
be added somewhere
Terry J. Reedy added the comment:
>What is the best way to pass around source code?
> - file-like objects, line iterators, readline-like function?
Line iterator (list of lines) as returned by open().readlines.
Memory should not be an issue. Read disk once and close.
with open('fil
Terry J. Reedy added the comment:
Please suggest a specific alteration in the codecs.readline doc that we can
then discuss.
--
assignee: -> d...@python
components: +Documentation -Library (Lib)
nosy: +d...@python, terry.reedy
___
Python trac
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10356>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
That suggests that the last statement needs to be guarded somehow.
I re-versioned to 3.2 because 3.1.final will be out very soon.
I expect 3.2 and 2.7 should have same problem.
--
nosy: +terry.reedy
versions: +Python 3.2 -Python 3.1
Terry J. Reedy added the comment:
>[Copied from Issue10070.]
which is to say (for the benefit of other reviewers):
This was a minor sub-issue mentioned there in passing and independent of the
main issue and ignored in the extensive discussion thereof.
--
nosy: +terry.re
Terry J. Reedy added the comment:
1. Does the markup make any visual difference?
2. Does the markup affect the index?
3. What do other module docs do?
I notice that 'Tkinter' appears in several section headings. Is it marked? (Is
the upper case a holdover that should be lowercased?
Terry J. Reedy added the comment:
I see the marker pointing to the space after '=', which is *really* not
helpful. If '5' were instead an identifier, one might be really misdirected. So
best would be "Invalid char '0x' at position n in identifier
Terry J. Reedy added the comment:
This stuff is hard to write automated tests for, hence there are none.
The patch is mostly straightforward: capture errno with new variable err at
point of possible error when intervening calculation is needed before testing
the value of errno. This seems
Terry J. Reedy added the comment:
>Line iterator does not carry the information about source encoding
which may be important for annotating the source code.
I would pass around both encoding and lines, possibly as a tuple.
A person heavily into OO might define a _Source class and turn
Terry J. Reedy added the comment:
>http://docs.python.org/dev/contents.html
The only thing I see there is the bold-facing of *PEP 3101*.
Is that what you are referring to?
In any case, with Georg's concurrence go ahead with this and any other modules
you ca
Terry J. Reedy added the comment:
r86437 - correct and replicate version-added message
--
___
Python tracker
<http://bugs.python.org/issue2986>
___
___
Python-bug
Terry J. Reedy added the comment:
That should be, for 2.7 or 3.2, as 3.1 is nearly finished.
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
This still needs to be verified that there is a problem with a *current*
release. That means 2.7.1 (rc just out) or 3.2 (a4 just out).
If this would be considered a security issue (I do not know) then 'current'
includes 2.5.5, 2.6.6, and 3.1.3 (r
Terry J. Reedy added the comment:
I presume you mean this:
if self._is_special:
if self.is_snan():
-raise TypeError('Cannot hash a signaling NaN value.')
+raise ValueError('Cannot hash a signaling NaN value.')
My underst
New submission from Terry J. Reedy :
The entry for bytearray(source...) says
"
The optional source parameter can be used to initialize the array in a few
different ways:
...
If it is an integer, the array will have that size and will be initialized with
null bytes.
...
Without an argumen
Terry J. Reedy added the comment:
imaplib has no particular maintainer and I know little about it.
Doc says it implements 'a large subset of the IMAP4rev1 client protocol as
defined in RFC 2060." I do not remember any discussion on pydev, over the last
several years, about imaplib.
Changes by Terry J. Reedy :
--
nosy: +loewis
stage: -> patch review
title: slow close file descriptors in subprocess, popen2, os.pepen* -> slow
close file descriptors in subprocess, popen2, os.popen*
versions: -Python 2.5, Python 2.6
___
Changes by Terry J. Reedy :
--
nosy: +pitrou
stage: -> patch review
versions: -Python 2.5, Python 2.6
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
Georg, what is policy on removed features?
Remove doc or leave and state removed?
"Deprecated in version 3.2 and removed in 3.3."
or just
"Removed in version 3.3"
(Once removed, does it really matter when deprecated?)
If left, sho
Terry J. Reedy added the comment:
2.6 is in security-fix only mode (though this might qualify as a security
issue). Can you test with a current version (2.7.1, 3.2.0)?
That said, most problems with extensions crashing are with the extension,
though hard to determine sometimes
Terry J. Reedy added the comment:
With 3.2, (Winxp) I get combobox with first line,
input as
r'C:\Python31\Lib\tkinter\test\test_ttk',
displayed as
"C:Python31Lib kinter est est_ttk"
Something either deleted \ or converted \t to tab.
Indeed, adding a space to the
Terry J. Reedy added the comment:
Test cases always help when appropriate.
A link to the Pypy code that does this might also help.
Or perhaps ask them to submit a patch to this issue.
--
nosy: +alexandre.vassalotti, pitrou, terry.reedy
stage: -> test nee
Terry J. Reedy added the comment:
Another example from #11307
import re
r = re.compile(r'(\w+)*=.*')
r.match("abcdefghijklmnopqrstuvwxyz")
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7
___
Python tracker
<
Terry J. Reedy added the comment:
13 secs on my 7 year old windows machine.
--
nosy: +terry.reedy
resolution: -> duplicate
status: open -> closed
superseder: -> the re module can perform poorly: O(2**n) versus O(n**2)
versions: +Python 2.7, Python 3.3 -Python 2.6, P
Terry J. Reedy added the comment:
Alexandre,
Do the considerations against pickling apply to deep copying? It would seem
that copying bytecode and pointer within a run should be ok.
--
___
Python tracker
<http://bugs.python.org/issue11
New submission from Terry J. Reedy :
In Language Ref, 6.2 assignments, delete
"(This rule is relaxed as of Python 1.5; in earlier versions, the object had to
be a tuple. Since strings are sequences, an assignment like a, b = "xy" is now
legal as long as the string has t
Terry J. Reedy added the comment:
Agreed. The footnote is "[1] It may occur within an except or else clause. The
restriction on occurring in the try clause is implementor’s laziness and will
eventually be lifted. "
I searched chapter for all occurences of '1' and als
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue11337>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Conversion is underway today. Completion should be announced at least on the
pydev list.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
>The basic problem is that the class object is defined after the class
>definitions have been made,
I have sometimes thought the the class statement could start with binding the
name to a blank object or new, blank class object. But then people might
Terry J. Reedy added the comment:
I agree that compile-time stack exhaustion is different from runtime
object-heap exhaustion and could/should have a different error.
I agree with Martin (from 2000) that SyntaxError is not right either. Perhaps a
new ParseError subclass thereof. I believe
Terry J. Reedy added the comment:
I am inclined to -1 also.
a. The proposed behavior is anti-obvious to me: the higher the height, the
shorter the result. Calling param 'drop' would be better.
b. Not every one-liner should be wrapped.
>>> path.rsplit('/',0)
Terry J. Reedy added the comment:
os.makedir (and, I presume, makedirat) are intentionally thin wrapperws around
the libc system calls
>From #9299, msg111014 (Guido)
"I wonder if os.mkdir() should not be left alone (so as to continue
to match the system call most exactly, as is our co
Changes by Terry J. Reedy :
--
title: suggestion for os.kill(pid,CTRL_C_EVENT) -> suggestion for
os.kill(pid,CTRL_C_EVENT) in tests
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
No IANA registration. According to
https://secure.wikimedia.org/wikipedia/en/wiki/Webp
this is a Google-specific proposal rather than a standard.
Thus addition would seem premature at this time.
--
nosy: +terry.reedy
Terry J. Reedy added the comment:
Have you tried this with 3.2 (or 3.1)?
What behavior do you expect when pipe goes first?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Changes by Terry J. Reedy :
--
type: -> performance
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue11382>
___
___
Python-bugs-list mai
Changes by Terry J. Reedy :
--
type: -> crash
versions: +Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue11383>
___
___
Python-bugs-lis
Terry J. Reedy added the comment:
Doc issues should be 'tested' and reported against the latest versions. 2.6.6
doc is effectively the last 2.6 version.
TextTextRunner is not completely undocumented.
In 3.2
>>> help(t.run)
Help on function run in module unittest.runn
Terry J. Reedy added the comment:
I also see that TextTestRunner has an attribute resultclass, which is
TextTestResult. Is this intended to be ever changed?
The docstring for TTRunner says "It prints out the names of tests as they are
run, errors as they occur, and a summary of the re
Terry J. Reedy added the comment:
In 2.7 or 3.2, winxp, when I enclose your code with
from tkinter import tk #or Tkinter
...
App()
I get a window with a buttom that sinks and raises as I press and release the
left button.
Please post complete runnable code that exhibits the problem.
Do not
Terry J. Reedy added the comment:
class unittest.TextTestRunner(stream=None, descriptions=True, verbosity=1,
runnerclass=None, warnings=None)
stream is documented, the others are not (except for some garbled text about
warnings). "This class has a few configurable parameters, &qu
Terry J. Reedy added the comment:
The undocumented verbosity parameter?
--
nosy: +michael.foord, terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Changes by Terry J. Reedy :
--
nosy: +gregorlingl, terry.reedy
___
Python tracker
<http://bugs.python.org/issue11392>
___
___
Python-bugs-list mailing list
Unsub
Terry J. Reedy added the comment:
I thought I posted this on another issue, but cannot find it.
My installed 3.2 Tools directory only has i8n, pynche, and scripts directories.
The 3.2 repository has 12 other directories in Tools that are missing from the
installation.
--
components
Terry J. Reedy added the comment:
print("a"*66000)
works (after some delay) running from an IDLE edit window (but see #144249).
Works means that I get a working prompt back with no errors.
Unlike IDLE, the Command Prompt Windows keeps a limited number of lines in its
buffers (def
Changes by Terry J. Reedy :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue5091>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
For future reference, struct.pack, not mentioned here, is a binary bytes
formatting function. It can mix ascii bytes with binary octets. It works the
same in Python 2 and 3.
Str.bytes does two things: convert objects to strings according to the contents
of
New submission from Terry J. Reedy :
The struct doc does not specify the meaning of 's', without a count. The
attached patch adds the sentence:
If a count is not given, it defaults to 1; ``'s'`` means the same as ``'1s'``.
(Until I experimented, I had thought no
Terry J. Reedy added the comment:
patch
--
keywords: +patch
Added file: http://bugs.python.org/file21035/zstruct.diff
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
You are right, I misinterpreted the meaning of 's' without a count (and opened
#11436 to clarify). However, for the fairly common case where a variable-length
binary block is preceded by a 4 byte *binary* count, one can do something which
is n
Terry J. Reedy added the comment:
2.6/2.7 only get security fixes. I do not think this qualifies
--
components: +Library (Lib)
nosy: +terry.reedy
stage: -> test needed
type: -> behavior
versions: -Python 2.5, Python 2.6
___
Python tracker
Changes by Terry J. Reedy :
--
nosy: +benjamin.peterson, brett.cannon, georg.brandl, ncoghlan
___
Python tracker
<http://bugs.python.org/issue11441>
___
___
Pytho
Changes by Terry J. Reedy :
--
nosy: +benjamin.peterson
___
Python tracker
<http://bugs.python.org/issue11440>
___
___
Python-bugs-list mailing list
Unsubscribe:
901 - 1000 of 12740 matches
Mail list logo