[issue5027] xml namespace not understood by xml.sax.saxutils.XMLGenerator

2010-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85858 (3.2), r85859 (3.1) and r85860 (2.7). Thank you! -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bug

[issue10216] json.loads() on str erroneously returns str

2010-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Duplicate of issue10038. -- nosy: +pitrou resolution: -> duplicate status: open -> closed superseder: -> Returntype of json.loads() on strings ___ Python tracker <http://bugs.python.or

[issue8852] _socket fails to build on OpenSolaris x64

2010-10-27 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85868 (3.2), r85869 (3.1) and r85870 (2.7). Thank you. -- resolution: accepted -> fixed stage: commit review -> committed/rejected status: open -> closed ___ Python tracker <http://bug

[issue10215] Mac Python 3.1 installer does less than earlier installers

2010-10-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> ronaldoussoren nosy: +ronaldoussoren ___ Python tracker <http://bugs.python.org/issue10215> ___ ___ Python-bugs-lis

[issue6715] xz compressor support

2010-10-27 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- versions: +Python 3.3 -Python 3.2 ___ Python tracker <http://bugs.python.org/issue6715> ___ ___ Python-bugs-list mailing list Unsub

[issue9981] let make_buildinfo use a temporary directory on windows

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue9981> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10220] Make generator state easier to introspect

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Is it CPython-specific? Does "currently executing" also include "currently closing"? -- nosy: +pitrou ___ Python tracker <http://bug

[issue10221] {}.pop('a') raises non-standard KeyError exception

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +rhettinger type: -> behavior versions: +Python 3.2 -Python 2.6 ___ Python tracker <http://bugs.python.org/issu

[issue6103] Static library (libpythonX.Y.a) installed in incorrect location

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +barry, loewis ___ Python tracker <http://bugs.python.org/issue6103> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10116] Sporadic failures in test_urllibnet

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: committed/rejected -> patch review ___ Python tracker <http://bugs.python.org/issue10116> ___ ___ Python-bugs-list mai

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hirokazu, I've committed your 2.7 patch in r85892. Let's see what the buildbots say. -- resolution: -> fixed status: open -> pending versions: -Python 2.6 ___ Python tracker <http://bugs.p

[issue9295] test_close_open_print_buffered(test_file) sometimes crashes

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Apparently it's fixed! -- stage: needs patch -> committed/rejected status: pending -> closed ___ Python tracker <http://bugs.python

[issue10207] test_file2k crashes under Windows

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the aforementioned patch (r85892) and this seems to be fixed. Thank you! -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Updated patch against py3k. -- Added file: http://bugs.python.org/file19403/memerror.patch ___ Python tracker <http://bugs.python.org/issue5

[issue10038] json.loads() on str should return unicode, not str

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: +1 for fixing this in-tree. We need a patch, though ;) -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I can't manage to reproduce the issue with PyExc_RecursionErrorInst. It seems this instance is only used in a very select condition, that is, when the recursion limit is hit when trying to "normalize" an exception. Therefore, I will add

[issue5437] Singleton MemoryError can hold traceback data and locals indefinitely

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch with improved tests committed in r85896 (3.2) and r85898 (3.1). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue10093] Warn when files are not explicitly closed

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would need opinions on one more thing. The current patch warns when a socket has not been explicitly closed. But it does so even when the socket isn't bound at all. e.g.: $ ./python -c "import socket; socket.socket()" -c:1: ResourceWa

[issue10217] python-2.7.amd64.msi install fails

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis ___ Python tracker <http://bugs.python.org/issue10217> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10222] 3.2 on AIX - Unexpected text ',' encountered.

2010-10-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +sable ___ Python tracker <http://bugs.python.org/issue10222> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6715] xz compressor support

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: Could you upload the patch to http://codereview.appspot.com/? -- ___ Python tracker <http://bugs.python.org/issue6715> ___ ___

[issue10093] Warn when files are not explicitly closed

