New submission from Stephen Paul Chappell:
Ever since Python 3.6.1, trying to open a Python-source library module in IDLE
on Windows (10) has not worked properly since the installer has only been
providing *.pyc files. Learning how to use Python has always been easy since it
(1) has a great
Stephen Paul Chappell added the comment:
The URL for the installer that was used last is:
https://www.python.org/ftp/python/3.6.2/python-3.6.2-amd64-webinstall.exe
--
___
Python tracker
<https://bugs.python.org/issue31
New submission from Stephen J. Turnbull:
In section 4.6.3. "Mutable Sequence Types" of current documentation, Note 1 to
the table says "[iterable] t must have the same length as the slice it is
replacing." This is incorrect in the case of extension: s[len(s):] = t
accordin
Stephen J. Turnbull added the comment:
Sorry, I just realized this note only applies to slices with a stride (k in
i:j:k). Closing.
--
stage: -> resolved
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Stephen J. Turnbull added the comment:
I prefer Josh's wording. The important point to me is that
>>> [1, 2][2:0] = "AB"
[1, 2, "A", "B"]
not an error or ["B", "A"] == [1, 2][2:0:-1]. I think too much talk about the
endpoi
New submission from Stephen Wille Padnos :
Section 4.7.2 of the documentation, "Keyword Arguments", has several examples
of valid calls to the sample function parrot.
The function definition is:
def parrot(voltage, state='a stiff', action='voom', type='Norwe
New submission from Stephen Paul Chappell :
When Aifc_read runs initfp, it conditionally sets self._ssnd_chunk and is not
guaranteed to do so. At the bottom of the method, a check is made to see if the
attribute has a false value; and if so, an error is supposed to be raised. If a
SSND chunk
Stephen M. Gava added the comment:
Using a set of paths with special properties and formats in a project, thought
"the cleanest oop way to do this is try out python's oop paths in pathlib".
Subclassed Path to implement my extra (non platfor specific) properties and
fell at t
Stephen M. Gava added the comment:
@paul.moore is the original contributor mia? i seem to remember pathlib as once
being marked 'provisional', i think it should have stayed that way until this
problem was resolved. easy to say i know ;) when i don't have a patch.
@projet
New submission from Stephen Paul Chappell:
The following interactive session shows that iterables are not detected
properly by the `collections.abc.Iterable` class.
>>> class IsIterable:
def __init__(self, data):
self.data = data
def __getitem__(
New submission from Stephen Paul Chappell:
The example at the bottom is good but has a line with a bad variable it is
name. It says:
with open(fromlines) as fromf, open(tofile) as tof:
fromlines, tolines = list(fromf), list(tof)
In the first line, fromlines does no even exist yet
Stephen Paul Chappell added the comment:
If my program needed to know if an object is iterable, it would be tempting to
define and call the following function instead of using
collections.abc.Iterable:
def iterable(obj):
try:
iter(obj)
except TypeError
Stephen Paul Chappell added the comment:
Maybe this would have been more appropriate as a question on StackOverflow:
What is the proper way of asking if an object is iterable if it does not
support the iterator protocol but does support the old getitem protocol? One
might argue that it is
Stephen J. Turnbull added the comment:
A few small comments and nits.
1. I'm with the author on the question of a sum function in this module. The
arguments that builtin sum isn't accurate enough, and neither is math.fsum for
cases where all data is of infinite precision, are eno
Stephen J. Turnbull added the comment:
I have a gentoo host, but I'd like to know how did the OP get a debug Python in
the first place? The ebuild for python 2.7.5-r1 doesn't say anything about
debug options. "How" would preferably include information about the C comp
Stephen J. Turnbull added the comment:
I did "emerge =dev-lang/python-2.7.5-r1" *twice* with the environment
configuration described in msg196520, then *once* with it disabled because one
of the cases you described was when you tried to revert to a non-debug Python.
(Besides, I am
Stephen J. Turnbull added the comment:
OK, I backed off the aggressive CFLAGS/CXXFLAGS to " -ggdb -pipe", and ran
"emerge =dev-lang/python-2.7.5-r1" *once* each with and without the
'EXTRA_ECONF="--with-pydebug"' flag. Compiled with GCC 4.7.3.
Stephen J. Turnbull added the comment:
Yeah, hope is a good thing. But I've spent the last 20 years debugging an X11
application based on a Lisp interpreter, I save hope for fireflies, my dog, and
my daughter these days. :-)
To the OP:
I don't follow Gentoo closely, but I have acq
Stephen J. Turnbull added the comment:
I'm thinking this may be overengineering, but I may as well post it and find
out for sure. :-) Is it worth encapsulating MIME types? They're "really"
pairs as far as mail handling applications are concerned, but they have a
string
Stephen M McQuay added the comment:
I cobbled together a mix of what I found here:
http://ubuntuforums.org/showthread.php?t=1976837
http://blog.schmichael.com/2012/05/29/building-python-2-6-8-on-ubuntu-12-04/
and got python 2.6 to build fine on modern Ubuntu :
% python -mplatform
Linux-3.2.0
New submission from Stephen Paul Chappell:
If a call is made to tkinter.NoDefaultRoot, then calls to
tkinter.ttk._val_or_dict may fail. NoDefaultRoot ends with "del _default_root"
(line 174) and removes the variable from the module's namespace. _val_or_dict
can try to access th
Stephen Paul Chappell added the comment:
I discovered the problem when trying to run the program listed at
http://code.activestate.com/recipes/577633/ (Directory Pruner 2).
--
___
Python tracker
<http://bugs.python.org/issue21
Stephen Paul Chappell added the comment:
It seems that most functions and methods do not bother checking if
_default_root exists before trying to access it. However, upon seeing line 366
in ttk (if tkinter._support_default_root:), my recommendation would be to
change line 319 to "if tk
Stephen Paul Chappell added the comment:
There is discussion of removing wantobjects in issue3015. If it gets removed, a
better patch might be created for future versions of tkinter. However,
accessing self.tk would probably be a good replacement for anywhere
tkinter._default_root can be
Stephen Paul Chappell added the comment:
>Because there are explicit tests for these private functions.
Does that not mean that both the functions and their explicit tests should be
changed?
--
___
Python tracker
<http://bugs.python.org/issu
New submission from Stephen Paul Chappell:
While examining the implementation for lru_cache, it came to my attention that
the wrappers ignore the possibility of exceptions. Is this on purpose? If the
cache is designed to reduce the overhead of running certain functions, it seems
like
Changes by Stephen Paul Chappell :
--
nosy: +Zero
versions: +Python 3.4, Python 3.5
___
Python tracker
<http://bugs.python.org/issue7676>
___
___
Python-bug
Stephen J. Turnbull added the comment:
Seems this hasn't been resolved. I have to disagree with David's
interpretation of RFC 2046. The definition of a boundary says that it is
"terminated" with a CRLF. It also clarifies that the introducing CRLF is
"conceptua
Stephen J. Turnbull added the comment:
Following OpenPGP convention is clearly optional (or maybe a SHOULD, but the
word "elect" makes it a pretty weak SHOULD). RFC 2046 is a MUST, it's not a
matter of "convention".
The problem is that a parser that works forward in
New submission from Stephen Paul Chappell:
In the string module, the definition of whitespace is ' \t\n\r\v\f'. However,
the representation of string.whitespace is ' \t\n\r\x0b\x0c'. Would it be
terribly inconvenient to change the representation of '\x0b\x0c' to
Stephen Paul Chappell added the comment:
If you want the IDLE shell to be as consistent as possible with the editor
windows, changing the TAB binding to insert four spaces instead of a tab
(alternative 2) would be helpful.
--
___
Python tracker
Stephen Paul Chappell added the comment:
In Lib\idlelib\PyShell.py, there are usetabs and indentwidth attributes in the
PyShell class. Is there some reason that these settings cannot be reconfigured
in the Options > Configure IDLE... menu? I just edited these to False and 4
respectively
New submission from Stephen Paul Chappell :
This is what I get while the interactive interpreter (IDLE 3.0.1) on the
platform
Python 3.0.1 (r301:69561, Feb 13 2009, 20:04:18) [MSC v.1500 32 bit
(Intel)] on win32
>>> a = -6.276479035564047
>>> b = -5.797449749
New submission from Stephen J. Turnbull :
Which causes the locale machinery to spit exceptions, and the program to
die, usually (eg, hg).
This manifests naturally on an Intel Mac, Mac OS X 10.5.7, but the
problem behavior is in _build_localename. When called as
_build_localename((None
Stephen J. Turnbull added the comment:
Thanks for followup! I was just about to write you, now that 3.6 is out.
Season's Greetings!
First, how do you propose to proceed with issue28115 ("use argparse for the
ZipFile module")? If you expect to commit that first (I'm
Stephen J. Turnbull added the comment:
In Python 3.5, both entering the problematic header by hand with a trivial body
and using email.message_from_string to parse it, and calling
email.message_from_file on lkml-exception.mail, produce an
email.message.Message with no defects and no traceback
Stephen J. Turnbull added the comment:
OK, I can reproduce now.
$ python3.5
Python 3.5.0 (v3.5.0:374f501f4567, Sep 17 2015, 17:04:56)
[GCC 4.2.1 Compatible Apple LLVM 6.1.0 (clang-602.0.53)] on darwin
Type "help", "copyright", "credits" or "license"
Stephen J. Turnbull added the comment:
I still think the easiest thing to do would be to make all non-ASCII characters
instances of "invalid_character_token", self-delimiting in the same way that
operators are. That would automatically point to exactly the right place in
the to
Stephen J. Turnbull added the comment:
If the mailing list code of conduct is to be fleshed out, Paul Moore's post is
a good place to start IMO:
https://mail.python.org/pipermail/python-dev/2015-July/140872.html.
--
nosy: +sjt
___
Python tr
Stephen J. Turnbull added the comment:
I tend to disagree with Ezio about a FAQ for general questions. A pointer to
appropriate alternatives for off-topic posts in the Mailman listinfo
descriptions of the various list (which can be copied into the devguide, or
linked from there) will be
Stephen J. Turnbull added the comment:
I just reviewed again, and I agree it's ready for merge. I don't see any
immediate need to add more.
Unfortunately, I'm not a committer.
--
___
Python tracker
<http://bugs.pyt
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue26158>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue24185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen J. Turnbull added the comment:
Please do not add the "rehandle" functions to codecs. They do not change the
(duck-typed) representation of data while maintaining the semantics, they
change the semantics of data while retaining the representation.
I suggest a "validatio
Changes by Stephen J. Turnbull :
--
components: Library (Lib)
keywords: patch
nosy: sjt
priority: normal
severity: normal
status: open
title: Allow reading member names with bogus encodings in zipfile
type: enhancement
versions: Python 3.6
___
Python
Stephen J. Turnbull added the comment:
Suggested NEWS/whatsnew entry:
Add a new *memberNameEncoding* argument to the ZipFile constructor, allowing
:mod:`zipfile` to read filenames in non-conforming encodings from the
zipfile as Unicode. This implementation assumes all member names have the
Stephen J. Turnbull added the comment:
I should have a contributor agreement form on file.
Ned Deily suggested that I try to get this patch in before the 12 noon deadline
Sept. 12, so here it is.
I believe the patch is "safe" in the sense that its functionality needs to be
explicit
Stephen J. Turnbull added the comment:
Re: wait for 3.7 if reviewers are busy, understood. N.B. Contributor agreement
is now on file (I received the PDF from python.org already).
Re: existing patches:
My patch is very similar in the basic approach to Sergey Dorofeev's patch in
issue
Stephen J. Turnbull added the comment:
Can't reply on Rietveld? Lost 2 hours work!
Patch updated (encoded-member-names-v2), most changes accepted. Not happy
about name change or default to cp437, I want this API to be hard to use and
not be part of the normal process (utf-8 or
Stephen J. Turnbull added the comment:
If you have a workaround that's available to nonprogrammers, I'd like to hear
about it. I have found none, that's why I went to the trouble to put together
a patch even though I knew that the odds of actually getting it in to Python
3
Stephen J. Turnbull added the comment:
Cleaned up a few loose ends while it's all fresh in mind. Will ping python-dev
in 4-6 weeks for review for 3.7.
Thanks to Serhiy for review. The current version of the patch is much improved
over the initial submission due to his ef
New submission from Stephen J. Turnbull:
Pointed out by Serhiy Storchaka in a different context.
--
components: Library (Lib)
files: zipfile-errmsg
keywords: patch
messages: 276056
nosy: sjt
priority: normal
severity: normal
status: open
title: zipfile.py script should print usage to
New submission from Stephen J. Turnbull:
Makes style of references to open modes 'r', 'a', ... more consistent.
CA pending (I have received PDF, but no star in tracker yet).
--
assignee: docs@python
components: Documentation
files: zipfile-doc-style
messages: 2760
Stephen J. Turnbull added the comment:
CA pending (I have received PDF, but no star in tracker yet).
--
___
Python tracker
<http://bugs.python.org/issue28
Stephen J. Turnbull added the comment:
FWIW, XEmacs has used a bit of m4 magic to make --with-* and --enable-*
equivalent for 15 years, and nobody has ever complained. The autotools
convention is a distinction without a difference, and confuses users when a
program feature depends on an
201 - 255 of 255 matches
Mail list logo