David Edelsohn added the comment:
The current arguments to checkRecvmsgAddress() are the sockaddrs, so it does
not know the protocol family. One potential patch to infer the family and apply
the correct test is:
diff -r 035d8fed07ad Lib/test/test_socket.py
--- a/Lib/test/test_socket.py Tue
David Edelsohn added the comment:
The patch in msg128727 is correct for AIX and should be applied.
--
___
Python tracker
<http://bugs.python.org/issue11
David Edelsohn added the comment:
The patch in msg192259 probably will work on the particular AIX system runnnig
the buildbot, but I do not believe that the patch is the correct solution for
the problem.
scope_id 1 is not necessarily the correct link for IPv6 address ::1. The
scope_id values
David Edelsohn added the comment:
The patch in msg192405 works and fixes that error on AIX. That is exactly what
I had in mind, but I incorrectly had been looking higher up the class hierarchy
to override the method. Thanks!
--
___
Python tracker
New submission from David Sackett:
Tests to provide unit test coverage of _Pickler.__init__ protocol version
checks.
--
components: Tests
files: mywork.patch
keywords: patch
messages: 192613
nosy: davidsackett
priority: normal
severity: normal
status: open
title: Minor increase to
Changes by David Edelsohn :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue18609>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Edelsohn:
test_ctypes now crashes on AIX after the ceval change to
PyEval_CallObjectWithKeywords to check PyErr_Occurred().
#5 0x100ff0c8 in PyEval_CallObjectWithKeywords (func=0x300a4c3c,
arg=0x3062bb24, kw=0x0) at Python/ceval.c:4066
#6 0x10166bfc in
David Edelsohn added the comment:
Thanks. The patch seems to return the tests to the expected failures and Python
does not crash.
--
___
Python tracker
<http://bugs.python.org/issue18
New submission from David Wolever:
The documentation for the `%S` formatter suggests that it supports leap
seconds, but the footnote contradicts that:
> The range really is 0 to 61; according to the Posix standard this
> accounts for leap seconds and the (very rare) double leap seconds.
David Wolever added the comment:
Here's the relevant diff. Will commit on a +1.
diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1664,7 +1664,7 @@
| ``%M``| Minute as a zero-padded| 00, 01, ..
David Wolever added the comment:
Done, pushed to 2.7, 3.3, default.
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
Changes by David Wolever :
--
resolution: -> fixed
status: open -> closed
___
Python tracker
<http://bugs.python.org/issue18680>
___
___
Python-bugs-list
David Wolever added the comment:
D'oh, yes, it can (and I've closed it now).
--
status: pending -> closed
___
Python tracker
<http://bugs.pytho
David Edelsohn added the comment:
I am not certain what is going on. Only 3.x appears to be affected, but the
problems seem somewhat intermittent. There were some strange processes of
another user running on the buildslave, which was driving the load up very
high. I have killed the processes
David Edelsohn added the comment:
The crash seems to have been due to another user abusing the buildslave system.
The remaining failure is a mis-match in the expected GDB output.
AssertionError: "{, 'b'}" != "{'b'}"
- {, 'b'}
+ {'b'}
New submission from David Benbennick:
Since Python 2.1 [1], when random.shuffle was added, the documentation has said:
"""Note that for even rather small len(x), the total number of permutations of
x is larger than the period of most random number generators; this imp
David Benbennick added the comment:
Okay, I see what the comment is saying now. I was mistaken.
It might make the statement clearer if it is made more precise. "rather small"
is vague. That vagueness is intentional, but it makes it more confusing.
--
status: open
New submission from David Halter:
I recently stumbled over the ``dir`` function not working correctly with
classes. This means that ``dir(object)`` won't list ``object.__bases__`` or
``object.__subclasses`` (and many other useful methods).
I think that we should change that. The C fun
David Ibarra added the comment:
I too cannot reproduce this, tarfile seems to recognizes that it isn't a valid
tar file (tested on OS X):
Davids-MacBook-Air:Workspace dibarra$ ls -l
total 8
-rw-r--r-- 1 dibarra staff 0 May 30 1956 testfile
Davids-MacBook-Air:Workspace dibarra$ tar
New submission from David Beck :
I am working on an iMac running OS 10.7, TK 8.5.11. I built a simple app
containing a Notebook widget, and with Listboxes and linked tkk.Scrollbars on
each of three tabs. All of the Scrollbars work the first time I manipulate
them, but once the Scrollbar on
David Beck added the comment:
After playing around with this a bit more, I've found that if the Scrollbars on
the different tabs are not aligned (that is, they don't occupy the same EW
position in the frame) the effect disappears. I thought that might mean that
the last Scrollbar
David Beck added the comment:
That's a shame, though I guess it means I can stop struggling with the
installation of Tix. Since that's another extension of Tk, the same issue will
probably be lurking in there as well. Maybe I'll give wxPyton or QT a shot.
Thank
David Barnett added the comment:
Is this ready and just waiting to be merged now?
--
nosy: +mu_mind
___
Python tracker
<http://bugs.python.org/issue11
David Lam added the comment:
haha wow, I was working on this bug too! maybe we can work on the final patch
together
I got through about 2/3's of the docs, so I thought it might help to upload
what I got so far. I basically just made stuff up so I'm totally winning to
change an
David Lam added the comment:
hi hi, found this bug after clicking the "Easy issues" link
i basically just took Ray's hint to look at the __reduce__ method, and applied
it to the __repr__ method in this patch
also updated is the test_repr() unittest
--
keywords: +pa
David Bolen added the comment:
It seems really unlikely to be related to this issue since I'm pretty sure
build-amd64 doesn't get used on XP-4.
>From the log it looks like it couldn't clean out and reuse the VS temporary
>build directory. Manually cleaning it out an
David Lam added the comment:
yup yup, go for it
--
___
Python tracker
<http://bugs.python.org/issue11176>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Bolen added the comment:
With a local build on my buildbot of the tip of the default branch,
pkgutil.get_importer('') returns FileFilter('.'). The tests also passed.
However, after checking here and realizing the offending code had been removed
from the test, I p
New submission from David Beazley:
The bz2 library in Python3.3b1 doesn't support iteration for text-mode
properly. Example:
>>> f = bz2.open('access-log-0108.bz2')
>>> next(f) # Works
b'140.180.132.213 - - [24/Feb/2008:00:08:59 -0600] "GET /
David Beazley added the comment:
File attached.The file can be read in its entirety in binary mode.
--
Added file: http://bugs.python.org/file26673/access-log-0108.bz2
___
Python tracker
<http://bugs.python.org/issue15
David Lam added the comment:
here's a patch that covers all but one of the foo/bar/baz examples
it also has fixes for the sample code near the beginning from the review Ezio
did
the one example I didn't do was the "Arguments containing -" part. I guess it
felt like c
New submission from David Buxton:
The problem is an inconsistency between the ElementTree.write() method on
Python 2 and 3 when xml_declaration is True. For Python 2.7 the encoding
argument MUST NOT be a unicode string. For Python 3.2 the encoding argument
MUST be a unicode string.
On Python
David Buxton added the comment:
A patch against the current default branch to add tests for the xml_declaration
keyword argument. This passes when applied to the 2.7 branch too.
This does NOT test whether one can use both bytes/unicode for the encoding
argument. It just uses the native string
David Buxton added the comment:
Only a problem because I am using unicode_literals and it didn't occur to me to
use `str('utf-8')` to get a native string on both 2+3. Much the best solution,
thank you.
But that is still a little smelly - I think what I want ideally is for
New submission from David Kreuter:
help("compile") # this works
import __builtin__
real_import = __import__
__builtin__.__import__ = lambda *a: real_import(*a)
help("compile") # this fails
The line responsible for this is in pydoc.py around line 300:
... elif exc is Import
New submission from David Halter:
Hi! I'm the developer of Jedi: https://github.com/davidhalter/jedi, which is an
auto-completion library. I try to support Python 2.5-3.2.
The bug just appears in Python 3.2.
Parsing string literals with literal_eval works normally without a problem, bu
New submission from David Pietz:
Currently I am trying to edit idle preferences so I can edit a script which
appends a log of Idle activity that I may review for study purposes.
I could not really interpret much of the crash logs in console but there seem
to be two types of memory errors. I
David Pietz added the comment:
r.david.murray- Thank You for your inquiry.
My recipe for this crash is (1) simply to start IDLE 3.2.3 in either Snow
Leopard or Mountain Lion (2) click on the Bold "IDLE" menu in the menu bar and
(3) click on menu item "preferences". At
David Pietz added the comment:
ned,
That is exactly the output I received when I reverted to the ActiveState
version, it failed and I ran your grep.
Thank You for your interest.
djp
--
___
Python tracker
<http://bugs.python.org/issue15
David Pietz added the comment:
I thank you, gentlemen, for your kind attention to my issue. I hope it helps
everyone in the long run.
I, myself, became underwhelmed with these results of successfully opening
preferences. I had been expecting to have a "|Startup|-|Shells open with
co
New submission from David Beazley:
I've been playing with the interaction of ctypes and memoryviews and am curious
about intended behavior. Consider the following:
>>> import ctypes
>>> d = ctypes.c_double()
>>> m = memoryview(d)
>>> m.ndim
0
>>&
David Beazley added the comment:
I don't want to read the representation by copying it into a bytes object. I
want direct access to the underlying memory--including the ability to modify
it. As it stands now, it's complete
David Beazley added the comment:
Even with the
<http://bugs.python.org/issue15944>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%
David Beazley added the comment:
I don't think memoryviews should be imposing any casting restrictions at all.
It's low level. Get out of the way.
--
___
Python tracker
<http://bugs.python.o
David Beazley added the comment:
No, I want to be able to access the raw bytes sitting behind a memoryview as
bytes without all of this casting and reinterpretation. Just show me the raw
bytes. Not doubles, not ints, not structure packing, not copying into byte
strings, or whatever. Is
David Beazley added the comment:
Just to be specific, why is something like this not possible?
>>> d = ctypes.c_double()
>>> m = memoryview(d)
>>> m[0:8] = b'abcdefgh'
>>> d.value
8.540883223036124e+194
>>>
(Doesn't have to be exac
David Beazley added the comment:
I should add that 0-dim indexing doesn't work as described either:
>>> import ctypes
>>> d = ctypes.c_double()
>>> m = memoryview(d)
>>> m[()]
Traceback (most recent call last):
File "", line 1, in
David Beazley added the comment:
There's probably a bigger discussion about memoryviews for a rainy day.
However, the number one thing that would save all of this in my book would be
to make sure cast('B') is universally supported regardless of format including
endianness--es
David Beazley added the comment:
One followup note---I think it's fine to punt on cast('B') if the memoryview is
non-contiguous. That's a rare case that's probably not as common.
--
___
Python tracker
<http:
New submission from David Benjamin:
The implementation of platform.architecture shells out to the file command. It
tries to escape quotes by replacing " with \", but that's not sufficient.
$ python3.2 -c 'import platform; platform.architecture("foo\\\";
New submission from David Beazley:
This is somewhat related to an earlier bug report concerning memory views, but
as far as I can tell, ctypes is not encoding the '.format' attribute correctly
in most cases. Consider this example:
First, create a ctypes array:
>>> a = (
David Benjamin added the comment:
Well, the theoretical deadlock's just if stdin is also a pipe, right? I think
there isn't be a difference between communicate and stdout.read if only stdout
is a pipe. Though it might be worth passing DEVNULL to stdin instead of
inheriting, just
David Benjamin added the comment:
Yes, communicate is needed if you have multiple pipes and need to be careful
about both ends doing a blocking reads/writes on different ones. There's only
one pipe here. Eh, whatever. If you guys really want to use communicate, I
don't r
David Pietz added the comment:
It wasn't right on that page anymore but I poked around and fount the 8.5.11.1
and IDLE is no longer crashing when I go to preferences or when I cut and paste
in the edit window (I didn't tell you about that did I ?- well it fixed that,
too)!!
thanks
New submission from David Beazley:
The PyUnicode_AsWideCharString() function is described as creating a new buffer
of type wchar_t allocated by PyMem_Alloc() (which must be freed by the user).
However, if you use this function, it causes the size of the original string
object to permanently
David Beazley added the comment:
I should quickly add, is there any way to simply have this function not keep
the wchar_t buffer around afterwards? That would be great.
--
___
Python tracker
<http://bugs.python.org/issue16
David Beazley added the comment:
Maybe it's not a bug, but I still think it's undesirable. Basically, you have
a function that allocates a buffer, fills it with data, and allows the buffer
to be destroyed. Yet, as a side effect, it allocates a second buffer, fills
it, and p
David Beazley added the comment:
Another note: the PyUnicode_AsUTF8String() doesn't leave the UTF-8 encoded byte
string behind on the original string object. I got into this thinking that
PyUnicode_AsWideCharString() might have similar beh
New submission from David Benjamin:
This is somewhat of a nitpick. os.rename's documentation says "If dst is a
directory, OSError will be raised". On Unix, this isn't completely true. If the
source is a directory and the destination is an empty directory, it'll
over
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue900092>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Watson added the comment:
On Tue 18 Mar 2014, A.M. Kuchling wrote:
> I suggest we apply the fix for #1, and for #2 just discard and
> update the ToC when we lock the mailbox, ignoring other
> possible routes to corruption (so no detecting the problem and
> raising an E
New submission from David Zámek:
I use python 2.7.6 on win32.
If I enter u'\u010d'.encode('utf-8') to console, I get '\xc4\x8d' as response.
That's correct.
But it I use C API for the same, I get incorrect '\xc3\xa8' as response.
I was te
David Watson added the comment:
On Sun 23 Mar 2014, David Watson wrote:
> There actually isn't a test for the original locking issue, as
> the tests all use the mailbox API, which doesn't provide a way to
> turn off dot-locking. ...
On second thought, the underlying error do
New submission from David Woakes:
I've seen issue 21050 and tried a complete uninstall, delete c:\python34 and
install of python 3.4.
I can't get win32api to load unless I copy pythoncom34.dll and
psywintypes34.dll to C:\Python34\Lib\site-packages\win32 from
C:\Python34\Lib\sit
David Lindquist added the comment:
Anyone interested in picking this up, or at least commenting on the approach I
suggested in the patch? Seems like an easy fix for a long-standing bug.
--
___
Python tracker
<http://bugs.python.org/issue1043
David Beazley added the comment:
Funny thing, this feature breaks the interactive interpreter in the most basic
way on OS X systems. For example, the tab key won't even work to indent. You
can't even type the most basic programs into the interactive interpreter. For
example:
&g
New submission from David Turner:
https://docs.python.org/2/library/webbrowser.html says "If the environment
variable BROWSER exists, it is interpreted to override the platform default
list of browsers, as a os.pathsep-separated list of browsers to try in order."
This is not act
David Wolever added the comment:
It may also be worth noting that the strftime formatters table now includes
examples from different locales:
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior
This change was introduced about a year ago
David Bolen added the comment:
This generator script breaks the daily OSX DMG builds on my bolen-dmg
buildslave for the 3.x branch.
The issue is with the use of "with" as the slave uses Python 2.5 to build the
installer. Now, that's old, and I'm not even sure how necessa
David Watson added the comment:
On Mon 28 Apr 2014, Jim Jewett wrote:
> pinging David Watson: What is the status? If I understand correctly, (and I
> may well not), you have already opened other issues for parts of this, and
> (only) the final patch is ready for patch (and hopefull
David Woakes added the comment:
This issue is not related to anything in the Python 3.4 release. It's a problem
with the installer not asking to be installed as administrator.
Running C:\Python34\Scripts\pywin32_postinstall.py as administrator after
installing fixes
David Harrigan added the comment:
I've added the example and modified the final comment.
--
keywords: +patch
nosy: +David.Harrigan
Added file: http://bugs.python.org/file35311/datastructures.patch
___
Python tracker
<http://bugs.py
Changes by David Harrigan :
--
keywords: +patch
Added file: http://bugs.python.org/file35318/stdlib.patch
___
Python tracker
<http://bugs.python.org/issue21
David Harrigan added the comment:
Thanks for the info, I've signed the agreement.
--
___
Python tracker
<http://bugs.python.org/issue21545>
___
___
Pytho
New submission from David Szotten:
```
>>> __import__('fabric.', fromlist=[u'api'])
Traceback (most recent call last):
File "", line 1, in
```
accidentally ended up with something like this via some module that was using
`unicode_literals`. stumped m
New submission from David Jones:
```
for f in glob.glob('input/*/*.dat'): print f
```
outputs:
```
input/ghcnm.v3.2.2.20140611/ghcnm.tavg.v3.2.2.20140611.qca.dat
input/ghcnm.v3.2.2.20140506/ghcnm.tavg.v3.2.2.20140506.qca.dat
```
Note that these are not in the right order. Compare
Changes by David Barnett :
--
nosy: +mu_mind
___
Python tracker
<http://bugs.python.org/issue1065986>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Barnett added the comment:
I just ran into this, and I'd like to communicate how unfortunate it is that
it's not a priority to fix this fairly trivial (?) bug. It means there's no way
to define a unicode string literal with non-ascii characters that won't cra
David Barnett added the comment:
Also, the resolution is still marked as "fixed", which is not correct...
--
___
Python tracker
<http://bugs.python.org
David Barnett added the comment:
I guess it must be more complicated than it looks, because I thought checking
for unicode strings and doing .encode('utf-8') would help at least some cases
without making anything worse.
Anyways, if it's too hard or not worth fixing "correc
New submission from David Wolf:
import ctypes
ctypes.windll.user32.MessageBoxW(0,"Time's up!","Message",0)
My quention is that I want to set my message box topmost.
It's said I just need to change the first parameter, but I don't know how I
should change it.
New submission from David Pritchard:
In importlib/_bootstrap.py, there is a function _fill_cache which crashes when
you try to run Python in any environment that is so restricted that write
permissions are not allowed. You get a trace like:
Traceback (most recent call last):
In line
David Pritchard added the comment:
Sorry, in the main text of my message, "write permissions" should say directory
execute permissions (permission to list contents of a directory)
--
___
Python tracker
<http://bugs.python.o
New submission from David Halter:
The following lines run infinitely:
b = [1]
import itertools
b += itertools.chain.from_iterable([c] for c in b)
In my opinion this is a bug. Clearly you could say that this is an
implementation detail. But afaik this is not documented and very misleading
David Pritchard added the comment:
Here's an example where Python 3.3.0 crashes, but where the patched code works.
I have only been able to trigger the bug when PYTHONPATH is set (even if to an
empty value).
(1) create a directory
(2) chmod a-rw+x on that directory
(3) export PYTHO
David Beazley added the comment:
Just as a note, there is a distinct possibility that a "property" in a
superclass could be some other kind of descriptor object that's not a property.
To handle that case, the solution of
super(self.__class__, self.__class__).x.fset(self
Changes by David Lam :
--
nosy: +dlam
___
Python tracker
<http://bugs.python.org/issue8489>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
New submission from David Beazley:
Suppose you subclass a dictionary:
class mdict(dict):
def __getitem__(self, index):
print('Getting:', index)
return super().__getitem__(index)
Now, suppose you define a function and perform these steps that reassign the
Changes by David Lam :
--
nosy: +dlam
___
Python tracker
<http://bugs.python.org/issue16954>
___
___
Python-bugs-list mailing list
Unsubscribe:
http://mail.pyth
David Beazley added the comment:
I have run into this bug myself. Agree that a file-like object should never
report itself as closed unless .close() has been explicitly called on it.
HTTPResponse should not return itself as closed after the end-of-file has been
reached.
I think there is
New submission from David Coallier:
The `collections.Counter` library contains very useful methods for playing with
dicts and sets (mainly the most_common()) function.
Even though it is fairly trivial to retrieve the least common elements in a
Counter() by doing Counter(...).most_common(n
David Coallier added the comment:
Latest patch after code review round #1
--
Added file:
http://bugs.python.org/file28773/collections.Counter.least_common.patch
___
Python tracker
<http://bugs.python.org/issue16
Changes by David Coallier :
Removed file:
http://bugs.python.org/file28773/collections.Counter.least_common.patch
___
Python tracker
<http://bugs.python.org/issue16
David Coallier added the comment:
Hi there @serhiy.storchaka,
Consider the case where one would calculate the k-combination of set S. When
the set has `n` elements, the number of k-combination is equal to its binomial
coefficient. e.g. ( n!/( (k!(n-k)! ).
One method of statistically
Changes by David Coallier :
Added file: http://bugs.python.org/file28774/16994.patch
___
Python tracker
<http://bugs.python.org/issue16994>
___
___
Python-bugs-list mailin
David Lam added the comment:
I had an innocent question about the format to use when listing function
arguments in docstrings. In the PEP 257 doc, there's a single example:
def complex(real=0.0, imag=0.0):
"""Form a complex number.
Keyword arguments:
New submission from David Holm:
The response from NNTP.xover doesn't always match the format described in the
documentation. It is supposed to return a (result, list) where the list
contains entries of the format (article number, subject, poster, date, id,
references, size, lines). Howev
Changes by David Benbennick :
--
nosy: +dbenbenn
___
Python tracker
<http://bugs.python.org/issue19055>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Chambers:
I first raised this issue on Stack Overflow:
http://stackoverflow.com/questions/19203194
The [replacement field grammar][1] states that an [integer][2] is a valid
field_name, but this is inaccurate:
>>> '{0}'.format('zero
New submission from David Chambers:
>From http://docs.python.org/3/library/string.html#formatspec:
> The presence of a fill character is signaled by the character
> following it, which must be one of the alignment options. If the
> second character of format_spec is not a valid alig
1301 - 1400 of 8893 matches
Mail list logo