New submission from David Gilman:
Implementations of __getinitargs__ return a tuple of the positional arguments
for __init__. This wasn't initially apparent to me after reading the docs: I
thought you were passing a tuple (args, kwargs) that would get called f(*args,
**kwargs) and had
New submission from David Edelsohn:
As with Solaris and Issue10812, test_posix fadvise and fallocate fail on AIX.
Python is compiled with _LARGE_FILES, which changes the function signature for
posix_fadvise and posix_fallocate so that off_t is "long long" on 32 bit system
pas
New submission from David Edelsohn:
AIX has the same test_socket problem with FDPassSeparate as Darwin in
Issue12958 so skip some tests.
--
components: Library (Lib)
files: 12958_aix.patch
keywords: patch
messages: 226837
nosy: David.Edelsohn, pitrou
priority: normal
severity: normal
Changes by David Edelsohn :
--
nosy: +David.Edelsohn
___
Python tracker
<http://bugs.python.org/issue22463>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Edelsohn added the comment:
Any feedback about which approach would be acceptable?
--
___
Python tracker
<http://bugs.python.org/issue22396>
___
___
Pytho
David Edelsohn added the comment:
Attached is a revised patch that disables posix_fadvise() and posix_fallocate()
when building on 32 bit AIX with _LARGE_FILES defined.
--
Added file: http://bugs.python.org/file36699/22396_aix.patch
___
Python
David Edelsohn added the comment:
The declaration of the two system calls should be fixed in the AIX header, but
the clueless response to the AIX problem report is underwhelming.
I don't understand the "keep the function and skip the test" suggestion. I
thought that was
Changes by David Edelsohn :
--
nosy: +haypo
___
Python tracker
<http://bugs.python.org/issue22397>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Pizzuto:
Using an empty query argument with no = fails in urlparse.parse_qsl. Chrome and
Firefox accept it without the =, so a navigation to google.com/search?q=foo&bar
appears in the address bar as google.com/search?q=foo&bar=. Neither RFC 1738
nor RFC 398
David Watson added the comment:
On Fri 13 Dec 2013, Brett Cannon wrote:
> Two things. First, I'm sorry David but my mind is not working fully enough at
> the moment to see how msg_controllen is compared to cmsg_len_end without
> relying on external value coming in through the par
David Palms added the comment:
I am still seeing this in 2.7.5, has a patch been created yet?
--
nosy: +dpalms2011
___
Python tracker
<http://bugs.python.org/issue7
New submission from David Barnett:
Many sloppy JSON APIs return data with poorly-encoded strings, either with
single-quotes as delimiters:
{'foo': 'bar'}
or with no delimiters at all on keys:
{foo: 'bar'}
The json library is useless for making sense of this d
David Edelsohn added the comment:
With the patch, the results are:
ERROR: test_ctime (test.test_time.TimeTestCase)
--
Traceback (most recent call last):
File "/home/dje/src/cpython/Lib/test/test_time.py", li
David Edelsohn added the comment:
>>> time.mktime((-100, 1, 10) + (0,)*6)
-897577382.0
>>> time.mktime((100, 1, 10) + (0,)*6)
111922.0
>>> time.mktime((1900, 1, 10) + (0,)*6)
2086784896.0
>>> time.mktime((1930, 1, 10) + (0,)*6)
-1261497600.0
>>
New submission from David Felix:
On longer documentation pages, the sidebar is scrolling out of view and in an
unexpected manner when the main page is scrolled. Seems to only affect 3.4
docs, but I'm not positive.
http://docs.python.org/3.4/whatsnew/3.4.html is a good example. Using Fi
David Edelsohn added the comment:
With the latest patch, test_time passes.
>>> time.mktime((-100, 1, 10) + (0,)*6)
Traceback (most recent call last):
File "", line 1, in
OverflowError: mktime argument out of range
>>> time.mktime((-100, 1, 10) + (0,)*6)
Trac
David Edelsohn added the comment:
WITHOUT the patch to timemodule.c:
>>> time.ctime(-2**29)
'Fri Dec 26 21:11:28 1952'
>>> time.ctime(2**29)
'Mon Jan 5 10:48:32 1987'
ERROR: te
David Edelsohn added the comment:
WITH the patch:
>>> time.ctime(-2**29)
Traceback (most recent call last):
File "", line 1, in
OverflowError: ctime() timestamp argument out of range
>>> time.ctime(2**29)
'Mon Jan 5 10:48:3
David Edelsohn added the comment:
>>> time.localtime(-2)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=15, tm_min=59,
tm_sec=58, tm_wday=2, tm_yday=365, tm_isdst=0)
>>> time.localtime(-1)
time.struct_time(tm_year=1969, tm_mon=12, tm_mday=31, tm_hour=15, tm_
New submission from David Lindquist:
The roundrobin example in the Recipes section of the itertools documentation
(http://docs.python.org/3/library/itertools.html#itertools-recipes) is overly
complex. Here is a more straightforward implementation:
def roundrobin(*iterables):
"round
New submission from David Watson:
In test_socket, the decorator on SendmsgStreamTests.testSendmsgDontWait still
checks for the old sys.platform value of "linux2", with the result that the
test is always skipped, when in fact the test is for a Linux facility. Patch
attached for 3.3
David Watson added the comment:
> I opened the issue #20718 to track the "FD pass" failures.
But the failures in the current issue *all* involve FD passing :)
The "Message too long" errors are in tests where the ancillary data (in this
case file descriptors) is tru
New submission from David Jones:
Consider the following code:
for z in zip([1]):pass
2to3 does not convert the zip in this code to list(zip(...)); it does not
change this code at all.
That can be an (obscure) bug because the zip in Python 2 has different
semantics from the zip in Python 3
David Lindquist added the comment:
Sure. That would be nice. :)
Thanks Raymond and Larry
--
___
Python tracker
<http://bugs.python.org/issue20727>
___
___
Pytho
David Lindquist added the comment:
> other benchmarks show it to be more than twice as slow
Can you share the method you used to get those results? Here's what I did:
$ python -m timeit --number=100 --setup="from rr_mine import roundrobin"
"its = ['ABC',
David Lindquist added the comment:
Thanks Gareth for your analysis. Very informative!
--
___
Python tracker
<http://bugs.python.org/issue20727>
___
___
Python-bug
David Lindquist added the comment:
I don't think it is unreasonable to return a well-known extension for certain
mime types, text/plain being the most obvious (and most in need of repair;
.ksh??).
I've attached a patch based on the previous discussion.
--
keywords: +
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
keywords: +patch
Added file: http://bugs.python.org/file34330/test_kque
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
Added file: http://bugs.python.org/file34331/test_kqueue.py.diff
___
Python trac
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
Added file: http://bugs.python.org/file34333/test_kqueue.py.diff
___
Python trac
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
Added file: http://bugs.python.org/file34332/test_kqueue.py.diff
___
Python trac
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
Added file: http://bugs.python.org/file34335/test_kqueue.py.diff
___
Python trac
David Naylor added the comment:
As requested, please find attached the unit tests that check `flags' can handle
a u_short and `fflags' can handle a u_int.
--
Added file: http://bugs.python.org/file34334/test_kqueue.py.diff
___
Python trac
New submission from David Edelsohn:
PowerLinux is shifting to Little Endian with a new ABI (ELFv2). Upstream libffi
includes support for the new ABI. What is the recommended method to merge
support into CPython? Will CPython update the base libffi or
_ctypes/libffi.diff should be updated
David Schnur added the comment:
I came across this ticket while looking for alternatives to Python's
gettext, since I need msgctx support. It seems a patch was supplied for
this a while back. I have never contributed to Python, and am not
familiar with your release process, but is
David Goodger added the comment:
r74028 changes the logic of the code. The "finally" clause always
executes, regardless of whether or not an exception was raised. The
previous behavior only executed when there was an exception.
I don't know if the previous logic was correct, o
David Goodger added the comment:
To clarify my last message: the log message for r74028 ('simplify
"except: raise" to "finally:"') implies a nonexistent equivalence.
So was the log message in error, or the change itself?
--
New submission from David Roberts :
I'm getting the following error on Windows in an application I've
written (the error does not occur on Linux):
Exception in thread Thread-4:
Traceback (most recent call last):
File "C:\Python26\lib\threading.py", line 525, in __bootstr
David Roberts added the comment:
thread.get_ident() returns 1192 and 1560 in the cases where there is no
error, and 1316 in the case where the error is thrown. Doesn't seem
particularly unusual, and shows get_ident() isn't throwing the error itself.
I also noticed that there is a war
David Roberts added the comment:
I haven't been able to isolate the issue. Could someone provide some
insight into what the error could possibly mean so that I have a better
idea of what I'm trying to isolate?
--
___
Python trac
David Roberts added the comment:
If I comment out all occurrences of "with self.__lock:" I then get the
same error in another part of the code:
C:\Python26\lib\threading.py:803: RuntimeWarning: tp_compare didn't
return -1 or -2 for exception
return _active[_get_ident()]
Exce
David Roberts added the comment:
Yes, it is the PIL library. Removing calls to Image.open() still results
in the same error - the exception is thrown before it even reaches that
bit of the code anyway.
Another odd thing is that the exception is only thrown on some of the
calls to get_tile_path
Changes by David Roberts :
Added file: http://bugs.python.org/file14568/tilestore.py
___
Python tracker
<http://bugs.python.org/issue6562>
___
___
Python-bugs-list mailin
David Roberts added the comment:
I think I've narrowed it down to the ImageQt class provided by PIL -
commenting out the reference to this (in the constructor of the Tile
class referenced by TileProvider.run) stops the errors.
So how do I go about determining where the problem with Im
David House added the comment:
>From the documentation from time.strptime() (which acts the same as
datetime.strptime()):
"Only the directives specified in the documentation [of time.strftime()]
are supported. Because strftime() is implemented per platform it can
sometimes of
David Roberts added the comment:
Ok, so if it's a bug in (Py)Qt then I'm not going to worry about it.
I've managed to fix the issue in my case anyway, by (essentially) replacing:
image = Image.open(fname)
image.load()
tile = ImageQt(image)
with (the much more obvio
Changes by David Fraser :
--
nosy: +davidfraser
___
Python tracker
<http://bugs.python.org/issue2304>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Fraser :
(from
http://stackoverflow.com/questions/1253122/why-does-subprocess-popen-with-shelltrue-work-differently-on-linux-vs-windows/1254322)
When using subprocess.Popen(args, shell=True) to run "gcc --version"
(just as an example), on Windows we get this:
Changes by David Fraser :
Added file: http://bugs.python.org/file14698/current-3.patch
___
Python tracker
<http://bugs.python.org/issue6689>
___
___
Python-bugs-list m
David Fraser added the comment:
Ah, upon closer inspection - the special parameters $0 $1 $2 etc
mentioned in the sh docs refer to parameters within the command string,
so that:
sh -c 'echo $2 $0 $1' run for "the people"
produces:
the people run for
So the correct pat
Changes by David Fraser :
Removed file: http://bugs.python.org/file14697/current-2.6.patch
___
Python tracker
<http://bugs.python.org/issue6689>
___
___
Python-bugs-list m
Changes by David Fraser :
Removed file: http://bugs.python.org/file14698/current-3.patch
___
Python tracker
<http://bugs.python.org/issue6689>
___
___
Python-bugs-list m
David House added the comment:
Yes and no.
Firstly, %z isn't listed as deprecated in the documentation of the time
module's strftime -- although %Z is (note differing case).
Secondly, I still think the bug is invalid, because the documentation of
datetime.datetime.strptime says
New submission from David Hanney :
I was playing about with ideas behind b-plus-trees
and found i python bug
the important bit of code is:
for p, k in enumerate(self.keys):
self.ptrs[p].dump(indent+1, kmin=lk, kmax=k)
print sindent
David Hanney added the comment:
Ooops. I'm just learning Python and it never occurred to me that I could
get through the for without k begin defined. At least not until about an
hour ago in the cinema. I came here ASAP but you'd already got to it.
Sorry for wasting your time.
I s
David Kirkby added the comment:
Just to add, I'd much appreciate if this bug could be squashed. I see
there is a patch, but it is against a 3-year old version, and is not a
small patch. Hence I am reluctant to try to apply it myself.
It is causing a problem in the Sage project, as I tri
David Bonner added the comment:
I've got a patch that fixes this. It allows BZ2File to read
multi-stream files as generated by pbzip2, allows BZ2File to open files
in append mode, and also updates bz2.decompress to allow it to handle
multi-stream chunks of data.
We originally wrote it ag
Changes by David Bonner :
Removed file: http://bugs.python.org/file15000/bz2_patch.tar.bz2
___
Python tracker
<http://bugs.python.org/issue1625>
___
___
Python-bugs-list m
David Bonner added the comment:
sorry, the previous patch was from an old version. attaching the
correct version now. apologies for the noise.
--
Added file: http://bugs.python.org/file15001/bz2_patch.tar.bz2
___
Python tracker
<h
David Bonner added the comment:
Thanks for the reply.
My company's legal dept. told me that we needed to put the boilerplate
into the files as part of releasing it under the apache license. I used
a tarball because they also recommended including a full copy of the
license with the
David Bonner added the comment:
I can remove the boilerplate from the code as long as I add the
following to the submittal:
VMware, Inc. is providing this bz2 module patch to you under the terms
of the Apache License 2.0 with the understanding that you plan to
re-license this under the terms
David Bonner added the comment:
Hrm...yeah, I should probably be setting it to closed as soon as
BZ2_bzReadClose() returns, and then back to open once BZ2_bzReadOpen
succeeds. Wasn't intentional...thanks for the catch. You guys need a
new patch with that change in it?
I'll try and
David Bonner added the comment:
Understandable. New patch attached.
--
Added file: http://bugs.python.org/file15177/py3k_bz2.patch
___
Python tracker
<http://bugs.python.org/issue1
David Bonner added the comment:
That was mostly just out of paranoia, since the comments mentioned
multiple calls to close being legal. Looking at it again, that particular
case isn't an issue, since we don't hit that call when the mode is
MODE_CLOSED. The testsuite runs happily
New submission from David Lyon :
Under Windows, it would be very handy to have shell support for
installing .EGG packages.
To implement this would require the addition of some registry keys into
the cpython installation to associate the .EGG extension as being a
python package.
Then a new
Changes by David Fraser :
--
nosy: +davidfraser
___
Python tracker
<http://bugs.python.org/issue3871>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Bolen :
This is a pretty tiny bug..
The test_reg_class test in test_msvc9compiler.py assumes that there is a
Notepad registry key on Windows systems. That appears to be false until
Notepad is run the very first time. I ran into this setting up a build
slave VM, where
David Bolen added the comment:
Well, I can at least start by comparing XP and Win7 immediately
post-installation. Any suggestions on guidelines to what can be chosen?
Does it have to be a DWORD, or a 0/1 value, or under HKCU for a
specific reason
Changes by David Fraser :
--
nosy: +davidfraser
___
Python tracker
<http://bugs.python.org/issue6132>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Bolen added the comment:
Since I was feeling bad for the Windows 7 build slave not being able to
pass the tests due to this (at least when other tests weren't failing),
I manually added a matching key on the slave pending any test changes.
In looking around, since this te
New submission from David Bolen :
As I mentioned in a recent python-dev post, I've noticed that the
Windows build slaves are skipping tests of external modules (like ssl
and bz2).
After finding an old 2.6a0 tree that I had locally built where things
worked fine, I stepped through some 2.6
David Bolen added the comment:
Our last comments may have crossed, but as I mentioned in my last one,
yes, as best I can tell from my slaves (XP+VS-Express, XP+VS-Standard,
Win7+VS-Standard), the Visual Studio key is present in a brand new
install. Note that it is not present in a brand new XP
David Bolen added the comment:
Oh, Tarek, something I missed in your last comment - for the "Build
Timing" key, it should probably permit the value to be either 0 or 1,
just as the current test does. Just in case someone happens to have
build timing
David Bolen added the comment:
The "Build Timing" key (not Build Time) is the only one at all under
HKCU/VisualStudio/9.0/VC (and actually the only key under the entire
HKCU/VisualStudio tree) on both my XP and Win7 new VS 2008 installation.
I can't rule out it being part
David Bolen added the comment:
Oh, BTW, you were missing the VC part of the path in your test. But if
I run the same code with that corrected on my Win7 box, I get:
>>> from distutils.msvc9compiler import Reg
>>> path = r'Software\Microsoft\VisualStudio\9.0
David Bolen added the comment:
Yes to both examples (the first on my VS 2008 full installs on XP and
Windows 7, and the second on my XP with VC++ Express).
Two caveats (that I don't think invalidates the result) though.
First, I can't use forward slashes in the path I supply to
Reg
David Bolen added the comment:
Oh, my bad - I was working on the assumption that test_msvc9compiler was
testing compiler related stuff, so obviously would have the compiler
installed. But it makes sense you might test support for that compiler
on a machine other than the one doing the building
David Bolen added the comment:
Looks like some sort of master side global rebuild was initiated but
without the proper SVN information. But I see a rebuild on 7.2 with
this patch revision that looks like it worked (still failed, but with a
different reason)
I'm not that familiar with the
New submission from David Henretty :
Hi,
In the v3.1.1 Python Tutorial (section 10.7 - Internet Access), the
sample code (shown below) results in the following error :-
from urllib.request import urlopen
for line in urlopen('http://tycho.usno.navy.mil/cgi-bin/timer.pl'):
if
David Bolen added the comment:
> David, I think we're ready to enable POSIX semaphore support on the
> FreeBSD 7.2 buildbot now, if you get the chance.
Done. I'll double check that the module remains loaded across restarts
when there's some id
David Bolen added the comment:
I don't think its OSX specific. My FreeBSD slaves (both 6.4 and 7.2)
have been getting the same error recently (sounds like probably around
the same time frame). The error always seems to be that member.gid (0)
is not matching os.getgid (1001). The os.g
David Bolen added the comment:
>From Tarek:
> Thanks for the digging David, I'll check for /tmp rights in that case.
> What's important in distutils, is to make sure it was able to create
> tarballs with various uid/gid using the new tarfile feature.
Right, and
David Bolen added the comment:
> I can generate the error on my iMac but not my laptop, which are
> equivalent versions/upgrades of Mac OS X AFAIK. The /tmp directory
> in both has drwxrwxrwt, and the subdirectories within which I'm doing
> the builds are drwxr-xr-x, so it d
David Bolen added the comment:
> I think that's difficult to implement, as the files are not there
> anymore when the check is made (only the tarfile); somebody correct
> me if I'm wrong.
The files are created during setup, and I think exist through the
duration of the test,
David Narayan added the comment:
This is a patch that I have used on AIX. The idea for this patch came
from uuid.py. This patch was created against Python 2.6.4.
--
keywords: +patch
nosy: +davidnarayan
Added file:
http://bugs.python.org/file15445/multiprocessing-urandom-fallback.patch
David Watson added the comment:
Hi, I'm afraid there may have been some duplication of effort
here - I set about reworking Heiko Wundram's original patch
(issue #1194378) without knowing about this one. I don't have
unit tests yet either, but I saw this and thought I'd be
David Oxley added the comment:
Another instance of a blocking function within subprocess not being protected
against EINTR
Python 2.6.4, subprocess.py, Popen function, line 1115:
data = os.read(errpipe_read, 1048576) # Exceptions limited to 1 MB
If a signal arrives while blocked in this
New submission from David Fugate :
http://docs.python.org/reference/introduction.html#alternate-
implementations states that the IronPython project's website URL is
http://workspaces.gotdotnet.com/ironpython. This site has actually
been dead for quite some time and our official project
David Schultz added the comment:
Just an ignorance issue, I supposed. I didn't realize that it was
that simple. Still a novice at all of the methods available.
In that case, the only advantage is in case you don't want to always
manually set it to the end. No good reason to
New submission from David Kerkeslager :
This problem arose in this thread:
http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=11606
Basically, we have the following function which will generate an XHTML
node:
def xhtmlNode(tag, **attr):...
If we call:
xhtmlNode('div',
New submission from David Kerkeslager :
This problem arose in this thread:
http://www.python-forum.org/pythonforum/viewtopic.php?f=2&t=11606
Basically, we have the following function which will generate an XHTML
node:
def xhtmlNode(tag, *content, **attr):...
If we call:
xhtmlNode(
Changes by David Kerkeslager :
--
type: -> feature request
versions: +Python 3.0, Python 3.1
___
Python tracker
<http://bugs.python.org/issue5383>
___
___
Py
Changes by David Kerkeslager :
--
components: +Interpreter Core
___
Python tracker
<http://bugs.python.org/issue5383>
___
___
Python-bugs-list mailing list
Unsub
David Kerkeslager added the comment:
Thank you all for reading and responding to my submission.
I post the following without expectation of results, only to expand my
reasoning:
The following aren't applicable to the situation I described:
def f():
class
return
def f(
David Christian added the comment:
I actually discovered this issue when using httplib over ssl. Closing
the httplib connection was not closing the socket - the socket would
only be closed after garbage collection, due to this bug. That's what
caused me to investigate and find this fla
New submission from David Majnemer :
Note that binascii.a2b_uu("\0") returns
'\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'.
This appears to be the same as binascii.a2b_uu() which is most like
David Majnemer added the comment:
Added version number of python.
--
versions: +Python 2.5
___
Python tracker
<http://bugs.python.org/issue5414>
___
___
Pytho
New submission from David Majnemer :
str.replace("", "", "asdf", -1) returns "asdf", I believe this is not
correct and strictly speaking not up to the documentation posted. I am
of the opinion that it should function like str.replace("", &quo
New submission from David Ripton :
When Python 2.x is manually installed on Linux, a python2 symlink is
created, like this:
lrwxrwxrwx 1 root root 9 Jan 24 00:03 /usr/bin/python2 -> python2.6
("make install" updates the symlink; "make altinstall" does not).
When Pyth
Cournapeau David added the comment:
Is there any change to see this integrated soon ? The patch is only a
couple of lines long,
thanks
--
___
Python tracker
<http://bugs.python.org/issue4
1501 - 1600 of 10309 matches
Mail list logo