[issue1673409] datetime module missing some important methods

2010-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: > Aggrrr! How did that slip in? :-) Blame Antoine. :) (See issue 5788 and revision 76529.) > Shouldn't td.total_seconds() return Decimal? Maybe in py4k ... Yes, that would have been nice. I'm not sure that the Decimal type is well-established enough yet

[issue8480] test_gdb: No frame is currently selected.

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: Victor's patch look fine to me (at least, I can't see a problem with it). If so, we should keep it. In any case, it does fix the problem reported here. -- ___ Python tracker ___

[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Domen
New submission from Domen : Module smtplib, line 574, in login Module smtplib, line 538, in encode_cram_md5 Module hmac, line 72, in __init__ TypeError: character mapping must return integer, None or unicode Following traceback occurs when doing connection.login(u'foo...@domain.com', 'justd

[issue5103] ssl.SSLSocket timeout not working correctly when remote end is hanging

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch, with tests. I also had to rework the asyncore-based test server in test_ssl, and fixed an omission in _ssl.c's do_handshake method. (works with OpenSSL 0.9.8k and 1.0.0) -- keywords: +patch stage: -> patch review Added file: http://b

[issue8484] ssl socket with certificate verification fails on SHA256 digest algorithm

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > The patch calls OpenSSL_add_all_algorithms(), though. Ah, ok. The patch looks fine to me, then. -- title: ssl socket with certificate verification fails on SHA256 digest algorithm -> ssl socket with certificate verification fails on SHA256diges

[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: SMTP (RFC 2821) doesn't support non-ASCII envelope addresses. A better behavior here would be for connection.login to raise a ValueError or a TypeError whenever a non-str is passed in. RFC 5336, though, adds the UTF8SMTP extension, which adds support fo

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread R. David Murray
R. David Murray added the comment: I don't see why --help-options would need to be listed in help. We could pick a more obscure name, too. The point of this option is to support tools, not users. -- ___ Python tracker

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Filip Gruszczyński
Filip Gruszczyński added the comment: I'll be happy to both fix things pointed by Steven and try some other approach, if that's required, but I would rather do it after a consesus is reached, so I don't have to do the same stuff several times (changing argparse tests requires some work - it's

[issue8490] asyncore test suite

2010-04-21 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : The patch in attachment provides actual tests for asyncore.dispatcher class API, including all handle_* callback methods. -- assignee: josiahcarlson files: asyncore.patch keywords: patch, patch messages: 103896 nosy: giampaolo.rodola, josiah.carls

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Steven Bethard
Steven Bethard added the comment: 2010/4/21 Filip Gruszczyński : > I don't really understand, why can't we just check if > help-options is provided by the user and add our own, > if it is not? I'm sure it would be possible to do it this way. The question is whether it makes sense to from the pe

[issue8488] Docstrings of non-data descriptors "ignored"

2010-04-21 Thread R. David Murray
R. David Murray added the comment: There is either an issue or a python-dev (or maybe even python-ideas) discussion about this subject somewhere. It's a much deeper issue than it appears on the surface. -- nosy: +r.david.murray versions: -Python 2.5, Python 2.6, Python 3.1

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Éric Araujo
Éric Araujo added the comment: An obscure name reusing terms like “compword” that can be found easily in Python docs and Bash completion docs would be best. -- ___ Python tracker __

[issue4256] optparse/argparse: provide a simple way to get a programmatically useful list of options

2010-04-21 Thread Steven Bethard
Steven Bethard added the comment: On Wed, Apr 21, 2010 at 12:45 PM, Éric Araujo wrote: > An obscure name reusing terms like “compword” that can be found easily in > Python docs and Bash completion docs would be best. Seems sensible. Does anyone know if zsh uses the same or a different mechani

[issue8489] smtplib.SMTP.login() breaks with unicode input

2010-04-21 Thread Domen
Domen added the comment: Plone currently just passes unicode data around, maybe additional documentation note will do for avoiding such trobules. Thanks for quick response. -- ___ Python tracker _

[issue8491] Need readline command and keybinding information

2010-04-21 Thread Mitchell Model
New submission from Mitchell Model : The documentation of the readline module refers to readline initialization files, but does not give any information about their format or the available commands. I realize that this is a standard part of environments that support readline, not anything spec

[issue8480] test_gdb: No frame is currently selected.

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: @Martin: What is your OS? In msg103442 you wrote that you have gdb 7.0.1. Did you try to remove python-gdb.py? (test_gdb should remove and/or update this file!) I tested test_gdb of py3k on Debian Sid (gdb 7.1) and Ubuntu 9.10 (gdb 7.0): I got a lot of error

[issue8480] test_gdb: No frame is currently selected.

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: See msg103889. I said it's fixed, so I'm not sure what problem you are still trying to solve. -- ___ Python tracker ___ __

[issue8492] Addition to readline module to get dictionary of keystrokes and commands

2010-04-21 Thread Mitchell Model
New submission from Mitchell Model : Requesting a function to be added to the readline module that produces a dictionary of the current keystroke bindings Also, one to write it to a file in readline init file format. This would be a big help for people interested in customizing the behavior of

[issue8492] Addition to readline module to get dictionary of keystrokes and commands

2010-04-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8480] test_gdb: No frame is currently selected.

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: Oops, I read "it doesn't fix", sorry :-) -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue8455] buildbot: test_urllib2_localnet failures (Connection refused) on Tiger buildbot

