[issue2181] optimize out local variables at end of function
Armin Rigo added the comment: I view this as a problem with Psyco, not with the user code. An even deeper reason for which the general optimization would break code is because it changes the lifetime of objects. For example, Psyco contains specific, user-requested support to make sure the following kind of code works: def myfunc(): f = open('somewhere', 'r') fd = f.fileno() return os.fstat(fd) At the moment Python guarantees that the file object is not closed before the function exits. The above code cannot be rewritten like this: def bogus(): fd = open('somewhere', 'r').fileno() # the file is auto-closed here and fd becomes invalid return os.fstat(fd) I know it's bad style to write code relying on this property, but still I want to make sure you are aware that it *will* introduce obscure breakage in existing code. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2181 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2199] cPickle error with gtk GEnum classes
New submission from PyScripter: cPickle has problems loading instances of gtk gobject.GEnum classes. gobject.GEnum is a subclass of int. On the other hand pickle handles those classes correctly. Since cPickle is meant to be a faster version of pickle this needs to be consider a bug. To test run the following script: import gtk ##import pickle import cPickle as pickle simple_types = ( bool, int, long, float, complex, basestring, type(None), ) d = vars(gtk) for (i,j) in d.iteritems(): if isinstance(j, simple_types): try: s = pickle.dumps(j, pickle.HIGHEST_PROTOCOL) obj = pickle.loads(s) except (ValueError, TypeError): print j, type(j) If you replace cPickle with pickle then the script runs fine. -- components: Library (Lib) messages: 63091 nosy: pyscripter severity: normal status: open title: cPickle error with gtk GEnum classes versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2199 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2200] find_executable fails to find .bat files on win32
New submission from Lev Shamardin: distutils.spawn.find_executable appends '.exe' suffix on win32 and os2 platforms. This is incorrect behavior, since it prevents finding .bat, .cmd and other similar files. Ether all extensions from the %PATHEXT% must be checked or filenames both with appended suffix and without appending suffix must be checked. -- components: Distutils messages: 63092 nosy: abbot severity: major status: open title: find_executable fails to find .bat files on win32 type: behavior versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2200 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2169] Adding DOCTYPE and html, body tags to SimpleHTTPServer
A.M. Kuchling added the comment: Applied to 2.6 in rev. 61105; it will be merged up to 3.0 at some point. Thanks for the patch! -- resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2169 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1569] Add VS CRT redist to the MSI installer
Jeroen Ruigrok van der Werven added the comment: OK, I played around a bit and created a setup project (.vdproj file). The relevant part for the merge modules is: MergeModule { {CEE29DC0-9FBA-4B99-8D47-5BC643D9B626}:_8968169979C7478FA06F2A63790836FB { UseDynamicProperties = 11:TRUE IsDependency = 11:TRUE SourcePath = 8:microsoft_vc90_crt_x86.msm Properties { } LanguageId = 3:0 Exclude = 11:FALSE Folder = 8: Feature = 8: IsolateTo = 8: } {CEE29DC0-9FBA-4B99-8D47-5BC643D9B626}:_B6A9939311C545EBB80282DDFF193627 { UseDynamicProperties = 11:TRUE IsDependency = 11:TRUE SourcePath = 8:policy_9_0_Microsoft_VC90_CRT_x86.msm Properties { } LanguageId = 3:0 Exclude = 11:FALSE Folder = 8: Feature = 8: IsolateTo = 8: } } One thing I read is that these setup projects (and perhaps the merge modules) are not supported on the express editions and needs to do the xcopy routine. Let me know if I should attach my .vdproj, right now it is hardcoded in some places, but it creates a .MSI with the following: catalog.21023.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 catalog.21022.08.policy_9_0_Microsoft_VC90_CRT_x86.RTM.52105B6B_A3EF_3A90_882A_947B287C203A manifest.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 msvcm90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 msvcp90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 msvcr90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 nosxs_msvcm90.dll.0138F525_6C8A_333F_A105_14AE030B9A54 nosxs_msvcp90.dll.0138F525_6C8A_333F_A105_14AE030B9A54 nosxs_msvcr90.dll.0138F525_6C8A_333F_A105_14AE030B9A54 policy.21022.08.policy_9_0_Microsoft_VC90_CRT_x86.RTM.52105B6B_A3EF_3A90_882A_947B287C203A ul_catalog.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 ul_catalog.21022.08.policy_9_0_Microsoft_VC90_CRT_x86.RTM.52105B6B_A3EF_3A90_882A_947B287C203A ul_manifest.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 ul_msvcm90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 ul_msvcp90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 ul_msvcr90.dll.21022.08.Microsoft_VC90_CRT_x86.RTM.0138F525_6C8A_333F_A105_14AE030B9A54 ul_policy.21022.08.policy_9_0_Microsoft_VC90_CRT_x86.RTM.52105B6B_A3EF_3A90_882A_947B287C203A _15FEE25FEEA5B2FA5906FBB18964EA25 _39CC7CD67C9CC4024DB4457CAD1D8F4B _64A91316C96BFF833C45602D2342A095 _F11BA2FBEC12D0CBA986C9D17E9781C0 So on that front I think it is a mission accomplished, now to tweak and tune. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1569 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2127] sqlite3 docs should mention utf8 requirement
Virgil Dupras added the comment: Ok then, we need a test for this. Patch attached. However, I don't know if I applied Amaury's patch wrong or if I miss a ./configure option or something, but even with the patch, the test fails. Another thing: Why isn't the sqlite3 test suite a part of python's regression test suite? Or is it and I didn't notice? -- keywords: +patch Added file: http://bugs.python.org/file9566/sqlite_connect_test.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2127 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
New submission from Jarod: Section 4.4 of the tutorial gives example code: for n in range(2, 10): ... for x in range(2, n): ... if n % x == 0: ... print n, 'equals', x, '*', n/x ... break ... else: ... # loop fell through without finding a factor ... print n, 'is a prime number' ... 2 is a prime number 3 is a prime number 4 equals 2 * 2 5 is a prime number 6 equals 2 * 3 7 is a prime number 8 equals 2 * 4 9 equals 3 * 3 When one is to enter the code (print n, 'equals' x, '*' n/x) you are given syntax error: File stdin, line 4 print n, 'equals' x, '*' n/x ^ SyntaxError: invalid syntax -- components: Documentation messages: 63096 nosy: str8lazy severity: normal status: open title: Documentation Section 4.4 type: compile error versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2201 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Robert Lehmann added the comment: In the example code from the tutorial you gave, there was still a comma separator between the string 'equals' and the reference `x`. This is missing when you entered the code, that's why Python is throwing an exception there. -- nosy: +lehmannro __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2201 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Jarod added the comment: I made a type in that line, but when the typo isn't there I get the same thing. It turns out that it was an error from running a slightly older version of the dev kit. Now that I have updated the dev kit it runs, but I end up with the following as an output: 3 is a prime number 4 equals 2 * 2 5 is a prime number 5 is a prime number 5 is a prime number 6 equals 2 * 3 7 is a prime number 7 is a prime number 7 is a prime number 7 is a prime number 7 is a prime number 8 equals 2 * 4 9 is a prime number 9 equals 3 * 3 as opposed to the desired 2 is a prime number 3 is a prime number 4 equals 2 * 2 5 is a prime number 6 equals 2 * 3 7 is a prime number 8 equals 2 * 4 9 equals 3 * 3 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2201 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1540386] SocketServer.ForkingMixIn.collect_children() waits on pid 0
Jeffrey Yasskin added the comment: Mostly fixed in r61106. This should make the buildbots happy, but there is still a corner case in which we waitpid(0) and could confuse other libraries. -- nosy: +jyasskin type: - behavior versions: +Python 2.6 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1540386 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1183] race in SocketServer.ForkingMixIn.collect_children
Jeffrey Yasskin added the comment: Hmm. I think the race can only happen if you call collect_children() concurrently from multiple threads or from a signal handler. The waidpid(0) bug (which affected anyone who spawned subprocesses from anything other than ForkingMixIn) is partly fixed by r61106, but I don't intend to make ForkingMixIn thread- or signal-safe. Let me know if this is enough for you. :) -- nosy: +jyasskin resolution: - fixed status: open - pending versions: +Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1183 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)
New submission from Brendan W. McAdams: URLLIB2 seems to have issues attempting to digest authenticate against a Windows-based IIS 6.x server. The IIS server requests MD5-sess support, and URLLIB2 throws an exception that ... far from explains this: Traceback (most recent call last): File /usr/lib64/python2.5/runpy.py, line 95, in run_module filename, loader, alter_sys) File /usr/lib64/python2.5/runpy.py, line 52, in _run_module_code mod_name, mod_fname, mod_loader) File /usr/lib64/python2.5/runpy.py, line 32, in _run_code exec code in run_globals File /srv/pubPal/test/test_auth.py, line 16, in module print opener.open(uri) File /usr/lib64/python2.5/urllib2.py, line 380, in open response = meth(req, response) File /usr/lib64/python2.5/urllib2.py, line 491, in http_response 'http', request, response, code, msg, hdrs) File /usr/lib64/python2.5/urllib2.py, line 412, in error result = self._call_chain(*args) File /usr/lib64/python2.5/urllib2.py, line 353, in _call_chain result = func(*args) File /usr/lib64/python2.5/urllib2.py, line 992, in http_error_401 host, req, headers) File /usr/lib64/python2.5/urllib2.py, line 884, in http_error_auth_reqed return self.retry_http_digest_auth(req, authreq) File /usr/lib64/python2.5/urllib2.py, line 889, in retry_http_digest_auth auth = self.get_authorization(req, chal) File /usr/lib64/python2.5/urllib2.py, line 920, in get_authorization H, KD = self.get_algorithm_impls(algorithm) File /usr/lib64/python2.5/urllib2.py, line 972, in get_algorithm_impls return H, KD UnboundLocalError: local variable 'H' referenced before assignment The offending code is urllib2.py line 972: def get_algorithm_impls(self, algorithm): # lambdas assume digest modules are imported at the top level if algorithm == 'MD5': H = lambda x: hashlib.md5(x).hexdigest() elif algorithm == 'SHA': H = lambda x: hashlib.sha1(x).hexdigest() # XXX MD5-sess KD = lambda s, d: H(%s:%s % (s, d)) return H, KD I'm not sure what's meant by the # XXX MD5-sess comment there... But what ends up happening is that MD5-sess matches neither the if or the elif, and when return attempts to return, H is undefined. This could be easily patched, but support for MD5-sess would be great as well. In my estimation, at the least, urllib2 shouldn't crap out in such an obscure way when encountering an unsupported algorithm. I'd suggest changing line 970 (The # XXX MD5-sess line) to: raise Exception, Unsupported Digest Authentication Algorithm '%s' % (algorithm) -- components: Library (Lib) messages: 63101 nosy: bwmcadams severity: normal status: open title: urllib2 fails against IIS 6.0 (No support for MD5-sess auth) type: crash versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2202 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2202] urllib2 fails against IIS 6.0 (No support for MD5-sess auth)
Brendan W. McAdams added the comment: Sorry, this isn't a crash. It doesn't crash the interpreter. I'll assume behavior' is the correct categorization. -- type: crash - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2202 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Georg Brandl added the comment: Sorry, but there must be another typo in your code. I guess the else clause isn't correctly indented -- it belongs to the for statement, not the if statement. -- nosy: +georg.brandl resolution: - invalid status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2201 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2203] ssl module getpeercert returns empty dict when cert_reqs=ssl.CERT_NONE
Changes by Mathew Ryden: -- components: Library (Lib) nosy: mryden severity: normal status: open title: ssl module getpeercert returns empty dict when cert_reqs=ssl.CERT_NONE type: behavior versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2203 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2201] Documentation Section 4.4
Jarod added the comment: @Georg: you were correct, the indentation was incorrect, I suggest that there be some additional notation be added to code examples in the documentation showing how many tabs there are, to make for an easier read and minimize on errors. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2201 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1569] Add VS CRT redist to the MSI installer
Martin v. Löwis added the comment: So on that front I think it is a mission accomplished, now to tweak and tune. Please do attach the project. I can't quite understand what it is that you have achieved. Is that a project file that can create a full Python installer? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1569 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2204] document ConfigParser behaviour when a file has same section multiple times
Senthil added the comment: Should this 'undesirable' behavior be documented? My thoughts are a) All the key,value pairs in the named section be retrived from entire file. Just appending the dict. Otherwise, b) An Exception can be thrown if it encounters an invalid Configfile having multiple same sections which can cause problem, but I cannot readily think of one such case. What do others think? Thanks, Senthil -- nosy: +orsenthil __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2204 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2127] sqlite3 docs should mention utf8 requirement
Gerhard Häring added the comment: I didn't try the patch out, yet. But I'd instead try to just open u:memory instead. Also, in Lib/test/test_sqlite.py the sqlite tests are started. They are of course run as part of the Python test suite. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2127 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2196] Fix hasattr's exception problems
Benjamin Peterson added the comment: Here's a documentation change that explains hasattr's exception issues top accompany my patch. -- components: +Documentation Added file: http://bugs.python.org/file9567/hasattr_docs.diff __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2196 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2199] cPickle error with gtk GEnum classes
Paul Pogonyshev added the comment: Using slightly modified PyGObject (so that it gives more useful error message in pyg_enum_new) and adding 'raise' in the end of attached example, I got this: enum GTK_RC_TOKEN_LOWEST of type GtkRcTokenType class 'gtk._gtk.RcTokenType' Traceback (most recent call last): File stdin, line 5, in module ValueError: value out of range (294 not in 0..40) Not sure what it means yet... -- nosy: +_doublep __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2199 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2199] cPickle error with gtk GEnum classes
Paul Pogonyshev added the comment: It doesn't seem 'pickle' itself works: import pickle import gtk s = pickle.dumps (gtk.RC_TOKEN_LOWEST, pickle.HIGHEST_PROTOCOL) pickle.loads (s) __main__:1: Warning: cannot retrieve class for invalid (unclassed) type `invalid' ** ERROR **: file pygenum.c: line 55 (pyg_enum_repr): assertion failed: (G_IS_ENUM_CLASS(enum_class)) aborting... Aborted __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2199 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1175933] threading.Condition.wait() return value indicates timeout
Noriyuki Hosaka added the comment: I have a question: Why not to raise an exception? Timeout means something has messed up, can not continue. We are not doing task scheduling, aren't we? -- nosy: +bgnori _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1175933 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2205] os.times() returns uncorrect value
Changes by makoto kuwata: -- components: Library (Lib) nosy: kwatch severity: normal status: open title: os.times() returns uncorrect value type: behavior versions: Python 2.5 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2205 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2205] os.times() returns uncorrect value
New submission from Facundo Batista: What? Why you say that? What are you doing? What do you get? What do you expect? In which version of Python and in which Platform are you working? -- nosy: +facundobatista resolution: - rejected status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2205 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2205] os.times() returns incorrect value
makoto kuwata added the comment: I'm sorry to put empty submit. os.time() returns incorrect value. test.py: def f(n): if n = 0: return 1 else: return f(n-1) + f(n-2) import os t1 = os.times() f(34) t2 = os.times() utime = t2[0] - t1[0] stime = t2[1] - t1[1] total = utime + stime print utime %.4f, stime %.4f, total %.4f % (utime, stime, total) result: $ time python bench.py utime 38.6333, stime 0.1000, total 38.7333 real0m23.787s user0m23.211s sys 0m0.138s This shows that real time is only 23.8 seconds, but os.times() reports that user time is over 38 seconds. This is due to bug of Modules/posixmodule.c. Environment: python 2.5.2, MacOS X 10.4 Tiger, GCC 4.0 -- keywords: +patch title: os.times() returns uncorrect value - os.times() returns incorrect value Added file: http://bugs.python.org/file9568/posixmodule.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2205 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2205] os.times() returns incorrect value
makoto kuwata added the comment: See http://groups.google.com/group/comp.lang.python/browse_thread/thread/8032897a30781df/c656a79d4c3268a6 for details about this bug. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2205 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2206] critical memory leak in hashlib.md5
Changes by Xie Bengui: -- nosy: -agateriver __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2206 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2206] critical memory leak in hashlib.md5
Benjamin Peterson added the comment: This is not a hashlib problem (or a bug at all.) range returns an list of numbers. The allocation of this list is the part taking up all the memory. Try replacing range with xrange. -- nosy: +benjamin.peterson __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2206 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2206] critical memory leak in hashlib.md5
Changes by Benjamin Peterson: -- severity: normal - minor __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2206 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2206] critical memory leak in hashlib.md5
Xie Bengui added the comment: I am sorry for submitting this fake issue! Thank Benjamin Peterson! -- nosy: +agateriver __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2206 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1175933] threading.Condition.wait() return value indicates timeout
Benjamin Peterson added the comment: I don't think an exception is the proper thing to use here. Having the wait timeout is not exceptional or unexpected. Timeout means something has messed up, can not continue. Not really. It means we didn't want to wait this long to be notified. -- nosy: +benjamin.peterson _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1175933 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1183] race in SocketServer.ForkingMixIn.collect_children
David Ripton added the comment: The if pid not in self.active_children: continue check that was added in r61106 appears to fix the bug, so I'm happy. Thanks. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1183 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1682] Move Demo/classes/Rat.py to Lib/fractions.py and fix it up.
Jeffrey Yasskin added the comment: I agree that we're basically done here. I'm back to -1 on inlining the common case for arithmetic (attached here anyway). Simple cases are already pretty fast, and bigger fractions are dominated by gcd time, not function call overhead. Since duplicating the definitions of arithmetic will make it harder to do tricky things that shrink the arguments to gcd(), we shouldn't do it. I was always +0 to __format__, so not doing it is fine with me. Thanks for everyone's help! -- resolution: - fixed status: open - closed Added file: http://bugs.python.org/file9570/fraction_inline_arith.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1682 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue2127] sqlite3 docs should mention utf8 requirement
Virgil Dupras added the comment: u':memory:'? That already worked before the patch because the implicit encoding with 'ascii' does not bump into any non-ascii character. Nope, one has to call connect with a filename containing non-ascii characters. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2127 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com