2010-10-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > If a new, unbound socket uses some form of OS resource, then a warning > is needed. Is their an equivalent limitation like there is with file > descriptors as to how many an OS can possibly have open at once? A socket *is* a file descriptor (under

[issue6715] xz compressor support

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > @pitrou: Why is this marked "Python 3.3"? If the error handling in > the C module is corrected, it's in a good enough shape to be committed > before 3.2b1, and the remaining bugs ironed out until final. I think it needs a real review

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > That's what I'm referring to: most Python applications are > written with the fact in mind, that garbage collection will > close the files or socket. > > That's a perfectly fine way of writing Python applications, Some peo

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: You forgot to attach your patch. -- ___ Python tracker <http://bugs.python.org/issue10227> ___ ___ Python-bugs-list mailin

[issue10228] Refleak run of test_dbm fails when several dbm modules are available

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is only when several dbm modules are compiled in (e.g. "gnu" and "dumb"): $ ./python -m test.regrtest -R 3:2 test_dbm [1/1] test_dbm beginning 5 repetitions 12345 test test_dbm failed -- Traceback (most recent call last): File

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The sequence protocol (if I'm not confused) only work with a PyObject ** array. -- ___ Python tracker <http://bugs.python.org/is

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch (also fixes a small refleak). -- Added file: http://bugs.python.org/file19411/deallocwarn4.patch ___ Python tracker <http://bugs.python.org/issue10

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As an additional point: the PyMemoryObject has a "base" member that I > think is redundant. the "view.obj" should be sufficient. Yes, that's what I think as well. -- ___ Python t

[issue10229] Refleak run of test_gettext fails

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This is probably caused by r85223. $ ./python -m test.regrtest -R 3:2 test_gettext [1/1] test_gettext beginning 5 repetitions 12345 test test_gettext failed -- Traceback (most recent call last): File "/home/antoine/py3k/deallocwarn/Lib/test/test_gette

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the patch in r85920; let's watch the buildbots. Also, you'll see many warnings in the test suite if compiled --with-pydebug. -- resolution: -> fixed stage: -> committed/rejected _

[issue10227] Improve performance of MemoryView slicing

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I'd have to take another look with the profiler to figure out how > bytes slicing in 3.0 works, but I suspect that it is somehow > fasttracked passed the creation of slice objects, etc. I don't think it is fasttracked at all. Even pl

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Whether you write an application with automatic closing of > the file/socket at garbage collection time in mind, or you explicitly > close the file/socket, the timing is the same. No, because objects can be kept alive through tracebacks (or referen

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > The warning will trigger without any reason. Well, by now you should have understood the reason, so I conclude that you are either 1) deaf 2) stupid 3) deliberately obnoxious. This is my last answer to you on this topic. Good

[issue10093] Warn when files are not explicitly closed

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: The buildbots showed no major issue, so this issue is now resolved. The warnings expose a lot of issues in the stdlib that deserve addressing, though ;) -- status: open -> closed ___ Python tracker &l

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : This fixes all the warnings because of files not closed explicitly in test_tarfile. -- components: Library (Lib) files: tarfileclose.patch keywords: patch messages: 119909 nosy: lars.gustaebel, pitrou priority: normal severity: normal stage: patch

[issue10229] Refleak run of test_gettext fails

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for catching this. Attached patch fixes the error with -R and > works without -R too, please review. It looks good to me. -- ___ Python tracker <http://bugs.python.org/i

[issue10234] ResourceWarnings in test_subprocess

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : Since r85920, test_subprocess has been showing a bunch of ResourceWarnings. It seems that the pipe objects don't get explicitly closed in wait() or __del__, while they do in communicate(). -- components: Library (Lib), Tests messages: 119916

[issue7547] test_timeout should skip, not fail, when the remote host is not available

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85931 (3.2), r85932 (3.1) and r85933 (2.7). -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.o

[issue10235] test_argparse depends on the COLUMNS environment variable

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : Changing it can produce failures, e.g.: $ COLUMNS=178 ./python -m test.regrtest -v test_argparse This can be seen on one of the buildbots: http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%203.x/builds/685/steps/test/logs/stdio

