[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
New submission from Valery : Hi all (I never filed a bug, so, I am not sure that all fields are OK) Anyway, here is the self explaining issue: $ python Python 2.6.3 (r263:75183, Oct 3 2009, 11:20:50) [GCC 4.4.1] on linux2 Type "help", "copyright", "credits" or "license" for more informati

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Valery
Valery added the comment: I have just installed python2.5 in addition. And there is no this issue with it. So, it rather speific to python2.6 -- ___ Python tracker ___ _

[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Mattelaer
New submission from Mattelaer : wrong redirection of slot wrapper: class.__iter__=list.__iter__ doesn't work. (the __iter__ still refer to the one define in class) The file in attachment shows an example of this problem -- components: None files: test.py messages: 93522 nosy: omatt sev

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Ryan Leslie
Ryan Leslie added the comment: Looks like a merge has gone bad. NullHandler has existed for a while on trunk but is not present in the 2.6.3 tag (__all__ was updated to include it, however): /python/tags/r263/Lib/logging/__init__.py -- nosy: +ryles

[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Trundle
Trundle added the comment: This is defined behaviour and no bug at all. Special methods are looked up in the type for new-style classes and not in the instance. Try changing ``self.__iter__=self.__str__`` to ``test1.__iter__ = self.__str__`` in your example (which will then raise a TypeError on

[issue7053] wrong overload of slot wrapper

2009-10-04 Thread Georg Brandl
Georg Brandl added the comment: Closing as "won't fix". -- nosy: +georg.brandl resolution: -> wont fix status: open -> closed ___ Python tracker ___

[issue7033] C/API - Document exceptions

2009-10-04 Thread lekma
lekma added the comment: Even though I don't fully agree with your comments here is a second attempt addressing them, against trunk. For the record, I think that the signature difference is enough to warrant a name that is a clear cut from PyErr_NewException. And in the spirit of the Py_InitMod

[issue7033] C/API - Document exceptions

2009-10-04 Thread lekma
lekma added the comment: Same as previous against py3k -- Added file: http://bugs.python.org/file15036/issue7033_py3k_2.diff ___ Python tracker ___ __

[issue7049] decimal.py: NaN result in pow(x, y, z) with prec 1

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: Shrug. That doesn't really bother me. x**y%z and pow(x, y, z) aren't going to match anyway, as soon as x**y has to be rounded. What would bother me more is the idea of having, with precision 4: pow(3, 22, 12347) -> nan pow(3, 23, 12347) -> 7820 pow(3, 24, 1

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> vinay.sajip nosy: +vinay.sajip priority: -> critical stage: -> needs patch type: resource usage -> behavior ___ Python tracker ___ _

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Gregor Lingl
Gregor Lingl added the comment: The same True for captureWarnings? (It's also is only present in __all__) -- nosy: +gregorlingl ___ Python tracker ___ ___

[issue7054] Python25.chm seems to be broken

2009-10-04 Thread Mark Schlieker
New submission from Mark Schlieker : CHM file for Python 2.5 documentation does not work when being used without Python installation. My OS is: Microsoft Windows XP (sp2) Steps on how to reproduce: prerequisite: 1) No python has been installed on machine (not sure if necessary) steps: 1) Down

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Georg committed a fix but now we have: >>> from logging import * Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'captureWarnings' -- nosy: +georg.brandl, pitrou __

[issue5395] array.fromfile not checking I/O errors

2009-10-04 Thread Jan Hosang
Jan Hosang added the comment: Ezio, I moved the test to a separate method. Also I couldn't find something to close the file if I don't care about errors. I thought an assertRises would be wrong, as I am not debugging files here, so I added a function to call a callable I expect to throw an ex

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Gregor Lingl
Gregor Lingl added the comment: As stated above: the name captureWarnings is also present *only* in __all__. Same reason, same effect. -- ___ Python tracker ___ ___

[issue5395] array.fromfile not checking I/O errors

2009-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: There doesn't seem to be any reason to introduce the "expect_exception()" helper, rather than to use a with statement. Am I mistaken? -- nosy: +pitrou stage: test needed -> patch review versions: +Python 2.7, Python 3.2 -Python 2.6

[issue7054] Python25.chm seems to be broken

2009-10-04 Thread Mark Schlieker
Mark Schlieker added the comment: Oh I found out myself: the file is ok. When the message gets displayed it has to do with security settings in Windows XP: Solution: Right click on the file in file explorer and choose properties in order to open the properties dialog. Click on "allow" under se

[issue7054] Python25.chm seems to be broken

2009-10-04 Thread Mark Schlieker
Changes by Mark Schlieker : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue5395] array.fromfile not checking I/O errors

2009-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, I get it, you want f.close() to always succeed, even if the underlying file descriptor has already been closed. Well, I so no reason to introduce a helper anyway, the following four lines are much more readable and explicit: try: f.close() e

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Not quite sure what happened, yet. It may be, as Ryan said, that a merge went wrong somewhere. I've altered Lib/logging/__init__.py in release26-maint to remove captureWarnings from __all__. Note that the change which introduced captureWarnings and NullHandler was

[issue7042] test_signal fails on os x 10.6

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: I'm seeing this failure too, on a 64-bit build of the trunk on OS X 10.6.1. If I understand the test, it's setting up a timer that's supposed to run for 0.3 seconds of 'virtual time', signal, and then signal every 0.2 seconds of virtual time thereafter. The

[issue7042] test_signal fails on os x 10.6

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: Issue #5972 looks like the same problem. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue5972] Failing test_signal.py on Redhat 4.1.2-44

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: See also issue #7042. -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Noticed that the code in the r262 tag (dated 13 Mar 2009) seems OK. I don't know how to find out how this happened, i.e. is it something I did wrong or is it something which went wrong during the release process? Any pointers gratefully received. -- _

[issue7042] test_signal fails on os x 10.6

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: This may also explain why the x86 FreeBSD trunk buildbot is currently hanging on test_signal. (And I see Ned already mentioned issue 5972 above. Sorry for the noise.) -- ___ Python tracker

[issue7042] test_signal fails on os x 10.6

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: chuck: does the attached patch fix the problem for you? -- keywords: +patch Added file: http://bugs.python.org/file15038/issue7042.patch ___ Python tracker

[issue5395] array.fromfile not checking I/O errors

2009-10-04 Thread Ezio Melotti
Ezio Melotti added the comment: I tried to apply both the patches on the trunk but the tests don't pass. With the latest patch I get an EOFError instead of IOError in the assertRaises. The function I was talking about was test_support.unlink(), but that just removes the file, it doesn't close i

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Ok, found it. It looks like I messed up in r72005 when fixing #5854. Very sorry to all for the inconvenience. I will add a unit test to try and catch this in the future. -- ___ Python tracker

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: I see Benjamin's beaten me to it - thanks, Benjamin. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Georg Brandl
Georg Brandl added the comment: I've already added logging to test___all__.py which checks the __all__ attribute. -- ___ Python tracker ___ __

[issue7055] Automatic test___all__

2009-10-04 Thread Antoine Pitrou
New submission from Antoine Pitrou : This patch replaces the explicit list of modules in test___all__ with an automatic detection of modules having a __all__ attribute, so that we don't forget any. It doesn't really appear to slow things down; test___all__ only takes one second here. --

[issue7055] Automatic test___all__

2009-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- keywords: +patch Added file: http://bugs.python.org/file15039/test_all.patch ___ Python tracker ___ ___

[issue7055] Automatic test___all__

2009-10-04 Thread Georg Brandl
Georg Brandl added the comment: Hey, I was doing that too! :) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7052] "from logging import *" causes an error under Ubuntu Karmic

2009-10-04 Thread Vinay Sajip
Vinay Sajip added the comment: Georg Brandl added the comment: > I've already added logging to test___all__.py which checks the __all__ > attribute. Sorry, I thought Benjamin did that. Thanks and regards, Vinay Sajip -- ___ Python tracker

[issue1378] fromfd() and dup() for _socket on WIndows

2009-10-04 Thread Preston Landers
Preston Landers added the comment: I'm curious what happened with this issue. It says closed+accepted but it doesn't appear to be checked in. Was there a fatal problem implementing this feature on Windows? Is it hung up on the inability to dup SSL sockets? I'm highly interested in deployi

[issue7055] Automatic test___all__

2009-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: There was a problem with os.environ (from distutils and CGIHTTPServer) changes disturbing test_wsgiref, so I've added an unconditional save/restore of os.environ in test.regrtest. -- Added file: http://bugs.python.org/file15040/test_all.patch _

[issue7055] Automatic test___all__

2009-10-04 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file15039/test_all.patch ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue7042] test_signal fails on os x 10.6

