[issue3811] Update Unicode database to 5.1.0

2008-09-11 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: The control characters? Indeed, also the private-use characters. test_unicode explicitly comments that the test is about unassigned characters, although I don't understand the purpose of that test (it then also tests a surrogate character,

[issue3832] add force_shared Library option to create shared lib even with use_stub=False

2008-09-11 Thread Martin v. Löwis
Changes by Martin v. Löwis [EMAIL PROTECTED]: -- resolution: - invalid status: open - closed versions: +3rd party ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3832 ___

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2008-09-11 Thread Heikki Toivonen
Heikki Toivonen [EMAIL PROTECTED] added the comment: Ok, thank you for clarifications. Now I understand why the hostname checking isn't the solution that fits every problem. I am still not completely clear how you'd do the checking otherwise, for example to verify the service you are talking to

[issue3642] Objects/obmalloc.c:529: warning: comparison is always false due to limited range of data type

2008-09-11 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: I have now committed the new patch as r66383 and r66384 -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3642

[issue3640] test_cpickle crash on AMD64 Windows build

2008-09-11 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: The patch is fine, please apply. My only question is why the 3.0 patch integrates the find_recursionlimit change, whereas the 2.6 patch does not. -- assignee: mhammond - amaury.forgeotdarc nosy: +loewis resolution: - accepted

[issue3830] Tarfile has incorrect USTAR VERSION field (should be 00; is 0 NUL)

2008-09-11 Thread Lars Gustäbel
Lars Gustäbel [EMAIL PROTECTED] added the comment: This problem existed only in the first 2.5 release. -- resolution: - works for me status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3830

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Anthon van der Neut
Anthon van der Neut [EMAIL PROTECTED] added the comment: FWIW: I have performance problems on Windows XP (SP2) with Python 2.5.1 that could be caused by this behaviour. My code regularily calculates the sha1 sum of 10.000 files and because in another reuse of the code had to deal with files too

[issue3110] Multiprocessing package build problem on Solaris 10

2008-09-11 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: According to POSIX, if no determinate value for SEM_VALUE_MAX can be given, the actual value should be queried with sysconf(_SC_SEM_VALUE_MAX), and SEM_VALUE_MAX should not be defined; this is in particular the case when the value depends on

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: I like Skip's version better, because it's closer to the dbm specification instead of trying to mimic bsddb (first, last, etc.). I'd like to keep such things out. I've made a few changes to the sandbox project which I will check in later

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: One question about Josiah's _check_value(). SQLite is less crippled than other simplistic databases and also supports integers, reals and blobs in addition to strings. Shouldn't we make this accessible to users? Or is compatibility with other

[issue3640] test_cpickle crash on AMD64 Windows build

2008-09-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: - cpickle.patch and find_recursion_limit.patch are for 2.6 - cpickle.patch-3.0.patch groups the two previous patches, adapted to 3.0. ___ Python tracker [EMAIL PROTECTED]

[issue3640] test_cpickle crash on AMD64 Windows build

2008-09-11 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Ah, ok. It's all fine, then. -- keywords: -needs review ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3640 ___

[issue3834] wsgiref.validator.InputWrapper readline method has wrong signature

