New submission from David Becher:
Since Python 3 removed unbound methods, I found some references using the old
terminology in this HowTo about descriptors
(https://docs.python.org/3/howto/descriptor.html). Also, since unbound methods
have been removed, the function call types.MethodType now
David Beazley added the comment:
This bug is still present in Python 3.5, but it occurs if you attempt to do a
readline() on a socket that's in non-blocking mode. In that case, you probably
DO want to retry at a later time (unlike the timeout
New submission from David Beazley:
First comment: In the I/O library, there is documented behavior for how things
work in the presence of non-blocking I/O. For example, read/write methods
returning None on raw file objects. Methods on BufferedIO instances raise a
BlockingIOError for
David Beazley added the comment:
Please don't make flush() close the file on a BlockingIOError. That would be
an unfortunate mistake and make it impossible to implement non-blocking I/O
correctly with buffered I/O.
--
___
Python tracker
New submission from David Jones:
This is probably related to #21913, but more specifically concerns the
documentation. I have a sub process of a larger program that handles a SIGTERM
sent by the main process for a clean shutdown. However, if I launch a parallel
task in the sub process, via
David Jones added the comment:
The original bug report did not mention ls (note serhiy.storchaka). It is a red
herring.
I accept that the Python community doesn't care to have glob.glob sorted.
But then I think you should distance yourself from the shell in the
documentation.
It curr
New submission from David Bolen:
It appears that the test host (sha256.tbs-internet.com) used by test_algorithms
in test_ssl.py no longer exists.
It was showing up as a certificate failure in the test because it ended up
falling back to a resolv.conf search path which yielded a host that did
David Bolen added the comment:
Ah, it appears that the transient_internet context manager in the test causes
it to be skipped if the host is unknown. So mine was just "lucky" in that it
fell back to connecting somewhere else.
I've removed my resolver search path on bolen-ub
New submission from David Seddon:
The documentation for functools.total_ordering states that rich comparison can
be enabled on a class by specifying an __eq__ method, and one of __lt__(),
__le__(), __gt__(), or __ge__(). If these instructions are followed, this
results in an incorrect
New submission from David Edelsohn:
AIX requires helper scripts to build Python shared extension modules. The
definitions and Makefile installation rules have bitrotted.
Makefile.pre.in:
@if [ -s Programs/python.exp -a \
except python.exp is created in Modules/python.exp, not
Changes by David Edelsohn :
--
nosy: +pitrou
___
Python tracker
<http://bugs.python.org/issue25825>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Wahlund:
File "C:\Python34\lib\imaplib.py", line 536, in login
typ, dat = self._simple_command('LOGIN', user, self._quote(password))
File "C:\Python34\lib\imaplib.py", line 1141, in _simple_command
return self._command_complete(n
David Wahlund added the comment:
Sorry, my bad... Using ImapClient that changed the socket to str.
--
resolution: -> not a bug
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
David Edelsohn added the comment:
$(prefix) and $(exec_prefix) result in the same path on AIX, so it does not
matter in practice, although the semantics are different.
# Install prefix for architecture-dependent files
exec_prefix=${prefix}
python.exp is not architecture dependent
David MacIver added the comment:
Note that 3.x does not correctly handle -0.0, you just have to work a bit
harder:
>>> (lambda: (-0.0, 0.0), lambda: (0.0, -0.0))[1]()
(-0.0, 0.0)
--
nosy: +David MacIver
___
Python tracker
<http://bug
New submission from David Sterry:
In https://docs.python.org/2/library/unittest.html#basic-example the word
"details" should be "detail".
--
assignee: docs@python
components: Documentation
messages: 257731
nosy: David Sterry, docs@python
priority: normal
severity:
New submission from David Jackson:
[Raspberry Jessie] Idle3(4.2]
If I open a idle3 shell (from menu) and enter >>import pandas as pd it accepts
the command, but if I trying and run it from the shell>> idle3 -r script.py I
get the following errors:
Traceback (most recent call l
David Jackson added the comment:
The problem was I had a pandas.py and a pandas.pyc in my home directory. after
deleting them everything seems to be working.
--
resolution: -> not a bug
___
Python tracker
<http://bugs.python.org/issu
New submission from David Heffernan:
Environment:
- Python 2.7.11 from python.org, x64.
- Windows 10 or Windows 8.1
- MSVC 2015
I compiled the most basic embedding example, taken from the Python docs:
#include
int
main(int argc, char *argv[])
{
Py_SetProgramName(argv[0]); /* optional
David Heffernan added the comment:
Note that I've just listed the Windows versions on which I have tested this. I
have not tested on Windows 7 or Vista so do not know whether or not the issue
exists there.
--
___
Python tracker
David Heffernan added the comment:
Thanks Eryk, everything you described happens exactly as you describe it. Much
appreciated.
As it happens, I'm not distributing Python because I want to give my users the
flexibility to use whatever version they please, and with whatever third party
mo
New submission from David Rader:
Problem 1:
The .manifest information for the VC runtime dll's has been changed in the
recent versions of the 2.7.x 64-bit installers for Windows. Python fails to run
on a clean Win2008R2 install after running the Python installer to install
"Just fo
David Rader added the comment:
FYI - as a work around problem 1, after the install I replaced the .manifest
file and the VCRT.dll with the older non-SP1 versions and python ran.
Then, to work around problem 2, I used resource hacker to manually delete the
manifest from each file in the DLLs
David Heffernan added the comment:
Why was this closed as "not a bug"? Shouldn't it have been closed as a
duplicate?
--
___
Python tracker
<http://bugs.pyt
David Heffernan added the comment:
Thanks for following up Steve, and thanks for changing resolution to dupe.
As for 3.5 and embedding the docs are much the same as 2.7 in that the example
code at https://docs.python.org/3/extending/embedding.html doesn't explicitly
set Python home.
A
New submission from David Szotten:
Unless i misunderstand the docs, i would expect `Mock(foo)` to have the same
effect as `create_autospec(foo)`, but that doesn't appear to be the case:
>>> m1 = mock.Mock(spec=lambda: None)
>>> m2 = mock.create_autospec(spec=lambda: No
David Szotten added the comment:
thanks, and apologies for the noise
--
___
Python tracker
<http://bugs.python.org/issue26232>
___
___
Python-bugs-list mailin
New submission from David Beck:
I'm working on an iMac (27" mid 2010) running OSX 10.11.3.
I'm trying to build Python3.5.0 for use with pyqtdeploy.
If I build python without specifying "--enable-universalsdk", I get multiple
warnings "clang: warn
David Beck added the comment:
Thanks, I’ve done that (a couple of times). I posted this not so much because
of my problems with PyQt, but because the output of the Python build when I
used those two options asked me to report this as a bug.
cheers,
David
> On Feb 2, 2016, at 9:27 AM,
New submission from David Rager:
In the following sentence, "few" should probably be "fewer."
"Repetitions such as * are greedy; when repeating a RE, the matching engine
will try to repeat it as many times as possible. If later portions of the
pattern don’t match,
David Edelsohn added the comment:
ctypes util.py "simply" needs support for AIX. There already is special
support for Windows, Darwin, BSDs, Solaris. Is the question about the
technical details for equivalent functionality on AIX or about adding a stanza
to Lib/ctpy
David Edelsohn added the comment:
AIX traditionally used member names like shr.o or shr.o or
shr.o insider the archive, with _64 designating a 64 bit object
when there is a naming collision.
GNU libtool defaults to the SO name and version number insider the archive.
AIX objects (and shared
David Edelsohn added the comment:
Don't use XLC. It may relate to using -Wl option, which is a GCC option.
--
___
Python tracker
<http://bugs.python.org/is
David Edelsohn added the comment:
Something is building libpython2.7.a incorrectly or the python.exp script is
not functioning correctly.
ld: 0711-596 SEVERE ERROR: Object libpython2.7.a[ceval.o]
An RLD for section 2 (.data) refers to symbol 0,
but the storage class of the
David Edelsohn added the comment:
It's not symbol with value 0, it's symbol number 0. You can list the symbols
with the AIX "dump -t" command.
--
___
Python tracker
<http://bug
New submission from David Escott:
The documentation suggests using a MemoryHandler object to buffer log messages
and conditionally output them.
https://docs.python.org/3/howto/logging-cookbook.html#buffering-logging-messages-and-outputting-them-conditionally
However the documentation does not
New submission from David Goffredo:
A series of lambdas referring to a variable in a comprehension do not hold
distinct values, while conventional higher order function do.
PS C:\Users\David\Desktop> python
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit
(AM
David Bolen added the comment:
I'm including some comments here from an email thread I had with Victor about
this issue on the Win8 buildbot, which led to his recent changeset 2b25fa7e3b7a.
The Win8 3.x failure (the 5 != 4 length error) was due to the revision of
os._DummyDirEntry (intro
David Ward added the comment:
Ping to review patch please...
--
___
Python tracker
<http://bugs.python.org/issue25187>
___
___
Python-bugs-list mailing list
Unsub
David Ward added the comment:
Please review this revised patch. Thank you.
--
Added file:
http://bugs.python.org/file42432/python-bdist_rpm-evaluate-_rpmfilename.patch
___
Python tracker
<http://bugs.python.org/issue25
David Ward added the comment:
This revised patch has a small change so that the subprocess output is decoded
from a byte sequence to a string, which is necessary when running this under
Python 3.
With this change, this worked for me on Fedora 23 with Python 3.4.3.
It also worked on Fedora 23
David Ward added the comment:
Thanks again for your feedback. I revised this patch as requested to conform to
changes also being made in issue 25627. Please review this new patch.
I tested this successfully under both Python 3.4.3 and Python 2.7.11 on Fedora
23. Note that "import subpr
New submission from David Manowitz:
I'm trying to sort a list of tuples. Most of the tuples are pairs of US state
names. However, some of the tuples have None instead of the 2nd name. I want
the items sorted first by the 1st element, and then by the 2nd element, BUT I
want the No
David Wilson added the comment:
@Julian note that ARENA_SIZE is double the threshold after which at least glibc
resorts to calling mmap directly, so using malloc in place of mmap on at least
Linux would have zero effect
--
nosy: +dw
___
Python
David Wilson added the comment:
It defaults to 128kb, and messing with global state like the system allocator
is a fine way to tempt regressions in third party code
--
___
Python tracker
<http://bugs.python.org/issue26
David Edelsohn added the comment:
The most recent patch seems to follow AIX semantics correctly.
--
___
Python tracker
<http://bugs.python.org/issue26439>
___
___
David Coles added the comment:
Since I reported this, I haven't seen any proposed solutions other other than a
retry loop to ensure that the lock is guaranteed to be reacquired when the
sleeping coroutine is woken.
The four possibilities of cancelling the waiting coroutine are:
1. B
New submission from David Bolen:
I'd like to propose backporting the change in issue 22734 to the 2.7 branch.
The marshal recursion depth appears to be at the root of the failures of the
Windows 8 and 10 buildbots in test_marshal on that branch, which is still using
a depth of 2000.
Th
David Coles added the comment:
Hi Yury,
Sure - I'll create a PR along with a test that reproduces the issue. Should be
able to get that done this weekend.
--
___
Python tracker
<http://bugs.python.org/is
New submission from David Pitchford:
Universal newline support for the read method of ZipFileExt objects created by
calling the ZipFile.open method is not working. The attached archive contains a
test script for demonstrating the behavior; unzip the files into the same
directory and run the
David Coles added the comment:
Please find the PR including a test to reproduce the issue here:
https://github.com/python/asyncio/pull/346
--
___
Python tracker
<http://bugs.python.org/issue22
New submission from Valentin David:
The attached script hangs while using 100% on Python 3.5.1 but not on Python
3.4.3. Tested both on Gentoo Linux and Ubuntu Linux.
The loop seems to be in PyErr_SetObject in a loop that recursively go through
PyException_GetContext.
subprocess.Popen seems
Changes by David Bolen :
--
nosy: +db3l
___
Python tracker
<http://bugs.python.org/issue23314>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Wilson added the comment:
Hi Piotr,
There wasn't an obvious fix that didn't involve changing the buffer interface
itself. There is presently ambiguity in the interface regarding the difference
between a "read only" buffer and an "immutable" buffer, which i
Changes by David Linke :
--
nosy: +dalito
___
Python tracker
<http://bugs.python.org/issue23623>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Linke added the comment:
Besides clarifying documentation, it may be helpful to provide a script that
(temporarily) sets the path to pythonX and pythonX/scripts. A batch cmd script
that does that and also changes the default Python for the launcher is here:
https://gist.github.com
New submission from David Beazley:
I have been investigating some of the new importlib machinery and the addition
of ModuleSpec objects. I am a little curious about the intended handling of C
Extension modules going forward.
Backing up for a moment, consider a pure Python module. It seems
David Beazley added the comment:
inal comment. It seems that one can generally avoid a lot of nastiness if
importlib.reload() is used instead. For example:
>>> mod = sys.modules[spec.name] = module_from_spec(spec)
>>> importlib.reload(mod)
This works for both source and
David Beazley added the comment:
Sorry. I take back the previous message. It still doesn't quite do what I
want. Anyways, any insight or thoughts about this would be appreciated ;-).
--
___
Python tracker
<http://bugs.python.org/is
David Beazley added the comment:
Note: Might be related to Issue 19713.
--
___
Python tracker
<http://bugs.python.org/issue23642>
___
___
Python-bugs-list mailin
David Beazley added the comment:
This is great news. Read the PEP draft and think this is a very good thing to
be addressing. Thanks, Brett.
--
___
Python tracker
<http://bugs.python.org/issue23
New submission from David Macek:
Two Cygwin-specific sections in `Modules/_ctypes/_ctypes.c` cause a crash due
to bad call to `PyErr_Format`. I'm not sure if there's one extra format
specifier, or one argument is missing. Patches assuming the former case for
v2.7 and v3.3:
https://
New submission from David MacIver:
Converting a list to a tuple appears to have an optimisation that is wrong in
the presence of subclassing to override __iter__. It ignores the user defined
iter and uses the normal list one. I've attached a file with a test case to
demonstrate this.
David MacIver added the comment:
Ah, I hadn't seen that. Thanks for the link.
But... is it really? They have basically the same root cause, but the general
problem seems to be hard to fix, while the specific problem here seems to be
basically "don't use the concrete API here be
David MacIver added the comment:
So as a data point, this problem seems to be unique to tuple. set(x), list(x),
tuple(iter(x)) all seem to work as expected and respect the overridden __iter__
(set and list were both included in the test case I attached to demonstrated
this, iter I just
New submission from David Marks:
On 432 in tokenize.py there is an assignment
_builtin_open = open
Followed in 434 with a redefinition of open
def open(filename):
If the module is reloaded, _builtin_open gets reassigned to the new function
and subsequent calls to _builtin_open fail
David Macek added the comment:
Yeah, looks like exactly the same issue. Sorry for the duplicate.
--
___
Python tracker
<http://bugs.python.org/issue23663>
___
___
David Coles added the comment:
This issue can still be reproduced on Python 3.5.0a1.
(Triggers a "RuntimeError: Lock is not acquired" on cond.release())
Please let me know if there's any further steps you'd like me to take here.
--
v
New submission from David Roundy:
I have observed a performance regression in module importing. In python 3.4.2,
importing a module from the current directory (where the script is located)
causes the entire directory to be read. When there are many files in this
directory, this can cause
David Roundy added the comment:
I had suspected that might be the case. At this point mostly it's just a
test case where I generated a lot of files to demonstrate the issue. In my
test case hello world with one module import takes a minute and 40 seconds.
I could make it take longer, of c
David Roundy added the comment:
My tests involved 8 million files on an ext4 file system. I expect that
accounts for the difference. It's true that it's an excessive number of
files, and maybe the best option is to ignore the problem.
On Sat, Apr 11, 2015 at 2:52 PM Antoine Pit
David Watson added the comment:
Sending multiple control messages at once isn't Linux-specific - the tests in
question passed on FreeBSD.
--
___
Python tracker
<http://bugs.python.org/is
Changes by David Watson :
--
nosy: +baikie
___
Python tracker
<http://bugs.python.org/issue22397>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Watson added the comment:
In this test (and nearby ones), the receiver provides too little space to
receive the file descriptors that are sent, so that the control message has to
be truncated if it is to be received at all. The warning may indicate that the
cmsghdr struct received
David Watson added the comment:
I've rebased the patches onto all the currently released
branches, but since there are now so many variations required,
I've bundled the pass-unterminated and test patches into a single
set (enable-unterminated-*), and the return-unterminated a
David Watson added the comment:
Attaching patches for 3.5.
--
Added file:
http://bugs.python.org/file39309/enable-unterminated-3.5-2015-05-06.diff
Added file: http://bugs.python.org/file39310/fix-overrun-3.5-2015-05-06.diff
___
Python tracker
<h
New submission from David Steele:
When calling webbrowser.open*(), the module goes through a list of installed
browsers, and uses the first one that succeeds, to process the request.
The first 'browsers' in the 'X' list are 'xdg-open' and others of that ilk. The
David Steele added the comment:
On Tue, May 19, 2015 at 10:19 AM, R. David Murray
wrote:
...
> Would you like to propose a patch?
My preferred solution would be a bit intrusive - check for and use
xdg-settings or gi.repository.Gio to identify the default browser, and
match the result agai
New submission from David D:
https://hg.python.org/cpython/file/tip/Modules/makesetup#l202
If I try to create a built-in module with a source file named exactly as
another source file that already exists in a different module, the script
generates the same output path for the object files
David Edelsohn added the comment:
I believe that everything is functioning correctly.
--
___
Python tracker
<http://bugs.python.org/issue25825>
___
___
Python-bug
David Su added the comment:
ping
--
___
Python tracker
<http://bugs.python.org/issue27575>
___
___
Python-bugs-list mailing list
Unsubscribe:
https://mail.pyth
David Bolen added the comment:
It's been on the cusp of shutdown a few times now, but tweaks to maintain
compatibility for the occasional issue always seem to materialize (thanks to
Ned in many cases).
To Ned's question, the slave is currently operating under 2.5.1 which I must
h
David Bolen added the comment:
I've bumped the tiger default python to 2.7.12 and updated hg to use it
(bumping to 3.9.1 in the process). It appears to have fixed the current touch
and compile errors. I've restarted builds for the most recent commits.
The need for a tiger slave i
New submission from David Staab:
I'm using Python 3.5.2 on Windows 10 Pro to run the following code with the
attached file structure.
The test code is:
from os import DirEntry, scandir
def test_is_dir():
for item in os.scandir(TEST_DIR):
if item.is_dir:
print(item
David Edelsohn added the comment:
Michael,
Are you suggesting to move the code fragment *AND* revert or change the
reversal of LDSHARED? The Python code seems to be setting and reversing the
value in multiple places.
This also relates to Issue25825.
Repeatedly flipping this around is not
David Edelsohn added the comment:
Michael Felt,
The patch was from Michael Haubenwallner. I was addressing Michael
Haubenwallner.
--
___
Python tracker
<http://bugs.python.org/issue18
New submission from David Eyk:
I've discovered what appears to be a scoping bug in Python 3.5.1, where the
class scope is not available inside a list comprehension defined in the class
scope.
Attached is a simple example script, also available at the following gist:
https://gist.githu
David Eyk added the comment:
Thanks for the pointer. That seems weird and arbitrary when you think of it in
terms of scope, but what can you do?
All the same, thanks for the quick response. :)
--
___
Python tracker
<http://bugs.python.
David MacKenzie added the comment:
This issue seems to overlap with 14119.
--
___
Python tracker
<http://bugs.python.org/issue24882>
___
___
Python-bugs-list m
David MacKenzie added the comment:
If each worker thread ties up other resources in an application, such as
handles to server connections, conserving threads could have a significant
impact. That's the situation for an application I am involved with.
I've written and tested a pat
New submission from David Szotten:
Was just tracking down a bug in eventlet, which manifested as "OSError: raw
readinto() returned invalid length -1 (should have been between 0 and 8192)"
I was misled for a while by the fact that readinto was in fact returning b'',
not -
New submission from David Hirschfeld:
Back in 1999 the compile-time constant FD_SETSIZE was raised from (the default
on Windows) 64 to 512 open sockets to support *serious async servers*
http://bugs.python.org/issue210843
https://github.com/python/cpython/blame/master/Modules/selectmodule.c
New submission from David Mc Dougall :
The documentation for graphlib encourages users to represent their graphs in a
awkward format.
Graphs are currently represented using dictionaries of nodes, for example:
graph["end_node"] = ["start_node"]
And this is unintuitive b
Change by David Mc Dougall :
--
pull_requests: +28446
pull_request: https://github.com/python/cpython/pull/30223
___
Python tracker
<https://bugs.python.org/issue46
Change by David Mc Dougall :
--
title: Graphlib documentation -> Graphlib documentation (edge direction)
___
Python tracker
<https://bugs.python.org/issu
New submission from David Mc Dougall :
The graphlib documentation has some grammar & phrasing issues.
--
components: Library (Lib)
messages: 409370
nosy: dam1784
priority: normal
severity: normal
status: open
title: Graphlib documentation (general cleanup)
type: enhancement
vers
Change by David Mc Dougall :
--
keywords: +patch
pull_requests: +28515
stage: -> patch review
pull_request: https://github.com/python/cpython/pull/30269
___
Python tracker
<https://bugs.python.org/issu
R. David Murray added the comment:
Note also that datetime.now() gives you a naive datetime. From an API
consistency standpoint I think it makes sense that datetime.utcnow() gives a
naive datetime. It would actually be confusing (IMO) for it to return an aware
datetime. I can see why you
R. David Murray added the comment:
Note that the parser does attempt to accept obsolete syntax (registering
defects for it), so if there is a bug in the implementation of the obsolete
syntax handling it should be fixed. And yes, there have been other bugs with
whitespace handling in the
R. David Murray added the comment:
The general idea is that the string version of the header should contain all of
the original information, but the parsed elements (the things returned by
special header attributes) will contain the valid data, if any. So if the
string version of the
1901 - 2000 of 12936 matches
Mail list logo