2009-10-04 Thread Mark Dickinson
Mark Dickinson added the comment: I've applied the above patch in r75236 (trunk), r75237 (release26-maint), r75238 (py3k) and r75239 (release31-maint). With any luck this should fix the issue. Jan Hosang, can you confirm that this is fixed? -- resolution: -> fixed status: open -> pe

[issue7055] Automatic test___all__

2009-10-04 Thread R. David Murray
R. David Murray added the comment: For os.environ, wouldn't it be better to fix the tests so that they don't disturb the environment? Even if the CGIHTTPServer legitimately modifies the environment, shouldn't it be the responsibility of its test suite to wrap it so that the environment isn't mo

[issue6992] PEP 314 inconsistency (authors/author/maintainer)

2009-10-04 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Tarek Ziadé wrote: > > Tarek Ziadé added the comment: > >> I'm just suggesting to add the meta-data field in order to recreate >> consistency - not advocating that setup() parameter or its use. > > Yes but fixing this inconsitency can be done on either s

[issue7055] Automatic test___all__

2009-10-04 Thread Antoine Pitrou
Antoine Pitrou added the comment: You are right, such an approach would be better. I don't really want to mess with test_distutils, however, and I was looking for a reliable fix to the problem. -- ___ Python tracker

[issue7056] regrtest runtest_inner calls findtestdir unnecessarily