2010-04-21 Thread David Bolen
David Bolen added the comment: For what it's worth, I added a few debugging statements to a local trunk checkout, and it looks like the port is getting lost somewhere along the way to setup the proxy... So the refused error is accurate and because it's trying the default port 80. Note also t

[issue8493] socket's send can raise errno 35 under OS X, which causes problems in sendall

2010-04-21 Thread Matthew Cowles
New submission from Matthew Cowles : [From a question first posted to python-help] A socket's send function may return 0 if no bytes have been sent. Under at least OS X 10.6.2, it may also raise errno 35 (resource temporarily unavailable) if no network buffers are available. If a Python coder

[issue8484] ssl socket with certificate verification fails on SHA256 digest algorithm

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r80314 (trunk), r80316 (2.6), r80317 (py3k), r80318 (3.1). Thank you! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue8485] Don't accept bytearray as filenames, or simplify the API

2010-04-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Antoine Pitrou wrote: > > Antoine Pitrou added the comment: > > Or perhaps the bytearray can be converted to a bytes object. This is not > optimal performance-wise but is unlikely to make a difference in real-world > code (if you are passing a filename

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Any thoughts on this last bit about using the registry to identify between workstation and server? -- ___ Python tracker ___

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: Here is a short shell script to reproduce the stack overflow: - create 100 Python modules: stack1 imports stack2, stack2 imports stack3, , and stack100 prints "hello" - each module calls os.system("cat /proc/%s/maps|grep stack" % os.getpid()) to display

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-21 Thread Dave Malcolm
Dave Malcolm added the comment: I'm attaching a new version of the patch, for the py3k branch. I changed my mind back about the breakpoint, using "id" and "builtin_id" as in my original patch. I prefer it since it has a single argument, which makes it very convenient to work with in the vari

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Brian Curtin wrote: > > Brian Curtin added the comment: > > Any thoughts on this last bit about using the registry to identify between > workstation and server? I can't comment on that since I don't know anything much about the MS registry and the entri

[issue8491] Need readline command and keybinding information

2010-04-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8295] add unpack_archive to shutil

2010-04-21 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue8295] add unpack_archive to shutil

2010-04-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +merwok resolution: accepted -> ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue8319] HTMLparser does not handle call to handle_data when a tag contains no data.

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

[issue8325] improve regrtest command line help

2010-04-21 Thread Éric Araujo
Éric Araujo added the comment: Hello. I reviewed the patch and it looks good to me apart from two minor things. There’s one typo, “argumets”, and one nitpick: I’ve seen a number of programs with more than one usage line, none of them numbers the lines. So remove “1.” and “2.”. Thanks for th

[issue8295] add unpack_archive to shutil

