Terry J. Reedy added the comment:
You are right, FF switched on me without notice. Bad FF.
Thank you! What I now see makes much more sense.
[ "๐ผ๐ฏ๐
๐จ๐๐ฏ๐ป", "๐ผ๐ฏ๐
๐จ๐๐ฏ๐ป", "๐๐ฏ๐
๐จ๐๐ฏ๐ป", "๐๐๐๐๐ก๐๐" ],
and I now know to check on other p
Terry J. Reedy added the comment:
Adding Symbola filled in the symbols and emoticons lines.
The gothic chars are still missing even with Alfios.
--
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
"the type object determines which (C) functions get called when, for instance,
an attribute gets looked up on an object or it is multiplied by another object.
These C functions are called โtype methodsโ
"These C functions" are any of the C fun
Terry J. Reedy added the comment:
You are right, I suggested deleting too much. The first half of the sentence is
needed to define 'type methods', which is used several more times and is the
title of the next section. We need to keep "These C functions are called โtype
me
Terry J. Reedy added the comment:
On my fresh install, double clicking *does* run the file as it should, but the
window disappears immediately, erasing output and error tracebacks, unless one
adds something like ``input("Hit Enter to quit") at the end of the script so
the user c
Terry J. Reedy added the comment:
Only if the issue is closed, so that it actually means 'fixed'.
Otherwise, just delete it.
The following data suggests to me that 'accepted' is a de facto synonym for
'fixed' and therefore useless and might as well be removed.
N
Terry J. Reedy added the comment:
I agree with your sentiments about Python 2 while being aware that not all
agree yet and that the current Wiki page was the result of some heated
discussion and compromise. I also agree that the page could use
tweaking/updating/rewriting. For one thing the
Terry J. Reedy added the comment:
I verified that the test file raises the quoted SyntaxError on 3.2 on Win7.
This:
>>> "\N{LATIN CAPITAL LETTER GHA}"
SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in
position 0-27: unknown Unicod
Terry J. Reedy added the comment:
2.6 is in security fix only mode and the OP agrees not applicable to current
--
nosy: +terry.reedy
resolution: -> out of date
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Terry J. Reedy added the comment:
This documents the current list, but ;-) I think the current list should be
modified.
1. Put behavior at the top of the list, as it is the most common (a 'human
factor' principle).
2. Combine performance and resource usage. Both are extremel
Terry J. Reedy added the comment:
'Behaviors' is quite legal. However,
"behavior
Wrong or unexpected behaviors/results/exceptions. ..."
could well be
"behavior
Wrong or unexpected behavior, result, or exception. ..."
--
Terry J. Reedy added the comment:
I improved UTF16.__getitem__ to handle negative indexes and slices. The later
uses the same adjustment as for indexes. An __iter__ method is not needed as
str.__iter__ used __getitem__. I will take further discussion of this prototype
to python-ideas list
Changes by Terry J. Reedy :
Removed file: http://bugs.python.org/file22900/utf16.py
___
Python tracker
<http://bugs.python.org/issue12729>
___
___
Python-bugs-list mailin
Changes by Terry J. Reedy :
Added file: http://bugs.python.org/file23025/utf16.py
___
Python tracker
<http://bugs.python.org/issue12729>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
My proposal is better than log(N) in 2 respects.
1) There need only be a time penalty when there are non-BMP chars and indexing
currently gives the 'wrong' answer and therefore when a time-penalty should be
acceptable. Lookup for normal all-BMP str
Terry J. Reedy added the comment:
PEP-393 will take care of iterating by code points.
Where would you have other iterators go? The string module?
Something else I have not thought of? Or something new?
--
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
Python makes it easy to transform a sequence with a generator as long as no
look-ahead is needed. utf16.UTF16.__iter__ is a typical example. Whenever a
surrogate is found, grab the matching one.
However, grapheme clustering does require look-ahead, which is
Terry J. Reedy added the comment:
I prefer a new parameter either at the end of the arglist or possibly keyword
only. The idea for both variations is to let typical users ignore the option,
which would be hard to do if it is part of the prime parameter. The idea for
keyword only is that we
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12805>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Terry J. Reedy :
--
components: +Library (Lib), Tests
versions: +Python 3.3
___
Python tracker
<http://bugs.python.org/issue12815>
___
___
Python-bug
Terry J. Reedy added the comment:
Which Python version? 3.3?
--
components: +Library (Lib), Tests
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12
Changes by Terry J. Reedy :
--
components: +Library (Lib), Tests
versions: +Python 3.3 -Python 3.4
___
Python tracker
<http://bugs.python.org/issue12808>
___
___
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12816>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
A note for anyone else: David is actually using the xml.parsers.expat module,
which uses the now undocumented pyexpat module, whose direct use is deprecated.
David: Have you tested with 3.1 or 3.2? (I am about to try on Windows ;-).
--
nosy
Terry J. Reedy added the comment:
Running with IDLE on Windows, I get no crash or uncaught exception but got
these printed lines:
An error occurred during XML parsing. Error ID: 9. Error message: junk after
document element
Line number: 1
An error occurred during XML parsing. Error ID: 9
Terry J. Reedy added the comment:
What action are you suggesting? Change ctypes code or its doc or something
else. If the doc, please suggest a specific change.
Can you test on 3.x?
--
nosy: +terry.reedy
title: cast() creates circular reference in original object -> ctypes.c
Terry J. Reedy added the comment:
> I have confirmed that this only happens in windows.
This would literally mean that you tested on several other systems. Did you
actually mean 'I have only confirmed that this happens in Windows.", that you
only tested on Windows?
The 2.6
Terry J. Reedy added the comment:
You are doing two different things to the original string: normalizing and
encoding to ascii with errors ignored. Each should be tested separately.
On 3.2:
import unicodedata
s1 = "รผfรผrรผkรงรผ aฤaรง ve ฤฑslฤฑkรงฤฑ รงeลme"
s2 = unicodedata.normalize('N
Terry J. Reedy added the comment:
> But I think we may want to create a new module which
provides various APIs specifically for apps that need care when
dealing with Unicode.
I have started thinking that way too -- perhaps "unitools"?
It could contain the code point iterator for t
Terry J. Reedy added the comment:
My understanding is that what you did:
import xml.parsers.expat
is now the proper way to use expat. After some searching, it seems the sentence
about direct use of pyexpat being deprecated refers to
http://sourceforge.net/tracker/?func=detail&aid=274
Terry J. Reedy added the comment:
This seems to be a Mac-only issue.
Barry, does this seem to be a security issue to you, or should we delete 2.6
from the versions?
--
assignee: -> ronaldoussoren
components: +Macintosh
nosy: +barry, ned.deily, ronaldousso
Terry J. Reedy added the comment:
As a (Windows) user, I would like to be able to download any working
pre-compiled shared library (.dll) and access it via ctypes. The particular
compiler used to compile cpythonx.y.z should not determine whether a Pythonx.y
program works. The use of VSC2008
Terry J. Reedy added the comment:
Ezio, that is a lot of nice work to track down those pieces of the standard. I
think the operative phrase in many of those quotes is 'open interchange'.
Codecs are also used for private storage. If I use the unassigned or
private-use code points in
Terry J. Reedy added the comment:
Semi-seriously, _PyEval_ForArminRigoOnly_
/* This function does whatever Armin Rigo wants it to do.
He may change it at any time. Do not use it. */
This would let you experiment with the boundary as you will (with review, of
course) and relieve us of any
New submission from Terry J. Reedy :
First, there is a minor documentation issue.
15.2.3.1. I/O Base Classes
class io.IOBase
seek(offset, whence=SEEK_SET)
Change the stream position to the given byte offset
Since StringIO seeks by code units that should perhaps say 'byte or code unit
o
Terry J. Reedy added the comment:
On 9/8/2011 4:32 AM, Ezio Melotti wrote:
> So to summarize a bit, there are different possible level of strictness:
>1) all the possible encodable values, including the ones>10;
>2) values in range 0..10;
>3) values in range 0
Terry J. Reedy added the comment:
The immediate issue is improvement of the entries for help and help():
In builtin functions section:
Expand "Invoke the built-in help system." to
"Invoke the built-in help system, which uses *pydoc*."
where *pydoc* is linked to the pydoc
Terry J. Reedy added the comment:
If you write 'How to debug Python code' rather than just "How to use pdb", I
would start with the use of print statements and binary search. Have short
sections on using trace and profile. Very useful would be a list of error
messages and
Terry J. Reedy added the comment:
Can we close this as out-of-date, since 2/3rds of what you asked seems to be
done already, and the last 1/3 should (in my opinion) absolutely not be?
--
___
Python tracker
<http://bugs.python.org/issue12
Terry J. Reedy added the comment:
It is already available:
>>> import pydoc
>>> pydoc.cram('This sentence is too long to fit the space I have made
>>> available', 28)
'This sentenc...ade available'
def cram(text, maxlen):
""&qu
Terry J. Reedy added the comment:
To be a little clearer, this is about dotted import names, not regular dotted
names.
pydoc.locate(path, forceload=0):
"""Locate an object by name or dotted path, importing as necessary"""
pydoc.resolve(thing, forceload=0):
&
Terry J. Reedy added the comment:
3.2. Any patch should trivially port to 3.3 and 2.7
--
nosy: +terry.reedy
versions: +Python 2.7, Python 3.2
___
Python tracker
<http://bugs.python.org/issue12
Changes by Terry J. Reedy :
--
resolution: -> rejected
stage: patch review -> committed/rejected
status: open -> closed
___
Python tracker
<http://bugs.python.or
Changes by Terry J. Reedy :
--
stage: -> test needed
___
Python tracker
<http://bugs.python.org/issue12942>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
This pretty well summarizes my vague feelings. I originally used a size 30 in
my example, getting 'This sentence...made available' and then realized that it
was a complete accident that I got complete words. If anything were made
publicly availabl
Terry J. Reedy added the comment:
I understand now that new methods, as opposed to changed methods, are allowed.
I agree with Eric that this seems more like a convinience rather than absolute
necessity, and that the doc should be augmented.
The doc for vformat (which I admit I had not
Terry J. Reedy added the comment:
PATCH add 'are' after 'expressions'.
--
keywords: +patch
nosy: +terry.reedy
stage: -> needs patch
type: -> behavior
___
Python tracker
<htt
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>
___
__
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.
701 - 800 of 12707 matches
Mail list logo