Terry J. Reedy added the comment:
I agree:
Implementation note: PyShell.py hass the following line:
from code import InteractiveInterpreter
That is the base class for InteractiveConsole, the subject of #7741.
PyShell makes it own extension
class ModifiedInterpreter(InteractiveInterpreter
Terry J. Reedy added the comment:
To be clearer, this issue is an elaboration of the #3559 report that
\n 'does not work' in that it points out that \n silently ignores the second while
\n is reported as a syntax error. I agree
that this elaboration should have been included ther
Terry J. Reedy added the comment:
I switched to patch review because I am not sure unit test is possible.
I did not advocate a change to immediate execution in my original post. I noted
that pasting multiple statements does not work and that if it cannot be made to
work, the limitation
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue7182>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
This is definitely not a critical fix for 2.6 ;-)
The weakref.proxy doc says nothing about comparisons:
"weakref.proxy(object[, callback])
Return a proxy to object which uses a weak reference. This supports use of the
proxy in most contexts inste
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue2942>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I agree that a tolerant mode would be good (and often requested). String
encoding and decoding also have strict and forgiving modes, so this seems close
to a policy.
Unit tests with example snippets that properly fail strict mode and pass the
new tolerant
Terry J. Reedy added the comment:
Please go ahead. I will gladly review anything you do.
--
___
Python tracker
<http://bugs.python.org/issue4966>
___
___
Pytho
Terry J. Reedy added the comment:
While Python is 'GPL compatible', whatever that means, it cannot incorporate
GPLed code in the PSF distribution. Code must be contributed under one on the
two licenses in the contributor agreement. Philip, can you contribute a patch
appropriate to
Terry J. Reedy added the comment:
2.7 is closed to new features and I cannot see making a non-bug change in a
maintenance release that could break something.
Should this be closed in favor of #9694? (Or vice versa?). Perhaps one of the
issues should be renamed something like "Im
Terry J. Reedy added the comment:
Is this really a behavior bug or doc bug?
Or a feature request for better message customization?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
2.6.6 is the final 2.6 bugfix release. A bug would have to be demonstrated with
2.7 or 3.1/2. On 3.1, winxp, I get this also:
>>> import json
>>> json.dumps('foo')
'"foo"'
--
nosy: +terry.reed
Changes by Terry J. Reedy :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue9668>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
components: +Library (Lib) -None
status: pending -> open
___
Python tracker
<http://bugs.python.org/issue9668>
___
___
Python-
Changes by Terry J. Reedy :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue9668>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
nosy: +alexandre.vassalotti, pitrou
___
Python tracker
<http://bugs.python.org/issue9672>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
--
nosy: +ezio.melotti, pitrou
___
Python tracker
<http://bugs.python.org/issue9669>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I do not think your wish is sensibly possible. GzipFile wraps an object that is
or simulates a file. This is necessary because GzipFile "simulates most of the
methods of a file object, with the exception of the readinto() and truncate()
methods."
Terry J. Reedy added the comment:
This is really two issues: docs and windows builds. As for docs:
Many of the module doc pages mention original authors and give urls for further
info. The ssl page already says " This module uses the OpenSSL library." Rather
than fuss over wheth
Terry J. Reedy added the comment:
I agree. A programmer who mashes
a = d = 1
b, c = e = 2, 3
into one statement deserves the bytecode he gets ;-).
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue4
Terry J. Reedy added the comment:
Additional note: RefMan 2. Lexical analysis:
"Python reads program text as Unicode code points;"
Doc for runsource says "Compile and run some source in the interpreter.
Arguments are the same as for compile_command()". Latter says &q
Terry J. Reedy added the comment:
I asked because there was no such thing in the Unix I once used and I have
never used Linux (yet). I take Georg's answer to mean that this is not
obviously obsolete and should be left open.
--
___
Python tr
Terry J. Reedy added the comment:
I agree that the Timer doc is deficient in not saying that timing is done
within a function defined within the timeit module. It is also deficient in not
mentioning the secret of how to successfully pass user-defined functions until
the very bottom instead
Terry J. Reedy added the comment:
While refactoring the code for 2.7, I discovered that the description of the
heuristic for 2.6 and in the code comments is off by 1. "items that appear more
than 1% of the time" should actually be "items whose duplicates (after the
first) app
Terry J. Reedy added the comment:
I agree that the docs for augmented assignments and the corresponding method
and funciton can and should be improved.
But I do not like this as is. In particular, Python does not have in-place
operators; it has methods that optionally do an operation in
Terry J. Reedy added the comment:
Good idea!
I see Raymond's point about the name. How about .method_check?
To me Sequence.method_check(range) means "Abstract Seqeunce class, please
method-check the concrete range class."
If Sequence.register(range) is in the range sourc
Terry J. Reedy added the comment:
As I remember, the FAQ was once that, *the* (giant) FAQ, with numbered
sections. When broken into pieces, the order may have been re-arranged.
Given that the broken reference is in extending/windows, I would look in both
the Extending and Windows FAQs
Terry J. Reedy added the comment:
PATCH
Specifically, in section 17.6. base64..., near bottom, example should be
>>> import base64
>>> encoded = base64.b64encode(b'data to be encoded') #hang
>>> encoded
b'ZGF0YSB0byBiZSBlbmNvZGVk'
>>>
New submission from Terry J. Reedy :
I ran doctest on LibRef 17.2 json saved as .txt. There are 4 failures: 2 are
clearly doc issues, the other 2 I do not know. I hope someone reads this who is
already familiar
DOC PATCHES
dumps(2 + 1j, cls=ComplexEncoder)
should be
json.dumps(2 + 1j
Terry J. Reedy added the comment:
As an experiment, I ran doctest on 17.2 json saved as .txt, See #9767
4 failures, 2 obvious doc faults, 2 unclear to me.
Their were 2 similar doc faults in non-interactive code examples, so doctest is
not enough to catch all bad code.
We clearly need to do
Terry J. Reedy added the comment:
Although this is not a problem in IDLE where the window can easily be expanded
beyond 80 chars, I am in favor of the idea for other uses. The command line
interpreter on Windows defaults to 80 chars and is not so easy to change, and
one must be admin to make
Terry J. Reedy added the comment:
Better specifying requirements is good. A few comments:
- The second argument is an error message; it is converted to a string object.
+ The second argument is an error message; it is decoded to a string object
+ with ``'utf-8'`` encoding.
Terry J. Reedy added the comment:
Well, anyone who does try that example will see the correct output and not
notice the trailing whitespace difference. It will only be an issue if and when
automated doc doctests are run repeatedly. Worry about it then. Thanks for the
quick response
Terry J. Reedy added the comment:
Since Raymond has grabbed this, I will let him decide on its scope.
I agree with sectioning the operator doc and intended to suggest that.
The term 'in-place operation' is fine when accurate. The term 'in-place
operator', which is what
Terry J. Reedy added the comment:
It is possible that only a fixed-size buffer is needed. If so, use of an
alternate read mechanism could be conditioned on the underlying file(like)
object not having seek.
It is also possible to direct a stream to a temporary file, but I think having
the
Terry J. Reedy added the comment:
I hope the trivial 2-byte fix does not get lost in the general issue.
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue7894>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
The patch changes the internal function that constructs the dict mapping b
items to indexes to read as follows:
create b2j mapping
if isjunk function, move junk items to junk set
if autojunk, move popular items to popular set
I helped write and test the
Terry J. Reedy added the comment:
I agree with finishing this and opening a separate issue with respect to list
comp behavior. The latter seems peripheral to the purpose of this issue.
--
___
Python tracker
<http://bugs.python.org/issue9
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue9842>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Perhaps this could be expanded to "Deprecation warnings in 3.3" with
release-blocker priority to list all 3.2 PendingDWs. Once changes are made, it
could be retitled "Removals in 3.4", with a new "Deprecation warnings in 3.4&
Terry J. Reedy added the comment:
+1
I presume you can use the experience with #9858 to either refine the program to
have fewer false positives or refine the program doc to explain the possibility
where such are unavoidable. (And as a lint-like metatest, I think false
positives are better
Terry J. Reedy added the comment:
Verified as IDLE specific on WinXP, 3.1.2
With interpreter, I get
>>> import re; re.findall(b"\x.{2}", b"sdds\xd8")
ValueError: invalid \x escape
In an IDLE Shell window, the window immediately disappears when I hit return
and
Changes by Terry J. Reedy :
--
nosy: +theller
___
Python tracker
<http://bugs.python.org/issue9884>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I suspect so, but I leave it to Eric to decide.
--
___
Python tracker
<http://bugs.python.org/issue1887>
___
___
Python-bug
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue1887>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Changing title to match current issue status.
DOC PATCH
Grammar section: As near as I can tell, the alternatives for
stringprefix::= "r" | "u" | "ur" | "R" | "U" | "UR" | "Ur" |
Terry J. Reedy added the comment:
Given that difflib produces unified diffs (among 3 others) and that diff.py is
a thin command-line wrapper that provides access to all 4 formats (with no
default), I consider those two files 'ready'. So I presume you are referring to
your patch.py
Terry J. Reedy added the comment:
I am following the suggestion in the last sentence of the original post and
turning this into a doc issue. I believe it is standard that command-line
switches override environmental variables when there is a conflict, but 'Using
Python', s
Changes by Terry J. Reedy :
--
assignee: -> d...@python
components: +Documentation -Interpreter Core
nosy: +d...@python
title: PYTHONOPTIMIZE = 0 is not honored -> Document startup option/environment
interaction
type: behavior ->
_
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue2213>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I do not deny that the behavior described in the doc is a bit strange (keying
off of type, ignoring value) is a bit bizarre and contrary to reasonable
expectation based on other programs. But to alter behavior before 3.2 or later
would require a clearly
Terry J. Reedy added the comment:
The bug appears to really be limited to Vista?/W7. On WinXP,
>>> os.path.exists('c:/programs/python31')
True
>>> os.path.exists(b'c:/programs/python31')
True
Has the patch been tested on WinXP to be sure it does not intro
Terry J. Reedy added the comment:
Only if given a revised 32bit binary (and revised test_os.py). I expect someone
else who can will see this.
--
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
I sent an email.
--
___
Python tracker
<http://bugs.python.org/issue9119>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
Range objects are new in 3.0; they supersede 2.x xrange objects, which are
perhaps 10 years old. I do not remember that xrange objects had such
attributes. On the other hand, I believe there were requests.
The request, with either implementation, seems
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue9889>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
The posted experiments on sorted data do not do any sorting. They only test the
difference in setup and comparison speed and not sorting/swapping speed. Please
post something with large arrays of random data.
Since the patch is intended to speed up 3.2 and
Changes by Terry J. Reedy :
--
versions: -Python 2.6
___
Python tracker
<http://bugs.python.org/issue9925>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
keywords: +easy, patch
stage: -> needs patch
versions: -Python 2.5, Python 2.6, Python 3.3
___
Python tracker
<http://bugs.python.org/iss
Terry J. Reedy added the comment:
Agreed. Should happen sometime. Thanks for catching this.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
Does this help any?
>>> import random
>>> from timeit import timeit
>>> testlist = list(range(10))
>>> random.shuffle(testlist)
>>> timeit('t=list(testlist); t.sort()',
'from __main__ import
Terry J. Reedy added the comment:
I do not use threads so I cannot comment on the technical issue.
Since the current behavior is not clearly a bug, I do not think a change would
or know that it should be applied to 2.7/3.1. So I suggest that you both
1. Suggest a doc patch on this issue
Terry J. Reedy added the comment:
>IMHO pprint should be able to make a decent job of all the built in types
Agreed, already true as far as I know, and irrelevant. This issue is not about
built-in types in the builtins module, as documented Lib Ref chapter 5
*Built-in Types*. Collections
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue6466>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue5302>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
FWIW 3.1 gives same message as 2.6. I have not installed 3.2a yet to check that.
Reporting of argument count mismatch has always been problematical, especially
for methods. I almost think the message should be simplified to "Arguments
passed do not
Terry J. Reedy added the comment:
If I understand correctly, you are requesting that .assertItemsEqual only use
the 2nd (multiset comparison) method, so that if one want the first method, one
should directly call .assertSequenceEqual(sorted(a), sorted(b)).
This seems reasonable to me, but I
Terry J. Reedy added the comment:
Since 'we' can reopen any closed issue, I will try to answer what I think you
might be asking.
I closed this because of Daniel's suggestion coupled with the Richard
disclaiming further interest and neither Raghuram nor any new responder saying
Terry J. Reedy added the comment:
You initial link
I only see one entry, Thread (class in threading), which points to
http://docs.python.org/library/threading.html#threading.Thread
as it should. I do not see a duplicate link nearby.
I have no idea what ', [1]' is supposed to mean.
Terry J. Reedy added the comment:
Questions should be asked on python-list or other discussion forums, not nere.
If this were a feature-request, it would need a realistic use-case. If the
implied change were requested, I would think it should be rejected as
conflicting with the language
Terry J. Reedy added the comment:
This is a bug report in that there is a discrepancy between the grammar in the
doc and the behavior. Laxiness can lead to portability problems if CPython is
lax compared to a normal reading of the spec and another implementation takes
the spec seriously.
I
Terry J. Reedy added the comment:
3.1 has the same problem (and the same results as above)
Assuming behavior is not changed, please suggest a specific rewording that you
would be happy with and that is not too verbose.
--
components: +Documentation
nosy: +terry.reedy
stage: -> ne
Terry J. Reedy added the comment:
Please ask for help with installation and usage on the python-list mailing
list, which is also mirrored on the gmane.comp.python.general newsgroup at
news.gmane.org and the comp.lang.python usenet newsgroup. This issue tracker is
for python bugs (and feature
Terry J. Reedy added the comment:
The usual way to set a module variable by name, rather than
setattr(modules[__name__], 'name', 'value')
is
>>> globals()['name'] = 2
>>> name
2
Issues of working with external names, such as from database colu
Terry J. Reedy added the comment:
*Your initial post* only lists one index entry, and *does not* describe a
problem.
Thread
module
is in the file you have pointed to twice, in its alphabetical position.
I have no idea what you think is wrong with the z section
Terry J. Reedy added the comment:
If I understand, the issue you were concerned about has been fixed. If so,
please close this.
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
When I initially wrote "I have no idea what ', [1]' is supposed to mean.
", you should have believed that and explained ;-). I now understand that most
index entries have one link, which we might call the [0] link. When the entry
shoul
Terry J. Reedy added the comment:
Since that revision only touched py3k, I am guessing that it only broke 3.2.
--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6
___
Python tracker
<http://bugs.python.org/issue7
Terry J. Reedy added the comment:
I am not much familiar with the C api but I presume that all functions return
-1 on error and that this is documented somewhere in the beginning. I also
presume that functions that return values thru passed in pointers and that are
documented as returning an
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file19192/unnamed
___
Python tracker
<http://bugs.python.org/issue10060>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
The unnamed quasi-html file loaded with msg118397 was a unless, essentially
unreadable duplicate of that message, hence removed.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
To me, Alexander's example
>>> calendar.isleap("%d")
False
is a buggy result. So I would reclassify the issue.
The rationale for not checking input types is that bad types result in an
error, but that does not happen here due t
Terry J. Reedy added the comment:
The input to itertools.product must be a finite sequence of finite iterables.
itertools.count(startvalue) produces an infinite sequence of ints (which are
not iterable). Passing the latter to the former causes the latter to run until
memory is exhausted. You
Terry J. Reedy added the comment:
I think the title is slightly misleading. As I read the patch, the issue is
that PyArg_ParseTupleAndKeywords requires that string args to C functions be
valid Unicode strings (and that it does this by trying to encode to utf-8).
Your patch subverts this by
Terry J. Reedy added the comment:
Pardon my ignorance, but given that code.co_filename is a string attribute
given as a string, which is to say, unicode in 3.x, I do not see what
filesystem encodings, or any other encoding to bytes should really have to do
with the attribute. I actually
Terry J. Reedy added the comment:
Assuming it is true, the rewrite strikes me as an improvement.
--
___
Python tracker
<http://bugs.python.org/issue10
Terry J. Reedy added the comment:
Bruce, what Ned suggests is what I intended with my IDLE-list message, and in
accord with usual tracker practice. Issues often apply to multiple versions and
thereby require multiple patches and commits. I know you are relatively new at
this and very much
Changes by Terry J. Reedy :
--
resolution: -> duplicate
status: open -> closed
superseder: -> idlelib for Python 3 with Guilherme Polo GSoC enhancements
___
Python tracker
<http://bugs.python.or
Terry J. Reedy added the comment:
2.7 is in security-fix only mode. I am assuming that this is still a problem in
2.7 (and possibly 3.x). It would be good to confirm this.
--
nosy: +terry.reedy
versions: +Python 2.7 -Python 2.6
___
Python tracker
Terry J. Reedy added the comment:
>I am not sure whether I should attach a zip/tar file with both the attachments
>(the sample benchmark and the diff); so I'll attach the diff in a further
>comment.
Uploading separate files with .py, .diff extensions that can be viewed in
Terry J. Reedy added the comment:
2.7 only (verified); 3.1 and 3.2 are fine.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue10172>
___
___
Terry J. Reedy added the comment:
Various comments:
I usually expect things in stdlib to be usefully importable. Idlelib is clearly
an exception.
>> Also many people don't expect to find any code in a file named
>> __init__.py (and most of the time I agree with this).
Terry J. Reedy added the comment:
I think questions like this are better answered on python-list or even pydev.
In the absence of an observed problem, I would presume it is ok.
This question should be answered in the C-API doc. If it is not, you could
reopen this as a doc issue
Terry J. Reedy added the comment:
Shutdown has been a 'forever' problem ;-). It would seem sensible to me to have
a fixed end-of-shutdown sequence for essential modules.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
In the absence of doc references in this and #10211 that would *clearly* settle
the bug vs. feature issue, it strikes me as a bit murky. So I am inclined to
agree with MAL that failure to achieve the stated, documented purpose is a bug.
I strongly suspect
Terry J. Reedy added the comment:
I have not tried your testcase yet, but agree that issue 4 sounds pretty bad. I
guess what you are looking for is either a patch to tkinter that solves at
least one of the listed problems (even if only a workaround for a TK bug) or a
determination that
Terry J. Reedy added the comment:
I ran testcase.py with stock 3.1.2 on winxp (under IDLE).
Changes needed (one place each) were
Tkinter -> tkinter
print x -> print(x)
<> -> !=# <> is long since deprecated!
I get 3 line box windowing 10 lines. If I enlarge window,
Terry J. Reedy added the comment:
Éric, go ahead and consolidate to one issue if you can get to it.
Do the other issues shows problems with 3.1 or 3.2 also? I wonder because I
have never seen the box in the posted .png and wonder if that is a new
'feature' with 2.7 and possibly 3.
Terry J. Reedy added the comment:
On initialization: the json doc has 6 examples. Each starts with 'import json'
so each is independent. However, I agree that doing the same for turtle
examples would be a bit much. On the other hand, I think
24.5.3. *Methods of RawTurtle/
801 - 900 of 12740 matches
Mail list logo