[issue10235] test_argparse depends on the COLUMNS environment variable

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Already reported actually. -- resolution: -> duplicate status: open -> closed superseder: -> test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80 ___ Python track

[issue9553] test_argparse.py: 80 failures if COLUMNS env var set to a value other than 80

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: As noted in issue10235, this is responsible for buildbot failures: http://www.python.org/dev/buildbot/all/builders/PPC%20Leopard%203.x/builds/685/steps/test/logs/stdio -- nosy: +janssen, pitrou ___ Python tracker

[issue10237] failure in Barrier tests

2010-10-29 Thread Antoine Pitrou
New submission from Antoine Pitrou : A buildbot has shows occasional failures in the Barrier tests: [299/349] test_threading [39130 refs] [39501 refs] [39501 refs] [39491 refs] [39499 refs] Unhandled exception in thread started by Traceback (most recent call last): File "/home/build

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +brett.cannon ___ Python tracker <http://bugs.python.org/issue10233> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10233] fix test_tarfile ResourceWarnings

2010-10-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thanks for the review. I've committed a modified patch in r85955. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.pyth

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think there should be a try..finally block so that those files get closed even when there's an error in-between. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/is

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: > How does v2 look? Nice, thank you! -- ___ Python tracker <http://bugs.python.org/issue10246> ___ ___ Python-bugs-list mai

[issue10237] failure in Barrier tests

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: I also get a failure here: == FAIL: test_default_timeout (test.test_threading.BarrierTests) -- Traceback (most recent call

[issue10246] uu.encode fd leak if arguments are filenames

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85975 (3.2). I guess we'll do a big svnmerge to other branches later. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 -Python 3.3 ___

[issue10248] Fix resource warnings in test_xmlrpclib

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis stage: -> patch review type: -> resource usage versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/i

[issue10250] Fix resource warnings in test_urllib2_localnet

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +orsenthil stage: -> patch review type: -> resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue10247] mold builder

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- Removed message: http://bugs.python.org/msg119981 ___ Python tracker <http://bugs.python.org/issue10247> ___ ___ Python-bugs-list m

[issue10247] mold builder

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: -donlorenzo resolution: -> invalid status: open -> closed ___ Python tracker <http://bugs.python.org/issue10247> ___ __

[issue10251] Fix resource warnings in test_file

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85977, thanks. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.or

[issue10249] Fix resource warnings in test_unicodedata

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Fixed in r85978, thank you. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> closed versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.or

[issue10252] Fix resource warnings in distutil tests

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- stage: -> patch review type: -> resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +amaury.forgeotdarc, benjamin.peterson stage: -> patch review type: -> resource usage versions: +Python 2.7, Python 3.1, Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.python.org/i

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: It should be closed only if closefd is true. Does it fix a warning in the test suite? Otherwise I think it would need its own test. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10

[issue10254] unicodedata.normalize('NFC', s) regression

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Confirmed on Python 3.2. -- nosy: +haypo, loewis, pitrou versions: +Python 3.2 ___ Python tracker <http://bugs.python.org/issue10

[issue10253] Fix fd leak in fileio.c and test resource warnings

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85982, thank you. I will backport later. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10238] ctypes not building under OS X 10.6 with LLVM/Clang 2.8

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not sure this is a blocker. There are various assembler syntaxes for x86 and chances are LLVM uses a different one from gcc. -- assignee: -> theller nosy: +georg.brandl, pitrou, theller ___ Python tracker &l

[issue10236] Sporadic failures of test_ssl

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: The errno printed here is just an error which is expected and tested for. The verbose run was ok, it's the silent run just before which produced an error (or several), but unfortunately: test test_ssl failed -- multiple errors occurred; run in verbose

