[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-08-30 Thread Bastian Kleineidam
Bastian Kleineidam added the comment: Update: the python2.5 behaviour is the expected and what I think the correct output. -- versions: -Python 2.5 ___ Python tracker ___ _

[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-08-30 Thread Bastian Kleineidam
New submission from Bastian Kleineidam : The urljoin() implementation cuts off the last base URL character if the URL to join starts with a semicolon. Expected output is no cut off characters. $ python2.6 Python 2.6.6 (r266:84292, Aug 29 2010, 12:36:23) [GCC 4.4.5 20100824 (prerelease)] on linu

[issue1351020] PythonD DJGPP-specific patch set for porting to DOS.

2010-08-30 Thread Ben Decker
Ben Decker added the comment: Closed then. The next patch will posted at http://www.caddit.net/pythond/when we get around to doing a version 3 port. Frankly, as the current v2 binary meets most remaining requirements on this legacy platform, we are left with modern syntax compatibility as pri

[issue1367631] maximum length not enforced in cgi.parse()

2010-08-30 Thread R. David Murray
Changes by R. David Murray : -- status: closed -> languishing ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9720] zipfile writes incorrect local file header for large files in zip64

2010-08-30 Thread Craig de Stigter
New submission from Craig de Stigter : Steps to reproduce: # create a large (>4gb) file f = open('foo.txt', 'wb') text = 'a' * 1024**2 for i in xrange(5 * 1024): f.write(text) f.close() # now zip the file import zipfile z = zipfile.ZipFile('foo.zip', mode='w', allowZip64=True) z.write('foo.

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-08-30 Thread Stefan Krah
Stefan Krah added the comment: I just see that the test is running as expected: _testcapi.crash_no_current_thread() is running in a subprocess, so the abort() is harmless on Linux. On Windows, abort() causes the pop-ups, apparently even when it occurs in a subprocess. Perhaps we should general

[issue9718] Python Interpreter Crash

2010-08-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: Well, that's a another issue completely. -- nosy: +benjamin.peterson status: open -> closed ___ Python tracker ___ __

[issue9718] Python Interpreter Crash

2010-08-30 Thread quindraco
quindraco added the comment: I thought as much, so I've already posted on the pyodbc bug tracker, but thanks for the second opinion; I wasn't sure. I realise modules written in C can't be prevented from crashing, but is it really impossible to keep the interpreter from going down with the m

[issue9116] test_capi.test_no_FatalError_infinite_loop crash on Windows

2010-08-30 Thread Stefan Krah
Stefan Krah added the comment: I see the same crash in test_capi, qemu, Windows 7, Debug|x64. The function crash_no_current_thread() introduced in r81142 ultimately calls Py_FatalError, which then aborts. -- nosy: +skrah ___ Python tracker

[issue1868] threading.local doesn't free attrs when assigning thread exits

2010-08-30 Thread Nick Coghlan
Changes by Nick Coghlan : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9718] Python Interpreter Crash

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: This seems to be a pyodbc problem, you should post the issue to them. When an extension module written in C (pyodbc.so) has an issue, there's nothing Python can do to prevent it from crashing the whole process, since C is an insecure language. -- nosy

[issue9719] build_ssl.py: cannot find 'asm64/*.*'

2010-08-30 Thread Sridhar Ratnakumar
Changes by Sridhar Ratnakumar : -- type: -> compile error ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue9719] build_ssl.py: cannot find 'asm64/*.*'

2010-08-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: I cannot arrive at a possible rationale behind that commit, as the only '*.asm' file I see in the openssl-1.0.0a/ directory is ms\update.asm. -- ___ Python tracker ___

[issue9719] build_ssl.py: cannot find 'asm64/*.*'

