Terry J. Reedy added the comment:
I believe I meant that 'python setup' works when the script is named 'setup'.
Which is to say, python does not require scripts to have an extension, as
someone had thought in writing a patch.
--
__
Terry J. Reedy added the comment:
I do not know why the msi installer *silently* fails to properly register
extensions even when I leave that checked, or how common that it. I have never
looked into the issue more because for development, I prefer to run from an
IDLE window and be dumped
Terry J. Reedy added the comment:
I was working with the freshly reinstalled 3.2 which is not the same as a
pristine 3.2 install because it still had the problem that 3.2.1 has and the
3.2.1 sys.version. 3.2.1 uninstall in not complete (a different issue). So I
should reinstall 3.2.1 again
Terry J. Reedy added the comment:
The replacement file, for anyone without a dev setup, is
http://hg.python.org/cpython/file/cc86f4ca5020/Lib/idlelib/PyShell.py
After renaming PyShell to PyShellBak and replacing with the above,
IDLE seems to run better than ever. On my XP system, the several
Changes by Terry J. Reedy :
--
versions: -Python 3.1
___
Python tracker
<http://bugs.python.org/issue12666>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I have not used tokenize, but if it is *not* intended to exactly reproduce the
internal tokenizer behavior, the claim that it is should be amended.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.
Terry J. Reedy added the comment:
Adding a feature 'fixes' the deficiency of its absence. I personally have no
use for 'accepted' and find it ambiguous. My best understanding is what David
has seen (accepted in principle).
-
Terry J. Reedy added the comment:
Gary, did you mean that there is a fix in the Tix bug report?
(the addition of '-'?)
If so, what has it not been applied to the Tix repository?
Is it still active?
Once changed there, the change should be propagated to the Python distribution.
-
Terry J. Reedy added the comment:
Do any of you three have anything to do with pydoc?
Given that the manual simply says "pydoc -b will start the server and
additionally open a web browser to a module index page." without
qualifications, quitting when started from certain locations
Terry J. Reedy added the comment:
I presume so. I believe ``x`` is meant for general code like ``for thing in
group: print(thing)``. While รric specifically mentioned the :data: role, I
presume the same idea applies to :func: and possibly other link-generating
roles.
Is there a statement
Terry J. Reedy added the comment:
Changing the dev guide, which I think is definitely needed, is an issue for
this tracker. Changing the tracker is an issue for the meta-tracker. Discussing
a change might be an issue for python-dev.
I was under the impression once that the tracker fields
Terry J. Reedy added the comment:
Changing ``x`` to :data:`x` adds 4 chars.
Changing ``x()`` to :func:`x` justs adds 2.
If I were to review, I would prefer that the additions not trigger cascading
line rewraps.
--
___
Python tracker
<h
Terry J. Reedy added the comment:
Pending an argument against, I agree with the change.
I think SyntaxError would be best. ValueError (etc) is for runtime (though this
is compile during runtime).
What would you have for the error message? My first idea is
"Cannot compile multiple state
Changes by Terry J. Reedy :
--
components: +Documentation
___
Python tracker
<http://bugs.python.org/issue12706>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
While I could question the current list of components, documenting it as it is
is a good idea. Patch 2 looks pretty good to me with the following change.
Tests
The generic unittest and doctest frameworks in `Lib/unittest`_ and
`Lib/doctest.py
Changes by Terry J. Reedy :
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.org/issue12723>
___
___
Python-bugs-list mailing list
Unsubscribe:
Terry J. Reedy added the comment:
I agree 'floating seconds' is bad. I think I prefer your second alternative,
but settimeout() and setdefaulttimeout should be consistent.
--
nosy: +terry.reedy
___
Python tracker
<http://bugs.python.o
Terry J. Reedy added the comment:
Our docs explain behavior without, generally, explaining why. Hence the title
change.
'Returns the current setting for the given locale category' seems pretty clear
that it returns the current program setting rather than the default system
settin
Terry J. Reedy added the comment:
I am not sure that everyone will agree that this is a bug, rather than a
feature request, or that if a bug, that it should be changed in existing
releases and possibly break running code. The doc just says, somewhat vaguely,
that IGNORECASE "work
Terry J. Reedy added the comment:
I agree that better masking of narrow-wide build difference would be good as
long as it does not severely impact normal performance. Revision of the test
file (see below) shows that the 'bug' is that the .upper, .lower, and .title
methods leaves
Changes by Terry J. Reedy :
Added file: http://bugs.python.org/file22894/casemaps.py
___
Python tracker
<http://bugs.python.org/issue12730>
___
___
Python-bugs-list mailin
Terry J. Reedy added the comment:
Does the regex module handle these particular issues better?
--
nosy: +terry.reedy
type: behavior -> feature request
versions: +Python 3.3 -Python 2.7
___
Python tracker
<http://bugs.python.org/issu
Terry J. Reedy added the comment:
However desireable it would be, I do not believe there is any claim in the
manual that the re module follows the evolving Unicode consortium r.e.
standard. If I understand, you are saying that this statement in the doc,
"Matches Unicode word characters
Terry J. Reedy added the comment:
Ouch!
Do the rejected characters qualify as identifier characters as defined in
Reference 2.3 Identifiers and keywords?
http://docs.python.org/py3k/reference/lexical_analysis.html#identifiers
If some interpreter version accepts extra characters, beyond the
Terry J. Reedy added the comment:
I changed the title because 'string' is a module that once contained the
functions that are now attached to the str class as methods. So 'string.title'
is an obsolete attribute reference.
--
nosy: +terry.reedy
title: string.title(
Terry J. Reedy added the comment:
Tom, I appreciate your taking the time to help us improve our Unicode story. I
agree that the compromises made a decade ago need to be revisited and revised.
I think it will help if you better understand our development process. Our
current *intent* is that
Terry J. Reedy added the comment:
This is off-topic, but there was discussion on whether or not to have a 2.7.
The decision was to focus on back-porting things that would make the eventual
transition to 3.x easier.
--
___
Python tracker
<h
Terry J. Reedy added the comment:
I agree that the sentence is a bit confusing and the 'object method' ambiguous.
I suspect that the sentence was written years ago. In current Python, [].append
is a bound method of class 'builtin_function_or_method'. I *suspect* that th
Terry J. Reedy added the comment:
Python's narrow builds are, in a sense, 'between' UCS-2 and UTF-16. They
support non-BMP chars but only partially, because, BY DESIGN*, indexing and len
are by code units, not codepoints. They are documented as being UCS-2 because
that is w
Terry J. Reedy added the comment:
>It is always better to deliver more than you say than to deliver less.
Except when promising too little is a copout.
>Everyone always talks about important they're sure O(1) access must be,
I thought that too until your challenge. But now that you
Changes by Terry J. Reedy :
--
stage: -> patch review
___
Python tracker
<http://bugs.python.org/issue12672>
___
___
Python-bugs-list mailing list
Unsubscri
Terry J. Reedy added the comment:
My Firefox is already set at utf-8. More likely a font limitation. I will look
again after installing one of the fonts Tom suggested.
The pair of boxes on IDLE are for the surrogate pairs. Perhaps tk does not even
try to display a single char. I will
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:
701 - 800 of 12740 matches
Mail list logo