[issue10250] Fix resource warnings in test_urllib2_localnet

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r85983, thank you. -- nosy: +pitrou resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-30 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments about the patch: - this seems to be some dead code: if (nattrs <= 1) { if (!PyArg_UnpackTuple(args, "attrgetter", 1, 1, &attr)) return NULL; - you can't call PyUnicode_GET_SIZE or PyUnicode_AS_U

[issue10261] tarfile iterator without members caching

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- type: feature request -> resource usage versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker <http://bugs.python.org/issu

[issue10263] "python -m site" does not print path details

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +eric.araujo, ncoghlan ___ Python tracker <http://bugs.python.org/issue10263> ___ ___ Python-bugs-list mailing list Unsub

[issue10160] operator.attrgetter slower than lambda after adding dotted names ability

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: The PyUnicode_GET_SIZE issue was still there, but I've fixed it and committed in r86036. Thanks for your contribution! -- resolution: -> fixed stage: patch review -> committed/rejected status: ope

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > It's possible that this change will lead to fds leaking if someone is > passing in a fd I don't think so, why do you say that? That said, there's an indentation problem in your patch. -- nosy: +pitrou _

[issue10264] Fix resource warnings in test_smtplib

2010-10-31 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola, r.david.murray stage: -> patch review type: -> resource usage ___ Python tracker <http://bugs.python.org/i

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Now that the previous patch has been committed, could you post a patch against current SVN? -- nosy: +pitrou type: -> resource usage versions: +Python 3.2 -Python 3.3 ___ Python tracker <http://bugs.pyth

[issue10266] uu.decode fd leak if in_file is a filename

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Oops, sorry. I hadn't seen that this was about a different function. I've committed the patch in r86037. -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.py

[issue10267] test_ttk_guionly leaks many references

2010-10-31 Thread Antoine Pitrou
New submission from Antoine Pitrou : This can be seen on all 3 branches: $ ./python -m test.regrtest -uall -R 3:2 test_ttk_guionly [306/349] test_ttk_guionly beginning 5 repetitions 12345 . test_ttk_guionly leaked [590, 590] references, sum=1180 -- components: Tkinter messages

[issue6715] xz compressor support

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I feel guilty of having said, some months ago, that "Well, I wouldn't say bz2module is the best module out there, but as you say it's probably good enough" (my words). It's true that bz2module is not awful in terms of coding style or

[issue10265] Fix fd leak in sunau

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r86067. Thank you Brian! -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker <http://bugs.python.or

[issue10272] SSL handshake timeouts not caught by transient_internet

2010-10-31 Thread Antoine Pitrou
New submission from Antoine Pitrou : The issue here is that ssl is using its own exception class rather than the socket module's "timeout" class: test test_httplib failed -- Traceback (most recent call last): File "/Users/pythonbuildbot/buildarea/3.x.hansen-osx-

[issue10273] Clean-up Unittest API

2010-10-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would prefer assertRegex to assertRegexp. -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10273> ___ ___

[issue10260] Add a threading.Condition.wait_for() method

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: This looks useful indeed. -- nosy: +jyasskin, pitrou ___ Python tracker <http://bugs.python.org/issue10260> ___ ___ Python-bug

[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Right, IMAP_SSL should first accept an additional context argument as noted in issue10274. Then it can be patched to optionally call ssl.match_hostname on the server certificate. That second part can mimick what is done by HTTPSConnection: http

[issue10274] imaplib should provide a means to validate a remote server ssl certificate(s)

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Sorry, the actual issue number is issue8808. -- dependencies: +imaplib should support SSL contexts -imaplib should provide a means to validate a remote server ssl certificate(s) ___ Python tracker <h

[issue10278] add time.wallclock() method

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, the problem is that the "appropriate test" is not easy to guess a priori, so it would be useful for the stdlib to provide the right tool for the job. As for where it should live, I have no strong opinion, but it's true that the ti

[issue10278] add time.wallclock() method

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > Well, the problem is that the "appropriate test" is not easy to guess a > > priori, so it would > > be useful for the stdlib to provide the right tool for the job. > > This sounds like an argument against this feature, no

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10281> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10280] nntp_version set to the most recent advertised version

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10280> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue8805] urllib should support SSL contexts

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Degrade; this old implementation (urllib vs urllib2) shoud be phased out IMO. This issue shows that I was myself fooled by the urllib.request documentation. -- ___ Python tracker <http://bugs.python.org/issue8