2010-08-30 Thread Sridhar Ratnakumar
New submission from Sridhar Ratnakumar : With openssl-1.0.0a, I get the following error when building the py3k branch on Windows 64-bit: Traceback (most recent call last): File "build_ssl.py", line 262, in main() File "build_ssl.py", line 234, in main for f in os.listdir("asm"+dirs

[issue5504] ctypes should work with systems where mmap can't be PROT_WRITE and PROT_EXEC

2010-08-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: Like Mark, I too see an error with ctypes due to this change: *** WARNING: renaming "_ctypes" since importing it failed: dlopen(build/lib.macosx-10.5-intel-3.2/_ctypes.so, 2): Symbol not found: _ffi_closure_alloc Referenced from: /Users/sridharr/as/apy

[issue9693] asynchat push_callable() patch

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments: - the signature in the doc is not the same as in the code: (fun, args, kwds) instead of (fun, *args, **kwds) - I don't understand what _Callable is used for; why not just a tuple? (or a function if you prefer) - if you use _Callable, then why do

[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2010-08-30 Thread R. David Murray
Changes by R. David Murray : -- nosy: +orsenthil versions: -Python 2.5, Python 2.6, Python 3.3 ___ Python tracker ___ ___ Python-bugs-

[issue9718] Python Interpreter Crash

2010-08-30 Thread quindraco
New submission from quindraco : I am attaching my stacktrace from using Python 2.6, but I get identical behaviour in 2.7. I suspect that at least one of the underlying modules I'm using is broken, but the interpreter shouldn't crash just because an external module is broken, so I'm reporting

[issue9693] asynchat push_callable() patch

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Updated patch which fixes a little test error. -- Added file: http://bugs.python.org/file18683/asynchat-push-callable.patch ___ Python tracker __

[issue1353344] python.desktop

2010-08-30 Thread Terry J. Reedy
Terry J. Reedy added the comment: I asked because there was no such thing in the Unix I once used and I have never used Linux (yet). I take Georg's answer to mean that this is not obviously obsolete and should be left open. -- ___ Python tracker <

[issue9717] operator module - "in place" operators documentation

2010-08-30 Thread Arnaud Delobelle
New submission from Arnaud Delobelle : More detailed explanation of how in place operators work, and how they are related to the operator module iadd, isub, ... functions. Submitted following this message on python-list: http://mail.python.org/pipermail/python-list/2010-August/1254243.html --

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Fixed in r84370. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Pytho

[issue9716] The inittab modules cannot be packages

2010-08-30 Thread Kay Hayen
New submission from Kay Hayen : Hello, I try to include modules with PyImport_AppendInittab or PyImport_ExtendInittab and that works fine. But if these modules are part of a package, i.e. I provide "package_name.module_name" as the name, they never get considered. Is there any way to add a pa

[issue1351020] PythonD DJGPP-specific patch set for porting to DOS.

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I don't think there's any point in including DJGPP support in the Python tree (DJGPP targets MS-DOS, which is completely marginal today). Furthermore, the patch has no chance of applying cleanly on the current source tree. I would suggest that people interest

[issue1372650] Cookie and multiple names

2010-08-30 Thread Mark Lawrence
Mark Lawrence added the comment: A patch is attached to #1375011. -- dependencies: -Improper handling of duplicate cookies nosy: +BreamoreBoy resolution: -> duplicate status: open -> closed superseder: -> Improper handling of duplicate cookies ___

[issue1367631] maximum length not enforced in cgi.parse()

2010-08-30 Thread Mark Lawrence
Mark Lawrence added the comment: No reply to msg109880. -- resolution: -> wont fix status: open -> closed ___ Python tracker ___ _

[issue1353344] python.desktop

2010-08-30 Thread Georg Brandl
Georg Brandl added the comment: That depends. Especially feature requests need not be closed prematurely. -- ___ Python tracker ___ __

[issue1353344] python.desktop

2010-08-30 Thread Mark Lawrence
Mark Lawrence added the comment: 3 weeks since msg113207 and no response. Seriously, what is a reasonable time before closing as out of date? -- nosy: +BreamoreBoy ___ Python tracker __

[issue1351020] PythonD DJGPP-specific patch set for porting to DOS.

2010-08-30 Thread Mark Lawrence
Mark Lawrence added the comment: @Ben are you still interested in this or can it be closed? -- nosy: +BreamoreBoy versions: +Python 3.2 -Python 3.1 ___ Python tracker ___

[issue9704] 3.2 - zlib.pc.in is missing in source tree

2010-08-30 Thread Sridhar Ratnakumar
Sridhar Ratnakumar added the comment: On 2010-08-28, at 12:48 AM, Martin v. Löwis wrote: > > Martin v. Löwis added the comment: > > Ok, I have now added these files in r84332. Thanks! -- ___ Python tracker ___

[issue7511] msvc9compiler.py: ValueError: [u'path']

2010-08-30 Thread Stefan Krah
Stefan Krah added the comment: > Stefan (sorry for the misattribution in my previous message), can you test > with 3.2 and 3.1 and adjust versions if needed? Not easily at the moment. I just noticed that I replaced my only Express installation with a Pro trial-edition. Anyone else? -

[issue7546] msvc9compiler.py: add .asm extension

2010-08-30 Thread Stefan Krah
Stefan Krah added the comment: For Visual Studio Express this issue depends on issue 7511. -- dependencies: +msvc9compiler.py: ValueError: [u'path'] ___ Python tracker ___ __

[issue7546] msvc9compiler.py: add .asm extension

2010-08-30 Thread Stefan Krah
Stefan Krah added the comment: I have a new patch with tests, but I'm not quite satisfied with it. The remaining problem is that the choice of ml64 or ml is fragile if a user has executed `vcvarsall xyz`, and we attempt to use the resulting environment. For example, if `vcvarsall amd64` has be

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not really, but in previous versions it would fail as soon as you try to connect: >>> s = ssl.wrap_socket(socket.socket(), keyfile="XXX") >>> s.connect(("svn.python.org", 443)) Traceback (most recent call last): File "", line 1, in File "/home/antoine/cpy

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Are we sure? Do we have a reference which states that? -- ___ Python tracker ___ ___ Python-bugs-

[issue9711] ssl.SSLSocket's keyfile argument seems to be ignored if specified without certfile

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Good catch. keyfile without certfile should be forbidden, and raise a ValueError. -- components: +Library (Lib) stage: -> needs patch type: -> behavior versions: +Python 3.2 ___ Python tracker

[issue9700] semaphore errors on AIX 6.1

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in r84366 (py3k), r84367 (3.1), r84368 (2.7). Thanks for your contribution! -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: -Python 2.6, Python 3.3

[issue9650] format codes in time.strptime docstrings

2010-08-30 Thread Skip Montanaro
Skip Montanaro added the comment: >> Did my suggestion to alter pydoc output so it always contains a link >> to the enclosing module's documentation not seem like a reasonable >> compromise? Catherine> I actually don't understand how that would help. The ``pydoc Catherine> time

[issue9712] tokenize yield an ERRORTOKEN if the identifier starts with a non-ascii char

2010-08-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84364 -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ __

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > File I/O and memory I/O would have more uniform in their APIs and thus be > easier to document, describe and use. Currently, one class is used to do > file I/O. That's wrong. Various classes are used for file I/O: FileIO, Buffered{Reader,Writer,Random}, Text

[issue9715] io doc improvements

2010-08-30 Thread Skip Montanaro
Skip Montanaro added the comment: >> Finally, not specific to this change, but I wonder if rather than >> having distinct io.StringIO and io.BytesIO classes it would be better >> to have a single io.MemoryIO class which takes mode arguments just >> like io.FileIO?  The correspondenc

[issue9650] format codes in time.strptime docstrings

2010-08-30 Thread Catherine Devlin
Catherine Devlin added the comment: > Did my suggestion to alter pydoc output so it always contains a link to the > enclosing module's documentation not seem like a reasonable compromise? I actually don't understand how that would help. The ``pydoc time`` output doesn't include any informatio

[issue9633] pdb go stack up/down

2010-08-30 Thread Meador Inge
Changes by Meador Inge : -- nosy: +meador.inge ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "The default mode is ``'r'`` (open for reading text, synonym of > ``'rt'``)". I liked the original wording better. Well, people use "r" in practice, and "rt" is a somewhat rarer alternative. We could drop the "synonym..." part entirely. --

[issue9715] io doc improvements

2010-08-30 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2010/8/30 Skip Montanaro : > > Skip Montanaro added the comment: > > A couple wording comments: > > "All streams are careful about the type of data you give to them" > would read better as "All streams accept specific types of data". > > "The default mode is

[issue9715] io doc improvements

2010-08-30 Thread Skip Montanaro
Skip Montanaro added the comment: A couple wording comments: "All streams are careful about the type of data you give to them" would read better as "All streams accept specific types of data". "The default mode is ``'r'`` (open for reading text, synonym of ``'rt'``)". I liked the original wor

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed in r84357 (py3k) and r84358 (3.1). Backporting to 2.7 would be too much work. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed versions: -Python 2.7 ___ Python

[issue9713] Py_CompileString fails on non decode-able paths.

2010-08-30 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1731717] race condition in subprocess module

2010-08-30 Thread red
red added the comment: I'm using an old Plone/Zope Product, PHParser, that uses the popen2 call ... same problem for me. Is there a thread-safe alternative to execute subprocesses in threads? I need a patch!!! thanks in advance!!! -- nosy: +shaphiro __

[issue1633863] AIX: configure ignores $CC

2010-08-30 Thread Sébastien Sablé
Sébastien Sablé added the comment: The workaround that I have been using is to call configure like this: ./configure --with-gcc=${CC} (I usually define CC like this: export CC=xlc_r) Python compiles fine on AIX 6.1 with that. -- nosy: +sable ___ P

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : Added file: http://bugs.python.org/file18680/iodoc.patch ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file18679/iodoc.patch ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9715] io doc improvements

2010-08-30 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is an improvement patch for the :mod:`io` documentation. It adds an user-friendly overview, and makes a couple of other fixes/improvements. There's a problem where I want to make a link to a glossary term while using the plural form ("abstract base clas

[issue9714] urllib2 digest authentication doesn't work when connecting to a Catalyst server.

2010-08-30 Thread Kuno Woudt
New submission from Kuno Woudt : In the WWW-Authenticate header Catalyst::Authentication::Credential::HTTP sends the following value for qop: qop="auth,auth-int" This is identical to the example given in section 3.5 of the RFC (http://tools.ietf.org/html/rfc2617#section-3.5 ), so I assume thi

[issue9700] semaphore errors on AIX 6.1

2010-08-30 Thread Sébastien Sablé
Sébastien Sablé added the comment: This is also related to issue1234: It was the same issue but concerning AIX 5.2. This patch corrects the problem in the same way but for AIX 6.1. regards -- ___ Python tracker _

[issue843590] 'macintosh' encoding alias for 'mac_roman'

2010-08-30 Thread Martin von Gagern
Martin von Gagern added the comment: Maybe I'm missing something here, but r84229 looks to me like aliasing 'macintosh' to itself, instead of to 'mac_roman'. 'csmacintosh' and 'mac' are not included at all, without any comment as to why they have been omitted. Makes me wonder why my issue8435

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-08-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Raymond Hettinger wrote: > > Raymond Hettinger added the comment: > > FYI, there is a section of the docs devoted to notifications and attribution > licenses: > > http://docs.python.org/license.html#licenses-and-acknowledgements-for-incorporated-softwar

[issue9119] Python download page needs to mention crypto code in Windows installer

2010-08-30 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Terry J. Reedy wrote: > > Terry J. Reedy added the comment: > > This is really two issues: docs and windows builds. As for docs: > > Many of the module doc pages mention original authors and give urls for > further info. The ssl page already says " This

[issue9713] Py_CompileString fails on non decode-able paths.

2010-08-30 Thread Campbell Barton
New submission from Campbell Barton : On linux I have a path which python reads as... /data/test/num\udce9ro_bad/untitled.blend os.listdir("/data/test/") returns this ['num\udce9ro_bad'] But the same path cant be given to the C api's Py_CompileString Where fn is '/data/test/num\udce9ro_bad/un

[issue9712] tokenize yield an ERRORTOKEN if the identifier starts with a non-ascii char

2010-08-30 Thread Florent Xicluna
New submission from Florent Xicluna : from io import BytesIO from tokenize import tokenize, tok_name sample = 'éléphants = "un éléphant, deux éléphants, ..."\nprint(éléphants)\n' sampleb = sample.encode('utf-8') exec(sample) # output: un éléphant, deux éléphants, ... exec(sampleb) # output: un