[issue1659] Tests needing network flag?
Georg Brandl added the comment: Sorry, I was being unclear. I grepped through Lib/test for skip_expected and couldn't find a location where e.g. the newly set test_urllib2.skip_expected would be accessed. regrtest.py only accesses this attribute on the two modules I named. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1659 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue705836] struct.pack of floats in non-native endian order
Christian Heimes added the comment: Sounds like a good idea to me. Although all major platforms support IEEE Python should guarantee a stable behavior on all platforms. The lines should be a safe replacement of the downcast: double fromd; float tof; tof = abs(fromd) = FLT_MAX ? FLT_MAX : fromd; tof = (float)copysign((double)tof, fromd); By the way the release notes of Python should mention the our work on better IEEE-754 and numeric support in bold letters. Python 2.6 - now with even better support for professional math in the core. It's a good advertisement. :) Tracker [EMAIL PROTECTED] http://bugs.python.org/issue705836 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1657] [patch] epoll and kqueue wrappers for the select module
Christian Heimes added the comment: Yeah, it's a reasonable suggestion. I'm changing the code to seconds as positive float and None = blocking. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1657 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1659] Tests needing network flag?
Christian Heimes added the comment: I've disabled a single test in socket if the network resource isn't enable. It fixes the problem for me when I'm offline or my WLAN is broken again. The test was also called by test_ssl. -- nosy: +tiran __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1659 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1625] bz2.BZ2File doesn't support multiple streams
Thomas Herve added the comment: The gzip module supports reopening an existing file to add another stream. I think the bz2 module should not the same. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1625 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1657] [patch] epoll and kqueue wrappers for the select module
Changes by Christian Heimes: Added file: http://bugs.python.org/file9241/trunk_select_epoll_kqueue8.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1657 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1351692] Switch to make pprint.pprint display ints and longs in hex
Georg Brandl added the comment: Committed to trunk in r60131. -- nosy: +georg.brandl resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1351692 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1473257] Add a gi_code attr to generators
Georg Brandl added the comment: Guido, do you have an opinion? Seems like a nonproblematic and probably useful change for 2.6. -- assignee: pje - gvanrossum nosy: +gvanrossum _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1473257 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1621] Do not assume signed integer overflow behavior
Ismail Donmez added the comment: Final patch should be complete. Used a trick in _sre.c, instead of i 0 , I used i + i i to trick gcc. Added file: http://bugs.python.org/file9242/fix-overflows-final.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1178141] urllib.py overwrite HTTPError code with 200
Georg Brandl added the comment: The bug (interpreting non-200 2xx codes as error) has already been fixed. I've finished and committed the other part (adding getcode() to addinfourl) in r60133. -- resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1178141 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1117751] urllib.urlopen should put the http-error-code in .info()
Georg Brandl added the comment: For #1178141 I added f.getcode() in r60133. -- nosy: +georg.brandl resolution: - out of date status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1117751 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1449471] Splitting CJK codecs from pythoncore dll
Georg Brandl added the comment: Another year has passed; closing this. -- status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1449471 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue856047] urllib.py does not use no_proxy;
Georg Brandl added the comment: Added docs and committed as r60134. Thanks for your patch! -- nosy: +georg.brandl resolution: - accepted status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue856047 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1731720] urllib.urlretrieve/URLopener.retrieve - 'buff' argument
Georg Brandl added the comment: Why don't you use open() and transfer the data between file objects yourself? The point of retrieve() is to create a local file containing the data. Closing as won't fix. -- nosy: +georg.brandl resolution: - wont fix status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1731720 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1664522] Fix for urllib.ftpwrapper.retrfile() and none existing files
Georg Brandl added the comment: Committed patch (added an additional try-finally) as r60135. -- nosy: +georg.brandl resolution: - accepted status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1664522 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue735515] urllib / urllib2 should cache 301 redirections
Georg Brandl added the comment: John, what did you have in mind? -- nosy: +georg.brandl Tracker [EMAIL PROTECTED] http://bugs.python.org/issue735515 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1197207] Add proxies arg to urllib.urlretrieve
Georg Brandl added the comment: Waiting for diff from OP, setting to Pending. -- nosy: +georg.brandl status: open - pending _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1197207 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue614557] LookupError etc. need API to get the key
Georg Brandl added the comment: Will this be revisited for py3k? -- nosy: +georg.brandl versions: +Python 3.0 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue614557 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue487566] smart module import
Georg Brandl added the comment: Chris, is this something that could be done with your post-import hooks? -- assignee: - tiran nosy: +georg.brandl, tiran Tracker [EMAIL PROTECTED] http://bugs.python.org/issue487566 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue460474] codecs.StreamWriter: reset() on close()
Changes by Georg Brandl: -- assignee: - lemburg nosy: +lemburg Tracker [EMAIL PROTECTED] http://bugs.python.org/issue460474 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue592703] HTTPS does not handle pipelined requests
Georg Brandl added the comment: SSL support was rewritten, so this may be fixed now... -- assignee: jhylton - janssen nosy: +georg.brandl, janssen Tracker [EMAIL PROTECTED] http://bugs.python.org/issue592703 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue771334] pydoc.TextDoc raises for some kinds of objects
Georg Brandl added the comment: docother() was fixed in r39636 to accept the additional argument. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue771334 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue771479] pyconfig.h duplicates common defines
Changes by Georg Brandl: -- assignee: - loewis nosy: +loewis Tracker [EMAIL PROTECTED] http://bugs.python.org/issue771479 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1034053] unittest.py patch: add skipped test functionality
Antoine Pitrou added the comment: So what's the status of this? Skipping test is still an important ability to have. -- nosy: +pitrou _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1034053 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue799369] documentation for sys.platform is unclear
Georg Brandl added the comment: Implemented the suggestions in r60136. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue799369 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1621] Do not assume signed integer overflow behavior
Christian Heimes added the comment: Ismail Donmez wrote: Ismail Donmez added the comment: Final patch should be complete. Used a trick in _sre.c, instead of i 0 , I used i + i i to trick gcc. I'm going to review your patch later. Christian __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue652749] extra __builtin__ stuff not documented
Georg Brandl added the comment: Documented in r60137. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue652749 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue460474] codecs.StreamWriter: reset() on close()
Marc-Andre Lemburg added the comment: Sounds reasonable. Could you come up with a patch ? Thanks. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue460474 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue546558] Windows getpass bug
Georg Brandl added the comment: So it seems to be fixed in NT -- we don't support 9x anymore in 2.6 up. -- nosy: +georg.brandl resolution: - fixed status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue546558 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1621] Do not assume signed integer overflow behavior
Christian Heimes added the comment: Ismail Donmez wrote: Final patch should be complete. Used a trick in _sre.c, instead of i 0 , I used i + i i to trick gcc. Added file: http://bugs.python.org/file9242/fix-overflows-final.patch Does the C89 standard allow this code? int q = 1; int p = (unsigned)q; I've never seen an unsigned cast without a type. Does the code compile with gcc -std=C89? Christian __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue487566] smart module import
Christian Heimes added the comment: It is possible to re-use post import hooks for the purpose but really, this is a job for PEP 3124 Overloading, Generic Functions, Interfaces, and Adaptation. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue487566 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1700463] VC6 build patch for trunk
Hirokazu Yamamoto added the comment: Rev59716 required some fix. I'm not sure the patch for Lib/socket.py is apropriate. Added file: http://bugs.python.org/file9244/vc6-trunk-ver5.zip _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1700463 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue487566] smart module import
Georg Brandl added the comment: I agree. In any case, this issue will be handled by one of the PEPs. -- resolution: - later status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue487566 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1826] operator.attrgetter() should accept dotted attribute paths
Antoine Pitrou added the comment: FWIW, Georg's patch works here. Perhaps there should be a test for unicode attribute names since it is special-cased in the patch. -- nosy: +pitrou __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1826 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1876] bogus attrgetter test in test_operator
New submission from Antoine Pitrou: In test_operator we find the following lines: class C(object): def __getattr(self, name): raise SyntaxError self.failUnlessRaises(AttributeError, operator.attrgetter('foo'), C()) Obviously __getattr has no effect. However, when changing it to __getattr__, the test fails. Is there is any motivation for this test in the first place? If yes, why the typo and why the error when the typo is corrected? -- components: Tests messages: 61297 nosy: pitrou severity: normal status: open title: bogus attrgetter test in test_operator type: behavior versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1876 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1647] IDLE messes around with sys.exitfunc
Georg Brandl added the comment: Should be no problem then. -- nosy: +georg.brandl resolution: - works for me status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1647 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1652] subprocess should have an option to restore SIGPIPE to default action
Georg Brandl added the comment: Raising priority. What incompatibilities could occur if SIGPIPE is restored by default? -- nosy: +georg.brandl priority: - high severity: normal - major type: - behavior __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1652 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1648] add new function, sys.gettrace
Georg Brandl added the comment: Committed as r60138. Thanks for the complete patch! -- assignee: brett.cannon - georg.brandl nosy: +georg.brandl resolution: - accepted status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1648 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1876] bogus attrgetter test in test_operator
Georg Brandl added the comment: As seen from the __eq__ example, the exception should be SyntaxError. With both changes, it works fine again in r60142. As for why the test is there, maybe the operator functions had lax error checking once. -- nosy: +georg.brandl resolution: - fixed status: open - closed __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1876 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1877] unhelpful error when calling python dirname
Changes by Christian Heimes: -- components: +Library (Lib) keywords: +easy priority: - normal type: - behavior versions: +Python 2.6, Python 3.0 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1877 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1389051] imaplib causes excessive fragmentation for large documents
Christian Heimes added the comment: I read your posting on the python general list. Eeeeh! That's awful. -- keywords: +easy nosy: +tiran priority: normal - high type: - behavior versions: +Python 2.5, Python 2.6 -Python 2.4 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1389051 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1506171] Add methodcaller to the operator module
Georg Brandl added the comment: Attaching patch against SVN trunk. -- assignee: - rhettinger nosy: +georg.brandl resolution: rejected - Added file: http://bugs.python.org/file9245/methodcaller.diff _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1506171 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1877] unhelpful error when calling python dirname
New submission from Georg Brandl: [EMAIL PROTECTED] ~/devel/python ./python Lib Traceback (most recent call last): File Lib/runpy.py, line 99, in _run_module_as_main loader, code, fname = _get_module_details(mod_name) File Lib/runpy.py, line 86, in _get_module_details raise ImportError(No code object available for %s % mod_name) ImportError: No code object available for __main__ -- assignee: ncoghlan messages: 61303 nosy: georg.brandl, ncoghlan severity: normal status: open title: unhelpful error when calling python dirname __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1877 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1640] Enhancements for mathmodule
Mark Dickinson added the comment: Excellent! I'll take a look. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1640 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1715] Make pydoc list submodules
Antoine Pitrou added the comment: This should be a better patch, although it only applies to the text formatter of pydoc, not the HTML one (I'm too lazy for this :-)). -- nosy: +pitrou Added file: http://bugs.python.org/file9246/pydocsubmodules.patch __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1715 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1640] Enhancements for mathmodule
Mark Dickinson added the comment: One question: is there a policy on what should happen for singularities and domain errors? If not, I think it would be useful to have one. Following the policy may not be achievable on all platforms, but it should be easy to do on major platforms, and at least we'll know what we're aiming for in general. Maybe it already exists, and I missed it :) For domain errors (e.g. sqrt(-1), log(-1), acosh(0)), the obvious two options are: - raise an exception (e.g. OverflowError), or - return a NaN For singularities (e.g. log(0), atanh(1)), the options are basically the same: - raise an exception (preferably something different from OverflowError), or - return the IEEE-754 recommended value (usually +/-Inf) I suspect there are use-cases for both types of behaviour here. Of course, the *right* thing to do, in some sense, would be to have a thread-local floating-point environment that makes it possible for the user to choose whether he/she wants an exception or a special value, much like the way Decimal behaves at the moment. But that would be a big change, almost certainly requiring a PEP and a lot of work. A few months ago I definitely would have said that an exception should be raised in both cases, as already happens (mostly); but since then NaNs and Infinities have acquired greater legitimacy within Python. Tim, if you're listening: any words of wisdom? Should I ask this on python-dev? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1640 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1640] Enhancements for mathmodule
Mark Dickinson added the comment: whoops. OverflowError should be something else in the previous post; of course, OverflowError is inappropriate for domain errors (but entirely appropriate for something like exp(1000)). Currently, on Linux I get: - overflow (exp(1000))- OverflowError - domain error (sqrt(-1)) - ValueError - singularity (log(0))- OverflowError On OS X I get: - overflow - OverflowError - domain error - NaN - singularity - OverflowError __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1640 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1640] Enhancements for mathmodule
Christian Heimes added the comment: Mark Dickinson wrote: Currently, on Linux I get: - overflow (exp(1000))- OverflowError - domain error (sqrt(-1)) - ValueError - singularity (log(0))- OverflowError Windows raises the same exceptions as Linux. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1640 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1640] Enhancements for mathmodule
Mark Dickinson added the comment: Okay: for now, I guess we just follow the pattern that already exists on Linux and Windows. I think the OS X sqrt(-1) behaviour is a bug. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1640 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1615] descriptor protocol bug
Antoine Pitrou added the comment: I can confirm that with SVN trunk, and it's actually even worse because it can return unexpected results without raising an exception at all: class Foo(object): ... def __getattr__(self, name): return 42 ... @property ... def bacon(self): return int.lalala ... f = Foo() f.bacon 42 Foo.bacon.__get__(f) Traceback (most recent call last): File stdin, line 1, in module File stdin, line 4, in bacon AttributeError: type object 'int' has no attribute 'lalala' -- nosy: +pitrou severity: normal - major __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1615 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue771479] pyconfig.h duplicates common defines
Martin v. Löwis added the comment: I fail to see the problem. HAVE_CHROOT (e.g.) is indeed generic, but so on purpose. If some other package also defines HAVE_CHROOT, but in a different way, then the problem is not that the names of the defines are identical, but that the values are different, hinting at a problem elsewhere (either Python's or that other package's autoconf must have computed the value incorrectly). Tracker [EMAIL PROTECTED] http://bugs.python.org/issue771479 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
New submission from Paul Pogonyshev: I have a regression from Python 2.5 to Python SVN (would-be-2.6). I believe this because of class attribute caching. The problem shown below happens because AbstractGCProtector is an extension class. So, Python interpreter doesn't have a chance to notice set_default() method below changes a class attribute. from notify.all import * original_protector = AbstractGCProtector.default new_protector = FastGCProtector () AbstractGCProtector.default is new_protector False AbstractGCProtector.default is original_protector True Please note that this a regression. This code works as expected in 2.3 and 2.5. -- components: Interpreter Core messages: 61316 nosy: _doublep severity: major status: open title: class attribute cache failure (regression) type: behavior versions: Python 2.6 __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Paul Pogonyshev added the comment: Eh, disregard that, I missed one line with set_default() call. Still, the unit test fails... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Paul Pogonyshev added the comment: OK, here it is: from notify.all import * original_protector = AbstractGCProtector.default new_protector = FastGCProtector () AbstractGCProtector.set_default (new_protector) AbstractGCProtector.default is new_protector False AbstractGCProtector.default is original_protector True It seems that this behaviour is somewhat random. Sometimes the False/True lines are reversed, as expected. I.e. it seems that attribute cache is sometimes recomputed... __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1621] Do not assume signed integer overflow behavior
Martin v. Löwis added the comment: Does the C89 standard allow this code? int q = 1; int p = (unsigned)q; I've never seen an unsigned cast without a type. Yes, that's fine; it's a different spelling of unsigned int. In C99, 6.7.2p1 defines the following groups as equivalent: - short, signed short, short int, or signed short int - unsigned short, or unsigned short int - int, signed, or signed int - unsigned, or unsigned int - long, signed long, long int, or signed long int - unsigned long, or unsigned long int - long long, signed long long, long long int, or signed long long int - unsigned long long, or unsigned long long int Specifiers may occur in any order, so you may also write int short unsigned. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1621] Do not assume signed integer overflow behavior
Ismail Donmez added the comment: Hi Christian, unsigned cast is actually suggested by GCC developers to force correct wrapping for signed types. And thanks to Martin, it makes sense :-) __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1621 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue592703] HTTPS does not handle pipelined requests
Bill Janssen added the comment: Well, if someone writes test case and verifies it, I'll look at it. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue592703 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue735515] urllib / urllib2 should cache 301 redirections
John J Lee added the comment: In what respect? I just meant that it would be nice (and more compliant with the RFC) if rather than fetching the original URL each time, a map of URLs to 301-redirected URLs was kept. For urllib2, I suppose the map would be a private attribute of HTTPRedirectHandler. There's no obvious need to provide any interface to get the intermediate URLs in the redirection chain. Tracker [EMAIL PROTECTED] http://bugs.python.org/issue735515 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1615] descriptor protocol bug
Antoine Pitrou added the comment: PyObject_GenericGetAttr is invoked from slot_tp_getattr_hook in typeobject.c via tp_getattro. The problem is that, when tp_getattro returns with an AttributeError, there is no way for slot_tp_getattr_hook to know whether the error was raised by PyObject_GenericGetAttr itself or by subsequent invocation of user code. Perhaps by adding an attribute to the raised AttributeError? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1615 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Paul Pogonyshev added the comment: set_default() is a static method to set 'default'. Because of this: AbstractGCProtector.default = 42 Traceback (most recent call last): File stdin, line 1, in module TypeError: can't set attributes of built-in/extension type 'notify.gc.AbstractGCProtector' About source code: go to http://download.gna.org/py-notify/ download, unpack and do './run-tests.py' at top level. One test fails with Python SVN precisely because of this problem. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Georg Brandl added the comment: It would be very interesting to know what set_default() actually does. IOW, without the source code of the extension module we can't do anything about this. -- nosy: +georg.brandl __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Georg Brandl added the comment: I'm sorry, but I can't get this to run. With a clean 0.1.14 tarball, I get Building extension... running build_ext building 'notify.gc' extension creating build creating build/temp.linux-i686-2.5 creating build/temp.linux-i686-2.5/notify i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -fPIC -I/usr/include/python2.5 -c notify/gc.c -o build/temp.linux-i686-2.5/notify/gc.o creating build/lib.linux-i686-2.5 creating build/lib.linux-i686-2.5/notify i686-pc-linux-gnu-gcc -pthread -shared build/temp.linux-i686-2.5/notify/gc.o -L/usr/lib -lpython2.5 -o build/lib.linux-i686-2.5/notify/gc.so [1]28189 segmentation fault ~/devel/python/python run-tests.py when running with a trunk python (note the 2.5 in the paths...) When I build the extension manually and comment out the building command in run-tests.py, I get Note that most of the time is spent in gc.collect() calls, not in this package ..Fatal Python error: Objects/classobject.c:2311 object at 0x82dd2bc has negative ref count -606348326 [1]28540 abort ~/devel/python/python run-tests.py __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue917120] imaplib: incorrect quoting in commands
Changes by Christian Heimes: -- keywords: +easy type: - rfe versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue917120 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Paul Pogonyshev added the comment: Weird. Does it even run with a stable Python (not trunk)? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Paul Pogonyshev added the comment: Can you run the pasted script (from the third comment) manually then? The crash might be related to the bug in question. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue761888] popen2.Popen3 and popen2.Popen4 leaks filedescriptors
Changes by Christian Heimes: -- versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue761888 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue814654] 'import Tkinter' causes windows missing-DLL popup
Changes by Christian Heimes: -- type: - behavior versions: +Python 2.5, Python 2.6, Python 3.0 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue814654 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue779825] plistlib and bundlebuilder not in the documentation
Changes by Christian Heimes: -- assignee: jvr - components: +Documentation -Library (Lib) keywords: +easy versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue779825 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue756093] complex pow() crash on Alpha
Christian Heimes added the comment: Does the error occur with Python 2.6, too? -- components: +Extension Modules -None nosy: +tiran status: open - pending type: - crash versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue756093 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Georg Brandl added the comment: Yes, runs fine with 2.5. __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue763043] unable to specify another compiler
Changes by Christian Heimes: -- components: +Documentation keywords: +easy type: - rfe versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue763043 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue808197] rlcompleter incompatibility
Changes by Christian Heimes: -- resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue808197 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue836058] socket.send() on behaves as nonblocking when timeout is set
Changes by Christian Heimes: -- type: - behavior versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue836058 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1597850] Cross compiling patches for MINGW
Christopher Friedt added the comment: I can confirm what John Stowers experienced with ac_cv_printf_zd Did someone forget to run autoconf afterward? When I did, retrying configure again returned an error saying that config.sub was missing. I made configure just write out a yes to the ac_cv_printf_zd_format. After running 'make', the build failed saying make: *** No rule to make target `Parser/[EMAIL PROTECTED]@', needed by `Parser/[EMAIL PROTECTED]@'. Stop. -- nosy: +cfriedt _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1597850 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue921868] socket_htons does not work under AIX 64-bit
Changes by Christian Heimes: -- components: +Extension Modules -Library (Lib) keywords: +easy versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue921868 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue908316] pdb should hash stdout
Changes by Christian Heimes: -- keywords: +easy priority: normal - low type: - rfe versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue908316 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue977461] Cannot specify compiler for 'install' on command line
Christian Heimes added the comment: Use python setup.py build --compiler=bcpp install -- nosy: +tiran resolution: - invalid status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue977461 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue951275] ihooks chokes on BioPython package
Christian Heimes added the comment: The bug is probably outdated. Please open a new issue if the code fails under Python 2.5 -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue951275 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1003535] Simple File fix for Windows Runtime incompatability
Christian Heimes added the comment: We are using VS 2008 now and we don't support mixing multiple CRTs. If you still want to get your patch into Python 2.6 create a new issue with a clean patch. -- nosy: +tiran resolution: - out of date status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1003535 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue924008] make fails using -std option
Christian Heimes added the comment: No response from OP in about 3 years, closing. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue924008 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1069410] import on Windows: please call SetErrorMode first
Christian Heimes added the comment: I'll take fix it for 2.6 -- assignee: - tiran components: +Interpreter Core -Library (Lib) nosy: +tiran priority: normal - high versions: +Python 2.6 -Python 2.3 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1069410 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1069092] segfault on printing nested sequences of None/Ellipsis
Changes by Christian Heimes: -- type: - crash versions: +Python 2.6 -Python 2.3 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1069092 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1878] class attribute cache failure (regression)
Georg Brandl added the comment: I've now built my trunk python without debugging enabled, and can reproduce your problem. Armin: the extension module directly modifies an extension type's tp_dict -- what should it do instead to make the cache happy? -- assignee: - arigo nosy: +arigo __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1878 __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue970783] PyObject_GenericGetAttr is undocumented
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +easy nosy: +georg.brandl priority: normal - low type: - rfe versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue970783 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue997912] Enclosing Scope missing from namespace in Tutorial
Changes by Christian Heimes: -- assignee: - georg.brandl keywords: +easy nosy: +georg.brandl priority: normal - low versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue997912 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue808164] socket.close() doesn't play well with __del__
Changes by Christian Heimes: -- components: +Extension Modules -Library (Lib) type: - behavior versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue808164 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue849218] ZipInfo shows incorrect file size for large files
Christian Heimes added the comment: Several 32bit related issues were solved a while ago. Please creaet a new issue if the latest (!) svn checkout fails for you. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue849218 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue894743] build_ssl can't find ActiveState Perl from unusual locations
Christian Heimes added the comment: We have a new build system for Windows. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue894743 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue872686] Python 2.3.3 test_tempfile test_mode() fails on AIX 5.2
Christian Heimes added the comment: The bug report is 4 years old. Please open a new issue if the test fails with Python 2.5+. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue872686 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue840065] Incorrect shared library build
Christian Heimes added the comment: The user hasn't provided a patch in more than 4 years. Please open a new issue if you are still interested in the feature. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue840065 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1544306] checking size of int... configure: error: cannot compute siz
Georg Brandl added the comment: No response - closing. -- nosy: +georg.brandl resolution: - works for me status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1544306 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue858253] EAGAIN when sys.stdin.readline()
Christian Heimes added the comment: The bug is probably outdated. Please create a new issue if the bug still occurs for you with newer versions of Python and your OS. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue858253 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue847812] 64 bit solaris versus /usr/local/lib
Changes by Christian Heimes: -- resolution: - works for me status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue847812 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue811295] ntohs on Solaris can return negative values
Christian Heimes added the comment: The ntohs bug was fixed in Python 2.6. -- nosy: +tiran resolution: - out of date status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue811295 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue896199] Some Carbon modules missing
Changes by Christian Heimes: -- keywords: +easy priority: normal - low type: - rfe versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue896199 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue909308] Embedded Python Interpreter in MFC apps leaks
Christian Heimes added the comment: See Roland Trainor's comment. -- nosy: +tiran resolution: - works for me status: open - closed Tracker [EMAIL PROTECTED] http://bugs.python.org/issue909308 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1072642] dyld: ./python.exe multiple definitions of symbol _BC
Christian Heimes added the comment: I interpret 3 years of silence as yes, Raymond :) -- nosy: +tiran resolution: - invalid status: open - closed _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1072642 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1095821] The doc for DictProxy is missing
Changes by Christian Heimes: -- components: +Documentation -Library (Lib) keywords: +easy priority: normal - low type: - rfe versions: +Python 2.6 -Python 2.3 _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1095821 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue767645] incorrect os.path.supports_unicode_filenames
Changes by Christian Heimes: -- priority: normal - low versions: +Python 2.6 -Python 2.3 Tracker [EMAIL PROTECTED] http://bugs.python.org/issue767645 ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com
[issue1092502] Memory leak in socket.py on Mac OS X
Martey Dodoo added the comment: Just wanted to note that the good people of comp.lang.python helped me figure out that the issue is actually http://bugs.python.org/issue1389051, in case anyone in similar straits ended up here. _ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue1092502 _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com