Stephen J. Turnbull added the comment:
I'm not going to have time to look at the PR for a couple days.
I don't understand what the use case is for writing or appending with filenames
in a non-UTF-8 encoding. At least in my experience, reading such files is
rare, but I have never
Change by Stephen Gildea :
--
keywords: +patch
pull_requests: +29463
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/31302
___
Python tracker
<https://bugs.python.org/issu
New submission from Stephen Gildea :
A message's flags are stored in its filename by Maildir, so the flags
are available without reading the message file itself. The structured
message file name makes it efficient to scan a large mailbox to select
only messages that are, for example
Stephen Rosen added the comment:
Probably >90% of the use-cases for chaining classmethod are a read-only class
property.
It's important enough that some tools (e.g. sphinx) even have special-cased
support for classmethod(property(...)).
Perhaps the general case of classmethod(de
Change by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<https://bugs.python.org/issue35228>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Carboni added the comment:
Just chiming in to say that this is still broken for me on Python 3.9.6,
Win10/64: https://pastebin.com/64F2iKaj
But, works for 3.10.0b4.
--
nosy: +stephen.entropy
___
Python tracker
<https://bugs.python.
Stephen Rosen added the comment:
Thanks for working with me to reproduce and understand the issue. I'm a little
surprised that with the sample which sets the protocol version you're still not
seeing the issue.
If I create a directory tree, e.g.
repro
├── foo/
└── server.py
where
Stephen Rosen added the comment:
Ach! Sorry! I didn't even realize this but the issue only arises when you are
modifying the handler to set the protocol to HTTP/1.1 .
In HTTP/1.0 , there's no notion of persistent connections, so the issue does
not arise.
But when the protoc
Change by Stephen Rosen :
--
keywords: +patch
pull_requests: +24395
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/25705
___
Python tracker
<https://bugs.python.org/issu
New submission from Stephen Rosen :
If you use the `http.server` simple server and handler to serve a directory,
navigating to a directory name without a trailing slash will trigger a 301 to
add the trailing slash.
For example, if "foo/" is a directory under the file server, a GET
Stephen Thorne added the comment:
I have done some experimentation here and thought through this feature request.
The concept we are trying to deliver is: "I would like to share functionality
between test classes, by having an abstract parent, with concrete leaves"
The metaclass a
Change by Stephen :
--
keywords: +patch
pull_requests: +22972
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/24143
___
Python tracker
<https://bugs.python.org/issu
New submission from Stephen :
I have created an enhancement in the Turtle module. When a programmer wants to
have an action performed after clicking on a Turtle object, the programmer is
currently unable to supply any arguments into the method that is run when
"on_clicked" which is
Change by Stephen Ash :
--
nosy: -Stephen Ash
___
Python tracker
<https://bugs.python.org/issue19500>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Finucane :
--
keywords: +patch
pull_requests: +20254
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/21088
___
Python tracker
<https://bugs.python.org/issu
New submission from Stephen Finucane :
The 'os.path.getsize' API returns the apparent size of the file at *path*, that
is, the number of bytes the file reports itself as consuming. However, it's
often useful to get the actual size of the file, or the size of file on disk.
It w
New submission from Stephen Farris :
The subprocess docs state: "When using shell=True, the shlex.quote() function
can be used to properly escape whitespace and shell metacharacters in strings
that are going to be used to construct shell commands." While this is true on
Unix, it i
Change by Stephen Farris :
--
type: -> security
___
Python tracker
<https://bugs.python.org/issue40932>
___
___
Python-bugs-list mailing list
Unsubscrib
Stephen J. Turnbull added the comment:
First, let me say I like Giampaolo's TimeoutExpired *much* better as the name
for this kind of exception! But that ship has sailed.
I don't understand Giampaolo's comment. If I understand the claim correctly,
the problem is that peopl
Change by Stephen Bell :
--
type: -> behavior
___
Python tracker
<https://bugs.python.org/issue40219>
___
___
Python-bugs-list mailing list
Unsubscrib
New submission from Stephen Bell :
The LabeledScale in tkinter.ttk seems to have some kind of hidden element that
covers the LabeledScale's label when the value is set to mid-scale. Tested on
Windows 10, Python 3.6
See below code to reproduce:
import tkinter
from tkinter import ttk
m
Change by Stephen Balousek :
--
versions: +Python 3.7
___
Python tracker
<https://bugs.python.org/issue39548>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Balousek :
--
pull_requests: +17752
pull_request: https://github.com/python/cpython/pull/18338
___
Python tracker
<https://bugs.python.org/issue38
Change by Stephen Balousek :
--
keywords: +patch
pull_requests: +17711
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/18338
___
Python tracker
<https://bugs.python.org/issu
New submission from Stephen Balousek :
When making an HTTP request using an opener with an attached
HTTPDigestAuthHandler, the request causes a crash when the returned
'WWW-Authenticate' header for the 'Digest' domain does not return the optional
'qop&
Stephen Paul Chappell added the comment:
@rhettinger: The turtle demo is easily accessible through the menus via Help >
Turtle Demo.
It is nice to see there are others interested in IDLE's improvement. :-)
--
___
Python tracker
Stephen Paul Chappell added the comment:
Zero: "not to have them added as text as is usual in a terminal window"
taleinat: "removing prompts from the shell window's text widget"
Zero: "print the values of ps1 and ps2 in the proposed ShellIO subclas
Stephen Paul Chappell added the comment:
Maybe my impression has been false this whole time, but the Python interactive
interpreter seems to be very similar to the IDLE shell window. My question is,
"Why not make them even more so?" Having IDLE react to sys.ps1 and sys.ps2
op
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue6188>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21957>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue24185>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21402>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue18601>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue21537>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue18558>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue31848>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue31476>
___
___
Python-bugs-list mailing list
Unsubscribe:
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue7676>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Paul Chappell added the comment:
The documentation for sys.ps1 and sys.ps2 states that they "are only defined if
the interpreter is in interactive mode." Since the IDLE shell is meant to be
interactive (and to reduce the differences between the shell and running Python
Stephen Paul Chappell added the comment:
When I start IDLE and the shell window appears, my first task is to press "Alt
+ T" to change from using tabs to spaces and then "Alt + U" to change from
using 8 spaces to 4. This allows code pasted from the shell into an editor
New submission from Stephen Paul Chappell :
In the latest Python 3.8.0 installation when running IDLE on Windows, pressing
"Alt + T" generates the following error:
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\Program Files\Pytho
New submission from Stephen Tucker :
Hi,
Issue 38363 is a false alarm - I am sorry to have wasted your time.
My mistake was that the file that had the BOM in it also had a space at the
end of the filename. I removed the space and the module was found OK.
Sorry again.
Stephen Tucker
New submission from Stephen Tucker :
Hi,
I am running Python 2.7.10 on Windows 10.
I have discovered that if a .py source text file (that is, a Module text
file) starts with a UTF-8 Byte Order Mark, the module does not get "found"
by the import statement.
I have just spent an
Stephen McDowell added the comment:
> For optionals, `required` is set by the programmer. But for positionals it
> is set with: ...
> So for '?' argument, required is False. But for '*', it must also have a
> 'default' parameter (not just the
New submission from Stephen Kelly :
I tried to build python 3.7.0 from source.
I ran the PCBuild/build.bat script. That downloaded zlib to the external/
directory.
However, it does not seem to be built. When running I get:
python\3.7.0\lib\zipfile.py", line 646, in _check_compre
Stephen ONeal added the comment:
My project we're going into the underlying _work_queue and blocking adding more
elements based on unfinished_tasks to accomplish this, bubbling this up to the
API would be a welcome addition.
--
nosy: +stephen.oneal...@gmai
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 Kelly :
When using C++ to extend python, one may use PyGetSetDef for example:
static PyGetSetDef Noddy_getseters[] = {
{"first",
(getter)Noddy_getfirst, (setter)Noddy_setfirst,
"first name",
NULL},
{"last",
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
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
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 Moore added the comment:
I just realised python3 sets it's own __PYVENV_LAUNCHER__ and if you unset it
before calling to os.execv, then the virtualenv has the correct sys.executable.
--
___
Python tracker
<https://bugs.py
Stephen Moore added the comment:
It appears the problem doesn't appear when using python3 -m venv.
Also it seems __PYVENV_LAUNCHER__ is set to the virtualenv's python except when
it's a python3.6 virtualenv and we os.execv from python3.6, where it's set the
system python.
New submission from Stephen Moore :
Hi,
I've come across a problem whereby if you do an os.execv to a python3.6
virtualenv python inside python2.7 vs python3.6 then the resulting python
session has a different sys.executable.
Where if you os.execv from python2.7 the sys.executable is
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 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
New submission from Stephen Larroque:
This is a followup of issue 23174.
When using `shelve.open(tempfile.mkstemp()[1])`, the shelve (or anydbm or
dumbdbm) fail with "anydbm.error: db type could not be determined".
Instead, the module could detect the file is empty and use it as
Stephen Kelly added the comment:
This is resolved as not a bug.
Is there a way to convert it to a feature request?
--
___
Python tracker
<http://bugs.python.org/issue30
New submission from Stephen Kelly:
Consider the following three snippets:
1)
const char* sourceCode =
"a = 9\n"
"a";
// This is OK! Python runs both lines.
// BUT: The value of 'a' is not printed
PyRun_StringFlags(sourceCode, Py_file_input, localDiction
Stephen Rosen added the comment:
Can a note be added to the Queue.get() documentation?
This behavior has been known to be at least potentially confusing for a decade,
and there's no mention of it in the documentation.
--
nosy: +Stephen Rosen
versions: +Python 2.7 -Pytho
New submission from Stephen Kelly:
As there is no configuration system for python on Windows (issue30252) I tried
to change pyconfig.h to comment out some lines:
// #define NT_THREADS
// #define WITH_THREAD
After building, I had to additionally patch
* threadmodule.c and thread.c to
New submission from Stephen Kelly:
As far as I know, there is a configuration system for python based on the
configure script. Python can be configured with --without-threads to disable
threading support.
There is no equivalent system for Windows/Visual Studio. This makes it harder
to build
New submission from Stephen Kelly:
The Windows Visual Studio solution does not have an install target. As far as I
understand, the configure system used on Unix does have an install target.
That means that on Windows, binaries resulting from the build to not end up in
the same layout as
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
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
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 Kelly added the comment:
The issue
http://bugs.python.org/issue17978
has a quite similar backtrace and there is discussion in
http://bugs.python.org/issue17703#msg241412
about changing the TRASHCAN macro to access the _PyThreadState_Current directly
instead of calling
Stephen Kelly added the comment:
I found that if I build and run this code with Python 3, then I get a very
different backtrace.
KernelBase.dll!7ff963466142() Unknown
python36_d.dll!Py_FatalError(const char * msg) Line 1457C
python36_d.dll
New submission from Stephen Kelly:
When attempting to use PyImport_ImportModule("os") (or to import many other
libraries), there is a crash on Py_Finalize if Py_NoSiteFlag is set. The issue
appears to be the use of frozenset() as a result of importing the module.
I reproduced this
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:
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
New submission from stephen:
python3.4.3 on linux mint 17.3
interactive mode on terminal
>>> fred=[0,1,2,3,4]
>>> fred.insert(-1,9)
>>> fred
[0, 1, 2, 3, 9, 4]
We should get [0,1,2,3,4,9]. Embarrassing error!
--
messages: 278541
nosy: unklestephen
priori
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
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
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
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
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:
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:
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:
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:
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
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
Changes by Stephen Ash :
--
nosy: +Stephen Ash
___
Python tracker
<http://bugs.python.org/issue19500>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Shirley added the comment:
The bug appears to be in the new form of the constructor. Here's a more minimal
reproduction:
In python3.5:
>>> list(ipaddress.IPv4Network(("127.0.0.4", 31)).hosts())
[]
In python3.4
>>> list(ipaddress.IPv4Network(&quo
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:
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:
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
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue24185>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stephen Evans:
With the imaplib.Debug=3 (or greater) imaplib.noop() will crash if there are
any untagged responses present.
The _dump_ur() function has not been converted to expect bytes in the lambda
variable x[1]. An abbreviate example of the 'dict' paramete
Changes by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<http://bugs.python.org/issue26158>
___
___
Python-bugs-list mailing list
Unsubscribe:
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 Ash :
--
nosy: +Stephen Ash
___
Python tracker
<http://bugs.python.org/issue25437>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Stephen Shirley :
--
nosy: +kormat
___
Python tracker
<http://bugs.python.org/issue23078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Coulson added the comment:
Broke for me today. Hacked the _MAXLINE to get around it.
I don't see any size limit on multi-line in rfc. Only requirement is
dot-stuffing. I think this fix might need a rethink.
--
nosy: +scoulson
___
P
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:
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:
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
New submission from Stephen Evans:
A simple multiline regex fails when just the re.MULTILINE argument is used, but
works when equivalent alternative methods are used. This was tested on
Python2.7.8 on FreeBSD and Win32 Python2.7.9
data = re.sub(r'#.*', '', text, re.MULT
Stephen Drake added the comment:
Ok, I can accept that. I think my mistake was to assume that because a
generator has a close() method, I could treat it as a lightweight wrapper for
another closeable object.
But it's better to regard a generator function that wraps an iterable as
some
Stephen Gallagher added the comment:
Oops, the temporary code I sent indicated that I was overriding the unlink()
function (which I also tried, just in case __del__ was somehow protected).
Neither monkeypatching unlink nor __del__ actually worked
1 - 100 of 255 matches
Mail list logo