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
Phillip J. Eby added the comment:
Looks good to me.
--
___
Python tracker
<http://bugs.python.org/issue5800>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
Terry J. Reedy added the comment:
I suspect that this will not be the last time that a fix is version dependent.
I think that the 2to3 distributed with 3.x should fix to 3.x. Otherwise, the
fix would have to do an 'if version...' dance. (Perhaps the version distributed
with 2.7
Terry J. Reedy added the comment:
Chris: I appreciate you wanting use IDLE. I love it, hope to improve it, and am
sorry that people occasionally have a problem starting it.
However, this is not a bug report but a usage question that would better have
been posted to our python-list email list
Terry J. Reedy added the comment:
It also appears that you are submitting messages as HTML rather than plain
text. Hence the junk 'unknown' files. Please do not do that. (Messages to a
mailing list or newsgroup should also be
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21038/unnamed
___
Python tracker
<http://bugs.python.org/issue11413>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21048/unnamed
___
Python tracker
<http://bugs.python.org/issue11413>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21049/unnamed
___
Python tracker
<http://bugs.python.org/issue11413>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21050/unnamed
___
Python tracker
<http://bugs.python.org/issue11413>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file21051/unnamed
___
Python tracker
<http://bugs.python.org/issue11413>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
I presume 'silently' means when starting with an icon or shortcut, so that
there is no window left to contain the traceback.
The standard key customization is by clicking, which makes errors impossible.
How did you get the error? By using the &qu
Terry J. Reedy added the comment:
Please feel free to test, revise, and write. Though 'removed', the file is
still accessible via the history list. (Click 'zipfile_remove.patch' and then
'download'.)
--
nosy: +terry.reedy
___
Terry J. Reedy added the comment:
There has been discussion of this before, but it must have been on one of the
lists, (possibly py3k list) as searching tracker for 'listdir generator' only
returns this.
I believe I pointed out then that Miscrosoft C (also) has (did once) a
Terry J. Reedy added the comment:
I meant 2.5/2.6 of course.
--
___
Python tracker
<http://bugs.python.org/issue11443>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue5714>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue5880>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue6743>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue2897>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 3.1
___
Python tracker
<http://bugs.python.org/issue5420>
___
___
Python-bugs-list mailing list
Unsub
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue5594>
___
___
Pytho
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue9307>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/issue4832>
___
___
Pytho
Terry J. Reedy added the comment:
The behavior (for Windows) I expect and would like is that the default
extension would be .py, .txt, or nothing, depending on the selection in the
'save as type' box in the SaveAS dialog. (.pyw, being rare, would have to be
explicitly typed.)
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue9398>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue5784>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue4965>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I have looked at the pydoc module. Everything except help() is intended to be
private. The author says within the file that __all__, when present, defines
public interface and uses that definition within help() to decide what to
display. So I do not think
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue8722>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
A.B, I believe you have looked at other areas of missing C-API docs. What do
you think of this one? Is it still missing?
--
nosy: +belopolsky, terry.reedy
versions: +Python 3.3
___
Python tracker
<h
Terry J. Reedy added the comment:
In 3.2, a change *was* committed (by who?) but not recorded here:
.from/.tostring were renamed .from/.tobytes and kept as deprecated aliases. Is
there anything more to this issue other than removing the deprecated aliases in
3.3 (which could be done now if
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue9254>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue4966>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue9998>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue10175>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I believe 3.2 has many code and doc improvements with respect to bytes/string
usage. So it is hard to know what is still needed.
I think the way for anyone to advance this is to review just one of the modules
listed and either report here that all is ok or
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
versions: +Python 3.2, Python 3.3
___
Python tracker
<http://bugs.python.org/issue6570>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue7460>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue8269>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I just read through the 3.2 unittest doc and found and will find the new tables
very helpful. I hope you get them into the upcoming 3.1.3 and 2.7.2 releases,
even if you think them not complete ;-).
--
nosy: +terry.reedy
versions: +Python 3.3
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue935117>
___
___
Python-bug
Changes by Terry J. Reedy :
--
versions: +Python 3.3 -Python 2.7, Python 3.1, Python 3.2
___
Python tracker
<http://bugs.python.org/issue1043134>
___
___
Pytho
Terry J. Reedy added the comment:
Is there a practical issue left here? Mathew says his regex module does as
requested, but adding that to the stdlib is a separate issue. Martin would like
an implementation of Unicode TR18, but that is also another issue.
--
nosy: +terry.reedy
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue4819>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I am not sure that traceback changes should be made in bug-fix releases, though
it is a moot point until a change is ready for 3.3.
That said, having a bit more info in tracebacks so they can more often be
understood without looking through possibly many
Terry J. Reedy added the comment:
Closing as suggested by Ross
--
nosy: +terry.reedy
resolution: -> rejected
status: open -> closed
versions: +Python 3.3 -Python 2.7, Python 3.1
___
Python tracker
<http://bugs.python.org/
Changes by Terry J. Reedy :
--
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue7867>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
For the purpose of this tracker, a 'bug' (behavior issue) is a discrepancy
between doc and behavior. Micro ('bugfix') releases fix such discrepancies,
which are all unintentional.
Every feature request addresses what someone considers a
Terry J. Reedy added the comment:
Temporary output will break all doctests, not just those with exception
traceback. One should fix, disable debug output, and then rerun doctest to make
sure fix did not break anything else.
A function that prints and raises *can* be tested as by separately
Terry J. Reedy added the comment:
I have started learning .rst, so I hope to work on this in the not too distant
future.
Ezio -- I have also noticed that some chapters are too long to be easily
scrolled around in (unittest is another), and either need an index at the top
(like with built-in
New submission from Terry J. Reedy :
Example (which can serve as testcase with buggy output corrected).
class C(object):
def __iter__(self):
yield 'yes!'
def __radd__(self, other):
other.append('bug!')
return other
def __rmul__(self, o
Terry J. Reedy added the comment:
Second link to pydev should be
http://mail.python.org/pipermail/python-dev/2011-March/109130.html
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
It seems to me that the underlying (design) flaw is having duplicate slots in
the C type structure*. I presume that having two different functions in
num-add and seq-add (concat) (I know, not quite the proper names), etc, is an
error. I also assume that
Terry J. Reedy added the comment:
And if num-add is present and seq-add not, copy the other way, even if it were
recommended to only use the former.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
I think Nick's point, and one I agree with, is (or amounts to):
'somelist += ob' == 'somelist.__iadd__(ob)' ==
'somelist.extend(ob)' == 'somelist[len(somelist):len(somelist)]=ob'
is defined and should be imple
Terry J. Reedy added the comment:
I want to thank you all too, both for the changes themselves and for the
bundling.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
b9b7d4c10bc4.diff is a huge compilation of all commits from the last few days,
with the abstract.c diff buried about 3/4ths of the way through.
--
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
With 3.2 on WinXP, I get no error report in interactive mode,
with either IDLE or plain interpreter, nor from 'python file' in Command Prompt
window. But now with the print added to what I ran before, I see no print
output, and I see that IDLE is
New submission from Terry J. Reedy :
People occasionally ask on python-list about the following error message when
trying to create a class:
> TypeError: Error when calling the metaclass bases
> module.__init__() takes at most 2 arguments (3 given)
It is a bit cryptic. It is also acci
Terry J. Reedy added the comment:
2.5 and 2.6 are only open for security issues.
I am guessing that 2.7, 3.1, and 3.3 are affected.
I cannot test as I only have Windows currently.
--
nosy: +terry.reedy
stage: -> test needed
versions: +Python 2.7, Python 3.1, Python 3.3 -Python
Terry J. Reedy added the comment:
My haphazard sample gave 8 without, 5 with.
I suspect trailing dot is analogy with lists:
1. something.
2. something else.
2.1. detail of else
2.2. more detail
Books without generally have extra space instead of '.'.
--
nosy: +t
Terry J. Reedy added the comment:
2.6 is only open for security fixes.
--
nosy: +terry.reedy
resolution: -> invalid
status: open -> closed
superseder: -> remove/delete method for zipfile/tarfile objects
versions: -Python 2.6
___
Pytho
Terry J. Reedy added the comment:
"Methods defined within a class may reference..."
would make the tutorial correct without introducing the complication of methods
defined outside a class, let alone in another module.
--
nosy: +t
Terry J. Reedy added the comment:
With fix, test, and news in 3.2 and 3.3, is anything left to do?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue11
Terry J. Reedy added the comment:
Eugene has started work on AST optimizer in #11549
--
nosy: +terry.reedy
superseder: -> Rewrite peephole to work on AST
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
A couple of somewhat related issues:
#10399 AST Optimization: inlining of function calls
#1346238 A constant folding optimization pass for the AST
Obviously, ast optimizers should work together and not duplicate.
Nice to see increased attention
Terry J. Reedy added the comment:
#11549 Rewrite peephole to work on AST
includes constant folding. I have not compared.
--
nosy: +terry.reedy
versions: +Python 3.3 -Python 3.2
___
Python tracker
<http://bugs.python.org/issue1346
Terry J. Reedy added the comment:
2.6 is only open for security issues, so any verification should use later
version.
--
nosy: +terry.reedy
status: pending -> open
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issu
Changes by Terry J. Reedy :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue11463>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
There is no end of helpful articles at Wikipedia and elsewhere. Wikipedia
articles are especially easy to find with a special search in some browsers and
on the site. In my experience on python-list, for instance, people have much
more problem with floats
1001 - 1100 of 13130 matches
Mail list logo