[issue9647] os.confstr() does not handle value changing length between calls

2010-10-02 Thread David Watson
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

[issue10019] json.dumps with indent = 0 not adding newlines

2010-10-03 Thread David Janes
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-13 Thread David Watson
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-15 Thread David Watson
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-18 Thread David Watson
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

[issue2193] Cookie Colon Name Bug

2010-10-18 Thread David Stanek
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.

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-19 Thread David Watson
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-20 Thread David Watson
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-20 Thread David Watson
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-21 Thread David Watson
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

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
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

[issue10198] wave module writes corrupt wav file for zero-length writeframes

2010-10-26 Thread David Barnett
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

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
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

[issue10207] test_file2k crashes under Windows

2010-10-26 Thread David Bolen
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

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-10-29 Thread David Joy
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

[issue9377] socket, PEP 383: Mishandling of non-ASCII bytes in host/domain names

2010-10-31 Thread David Watson
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

[issue4431] Distutils MSVC doesn't create manifest file (with fix)

2010-11-01 Thread David Joy
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

[issue1602] windows console doesn't print utf8 (Py30a2)

2010-11-03 Thread David Sankel
Changes by David Sankel : -- nosy: +David.Sankel ___ Python tracker <http://bugs.python.org/issue1602> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6058] Add cp65001 to encodings/aliases.py

2010-11-03 Thread David Sankel
Changes by David Sankel : -- nosy: +David.Sankel ___ Python tracker <http://bugs.python.org/issue6058> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8863] Display Python backtrace on SIGSEGV, SIGFPE and fatal error

2010-11-15 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker <http://bugs.python.org/issue8863> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

2010-11-16 Thread David Nesting
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

[issue10436] tarfile.extractfile in "r|" stream mode fails with filenames or members from getmembers()

2010-11-17 Thread David Nesting
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"

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2011-02-23 Thread David Beazley
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 >&

[issue11487] build_installer.py should avoid relying on a young Python

2011-03-13 Thread David Bolen
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

[issue11487] build_installer.py should avoid relying on a young Python

2011-03-13 Thread David Bolen
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.&

[issue11487] build_installer.py should avoid relying on a young Python

2011-03-13 Thread David Bolen
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

[issue11487] build_installer.py should avoid relying on a young Python

2011-03-13 Thread David Bolen
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

[issue11021] email MIME-Version headers for each part in multipart message

2011-03-14 Thread David Caro
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

[issue11552] Confusing error message when hook module cannot be loaded

2011-03-14 Thread cournapeau david
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

[issue11629] Reference implementation for PEP 397

2011-03-23 Thread David Fraser
Changes by David Fraser : -- nosy: +davidfraser ___ Python tracker <http://bugs.python.org/issue11629> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-24 Thread David Kirkby
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

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-25 Thread David Kirkby
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

[issue6006] ffi.c compile failures on AIX 5.3 with xlc

2011-03-25 Thread David Kirkby
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

[issue11680] decimal module generates AttributeError: on call to as_integer_ratio

2011-03-25 Thread David Bailey
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

[issue11667] 'configure' script overrides users setting of CFLAGS

2011-03-28 Thread David Kirkby
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

[issue4709] Mingw-w64 and python on windows x64

2011-04-02 Thread cournapeau david
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

[issue9742] Python 2.7: math module fails to build on Solaris 9

2011-04-21 Thread David Schnur
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

[issue11932] Email multipart boundary detection fails on a wrapped header

2011-04-26 Thread David Strauss
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

[issue11932] Email multipart boundary detection fails on a wrapped header

2011-04-26 Thread David Strauss
Changes by David Strauss : Removed file: http://bugs.python.org/file21789/wrapped_multipart.txt ___ Python tracker <http://bugs.python.org/issue11932> ___ ___ Python-bug

[issue11932] Email multipart boundary detection fails on a wrapped header

2011-04-26 Thread David Strauss
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

[issue11932] Email multipart boundary detection fails on a wrapped header

2011-04-26 Thread David Strauss
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

[issue1759169] clean up Solaris port and allow C99 extension modules

2011-04-29 Thread David Kirkby
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

[issue11973] kevent does not accept KQ_NOTE_EXIT (and other (f)flags)

2011-05-01 Thread David Naylor
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-05 Thread David Coles
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-06 Thread David Coles
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-06 Thread David Coles
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-06 Thread David Coles
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

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-06 Thread David Coles
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

[issue1006238] cross compile patch

2011-05-06 Thread David Kern
Changes by David Kern : -- nosy: +David.Kern ___ Python tracker <http://bugs.python.org/issue1006238> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue3754] cross-compilation support for python build