[issue10287] NNTP authentication should check capabilities

2010-11-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +pitrou ___ Python tracker <http://bugs.python.org/issue10287> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue10273] Clean-up Unittest API

2010-11-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Just my 2 cents: - I think dedocumenting the type-specific methods is fine (it doesn't mean removing them, though); or perhaps relegate them to some advanced section - It's unfortunate that the renaming suggestion comes so late; I'm not su

[issue10260] Add a threading.Condition.wait_for() method

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I spent some time thinking of a name. I tried wait_predicate and > predicate_wait, but wait_for seemed natural. Any other ideas? > How about wait_until_true? wait_for is ok IMO. > My original method had this as a free function, but I moved i

[issue1926] NNTPS support in nntplib

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Andrew, thank you for posting a patch. I have a couple of comments: * the command-line option for the SSLContext won't work, since a context is a custom object, not a string; I would rework this part anyway, since I don't think separate options fo

[issue10267] test_ttk_guionly leaks many references

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Hirokazu's patch works for me. -- stage: -> patch review ___ Python tracker <http://bugs.python.org/issue10267> ___ _

[issue10294] Lib/test/test_unicode_file.py contains dead code

2010-11-02 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +haypo ___ Python tracker <http://bugs.python.org/issue10294> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9635] Add Py_BREAKPOINT and sys._breakpoint hooks

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I would rename Py_BREAKPOINT to _Py_BREAKPOINT since we don't really want to support this. Also, why do you allow any arguments to sys._breakpoint()? -- nosy: +pitrou ___ Python tracker <http://bugs.py

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > And my text string is "\xC9ric", that's all. You mean b"\xC9ric", right? > If you look at the source of the articles, you will for instance see > that the Subject: header field is not MIME-encoded. It is directly > writ

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Yes, there are probably many holes like this. I've done what I could to make the simple cases (builtin types) to work, but the spec is rotten from the start. Blame the numpy people, sorry. -- nosy: +nco

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > As far as I know, PEP 3118 serves its purpose of allowing extension > modules like numpy and PIL to share data without needing to copy it > around all the time. It's just that memoryview wasn't really part of > that purpose (since all th

[issue10280] nntp_version set to the most recent advertised version

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've fixed it according to your suggestion (take the max of the advertised version) in r86129. Thank you! -- resolution: -> fixed status: open -> closed ___ Python tracker <http://bugs.python.

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: I am wondering how to return the corresponding information. Should the field be totally absent from the returned dictionary, should it map to the empty string, or should it map to None? I'm leaning towards the latter (map to None), but perhaps the

[issue10284] Exception raised when decoding NNTP newsgroup descriptions

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Antoine, a news client could guess it because of the Content-Type: > header field (in this example, it mentions charset="gb2312"). > Yet, articles without a Content-Type: header field exist in the > wild... Unless I'm mistaken, Con

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch for returning None on absent fields. (works with trigofacile.com) -- keywords: +patch Added file: http://bugs.python.org/file19471/nntpover.patch ___ Python tracker <http://bugs.python.

[issue10181] get_shape0 in memoryobject.c not checked for error return

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Read the "Releasing the buffer" section in PEP 3118 again. Unless I'm > misunderstanding you completely, the rules you're asking for are > already in place: those fields are entirely the responsibility of the > exporting obj

[issue10281] Exception raised when an NNTP overview field is absent

2010-11-02 Thread Antoine Pitrou
Antoine Pitrou added the comment: > OK, thanks. > By the way, why is the token stripped? > token = token[len(h):].lstrip(" ") > > "X-Header: test \r\n" in an header is kept in the overview as-is. > I do not see why " test " should

<    17   18   19   20   21   22   23   24   25   26   >