[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 ___ _

[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-

[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

[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

[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

[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 __

[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: -

[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

[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
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

[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

[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

[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

[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
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 -

[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:

[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

[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

[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
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 (

[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 _

[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

[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

[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

[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:

[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 __

[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

[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

[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

[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
Changes by Brian Curtin : Removed file: http://bugs.python.org/file16371/issue7863.diff ___ Python tracker ___ ___ Python-bugs-list mailing lis

[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

[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

[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

[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

[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

[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:

[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

[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

[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

[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 ___

[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

[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

[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

[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

[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

[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

[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

[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 ___ __

[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

[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

[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 _

[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

[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 __

[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 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

[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 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

[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

[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

[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

[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

[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

[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 ___

[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

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

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: > "OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are > synonyms for SSL_library_init()" The patch calls OpenSSL_add_all_algorithms(), though. (yes, it's a different one :-)) http://www.openssl.org/docs/crypto/OpenSSL_add_all_algorithms.html

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-04-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Apr 21, 2010 at 2:33 PM, Jess Austin wrote: .. > It might seem like the latter behavior is marginally better, but really this > is just a mess, since a date-datetime comparison TypeErrors in all > directions.  I appreciate Alexander's more experi

[issue8465] re: Backreferences vs. escapes: a silent failure solved

2010-04-21 Thread STINNER Victor
Changes by STINNER Victor : -- title: Backreferences vs. escapes: a silent failure solved -> re: Backreferences vs. escapes: a silent failure solved ___ Python tracker ___ __

[issue7332] python script segment fault at PyMarshal_ReadLastObjectFromFile in import_submodule

2010-04-21 Thread Kees Cook
Kees Cook added the comment: The stack protector will add 8 (aligned, so possibly padded) bytes to each stack frame of functions with arrays of 8 or greater bytes. So if things are marginal, this could make the difference between Pythons compiled with/without -fstack-protector. N.B. if rPat

[issue8465] Backreferences vs. escapes: a silent failure solved

2010-04-21 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> pitrou nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8314] test_ctypes fails in test_ulonglong on sparc buildbots

2010-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: I was going to say that I think that this issue can be closed now... ... but the src/sparc/v8.S file still looks wrong to me: Martin fixed one missing FFI_TYPE_UINT64 case, but it looks to me as though there's another one, in ffi_call_v8. The code starting

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

2010-04-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: I'm in favor of removing that support, too, but please check with python-dev whether anybody thinks a proper deprecation cycle (deprecated in 3.2, removed in 3.3) is needed. -- ___ Python tracker

[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: That patch makes no sense. According to SSL_library_init(3SSL), "OpenSSL_add_ssl_algorithms() and SSLeay_add_ssl_algorithms() are synonyms for SSL_library_init()" So it shouldn't really matter which of these you call, and it should be sufficient to call onl

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

2010-04-21 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- assignee: -> dmalcolm ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-04-21 Thread Jess Austin
Jess Austin added the comment: To be systematic, without the patch: >>> D(1900, 1, 1) > DT(1900, 1, 1) False >>> D(1900, 1, 1) < DT(1900, 1, 1) False >>> DT(1900, 1, 1) > D(1900, 1, 1) Traceback (most recent call last): File "", line 1, in TypeError: can't compare DT to D >>> DT(1900, 1, 1)

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

2010-04-21 Thread Torsten Landschoff
New submission from Torsten Landschoff : [I would assign priority minor to this, but the tracker won't let me] I really like the online documentation features of python. However, I wonder about the output of the following simple example: class Descriptor(object): """Doc of a non-data descr

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-04-21 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: You're absolutely right. Patch in attachment. -- keywords: +patch Added file: http://bugs.python.org/file17026/asyncore.patch ___ Python tracker

[issue8478] tokenize.untokenize first token missing failure case

2010-04-21 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: -> georg.brandl nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue1673409] datetime module missing some important methods

2010-04-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Apr 21, 2010 at 2:03 PM, Mark Dickinson wrote: .. > (BTW, as well as the newly introduced division methods, td.tosecs already > exists, except that it's spelt td.total_seconds.) Aggrrr! How did that slip in? :-) 8639913600.0 Shouldn't td.

[issue8487] os.mknod() fails on NFS mounted directories

2010-04-21 Thread Georg Brandl
Georg Brandl added the comment: Closing this, as it is not an issue with Python. -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker ___ ___

[issue2736] datetime needs an "epoch" method

2010-04-21 Thread Mark Dickinson
Changes by Mark Dickinson : -- nosy: +amaury.forgeotdarc ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[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: Hello Here’s another approach, which has to be used explicitly but provides much more flexible completion: http://pypi.python.org/pypi/optcomplete I ask the author some time ago if he’d adapt it to argparse; he answered he wouldn’t have time but it shouldn’t be

[issue2736] datetime needs an "epoch" method

2010-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: Close issue 1673409 as a duplicate of this one; combining nosy lists. -- nosy: +catlee, erik.stephens, guettli, jribbens, mark.dickinson, pitrou, skip.montanaro, srittau, steve.roberts, tim_one, tomster ___ Python

[issue1673409] datetime module missing some important methods

2010-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: Closing this as a duplicate of issue 2736, as suggested. I'll combine the nosy lists. (BTW, as well as the newly introduced division methods, td.tosecs already exists, except that it's spelt td.total_seconds.) -- resolution: -> duplicate status: op

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-04-21 Thread R. David Murray
R. David Murray added the comment: By the way, the __getattr_ was in the very first version of the code checked in to the repository. I think the chances of removing it are pretty much zero :) -- ___ Python tracker

[issue2706] datetime: define division timedelta/timedelta

2010-04-21 Thread Mark Dickinson
Mark Dickinson added the comment: Ah, yes. Sorry, Victor! There's actually no acknowledgement in Misc/NEWS: it's not *that* common to put acknowledgements there, and I'm not sure it's necessary here, but I've fixed the commit message. -- ___ Pyt

[issue8487] os.mknod() fails on NFS mounted directories

2010-04-21 Thread Charles-Francois Natali
Charles-Francois Natali added the comment: > Well, this looks like a filesystem problem more than a Python problem. The error (errno 2) comes from the mknod() system call itself. Definitely. @Nikratio Just to be sure, could you provide the result of: - strace ~/tmp/test.py from NFS-mounted dir

[issue8483] asyncore.dispatcher's __getattr__ method produces confusing effects

2010-04-21 Thread R. David Murray
R. David Murray added the comment: Well, the attribute error message could be fixed, too, by enclosing the forwarding getattr in a try/except and generating the "correct" attribute error text. Changing the forwarding behavior itself is the kind of issue that would need to be discussed on pyt

[issue4256] optparse: 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:36 AM, Andy Buckley wrote: > Or to add the option just before arg parsing, if it has not already been > defined? Something like this was suggested before and it doesn't really work out well. It means the first time you call .parse_a

[issue1673409] datetime module missing some important methods

2010-04-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: With issue2706 accepted, I think this issue can now be rejected because proposed td.tosecs() can now be spelled simply as td/timedelta(seconds=1). The other RFE for a totimestamp() method is a duplicate of issue2736. -- nosy: +Alexander.Belopols

[issue2706] datetime: define division timedelta/timedelta

2010-04-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Can someone (Mark?) add an acknowledgment for Victor Stinner to the NEWS file? My py3k patch was 90% code from Victor's trunk patch. -- ___ Python tracker _

[issue8478] tokenize.untokenize first token missing failure case

2010-04-21 Thread rb
Changes by rb : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mai

[issue8483] asyncore.dispatcher.__repr__() is weird

2010-04-21 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: > Unfortunately, even if forwarding everything to the socket is > questionable, it would probably be a really bad idea to change it, > since there is likely code in the field depending on this behavior. I agree, even if it would break a code which is funda

[issue8487] os.mknod() fails on NFS mounted directories

2010-04-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue8487] os.mknod() fails on NFS mounted directories

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, this looks like a filesystem problem more than a Python problem. The error (errno 2) comes from the mknod() system call itself. -- nosy: +pitrou ___ Python tracker __

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-04-21 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue5516] equality not symmetric for subclasses of datetime.date and datetime.datetime

2010-04-21 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Upon further reflection I am -1 on this patch. First, as implemented this patch changes behavior of an explicit invocation of date.__eq__. The patch proposes to remove the following tests: -# Neverthelss, comparison should work with the base-c

[issue8486] threading.Event()

2010-04-21 Thread R. David Murray
R. David Murray added the comment: This is a duplicate of #5998, which was rejected. -- nosy: +r.david.murray priority: -> normal resolution: -> rejected stage: -> committed/rejected status: open -> closed superseder: -> Add __bool__ to threading.Event and multiprocessing.Event ___

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

2010-04-21 Thread Antoine Pitrou
Antoine Pitrou added the comment: After several attempts, I've failed generating a self-signed certificate that would reproduce the issue without relying on an external server. Perhaps there's something else than simply the hashing algorithm. In any case I think I'm simply gonna keep the curr

[issue8483] asyncore.dispatcher.__repr__() is weird

2010-04-21 Thread R. David Murray
R. David Murray added the comment: I somehow missed the fact that B was a dispatcher subclass. Too early in my morning, I guess. So, I think the title of this issue should be "asyncore.dispatcher's __repr__ not being used as fallback for __str__", and your speculation looks likely to be on

  1   2   >