2011-05-06 Thread David Kern
Changes by David Kern : -- nosy: +David.Kern ___ Python tracker <http://bugs.python.org/issue3754> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue12010] Compile fails when sizeof(wchar_t) == 1

2011-05-16 Thread David Coles
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

[issue12143] packaging extension gcc linking fails on Ubuntu Shared

2011-05-21 Thread David Bolen
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

[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-06 Thread David Bolen
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

[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread David Bolen
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

[issue10641] kill_python sometimes fails to kill processes on buildbots

2010-12-07 Thread David Bolen
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

[issue9973] Sometimes buildbot fails to cleanup working copy

2010-12-07 Thread David Bolen
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

[issue10762] strftime('%f') segfault

2010-12-23 Thread David Leonard
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

[issue10762] strftime('%f') segfault

2010-12-24 Thread David Leonard
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

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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. --

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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

[issue8719] buildbot: segfault on FreeBSD (signal 11)

2010-12-27 Thread David Bolen
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

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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

[issue10783] struct.pack() and Unicode strings

2010-12-27 Thread David Beazley
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

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread David Beazley
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

[issue10783] struct.pack() and Unicode strings

2010-12-28 Thread David Beazley
David Beazley added the comment: Thanks everyone for looking at this! -- ___ Python tracker <http://bugs.python.org/issue10783> ___ ___ Python-bugs-list mailin

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2010-12-28 Thread David Kremer
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

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread David Beazley
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

[issue10791] Wrapping TextIOWrapper around gzip files

2010-12-29 Thread David Beazley
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

[issue10787] [random.gammavariate] Add the expression of the distribution in a comprehensive form for random.gammavariate

2011-01-01 Thread David Kremer
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

[issue10869] ast.increment_lineno() increments root node twice

2011-01-08 Thread David White
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

[issue10869] ast.increment_lineno() increments root node twice

2011-01-08 Thread David White
Changes by David White : -- keywords: +patch Added file: http://bugs.python.org/file20317/increment_linenos_27.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10869] ast.increment_lineno() increments root node twice

2011-01-08 Thread David White
Changes by David White : Added file: http://bugs.python.org/file20318/increment_linenos_31.patch ___ Python tracker <http://bugs.python.org/issue10869> ___ ___ Python-bug

[issue10869] ast.increment_lineno() increments root node twice

2011-01-08 Thread David White
Changes by David White : -- resolution: -> fixed Added file: http://bugs.python.org/file20319/increment_linenos_3k.patch ___ Python tracker <http://bugs.python.org/issu

[issue10869] ast.increment_lineno() increments root node twice

2011-01-08 Thread David White
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

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-13 Thread David Beazley
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

[issue10907] OS X installer: warn users of buggy Tcl/Tk in OS X 10.6

2011-01-14 Thread David Beazley
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

[issue7322] Socket timeout can cause file-like readline() method to lose data

2011-01-14 Thread David Beazley
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

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
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'

[issue10981] options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro : -- components: +Extension Modules versions: +Python 2.6 ___ Python tracker <http://bugs.python.org/issue10981> ___ ___ Python-bugs-list m

[issue10981] argparse: options starting with -- match substrings

2011-01-22 Thread David Caro
Changes by David Caro : -- title: options starting with -- match substrings -> argparse: options starting with -- match substrings ___ Python tracker <http://bugs.python.org/issu

[issue10981] argparse: options starting with -- match substrings

2011-01-22 Thread David Caro
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

[issue10993] HTTPSConnection does not close when call close() method

2011-01-24 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue10993> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10983] Errors in http.client.HTTPConnection class (python3)

2011-01-24 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue10983> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5885] uuid.uuid1() is too slow

2011-01-24 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue5885> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10911] cgi: add more tests

2011-01-24 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue10911> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8036] Interpreter crashes on invalid arg to spawnl on Windows

2011-01-26 Thread David Stanek
David Stanek added the comment: Should this just be resolved as a "won't fix"? -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue8036> ___ _

[issue6584] gzip module has no custom exception

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue6584> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8025] TypeError: string argument expected, got 'str'

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue8025> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7659] Attribute assignment on object() instances raises wrong exception

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue7659> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4492] httplib code thinks it closes connection, but does not

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue4492> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue2007> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9233] json.load failure when C optimizations aren't built

2011-01-26 Thread David Stanek
Changes by David Stanek : -- nosy: +dstanek ___ Python tracker <http://bugs.python.org/issue9233> ___ ___ Python-bugs-list mailing list Unsubscribe:

<    1   2   3   4   5   6   7   8   9   10   >