2008-09-11 Thread Christopher Arndt
New submission from Christopher Arndt [EMAIL PROTECTED]: The readline method in the InputWrapper class in wsgiref.validate does not accept any arguments and therefore is not compatible with the file-like interface, where the readline method accepts an optional size argument. This breaks code

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-11 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Applied to trunk for 2.6 in r66386. -- priority: release blocker - deferred blocker ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3781 ___

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Gerhard What's all this ORDER BY in both your implementations about? Gerhard The dbm spec says nothing about keys being ordered AFAIC. Can Gerhard we get rid of these? I'd like to guarantee that zip(db.keys(), db.values() ==

[issue3831] Multiprocessing: Expose underlying pipe in queues

2008-09-11 Thread Jesse Noller
Jesse Noller [EMAIL PROTECTED] added the comment: Steve, I'm a little nervous about exposing the underlying Queue pipes in an official API simply due to the fact that it is an advanced use case, and we do want to keep the API simple, and relatively close to the core Queue implementation. Do

[issue3835] tkinter goes into an infinite loop (pydoc.gui)

2008-09-11 Thread Helmut Jarausch
New submission from Helmut Jarausch [EMAIL PROTECTED]: With version 3.0 (SVN 66386) import pydoc pydoc.gui() gives Exception in thread Thread-1: Traceback (most recent call last): File /usr/local/lib/python3.0/threading.py, line 507, in _bootstrap_inner self.run() File

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: My code regularily calculates the sha1 sum of 10.000 files and because in another reuse of the code had to deal with files too big to fit in memory I set a limit of 256Mb. Why don't you use a sensible buffer size, e.g. 1MB? Reading data in

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Andrew, as for memory reallocation issues, you may take a look at #3526 where someone has similar problems on SunOS. If nobody objects, I will close the present bug as invalid. ___ Python tracker [EMAIL

[issue3640] test_cpickle crash on AMD64 Windows build

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: By the way, this isn't caused by the present issue, but you'll notice that in the latest trunk, some tests in find_recursion_limit.py fail with an AttributeError instead of RuntimeError. This is likely caused by a PyDict_GetItem() call

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: I'd like to guarantee that zip(db.keys(), db.values() == db.items(). Ok. If that isn't guaranteed elsewhere just drop it here? FWIW that will also work without the ORDER BY, because you're getting the rows back in the same ORDER. Something

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: I'd like to guarantee that zip(db.keys(), db.values() == db.items(). Antoine It doesn't sound very useful, and it may hurt performance on Antoine big tables. Actually, I think Python guarantees (for dicts at least - other mappings

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Gerhard FWIW that will also work without the ORDER BY, because you're Gerhard getting the rows back in the same ORDER. Something cheaper Gerhard would also be ORDER BY ROWID. I still propose to just do Gerhard without the ORDER BY.

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: Skip Montanaro wrote: Skip Montanaro [EMAIL PROTECTED] added the comment: Gerhard FWIW that will also work without the ORDER BY, because you're Gerhard getting the rows back in the same ORDER. Something cheaper Gerhard would also

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-11 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Blocked merge in the py3k branch since it requires some fiddling to handle the change from test.test_support to test.support. I'll post a new patch here for the py3k forward port when I can (I may not make it before 3.0b4 though, so unassigning

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le jeudi 11 septembre 2008 à 16:01 +0200, Anthon van der Neut a écrit : The thing however was resolved by reading multiple smaller chunks indeed 1Mb if the filesize exceeds 1Mb (in the latter case the original read() is done. It's too

[issue3103] sqlite defines a few global symbols.

2008-09-11 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: I've fixed that in the externally maintained pysqlite. I suppose it's too late to bring this into 2.6 or 3.0, right? ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3103

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le jeudi 11 septembre 2008 à 13:48 +, Skip Montanaro a écrit : Actually, I think Python guarantees (for dicts at least - other mappings should probably follow suit) that if you call keys() then call values() without making any changes to

[issue3103] sqlite defines a few global symbols.

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: If they aren't part of a public API I think it's ok to fix them in 2.6/3.0. It is a bug fix, not a feature change. -- nosy: +pitrou ___ Python tracker [EMAIL PROTECTED]

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: I might add that calling keys() then values() is suboptimal, because it will issue two SQL queries while calling items() will issue just one. ___ Python tracker [EMAIL PROTECTED]

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' [EMAIL PROTECTED]: -- nosy: +giampaolo.rodola ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3766 ___ ___ Python-bugs-list

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Thorben, is the problem still there if you use fork() rather than launching a separate thread for the server? The implementation of the recv() method is straightforward and I don't see anything that could cause a huge latency there, it's just

[issue1589] New SSL module doesn't seem to verify hostname against commonName in certificate

2008-09-11 Thread Bill Janssen
Bill Janssen [EMAIL PROTECTED] added the comment: I think that, where it's appropriate, you can do that. Just don't put it in the SSL module. Bill On Wed, Sep 10, 2008 at 11:24 PM, Heikki Toivonen [EMAIL PROTECTED]wrote: Heikki Toivonen [EMAIL PROTECTED] added the comment: Ok, thank you

[issue3836] 2to3 broken due to mixed 2.5 and 3.0 syntax

2008-09-11 Thread Haoyu Bai
New submission from Haoyu Bai [EMAIL PROTECTED]: In the py3k SVN head(r66389) of lib2to3, the main.py used Python 2.x's print syntax, and the refactor.py used Python 3.0's exception syntax. So the 2to3 finally broken on both Python 2.5 and 3.0. Well, it able to run with Python 2.6, but also

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Thorben
Thorben [EMAIL PROTECTED] added the comment: The problem exists even if the server part is replaced by a server written in C. I only wrote up the dummy server in python to be able to provide a testcase. The C server works with reasonable speed when connected to a client written in perl by the

[issue3837] Comment for html_logo setting is out of date

2008-09-11 Thread Janet Swisher
New submission from Janet Swisher [EMAIL PROTECTED]: In Sphinx 0.4.2, the handling of the html_logo setting was changed to use a relative path, like latex_logo, rather than the static path. However, the comment for html_logo in the quickstart template was not changed. This caused me confusion

[issue3836] 2to3 broken due to mixed 2.5 and 3.0 syntax

2008-09-11 Thread Haoyu Bai
Haoyu Bai [EMAIL PROTECTED] added the comment: A patch on main.py to fix this. -- keywords: +patch Added file: http://bugs.python.org/file11464/fix_syntax.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3836

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: You can use setsockopt() to set the TCP_NODELAY flag and see if that improves things; sending thousands of 4-bytes packets isn't exactly the expected utilization of TCP. As I said, socket.recv() is just a thin wrapper above the same-named C

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Thorben
Thorben [EMAIL PROTECTED] added the comment: 2008/9/11 Antoine Pitrou [EMAIL PROTECTED]: Antoine Pitrou [EMAIL PROTECTED] added the comment: You can use setsockopt() to set the TCP_NODELAY flag and see if that improves things; sending thousands of 4-bytes packets isn't exactly the expected

[issue3838] test_tarfile error on cygwin (Directory not empty)

2008-09-11 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto [EMAIL PROTECTED]: This differs from issue3824. test_tarfile claims following error at the end of test. Traceback (most recent call last): File test_tarfile.py, line 1210, in module test_main() File test_tarfile.py, line 1207, in test_main

[issue3839] wsgi.simple_server resets 'Content-Length' header on empty content even if app defined it.

2008-09-11 Thread Clovis Fabricio
New submission from Clovis Fabricio [EMAIL PROTECTED]: The finish_content method in wsgiref.handlers.BaseHandler class resets Content-Length to 0 if there was no content returned by the application, even if the application has set it already. That makes impossible to implement things like HEAD

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Changes by Josiah Carlson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11412/sq_dict.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3783 ___

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: I like Skip's version better, because it's closer to the dbm specification instead of trying to mimic bsddb (first, last, etc.). I'd like to keep such things out. dbm.sqlite is meant as a potential replacement of dbm.bsddb. Since people

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: now thats interesting: adding the line sock.setsockopt(SOL_TCP, TCP_NODELAY, 1) decreased the delay by half. It still is extremely high but it's a start. Did you do it on both the client and server sockets? Would be interesting to

[issue3841] IDLE: quirky behavior when displaying strings longer than 4093 characters

2008-09-11 Thread Stephen McInerney
New submission from Stephen McInerney [EMAIL PROTECTED]: IDLE exhibits quirky behavior when displaying strings longer than 4093 characters Python versions: believed to be all. I found this on Python 2.5 / IDLE 1.2.2 OS: Windows Vista; let me know if it repros on others. Testcase attached has

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Thorben
Thorben [EMAIL PROTECTED] added the comment: 2008/9/11 Antoine Pitrou [EMAIL PROTECTED]: Antoine Pitrou [EMAIL PROTECTED] added the comment: now thats interesting: adding the line sock.setsockopt(SOL_TCP, TCP_NODELAY, 1) decreased the delay by half. It still is extremely high but it's a

[issue3840] test_urllib fails on cygwin

2008-09-11 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: I cannot create patch now, but test_site error comes from same reason. test_support.TESTFN is /tmp/@test on cygwin After I applied following adhok patch, test passed. Index: Lib/test/test_site.py

[issue3842] can't run close through itertools.chain on inner generator

2008-09-11 Thread Bruce Frederiksen
New submission from Bruce Frederiksen [EMAIL PROTECTED]: There is no way to get generators to clean up (run their 'finally' clause) when used as an inner iterable to chain: def gen(n): ... try: ... # do stuff yielding values ... finally: ... # clean up c =

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: As long as SQLite guarantees that the ordering is identical, then sure, dump the ORDER BY clause. Gerhard It doesn't guarantee it, but the implementation behaves like Gerhard this. If the behavior isn't guaranteed, I think you

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Antoine I might add that calling keys() then values() is suboptimal, Antoine because it will issue two SQL queries while calling items() Antoine will issue just one. Well, sure, but heaven only knows what an application programmer will

[issue3840] if TESTFN == /tmp/@test, some tests fail

2008-09-11 Thread Hirokazu Yamamoto
Hirokazu Yamamoto [EMAIL PROTECTED] added the comment: Same happend in test_import.py too. test_support.TESTFN is /tmp/@test on cygwin This was false information. There was a directry named @test, so open(TESTFN, w+) in test_support.py failed, /tmp/@test was used instead. Several tests seem to

[issue3836] 2to3 broken due to mixed 2.5 and 3.0 syntax

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: main.py is really not a public interface, but it should be fixed. -- assignee: collinwinter - benjamin.peterson nosy: +benjamin.peterson priority: - high ___ Python tracker [EMAIL PROTECTED]

[issue3781] warnings.catch_warnings fails gracelessly when recording warnings but no warnings are emitted

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: On Thu, Sep 11, 2008 at 9:03 AM, Nick Coghlan [EMAIL PROTECTED] wrote: Nick Coghlan [EMAIL PROTECTED] added the comment: Blocked merge in the py3k branch since it requires some fiddling to handle the change from test.test_support to

[issue3640] test_cpickle crash on AMD64 Windows build

2008-09-11 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc [EMAIL PROTECTED] added the comment: Committed as r66390 and r66391. -- resolution: accepted - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3640

[issue3836] 2to3 broken due to mixed 2.5 and 3.0 syntax

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Fixed in r66392. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3836 ___

[issue3842] can't run close through itertools.chain on inner generator

2008-09-11 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - rhettinger nosy: +rhettinger versions: +Python 2.7, Python 3.1 -Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3842 ___

[issue3843] hexadecimal, not decimal

2008-09-11 Thread maix
New submission from maix [EMAIL PROTECTED]: On http://docs.python.org/dev/library/string.html, at the format string documentation, it says: The '#' option is only valid for integers, and only for binary, octal, or *decimal* output. If present, it specifies that the output will be prefixed by

[issue3834] wsgiref.validator.InputWrapper readline method has wrong signature

2008-09-11 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - pje nosy: +pje ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3834 ___ ___

[issue3657] pickle can pickle the wrong function

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I can reproduce this on 2.6. -- nosy: +benjamin.peterson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3657 ___

[issue3843] hexadecimal, not decimal

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Thanks! Fixed in r66394. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3843

[issue586680] -S hides standard dynamic modules

2008-09-11 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: Note that this does cause incompatibility between development copies and installed copies: $ python -S -c import itertools; print itertools module 'itertools' from ... $ ./python -S -c import itertools; print itertools Traceback (most

[issue3834] wsgiref.validator.InputWrapper readline method has wrong signature

2008-09-11 Thread Phillip J. Eby
Phillip J. Eby [EMAIL PROTECTED] added the comment: Per PEP 333: The optional size argument to readline() is not supported, as it may be complex for server authors to implement, and is not often used in practice. The whole point of this code is to catch broken programs that pass an argument to

[issue3837] Comment for html_logo setting is out of date

2008-09-11 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r66397. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3837 ___

[issue3531] file read preallocs 'size' bytes which can cause memory problems

2008-09-11 Thread Andrew Dalke
Andrew Dalke [EMAIL PROTECTED] added the comment: I'm still undecided on if this is a bug or not. The problem occurs even when I'm not reading data from a file of an unknown size. My example causes a MemoryError on my machine even though the file I'm reading contains 0 bytes. The problem

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Well, sure, but heaven only knows what an application programmer will do... If the docs clearly explain that there is no guarantee, we don't need heaven. I would find it strange to potentially ruin performance just for a guarantee which has

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: I would find it strange to potentially ruin performance just for a guarantee which has no useful purpose. Benchmarks to prove or disprove performance changes? Subclasses to offer different order by semantics (see the version I uploaded for

[issue3831] Multiprocessing: Expose underlying pipe in queues

2008-09-11 Thread Steve Smith
Steve Smith [EMAIL PROTECTED] added the comment: Hi Jesse, The use-case I had is mind is enabling asyncronous (i.e. select() style) notification of data being available on the queue, which is more elegant (and efficient) than polling with get(). Example code showing how this works with GTK is

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Benchmarks to prove or disprove performance changes? Agreed, benchmarks should be run. Subclasses to offer different order by semantics (see the version I uploaded for an example)? If you like, but ordering semantics is something which

[issue1441530] socket read() can cause MemoryError in Windows

2008-09-11 Thread Anthony Lenton
Anthony Lenton [EMAIL PROTECTED] added the comment: It's probably just a typo from copying from an editor, but there is a bug in the workaround. It should be: maxRead = 100 class MySSL (imaplib.IMAP4_SSL): def read (self, n): #print ..Attempting to read %d bytes % n if n =

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Skip Montanaro
Skip Montanaro [EMAIL PROTECTED] added the comment: Well, sure, but heaven only knows what an application programmer will do... Antoine If the docs clearly explain that there is no guarantee, we Antoine don't need heaven. I would find it strange to potentially ruin Antoine

[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz
New submission from Daniel Diniz [EMAIL PROTECTED]: The attached script reports C functions not flexed by unittests. It needs a 'coverage' build and a run of the tests. Coverage data is then passed to gcov and those functions with zero calls written to a text file, grouped by source file. It's

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: If you like, but ordering semantics is something which is just as easily done in Python, so I don't understand the point of integrating it in the dbm layer... Actually, the db layer is *exactly* where it should be implemented, especially

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Changes by Josiah Carlson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11467/sq_dict.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3783 ___

[issue3844] Script: find untested C functions

2008-09-11 Thread Daniel Diniz
Daniel Diniz [EMAIL PROTECTED] added the comment: Here's example output of a run against 3.0. The number after a function name is its length in lines (as gcov counts them :). False positives include: ./Objects/weakrefobject.c gc_clear ./Modules/readline.c on_completion_display_matches_hook

[issue3766] socket.socket.recv broken (unbearably slow)

2008-09-11 Thread Gabriel Genellina
Gabriel Genellina [EMAIL PROTECTED] added the comment: I've tested it on Windows XP. MSG_WAITALL is not supported, but I replaced it using a while loop. I didn't notice any extraneous delay. 500 packets @ 2 tokens each (500 very short lists) 0.140999794006 16008 function calls in

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Changes by Josiah Carlson [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file11470/sq_dict.py ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3783 ___

[issue3783] dbm.sqlite proof of concept

2008-09-11 Thread Josiah Carlson
Josiah Carlson [EMAIL PROTECTED] added the comment: Here's a version with views from Python 3.0 for keys, values, and items :) . I know that no one hear likes my particular implementation (though it offers more or less the full interface), but the Keys, Values, and Items classes in the