David Watson added the comment:
> If I understood correctly, you don't want the value to be truncated if the
> variable grows between the two calls to confstr(). Which behaviour would you
> expect? A Python exception?
A return size larger than the buffer is *supposed* to ind
New submission from David Janes :
In Python 2.6.4, json.dumps(...,indent=0) produced newlines as documented here:
http://docs.python.org/library/json.html#json.dump
In Python 2.7, it no longer adds newlines.
$ python
Python 2.6.4 (r264:75706, Jan 13 2010, 19:41:08)
[GCC 4.1.2 20080704 (Red
David Watson added the comment:
> platform.system() fails with UnicodeEncodeError on systems that have their
> computer name set to a name containing non-ascii characters. The
> implementation of platform.system() uses at some point socket.gethostname() (
> see http://www.pastea
David Watson added the comment:
> As a further note: I think socket.gethostname() is a special case, since this
> is just about a local setting (i.e. not related to DNS).
But the hostname *is* commonly intended to be looked up in the
DNS or whatever name resolution mechanisms are used l
David Watson added the comment:
> The result from gethostname likely comes out of machine-local
> configuration. It may have non-ASCII in it, which is then likely
> encoded in the local encoding. When looking it up in DNS, IDNA
> should be applied.
I would have thought that
David Stanek added the comment:
My Java may be a bit rusty, but it seems that it would filter out the colon.
tspecials contains a colon and thus having a colon in the cookie name would
make in invalid.
I glanced at the Perl code and couldn't find where it filtered out any
characters.
David Watson added the comment:
> > In fact, I would think that non-ASCII bytes in a hostname most
> > probably indicated that a name resolution mechanism other than
> > the DNS was in use, and that the byte string should be passed
> > unaltered just as a typical C pro
David Watson added the comment:
I was looking at the MSDN pages linked to above, and these two
pages seemed to suggest that Unicode characters appearing in DNS
names represented UTF-8 sequences, and that Windows allowed such
non-ASCII byte sequences in the DNS by default:
http
David Watson added the comment:
> > Also, if GetComputerNameEx() only offers a choice of DNS names or
> > NetBIOS names, and both are byte-oriented underneath (that was my
> > reading of the "Computer Names" page), then presumably there
> > shouldn't be
David Watson added the comment:
> On other platforms, I guess we'll just have to do some trial
> and error to see what works and what not. E.g. on Linux it is
> possible to set the hostname to a non-ASCII value, but then
> the resolver returns an error, so it
New submission from David Barnett :
If the first call to writeframes happens to take an empty string as the data to
write, then the next call to writeframes writes a 2nd header into the file, and
forever after fails to patch the data length correctly.
--
components: Library (Lib
David Barnett added the comment:
This patch against the python 2.6 version fixes the problem for me.
--
keywords: +patch
Added file: http://bugs.python.org/file19369/fix_double_header.patch
___
Python tracker
<http://bugs.python.org/issue10
David Bolen added the comment:
Can't really say why it's just hitting now more consistently but the failure is
an internal CRT exception during a file close, when it is handed what appears
to be an invalid FILE * (the internal structure has bad data).
I think it's more chance
David Bolen added the comment:
Ok, when it fails, the failure always appears to be one of the
FileThreadingTests tests, with the affected close() call occurring within
_close_file, called from _close_and_reopen_file, called from
_test_close_open_io. It seems tough to backtrace the VS traces
David Joy added the comment:
Hi All,
I just built mysql-python against CPython2.7 MSVC2008 Express Edition and
Server 2003 R2. All were freshly built on a clean Server 2003 install. This
exact issue occurred building with pip 0.8.1 on top of distribute 0.6.14:
C:\Program Files\Microsoft
David Watson added the comment:
> FWIW, you can do the same on a Linux box, i.e. setup the host name
> and domain to some completely bogus values. And as David pointed out,
> without also updating the /etc/hosts on the Linux, you always get the
> resolver error with hostname -f
David Joy added the comment:
Hi Marc,
Well, I fried my original server install trying to trace this. My new fresh
install can still reproduce the problem with mysql-python, but I can't recreate
the issue with PyOpenSSL anymore. Grabbing packages at random from PyPi hasn't
Changes by David Sankel :
--
nosy: +David.Sankel
___
Python tracker
<http://bugs.python.org/issue1602>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Sankel :
--
nosy: +David.Sankel
___
Python tracker
<http://bugs.python.org/issue6058>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Fraser :
--
nosy: +davidfraser
___
Python tracker
<http://bugs.python.org/issue8863>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Nesting :
When opening a tarfile with mode "r|" (streaming mode), extractfile("filename")
and extractfile(mytarfile.getmembers()[0]) raise "tarfile.StreamError: seeking
backwards is not allowed". extractfile(mytarfile.next()) succeed
David Nesting added the comment:
Thanks, Lars. And this does make complete sense to me in retrospect.
Better documentation here would help a lot. I'm happy to take a stab at this.
Short of labeling methods as "safe for streaming" versus "unsafe for
streaming"
David Beazley added the comment:
Bump. This is still broken in Python 3.2.
--
___
Python tracker
<http://bugs.python.org/issue10791>
___
___
Python-bugs-list m
David Beazley added the comment:
If I can find some time, I may took a look at this. I just noticed that
similar problems arise trying to wrap TextIOWrapper around the file-like
objects returned by urllib.request.urlopen as well.
In the big picture, some discussion of what it means to be
David Beazley added the comment:
Python 3.2 (r32:88445, Feb 20 2011, 21:51:21)
[GCC 4.2.1 (Apple Inc. build 5664)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import gzip
>>> import io
>&
David Bolen added the comment:
Just a few thoughts that were in part in an earlier exchange with Antoine.
It seems to me that if the Python-ast.[ch] files are included in the repository
then they ought to be up to date as part of any given change set. So I think
I'd actually prefer h
David Bolen added the comment:
Note that some of my last comment was before I saw the others, so I'm fine with
script changes if that seems ok to others.
>From Ronald:
"This is because the header file and input grammar have the same timestamp, and
which forces the rebuild.&
David Bolen added the comment:
Note in the meantime, I've manually touched those two files on the dmg buildbot
and it builds successfully. As Antoine pointed out to me separately, the hg
update used by the buildbot should leave that intact, so this should stop any
buildbot failures fo
David Bolen added the comment:
Guess I cry uncle - not sure how it used to work then. I just did a dummy svn
checkout off of the older svn.python.org from trunk and the .[ch] files appear
to have dates earlier than the asdl.py script, so I would have assumed it would
have the same problem
David Caro added the comment:
Of course, the RFC that discusses the MIME-Version Header is RFC-2045
http://www.ietf.org/rfc/rfc2045.txt
Extract of the page 8:
"Note that the MIME-Version header field is required at the top level
of a message. It is not required for each body part
New submission from cournapeau david :
The following simple example:
setup.cfg
[global]
setup_hook = hooks.foo
and the following hooks.py file
def foo(content):
pass
Traceback (most recent call last):
File "../distutils2/distutils2/pysetup", line 5, in
main()
Fi
Changes by David Fraser :
--
nosy: +davidfraser
___
Python tracker
<http://bugs.python.org/issue11629>
___
___
Python-bugs-list mailing list
Unsubscribe:
New submission from David Kirkby :
I'm trying to build a version of Python *without* debugging information.
The reason for me wanting to do this is because there is a bug which is either
in gcc or AIX , that prevents recently patched versions of AIX building code
where there are s
David Kirkby added the comment:
Thank you. That solved it, so you can close this.
--
status: pending -> open
___
Python tracker
<http://bugs.python.org/issu
David Kirkby added the comment:
I've just downloaded libffi-3.0.9 (the latest) and it builds with no problems
on my AIX 5.3 system.
Is there any chance of the version of libffi in Python being updated?
--
nosy: +drkirkby
___
Python tracker
New submission from David Bailey :
File "C:\test3.py", line 166, in m
self.from_float(value * decimal.Decimal(1.0))/decimal.Decimal(1.0)
File "c:\Python27\lib\decimal.py", line 691, in from_float
n, d = abs(f).as_integer_ratio()
AttributeError: 'Decimal
David Kirkby added the comment:
Yes, I think this could do with being documented, as it is not obvious.
Generally one would expect CFLAGS to do this, and not OPT.
--
___
Python tracker
<http://bugs.python.org/issue11
cournapeau david added the comment:
Hi Martin,
It was nice meeting you at Pycon.
I finally took the time to set up a windows 64 bits environment, and here are
the exact steps I needed to do to reproduce the issue, and fix it by hand:
- Start fresh from windows 7 64 bits
- clone python
David Schnur added the comment:
I encountered this problem when updating from 2.6.4 to 2.7.1 on Solaris 8,
which also doesn't have 'round'. I tried srmadsen's --whole-archive option,
but it wasn't recognized by the (somewhat ancient) tools on that machine.
I s
New submission from David Strauss :
I've attached a multipart message produced by Thunderbird. For some reason, the
email.message parser doesn't properly recognize the boundary. This causes
legitimate multipart messages to parse as if no boundary were specified. Simply
removing the
Changes by David Strauss :
Removed file: http://bugs.python.org/file21789/wrapped_multipart.txt
___
Python tracker
<http://bugs.python.org/issue11932>
___
___
Python-bug
David Strauss added the comment:
Replacing the file with a proper example.
--
Added file: http://bugs.python.org/file21790/wrapped_multipart.txt
___
Python tracker
<http://bugs.python.org/issue11
David Strauss added the comment:
Never mind. I was manipulating some text that broke the parser.
--
resolution: -> invalid
status: open -> closed
___
Python tracker
<http://bugs.python.org/i
David Kirkby added the comment:
Is there any progress on this? I see it is marked as
Status: closed
Resolution: accepted
Stage: patch review
That apparently means:
''There is a patch, but it needs reviewing or is in the process of being
reviewed. This can be done by any
New submission from David Naylor :
kevent does not accept all legitimate parameters, such as KQ_NOTE_EXIT.
For example:
>> from select import *
>> kevent(0, KQ_FILTER_PROC, KQ_EV_ADD | KQ_EV_ENABLE, KQ_NOTE_EXIT)
OverflowError: signed integer is greater than maximum
While the
New submission from David Coles :
On Android platforms bionic defines wchar_t as char. This causes compiling of
unicodeobject.c to fail with "#error "unsupported wchar_t and PyUNICODE sizes,
see issue #8670".
The unusual thing is that the configure script does detect if wc
David Coles added the comment:
Sure. There are a few other build issues (mainly missing types/structs in
Bionic) that are preventing a complete build. I'll put together a patch once I
have a working build and can verify that HAVE_USABLE_WCHAR_T is set correctly
set on a normal Linux
David Coles added the comment:
After doing some more investigation it appears that Android's wchar_t support
before android-9 is totally broken (see
http://android.git.kernel.org/?p=platform/ndk.git;a=blob_plain;f=docs/STANDALONE-TOOLCHAIN.html;hb=HEAD).
With android-9 you get 4 byte wc
David Coles added the comment:
On Fri, May 6, 2011 at 1:31 PM, Marc-Andre Lemburg
wrote:
> wchar_t should be fairly portable these days. I think the main
> problem is that we never assumed sizeof(wchar_t) == 1 to be a
> possibility. On Windows, wchar_t was 16 bit and the glibc star
David Coles added the comment:
On Fri, May 6, 2011 at 2:24 PM, Martin v. Löwis wrote:
>
> Martin v. Löwis added the comment:
>
> I think what they mean is a better representation from an Android API, such
> as UChar32 from utils/AndroidUnicode.h.
Ah. Sadly I don't thi
David Coles added the comment:
On Fri, May 6, 2011 at 3:17 PM, Marc-Andre Lemburg
wrote:
> Since you sound like you want to get Python running on Android,
> are you aware of this project ?
>
> http://code.google.com/p/android-scripting/
Yes. It's excellent. I've actua
Changes by David Kern :
--
nosy: +David.Kern
___
Python tracker
<http://bugs.python.org/issue1006238>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Kern :
--
nosy: +David.Kern
___
Python tracker
<http://bugs.python.org/issue3754>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Coles added the comment:
Attached is a patch that updates configure.in to make sure that wchar.h is
present and that wchar_t is at least 16 bits wide.
On android-8 this patch causes the configure step to fail since SIZEOF_WCHAR_T
== 1. On android-9 and my Linux desktop the build
David Bolen added the comment:
I just ran a manual build/test on the buildbot, and these underlying failures
appear to be due to the "-l python3.3" option, which can't be found. I also
don't see that library in the build tree. Instead, the library is built as
pytho
New submission from David Bolen :
On the XP and Win7 buildbots, kill_python sometimes fails to kill hung
processes. I caught one instance recently and gathered some information though
not yet enough to identify the issue. I can say that no processes are killed
and no error messages
David Bolen added the comment:
> To kill python_d.exe, you should use kill_python_d.exe instead of
> kill_python.exe.
Crud, I thought I did. Well, ok, so can't trust this test.
> Could you post the buildbot log url?
I think this is the last build in the sequence that was f
David Bolen added the comment:
> I think #9973 is rather related.
Certainly could be another artifact of a python_d process still executing. In
particular though, the suggested patch in that issue agrees with what I was
thinking might be needed, in terms of moving kill_python_d over
David Bolen added the comment:
I wonder if it might be better to have kill_python run at the tail end of
test.bat, since there's a potential window where losing a connection to the
build master might not run the clean step, so still risk blocking a future
build after a reconnect due to
New submission from David Leonard :
Installed http://www.python.org/ftp/python/2.7.1/python-2.7.1.amd64.msi
on Windows 7, x64 into C:\Python27
C:\>\Python27\python.exe
Python 2.7.1 (r271:86832, Nov 27 2010, 17:19:03) [MSC v.1500 64 bit (AMD64)] on
win32
Type "help", "copyri
David Leonard added the comment:
Agree that the patches from issue 4804 and wrapping strftime() to catch the
invalid_parameter call would fix this:
windbg trace:
0:000> k
Child-SP RetAddr Call Site
`0021f328 07fe`fdbb27cf ntdll!ZwTerminateProcess+0xa
0
New submission from David Beazley :
Is the struct.pack() function supposed to automatically encode Unicode strings
into binary? For example:
>>> struct.pack("10s","Jalape\u00f1o")
b'Jalape\xc3\xb1o\x00'
>>>
This is Python 3.2b1.
--
David Beazley added the comment:
Note: This is what happens in Python 2.6.4:
>>> import struct
>>> struct.pack("10s",u"Jalape\u00f1o")
Traceback (most recent call last):
File "", line 1, in
David Beazley added the comment:
Hmmm. Well, the docs seem to say that it's allowed and that it will be encoded
as UTF-8.
Given the treatment of Unicode/bytes elsewhere in Python 3, all I can say is
that this behavior is rather surpr
David Bolen added the comment:
Wouldn't that module have to be put into the actual source tree, since the
tests run beneath the interpreter/libraries that are built for the test?
That may be what you meant, but "installed on this host" made me think I could
do something
David Beazley added the comment:
Why is it even encoding at all? Almost every other part of Python 3 forces you
to be explicit about bytes/string conversion. For example:
struct.pack("10s", x.encode('utf-8'))
Given that automatic conversion is documented, it's n
David Beazley added the comment:
I encountered this issue is in the context of distributed
computing/interprocess communication involving binary-encoded records (and
encoding/decoding such records using struct). At its core, this is all about
I/O--something where encodings and decoding
David Beazley added the comment:
Actually, here's another one of my favorite examples:
>>> import struct
>>> struct.pack("s","\xf1")
b'\xc3'
>>>
Not only does this not encode the correct value, it doesn't even encode the
ent
David Beazley added the comment:
As a user of Python 3, I would like echo Victor's comment about fixing the API
right now as opposed to having to deal with it later. I can only speak for
myself, but I would guess that anyone using Python 3 already understands that
it's bleedin
David Beazley added the comment:
Thanks everyone for looking at this!
--
___
Python tracker
<http://bugs.python.org/issue10783>
___
___
Python-bugs-list mailin
New submission from David Kremer :
Could you please add the exact form of the distribution, because it's rather
confusing in the current form.
In this url, the role of k and theta is precised with a formula :
[http://tinyurl.com/24jxfrk]*
It seems that in
[http://docs.python.org/li
New submission from David Beazley :
Is something like this supposed to work:
>>> import gzip
>>> import io
>>> f = io.TextIOWrapper(gzip.open("foo.gz"),encoding='ascii'))
Traceback (most recent call last):
File "", line 1, in
Attri
David Beazley added the comment:
It goes without saying that this also needs to be checked with the bz2 module.
A quick check seems to indicate that it has the same problem.
While you're at it, maybe someone could add an 'open' function to bz2 to make
it symmetrical wi
David Beazley added the comment:
C or not, wrapping a BZ2File instance with a TextIOWrapper to get text still
seems like something that someone might want to do. I doubt it would take much
modification to give BZ2File instances the required set of methods
David Beazley added the comment:
Do Python devs really view gzip and bz2 as two totally completely different
animals? They both have the same functionality and would be used for the same
kinds of things. Maybe I'm missing some
David Beazley added the comment:
Hmmm. Interesting. In the big picture, it might be an interesting project for
someone (not necessarily the core devs) to sit down and refactor both of these
modules so that they play nice with Python 3 I/O system. Obviously that's a
project outsid
David Kremer added the comment:
Yes I agree. Actually the parameters in the python code alpha, beta are
corresponding respectively to k, theta in the first equation of
[http://en.wikipedia.org/wiki/Gamma_distribution].
--
___
Python tracker
<h
New submission from David White :
When using ast.increment_lineno(), it visits the root node twice. Therefore if
the root node contains the lineno attribute, it is incremented twice. (Often,
the root node will not have a lineno attribute, so there is no effect. This is
why the current test
Changes by David White :
--
keywords: +patch
Added file: http://bugs.python.org/file20317/increment_linenos_27.patch
___
Python tracker
<http://bugs.python.org/issue10
Changes by David White :
Added file: http://bugs.python.org/file20318/increment_linenos_31.patch
___
Python tracker
<http://bugs.python.org/issue10869>
___
___
Python-bug
Changes by David White :
--
resolution: -> fixed
Added file: http://bugs.python.org/file20319/increment_linenos_3k.patch
___
Python tracker
<http://bugs.python.org/issu
David White added the comment:
I've uploaded the patches. Beware, this is my first attempt to contribute.
--
___
Python tracker
<http://bugs.python.org/is
David Beazley added the comment:
Have any other programming environments ever had a feature where a socket
timeout returns an exception containing partial data?I'm not aware of one
offhand and speaking as a systems programmer, something like this might be
somewhat unexpected.
My co
David Beazley added the comment:
A comment from the training world: The instability of IDLE on the Mac makes
teaching introductory Python courses a nightmare at the moment. Sure, one
might argue that students should install an alternative editor, but then you
usually end up with two
David Beazley added the comment:
Just wanted to say that I agree it's nonsense to continue reading on a socket
that timed out (I'm not even sure what I might have been thinking when I first
submitted this bug other than just experimenting with edge cases of the socket
interface
New submission from David Caro :
When parsing option like --optionname, --option will match it too
example:
>>> import argparse
>>> parser = argparse.ArgumentParser()
>>> parser = argparse.ArgumentParser()
>>> parser.add_argument('--superstring'
Changes by David Caro :
--
components: +Extension Modules
versions: +Python 2.6
___
Python tracker
<http://bugs.python.org/issue10981>
___
___
Python-bugs-list m
Changes by David Caro :
--
title: options starting with -- match substrings -> argparse: options starting
with -- match substrings
___
Python tracker
<http://bugs.python.org/issu
David Caro added the comment:
It is not an issue, it will try to match all the optional parameters, and if
only one matches, then it will use it:
2110 elif option_string.startswith(option_prefix):
2111 action = self._option_string_actions[option_string
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue10993>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue10983>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue5885>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue10911>
___
___
Python-bugs-list mailing list
Unsubscribe:
David Stanek added the comment:
Should this just be resolved as a "won't fix"?
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue8036>
___
_
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue6584>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue8025>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue7659>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue4492>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue2007>
___
___
Python-bugs-list mailing list
Unsubscribe:
Changes by David Stanek :
--
nosy: +dstanek
___
Python tracker
<http://bugs.python.org/issue9233>
___
___
Python-bugs-list mailing list
Unsubscribe:
301 - 400 of 5613 matches
Mail list logo