2010-04-21 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> accepted ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16371/issue7863.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread Kees Cook
Kees Cook added the comment: So, digging a little further, I think this is a now-fixed kernel bug with stack growth. There were known issues prior to Sep 2009 with 64bit stack growth with ASLR, which is enabled by default. Upstream fix: http://git.kernel.org/?p=linux/kernel/git/torvalds/lin

[issue7863] platform module doesn't detect Windows 7

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Updated patch to remove the function. MSDN says nothing about available registry keys or their information, at least from what I could tell. I guess it is possible that future versions might not have the value we are looking for, but I kind of doubt that, plus

[issue8380] Port of the gdb7 debugging hooks to the "py3k" branch

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: Thanks for the patch; applied as r80324. As it is an improvement over the status quo, I've applied it; I'll also be closing this issue. I still get test failures which I report as a separate bug report. As for displaying strings: I think it should do what gd

[issue8494] test_gdb assertEndsWith failing

2010-04-21 Thread Martin v . Löwis
New submission from Martin v. Löwis : test_gdb fails on 3k, with the attached output. -- assignee: dmalcolm files: test_gdb.txt messages: 103919 nosy: dmalcolm, loewis severity: normal status: open title: test_gdb assertEndsWith failing versions: Python 3.2 Added file: http://bugs.python

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you Kees, this sounds quite likely. I will still commit the patch to remove the stack buffer, and then close this issue. -- ___ Python tracker __

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in trunk (r80325) and py3k (r80326). I won't backport it to 2.6/3.1 since it's not likely to fix anything in practice -- it's just a nice simplification. Thanks everyone for comments and patches. -- resolution: -> works for me stage:

[issue8494] test_gdb assertEndsWith failing

2010-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue8299] Improve GIL in 2.7

2010-04-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: David, trying to get some more realistic IO benchmarks I did some more tests. The idea is to have a threaded socket server, serving requests that take different amounts of time to process, and see how io response measures up for two classes of reques

[issue8299] Improve GIL in 2.7