2009-10-04 Thread R. David Murray
New submission from R. David Murray : Running regrtest over an installed, read-only Lib produces several test failures, and regrtest crashes. In investigating these, which I will deal with in other issues, I found that the regrtest runtest_inner method takes a 'testdir' argument, and if it is no

[issue7056] regrtest runtest_inner calls findtestdir unnecessarily

2009-10-04 Thread R. David Murray
R. David Murray added the comment: second patch -- Added file: http://bugs.python.org/file15042/remove_testdir_from_runtest.patch ___ Python tracker ___ _

[issue7055] Automatic test___all__

2009-10-04 Thread R. David Murray
R. David Murray added the comment: Hmm. Maybe we could fix it _and_ complain. -- ___ Python tracker ___ ___ Python-bugs-list mailing

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: This last point is already tracked by issue5127. -- nosy: +amaury.forgeotdarc ___ Python tracker ___ _

[issue1054967] bdist_deb - Debian packager

2009-10-04 Thread Andrew Straw
Andrew Straw added the comment: stdeb ( http://github.com/astraw/stdeb ) now includes a bdist_deb distutils command. -- ___ Python tracker ___

[issue5127] UnicodeEncodeError - I can't even see license

2009-10-04 Thread Adam Olsen
Adam Olsen added the comment: Surrogates aren't optional features of UTF-16, we really need to get this fixed. That includes .isalpha(). We might keep the old public API for compatibility, but it should be clearly marked as broken for non-BMP scalar values. I don't see a problem with changing

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Adam Olsen
Adam Olsen added the comment: Patch, which uses UTF-32-BE as indicated in my last comment. Test included. -- keywords: +patch Added file: http://bugs.python.org/file15043/py3k-nonBMP-literal.diff ___ Python tracker

[issue7057] tkinter doc: more 3.x updates

2009-10-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : The transition from Tkinter/tkinter to tkinter/_tkinker in 3.x docs is incomplete. 1. There are several places not in titles or beginning of sentences where Tkinter (roman type) needs to be replaced with tkinter (fixed type, as elsewhere). 2. "24.1.1. Tkinte

[issue3297] Python interpreter uses Unicode surrogate pairs only before the pyc is created

2009-10-04 Thread Adam Olsen
Adam Olsen added the comment: With some further prodding I've noticed that although the test behaves as expected in the py3k branch (fails on UTF-32 builds before the patch), it doesn't fail using python 3.0. I'm guessing there's interactions with compile() vs import and the issue 3672 fix. St

[issue7058] Add some test execution environment protection to regrtest

2009-10-04 Thread R. David Murray
New submission from R. David Murray : One of the failures when regrtest is run with a read-only Lib results from test_runpy modifying sys.argv. Antoine also found cases where tests modified os.environ in issue 7055. It seems useful to have regrtest fix these kinds of environment corruptions whe

[issue7057] tkinter doc: more 3.x updates

2009-10-04 Thread Ezio Melotti
Changes by Ezio Melotti : -- assignee: georg.brandl -> ezio.melotti nosy: +ezio.melotti priority: -> normal ___ Python tracker ___ ___

[issue7058] Add some test execution environment protection to regrtest

2009-10-04 Thread R. David Murray
R. David Murray added the comment: Or should regrtest convert these into test failures for reporting purposes? -- ___ Python tracker ___ _

[issue7059] 'checking getaddrinfo bug' doesn't output the result during ./configure

2009-10-04 Thread Ezio Melotti
New submission from Ezio Melotti : This is what I see while running ./configure on both trunk and py3k, on Linux: checking for major... yes checking for getaddrinfo... yes checking getaddrinfo bug... checking for getnameinfo... yes checking whether time.h and sys/time.h may both be included... ye

[issue7043] test_urllib: constructLocalFileUrl returns invalid URLs on Windows

2009-10-04 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think this can be fixed by merging r72343. -- nosy: +ocean-city ___ Python tracker ___ ___ Pyth

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-04 Thread R. David Murray
New submission from R. David Murray : test_multiprocessing is producing tracebacks and hanging on py3k trunk. I think this started happening fairly recently, as it seemed to work in one not-too-old checkout until I did an svn up and then it started failing. 3.1 seems fine. I've attached the tr

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-04 Thread R. David Murray
Changes by R. David Murray : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue7060] test_multiprocessing dictionary changed size errors and hang

