Changes by Terry J. Reedy :
--
keywords: +easy
___
Python tracker
<http://bugs.python.org/issue9582>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
How did you conclude that PYTHONOPTIMIZE = 0 is not honored? Can you provide a
minimal example or demonstration.
In any case, 2.6.6 is nearly out so bad behavior needs to be demonstrated with
2.7/3.x.
--
nosy: +terry.reedy
versions: +Python 2.7
Terry J. Reedy added the comment:
I agree with the replacement: 'tuples' and 'interables' modify and must agree
with 'pairs', not the initial 'iterable'.
--
keywords: +easy, patch
nosy: +terry.reedy
stage: -> ne
Terry J. Reedy added the comment:
+- same traceback in 3.1
Since ABCmeta is not used (by name) its import is not needed.
I have no opinion on whether this should work.
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.1, Python 3.2 -Python 2.6
Terry J. Reedy added the comment:
Upgrading to match the MutableMapping interface seems reasonable.
--
nosy: +terry.reedy
stage: -> patch review
___
Python tracker
<http://bugs.python.org/iss
Changes by Terry J. Reedy :
--
title: python2.6-config --ldflags out of /usr and missing -L
-> pythonx.y-config --ldflags out of /usr and missing -L
versions: +Python 3.2 -Python 2.7
___
Python tracker
<http://bugs.python.org/iss
Changes by Terry J. Reedy :
--
resolution: rejected ->
stage: committed/rejected -> patch review
___
Python tracker
<http://bugs.python.org/issue9584>
___
__
Troy J. Farrell added the comment:
Hi guys.
I'd like to take a moment to remind everyone that this issue has a small patch
with two tests and comments. Please don't let it get lost. :)
Thanks,
Troy
--
___
Python tracker
<http://bu
Terry J. Reedy added the comment:
I presume the first example should have been
# cat file | ./test.py
or seceond should have been
# ./test.py < test.py
so that test.py gets same input on stdin in either case.
For other readers: kqueue and kevent are bsd-specific functions and classes in
Terry J. Reedy added the comment:
Doc/howto/doanddont.rst is the source for
Python HOWTOs: Idioms and Anti-Idioms in Python
Moshe Zadka original author (added as nosy)
The gist of the patch is to clarify that using 'with' is best, not the non-with
version that is currently called
Terry J. Reedy added the comment:
Ned, any reason not to close this as a duplicate, with #9227 as superseder?
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue9
Terry J. Reedy added the comment:
In interactive mode, multiline statements are terminated with a blank line.
Your examples lacks that, so the 3rd line is part of the def and lacking the
proper indent, is indeed a syntax error. You get the same with the standard
command-line interpreter
Changes by Terry J. Reedy :
--
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue9622>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
status: open -> pending
___
Python tracker
<http://bugs.python.org/issue9624>
___
___
Python-bugs-list mailing list
Unsubscri
Changes by Terry J. Reedy :
--
stage: -> patch review
type: -> feature request
___
Python tracker
<http://bugs.python.org/issue9632>
___
___
Python-bugs-
Terry J. Reedy added the comment:
Are you talking about top-level code within the urllib module or code within
defined functions. If the former, can you quote or point to the place in the
file? If the latter, which functions? Just urlopen or others? Does
urllib2.urlopen have the same issue
Changes by Terry J. Reedy :
--
versions: -Python 2.7
___
Python tracker
<http://bugs.python.org/issue9602>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
In 3.x, http_error_auth_reqed is a method of
urllib.request.AbstractBasicAuthHandler
(20.5.8. AbstractBasicAuthHandler Objects in 3.1 lib manual)
--
nosy: +terry.reedy
stage: -> unit test needed
___
Python trac
Terry J. Reedy added the comment:
In 3.1, and I presume (please check) 2.7, the signature is given as
class json.JSONEncoder(skipkeys=False, ensure_ascii=True, check_circular=True,
allow_nan=True, sort_keys=False, indent=None, separators=None, default=None)
I verified by simple experiment
Changes by Terry J. Reedy :
--
resolution: -> duplicate
status: open -> closed
superseder: -> can't import Tkinter / use IDLE after installing Python 2.7 on
Mac OS X
___
Python tracker
<http://bugs.pyt
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue103>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
nosy: -terry.reedy
___
Python tracker
<http://bugs.python.org/issue7694>
___
___
Python-bugs-list mailing list
Unsubscribe:
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:
John J Lee added the comment:
What I said in 2007 re commas could be well out of date (might well have been
so even then, in fact). Somebody should check what browsers do now...
--
___
Python tracker
<http://bugs.python.org/issue1660
John J Lee added the comment:
Looks like a bug. Here's the trac bug that this caused -- trac fixed their bug
by working around this bug in a really ugly way:
http://trac.edgewall.org/ticket/2256
It would be nice to notify the trac developers if/when this is fixed.
This bug is probabl
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
Changes by Stephen J. Turnbull :
--
nosy: +sjt
___
Python tracker
<http://bugs.python.org/issue9873>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
801 - 900 of 13130 matches
Mail list logo