2010-04-21 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Sorry, all the benchmarks were missing from my last comment. Here they are: total time avg time/request stddev LEGACY_GIL serial ((30, 500), (2.6908777512225717, 0.08968708313486773, 0.00151646440612788

[issue3864] 26.rc1: test_signal issue on FreeBSD 6.3

2010-04-21 Thread R. David Murray
R. David Murray added the comment: Skips ported to 2.6 in r80295, py3k in r80296, and 3.1 in r80297. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker _

[issue8414] Add test cases for assert

2010-04-21 Thread Gregory Nofi
Gregory Nofi added the comment: I've uploaded new versions of the patch. __debug__: I removed the "if __debug__" clause and switched to skipUnless. Exception args: I replaced str(e) with e.args. Thanks for pointing that out! I had thought args was going to be deprecated but I guess it's not (

[issue7347] Add {Create|Delete}KeyEx to _winreg, doc and test updates

2010-04-21 Thread Brian Curtin
Brian Curtin added the comment: Ported to py3k in r80329. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ P

[issue8414] Add test cases for assert

2010-04-21 Thread Gregory Nofi
Changes by Gregory Nofi : Added file: http://bugs.python.org/file17036/test_grammar.v3.patch ___ Python tracker ___ ___ Python-bugs-list mailin

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: I tried to limit memory allocated on the stack while importing modules. Number of bytes allocated on the stack: - without my patch: 13792 bytes per import - with my patch: 1632 bytes per import (using import_stackoverflow.sh, import a short Python module) I

[issue6085] Logging in BaseHTTPServer.BaseHTTPRequestHandler causes lag

2010-04-21 Thread Santoso Wijaya
Santoso Wijaya added the comment: There is a simple workaround to bypass the hostname resolution mechanism, so that the server can respond faster. # This is a hack to patch slow socket.getfqdn calls that # BaseHTTPServer (and its subclasses) make. # See: http://bugs.python.org/issue6085 # See:

[issue8495] test_gdb: use utf8+surrogateescape charset?

2010-04-21 Thread STINNER Victor
New submission from STINNER Victor : Because of a strange bug, gdb writes random bytes to stdout. test_gdb decodes output as utf8, but these random bytes cause a UnicodeDecodeError: ERROR: test_int (__main__.PrettyPrintTests) Verify the pretty-printing of various "int"/long values -

[issue8495] test_gdb: use utf8+surrogateescape charset?

2010-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- keywords: +patch Added file: http://bugs.python.org/file17039/test_gdb_surrogates.patch ___ Python tracker ___ _

[issue8495] test_gdb: use utf8+surrogateescape charset?

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: py3k tests pass on Debian Sid (gdb 7.1) without the patch, and pass on Ubuntu 9.10 (gdb 7.0) with the patch. -- nosy: +dmalcolm, loewis ___ Python tracker

[issue8496] mailcap.lookup() returns filter iterator rather than list if key is given

2010-04-21 Thread Gregory Nofi
New submission from Gregory Nofi : The lookup method in the Python 3.2 mailcap module still uses filter as if it will return a list, like it did in Python 2. If a value for the "key" argument is passed to the method, the method will return a filter iterator rather than a list. I discovered th

[issue8494] test_gdb assertEndsWith failing: Unable to read information on python frame

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: Looks to be a duplicate of #8482 ("unable to read python frame information"). -- title: test_gdb assertEndsWith failing -> test_gdb assertEndsWith failing: Unable to read information on python frame ___ Python track

[issue6484] No unit test for mailcap module

2010-04-21 Thread Gregory Nofi
Gregory Nofi added the comment: Submitting Python 3 version of test. Note that it currently fails due to Issue8496. It should use the same .mailcap file I submitted earlier. -- Added file: http://bugs.python.org/file17041/test_mailcap.py ___ Python

[issue6484] No unit test for mailcap module

2010-04-21 Thread Gregory Nofi
Changes by Gregory Nofi : Added file: http://bugs.python.org/file17042/test_mailcap.py ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue6484] No unit test for mailcap module

2010-04-21 Thread Gregory Nofi
Changes by Gregory Nofi : Removed file: http://bugs.python.org/file17041/test_mailcap.py ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8482] test_gdb - "(unable to read python frame information)" mismatch

2010-04-21 Thread STINNER Victor
STINNER Victor added the comment: test_gdb of py3k now pass with ./configure --with-pydebug (no optimization <=> -O0), but fail (Unable to read information on python frame) with ./configure (-O3). The test does also fail with -O1. Recompile only ceval.c with -O0 is enough to fix this issue: -

[issue8263] regrtest stops prematurately on FreeBSD buildbot, with "success" result.

2010-04-21 Thread R. David Murray
R. David Murray added the comment: Skip committed to py3k in r80331. -- resolution: -> fixed stage: unit test needed -> committed/rejected status: open -> closed versions: +Python 3.2 ___ Python tracker __

[issue8490] asyncore test suite

2010-04-21 Thread R. David Murray
R. David Murray added the comment: Thanks for writing these. The patch looks good to me (caveat: I only have a passing familiarity with asyncore). A couple of English nits: A server which listen on an address and dispatches the should be 'listens' # EADDRINUSE indicates the socket

[issue8497] Technology and Licensing Related Query

2010-04-21 Thread reynaldo
New submission from reynaldo : Ok -- Forwarded message -- From: "Ian Jacobs" Date: Apr 21, 2010 5:14 AM Subject: Re: Technology and Licensing Related Query To: "Hila Pilcer" On 19 Apr 2010, at 3:32 PM, Hila Pilcer wrote: Hello Hila, W3C specifications may be used at no charg

[issue8497] Technology and Licensing Related Query

2010-04-21 Thread Brian Curtin
Changes by Brian Curtin : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8495] test_gdb: use utf8+surrogateescape charset?

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: I think the "replace" handler would be more appropriate here. -- ___ Python tracker ___ ___ Python-

[issue5650] Obsolete RFCs should be removed from doc of urllib.urlparse

2010-04-21 Thread Senthil Kumaran
Senthil Kumaran added the comment: Updated in the r80336 through r80339. Thanks for the note, Ezio. -- status: open -> closed ___ Python tracker ___ _

<    1   2