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
Change by Stephen Ash :
--
nosy: -Stephen Ash
___
Python tracker
<https://bugs.python.org/issue19500>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from stephen Andel :
I recently changed one of the keybindings in python to just control. Python did
not like this and, when I tried to fix this by swapping back to the default
settings it closed itself and now will not open. Th program will attempt to
open then stop, and the
New submission from Stephen Day :
The current behavior of the urlencode function (2.7: urllib, 3.x: urllib.parse)
encodes spaces as pluses:
>>> from urllib import urlencode
>>> urlencode({'a': 'some param'})
'a=some+param'
However, in most i
Stephen Kelly added the comment:
There are actually other bugs in the same code example:
... def __init__(self): # DST starts last Sunday in March
... d = datetime(dt.year, 4, 1) # ends last Sunday in October
... self.dston = d - timedelta(days=d.weekday() + 1
Changes by Stephen White :
--
nosy: +Stephen.White
___
Python tracker
<http://bugs.python.org/issue13817>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Thorne added the comment:
Yep - 2.7.2 was released 11th June 2011, the fix was committed Aug 1st 2011. So
it won't be in the current 2.7 release.
--
___
Python tracker
<http://bugs.python.org/is
Stephen Day added the comment:
I apologize for reopening this bug, but I find your interpretation to be
inaccurate. While technically valid, the combination of the documentation, the
function name and the main use cases yields pathological invocations of
urlencode. My bug report is to help
Stephen Day added the comment:
While it's likely that adding a `quote`/`quote_plus` function paramater to
urlencode is the right solution, I want to ensure that the key point is
communicated clearly: encoding a space as a '+' is pathological, in that in the
common case, an un
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
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:
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 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 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
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 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
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
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
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:
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
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 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 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.
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
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",
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
New submission from Stephen Tonkin:
After a clean check out and a successful build of Python 3.4, doctests were
failing when running test_pdb. Specifically, doctests were failing because they
were getting a "*** NameError: name 'execfile' is not defined" when running.
Stephen Tonkin added the comment:
Likewise, move_test_support.patch did not break things under OS X 10.8.
--
nosy: +sptonkin
___
Python tracker
<http://bugs.python.org/issue15
Stephen White added the comment:
Glad this is fixed. Attached is a Python 2.7 file that demonstrates the
problem in a pretty minimal way in case it is of any use to anyone.
--
nosy: +Stephen.White
Added file: http://bugs.python.org/file25511/bad-thread.py
New submission from Stephen Lacy :
There's reasonable documentation of the yield statement for most python
versions under Section 6: Simple Statements, particularly 6.8 "The Yield
Statement"
(http://docs.python.org/release/2.7/reference/simple_stmts.html#the-yield-statement)
Stephen Lacy added the comment:
okay, found the documentation I was looking for here:
http://docs.python.org/reference/expressions.html#yield-expressions
which appears to be copied and pasted and modified version of the docs here:
http://docs.python.org/reference/simple_stmts.html#grammar
Stephen Thorne added the comment:
Here is a patch that synthesises the directory names at the point where file
names are read in. The unit test now passes, and has had the expected failure
removed.
Patch collaboration with Diarmuid Bourke at the
europython sprint.
--
keywords
Stephen Thorne added the comment:
In discussion with GvR, we've decided we're not interested in intentionally
rejecting code that is valid for tab width values between 1 and 8 inclusive.
Thanks for the bug report!
--
nosy: +jerub
Changes by Stephen Thorne :
--
nosy: +jerub
___
Python tracker
<http://bugs.python.org/issue1508475>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen Thorne added the comment:
With the attached patch, with python3.3(trunk) I instead get:
./python.exe -c 'import _elementtree'
Traceback (most recent call last):
File "", line 1, in
File "", line 1294, in _find_and_load
File "", line
Stephen Thorne added the comment:
Here is a patch that uses the same quoting logic in
urllib.request.Request.__init__ as is used by urllib.request.URLopener.open()
--
keywords: +patch
nosy: +jerub
versions: +Python 3.3 -Python 2.7
Added file: http://bugs.python.org/file26311/urllib
Stephen Thorne added the comment:
Here's a followup patch that fixes the trunk build for me.
This will unbreak the builds as well as fixing this bug, but it should be
investigated why URLopener calls to_bytes() and Request does not. Ideally this
interface should be consi
Stephen Webber added the comment:
This is intentional handling of non-existant variables, and is not resticted to
'==' operations. Returning the value of a Counter parameter that has not yet
been set returns 0 by default.
See the documentation here:
http://docs.python.o
Stephen Webber added the comment:
Hmm, that is odd behavior indeed.
I think having keys that point to zero values is important for iterating over a
set. For example:
>>> x = Counter(a=10, b=0)
>>> for k in set(x):
... x[k] += 1
...
>>> x
Counter({'a':
Stephen Thorne added the comment:
Please see attached new patch, based on review comments.
--
Added file: http://bugs.python.org/file26894/zipimport-issue14905-2.patch
___
Python tracker
<http://bugs.python.org/issue14
Stephen McInerney added the comment:
The patch is great, can you approve it urgently please?
It is seriously buggy to silently return a bad filestream, and not just throw
the exception. I just wasted over a day's productivity due to this. I'm not
alone.
I would argue for raising p
Stephen McInerney added the comment:
I visually reviewed the patch, it's fine by me. (Am not set up to compile it.)
When is 2.7.3.x release planned?
--
___
Python tracker
<http://bugs.python.org/is
Stephen Tonkin added the comment:
Uploaded a patch which fixes the failing on Windows 7.
It was essentially an issue with the Windows path returned by temp_dir()
containing unescaped backslashes. A repr() fixed this.
--
nosy: +sptonkin
Added file: http://bugs.python.org/file27788
Changes by Stephen Tonkin :
--
nosy: +sptonkin
___
Python tracker
<http://bugs.python.org/issue15436>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stephen Tucker:
If a tuple consists of a single unicode object with non-ASCII characters in it,
the printing of the tuple causes the non-ASCII characters to appear correctly
as characters.
If the tuple contains such a unicode object and anything else (even if it
contains
Stephen Tucker added the comment:
Dear All (Eric Smith in particular),
I see the issue has been closed - I guess that I have to use e-mail to
continue this discussion.
I attach a source file that demonstrates the "feature", and the output from
IDLE that it generated.
Yours,
Step
Stephen Tucker added the comment:
Martin: Yes, I agree this does not demonstrate the issue I reported - so
far as print is concerned. The other issue in my original report was that
the same behaviour is exhibited when tuples are read from a utf-8 - encoded
file where a tuple which has a
Stephen Hansen added the comment:
FYI. Windows 8.1, Visual Studio 2010 SP1 Pro just installed, Python 3.3.3; a
random extension did this as a 'test' in its setup.py:
compiler = distutils.ccompiler.new_compiler()
if not compiler.has_function('rand', i
New submission from Stephen Fairchild :
From:
http://docs.python.org/reference/datamodel.html#the-standard-type-hierarchy
"Class instances
Class instances are described below. Class instances are callable
only when the class has a __call__() method; x(arguments) is a shorthand
Stephen Fairchild added the comment:
On further reading it seems my objections only apply to new style classes.
--
___
Python tracker
<http://bugs.python.org/issue6
New submission from Stephen George :
It seems that C:\Python26\Tools\i18n\msgfmt.py does not work with PO
files that use plural form. Get the following error.
ERRORTraceback (most recent call last):
File "C:\Python26\Tools\i18n\msgfmt.py", line 203, in
main()
File "C:
New submission from Stephen Gilbert :
I just ran into this using os.path.walk. I noticed it wouldn't find
files inside a particular directory. In debugging, I found that the
name of the directory was 'BBDO Atlanta ' os.path.walk would find the
directory, but wouldn't
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
New submission from Stephen Tu:
Here's a simple patch to optimize away constant boolean
conjunctions/disjunctions. for example:
def foo():
if 1 and 0:
print("hi")
now disassembles into:
7 0 LOAD_CONST 0 (None)
3 RETURN_
Stephen Tu added the comment:
Py_HashRandomizationFlag was not getting properly set anywhere. This patch
fixes this. Also a test case
Behavior is now:
$ cat ~/hr.py
import sys
print(sys.flags.hash_randomization)
$ PYTHONHASHSEED=random ./python.exe ~/hr.py
1
$ PYTHONHASHSEED=0 ./python.exe
Stephen Tu added the comment:
_forward_call() now checks if reader/write is NULL- if so, throws a runtime
exception
--
keywords: +patch
nosy: +Stephen.Tu
Added file: http://bugs.python.org/file29814/bufferedio.patch
___
Python tracker
<h
Stephen Tu added the comment:
I don't think this is a bug anymore in the codebase- looking at
Lib/http/client.py, if hasattr(data, "read") is true, then the branch will
return unconditionally.
if hasattr(data, "read") :
if self.debuglevel &g
Stephen Tu added the comment:
patch with test in test_io
--
Added file: http://bugs.python.org/file29835/bufferedio.withtest.patch
___
Python tracker
<http://bugs.python.org/issue17
Stephen Tu added the comment:
But it would seem that setting PYTHONHASHSEED != "random" does disable hash
randomization. also, not sure what the semantics of the following is:
$ PYTHONHASHSEED=1 python -R ...
right now, python3 basically
New submission from Stephen Farris:
The dumbdbm module uses an unchecked call to eval() in the _update method,
which is called in response to a call to dumbdbm.open(), and is used to load
the index from the directory file. This poses a security vulnerability because
it allows an attacker to
Stephen Hansen added the comment:
Just to be clear, I ran into this exact issue recently in VS2010 professional
as I indicated earlier. I don't know about what should or should not be needed,
but the solution in the original comment fixed it exactly f
New submission from Stephen Drake:
If a generator has its close() method called before any items are requested
from it, a finally block in the generator function will not be executed.
I encountered this when wrapping an open file to alter the result of iterating
over it. Using a generator
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
Changes by Stephen Shirley :
--
nosy: +kormat
___
Python tracker
<http://bugs.python.org/issue23078>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by Stephen Ash :
--
nosy: +Stephen Ash
___
Python tracker
<http://bugs.python.org/issue25437>
___
___
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
New submission from Stephen Gallagher:
Currently, NamedTemporaryFile takes an attribute at initialization that allows
it to remove the temporary file on going out of scope or else leave it around.
However, it's not possible to change this after the fact.
It would be a much more sen
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
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
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
Changes by Stephen Ash :
--
nosy: +Stephen Ash
___
Python tracker
<http://bugs.python.org/issue19500>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from Stephen P. Schaefer:
The following fails with python 2.5 as built by Fedora 7:
t2.py:
import sys, Tkinter
Tkinter.Button(text=u"").pack( )
Tkinter.mainloop( )
$ python t2.py
python: ./Modules/_tkinter.c:941: AsObj: Assertion `size < size *
sizeof(Tcl_Uni
Changes by Stephen J. Turnbull :
--
nosy: +sjt
___
Python tracker
<http://bugs.python.org/issue9873>
___
___
Python-bugs-list mailing list
Unsubscribe:
Stephen J. Turnbull added the comment:
Re: msg124528
Yes, XEmacs installs a signal handler on what are normally fatal errors. (I
don't know about GNU Emacs but they probably do too.)
The handler has two functions: to display a Lisp backtrace and to output a
message explaining how to r
Stephen J. Turnbull added the comment:
I agree with you that according to RFC1428, use of unknown-8bit is implicitly
recommended. However, note that the RFC itself is not standards-track. I
agree with your interpretation that in this context the email module should be
considered a gateway
Stephen P. Schaefer added the comment:
I'm not sure of the scope of the "block" to which you're referring. As
patched, the code returns a Tcl_Obj representing 0 length unicode
string, which appears to me to be the correct behavior, and works for
the applications I use (ori
Stephen P. Schaefer added the comment:
It looks good to me (to the extent that means anything). I'm doing an
rpmbuild now with your patch applied to the Fedora 7 .src.rpm, and I'll
start using the result on my workstation ASAP.
__
Tracker <[EM
Stephen P. Schaefer added the comment:
Mr. van Rossum's patch, applied to the Fedora 7 .src.rpm, is working for me.
__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python
New submission from Stephen J. Turnbull :
It should also try to convert stuff like
from statvfs import F_BAVAIL, F_FRSIZE
status = os.statvfs(directory)
available = status[F_BAVAIL]/((1024*1024)/status[F_FRSIZE]
--
components: 2to3 (2.x to 3.0 conversion tool)
messages: 81959
nosy: sjt
Stephen J. Turnbull added the comment:
Maybe 2to3 could get a --pedantic or even an --annoying option? I agree
that it should be noisy about removed features even if actually fixing
this kind of thing would be hard to do reliably.
--
nosy: +sjt
Stephen J. Turnbull added the comment:
Benjamin Peterson writes:
> Hmm. 2to3 doesn't currently mess with the stat module and os.stat the
> more common function. Also the new interface (attributes on the objects
> returned) has been around since 2.2.
So what? You *c
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
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
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
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
Change by Stephen Paul Chappell :
--
nosy: -Zero
___
Python tracker
<https://bugs.python.org/issue7676>
___
___
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/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/issue21537>
___
___
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/issue24185>
___
___
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/issue6188>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
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:
@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
Change by Stephen Paul Chappell :
--
nosy: +Zero
___
Python tracker
<https://bugs.python.org/issue35228>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
101 - 200 of 255 matches
Mail list logo