2009-10-04 Thread R. David Murray
R. David Murray added the comment: r75241 seems to be the cause. Tests passes on r75240, but gives the dict error and hang on r75241. -- ___ Python tracker ___ _

[issue7043] test_urllib: constructLocalFileUrl returns invalid URLs on Windows

2009-10-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Fixed and Committed revision 75253. Will just wait for windows buildbot to test it before closing. -- resolution: -> fixed ___ Python tracker

[issue7026] test_urllib: unsetting missing 'env' variable

2009-10-04 Thread Senthil Kumaran
Senthil Kumaran added the comment: Committed revision 75254 for release26-maint. -- status: open -> closed ___ Python tracker ___ ___

[issue7061] Improve 24.5. turtle doc

2009-10-04 Thread Terry J. Reedy
New submission from Terry J. Reedy : Reading through 24.5 on the turtle module, I have a number of comments aimed at improvements. Some are straightforward fixes which any doc maintainer could enter. Others are questions about meaning that I presume the current maintainer, gregor lingl may have t

[issue7061] Improve 24.5. turtle doc

2009-10-04 Thread Gregor Lingl
Gregor Lingl added the comment: Thanks, Terry, for reading the docs that thoroughly. Alas, for the next week I'm too busy (with preparing "Python für Kids" for press) to work through this long list. Since it doesn't seem to be *very* urgent, I'll defer that work until Oct. 12th or so. Then I'll

[issue7062] No docs for module 'IN'

2009-10-04 Thread Roman Sokolov
New submission from Roman Sokolov : Python 2.6.3 (r263:75183, Oct 2 2009, 11:22:08) >>> import IN >>> help(IN) -- contain following lines: "MODULE DOCS http://docs.python.org/library/IN"; , but server returns 404 error: "The requested URL /library/IN was not found on this server." and no do