[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: And one other restriction: the thread performing the import must not be spawned as a side effect of importing a module (as this will deadlock the interpreter) The effect of disobeying the two restrictions in my previous comment will be intermittent crashes at shut

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Correction to previous comment: you can't safely perform imports from daemon threads at all, as you have to set their daemon status before you start them. So, to be able to safely import from a thread other than the main thread: - it must be created by the threadi

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Ahah, found the real restrictions - while it turns out the OP's demonstration code is indeed broken, I think the warning Georg added to the docs based on Christian's comment above is *far* too strong (hence my somewhat annoyed message on the checkins list ;). The

[issue1517495] memory leak threading or socketserver module

2008-02-23 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: It's possible but unlikely that r61011 fixed this. SocketServer creates the reference cycles it fixed, but they tended to get cleaned up by gc.collect(), so it sounds like that wasn't the bug you're seeing here. I haven't had time yet to check, so I'm mentioning

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Ah, never mind - just needed to run the test a few more times to get it to fail. _ Tracker <[EMAIL PROTECTED]> _ _

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Nope, can't reproduce it with the original tkinter/urllib script either (again, Ubuntu's 2.5.1 release and SVN 2.6, with the thread count set at 350). Could it be a windows specific problem? Or require a non-hyperthreaded CPU?

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Hmm, I can't reproduce any failure using the supplied zip file, even if I increase the number of threads to 382 (if I set it any higher, start_new_thread starts to fail). That's with both 2.5.1 and 2.6 SVN. I'll try again with the original tkinter/urllib script.

[issue2172] Add doc-string to UserDict and DictMixin

2008-02-23 Thread Raymond Hettinger
Changes by Raymond Hettinger: -- assignee: -> rhettinger nosy: +rhettinger __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1720705] thread + import => crashes?

2008-02-23 Thread Nick Coghlan
Nick Coghlan added the comment: Reopening - I disagree with the assertion that this isn't expected to work. -- nosy: +ncoghlan resolution: fixed -> status: closed -> open _ Tracker <[EMAIL PROTECTED]> ___

[issue923643] long <-> byte-string conversion

2008-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: pending -> closed. -- status: pending -> closed Tracker <[EMAIL PROTECTED]> ___ Python-bugs-list m

[issue2172] Add doc-string to UserDict and DictMixin

2008-02-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky: -- components: +Documentation versions: +Python 2.6 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mail

[issue2172] Add doc-string to UserDict and DictMixin

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Fixed an error in lavels doc. Needs review. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue2172] Add doc-string to UserDict and DictMixin

2008-02-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky: Added file: http://bugs.python.org/file9530/UserDict-doc.diff __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list ma

[issue2172] Add doc-string to UserDict and DictMixin

2008-02-23 Thread Alexander Belopolsky
New submission from Alexander Belopolsky: Attached patch improves pydoc UserDict presentation. One of the problems with the current documentation in comments is that order of methods is not preserved and thus the method level comments in DictMixin implementation are meaningless in pydoc. (In a

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Did anyone mention "clutch"? :-) Oh, well, please close issue1367711 as a duplicate. __ Tracker <[EMAIL PROTECTED]> __ _

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: I'm rejecting this patch, for the same reasons as issue2144. If further discussion is needed, please discuss on python-dev. -- resolution: -> rejected status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue2144] os.environ should inherit dict

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: I also disagree that UserDict is a clutch, and that inheriting from dict is in any way more modern or cleaner than inheriting from UserDict. Hence I'm rejecting this patch. To "appeal", please discuss on python-dev. -- resolution: -> rejected status:

[issue1742669] "%d" format handling for long values

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Applied in r61040. Thanks you all! -- resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]> _

[issue1040026] os.times() is bogus

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: FWIW, the following minimal patch fixed the bug on MacOS X and does not affect Linux: === --- Modules/posixmodule.c (revision 61014) +++ Modules/posixmodule.c (working copy) @@ -5

[issue1040026] os.times() is bogus

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Aha, I should read my own sources: "The value shall not change during the lifetime of the calling process, [XSI] except that sysconf(_SC_OPEN_MAX) may return different values before and after a call to setrlimit() which changes the RLIMIT_NOFILE soft

[issue1040026] os.times() is bogus

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > 1. .. It's preferable to cast into a clock_t immediately rather than > doing a conversion for each of the ensuing divisions. If that's your motivation, then you should cast to double instead. However, I would leave it to compiler to do micro-optimizatio

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: I think some variant of these patches was rejected before and part of these reason had to do with subtle semantic changes when switching from an old-style class (inheriting from UserDict) to a new-style class (inheriting from dict). There were also some co

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: See comments at issue2144. Benjamin Peterson demonstrated a more than 2x speedup on a micro-benchmark. Plus, the fact that two people were motivated enough to independently produce a near-complete patch is worth something.

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Alexander, regarding your comments: 1. sysconf in general returns a long because it can return all sorts of information, but os.times() returns clock_t items, so the _SC_CLK_TCK value must comfortably fit into a clock_t. It's preferable to cast into a clock_t imm

[issue1879] sqrt(-1) doesn't raise ValueError on OS X

2008-02-23 Thread Mark Dickinson
Mark Dickinson added the comment: Thanks for the confirmation, David! The work in the trunk-math branch should also fix this, in a rather better fashion (i.e., without per-platform hacks). This issue should probably be revisited after it's decided whether to merge trunk-math into the trunk b

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Let's get back on-topic. I assume you are recommending to close this issue by rejecting the patch. I disagree. The patch can be fixed to properly override all methods and a unit test can be added to guarantee that all dict methods are overridden. The

[issue1879] sqrt(-1) doesn't raise ValueError on OS X

2008-02-23 Thread David Kwast
David Kwast added the comment: On OSX 10.5 this behavior is confirmed (Python2.5 and 2.6a). This fix appears to be a good fix for python 2.6a. (Python 2.6a with patch applied) Python 2.6a0 (trunk:60977M, Feb 23 2008, 19:24:52) [GCC 4.0.1 (Apple Inc. build 5465)] on darwin Type "help", "copyrig

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Recommend closing this one. There is no point in going on the warpath against UserDict. There are downsides to changing it and almost no advantage (saving an import, that's it). The primary motivation for this bug report is the OP's distaste for UserDict

[issue2144] os.environ should inherit dict

2008-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: Py3.0 updte: UserDict is going to survive into Py3.0 and will be moved into the collections module. DictMixin is replaced by the abstract base classes for mappings. I think the discussion here has grown far beyond the original bug report. I recommend th

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > The builtins make direct calls to their own internal methods. Raymond, I guess issue2067 escaped your review. :-) __ Tracker <[EMAIL PROTECTED]> __ __

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: First, if the new thread on dict behavior does not make sense, please see discussion at issue1367711 where it started. (My mistake following up here.) Second, the ability to subclass built-in type is such a great feature, that it is a shame that doing

[issue2144] os.environ should inherit dict

2008-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: The builtins make direct calls to their own internal methods. This has existed for a long time. It would be hard to change without crushing performance. Changing it violates Meyer's open-closed principle. And changing it also introduces weird, unexpected b

[issue2144] os.environ should inherit dict

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: > What was the rationale for this decision? To me it looks like a hold- > over from the time when dicts were not subclassable. > > I agree, this is a topic for python-ideas rather than bug-track, but if > you could point me to any prior discussions on this is

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-02-23 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles added the comment: I tried to come up with a patch, but the issue isn't as easy as it seems, the proposed change is too simplistic. Leading spaces in a line is already used for one purpose : continuations of a previous line. For instance : option = value continued here giv

[issue2171] Add map, filter, zip to future_builtins

2008-02-23 Thread Georg Brandl
Changes by Georg Brandl: -- versions: +Python 2.6 -Python 3.0 __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe:

[issue2171] Add map, filter, zip to future_builtins

2008-02-23 Thread Georg Brandl
New submission from Georg Brandl: And make 2to3 recognize that, not putting a list() around them then. -- assignee: collinwinter components: 2to3 (2.x to 3.0 conversion tool), Extension Modules messages: 62855 nosy: collinwinter, georg.brandl severity: normal status: open title: Add map,

[issue2144] os.environ should inherit dict

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: > What was the rationale for this decision? To me it looks like a hold- > over from the time when dicts were not subclassable. I reckon it's faster this way, and you want basic datatypes like dict to be fast. __ Tracker <[EMAIL PR

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: http://bugs.python.org/issue1095784 proposes to exclude: .#* (CVS conflict files, but emacs sometimes also generates them) *~ would also be a candidate _ Tracker <[EMAIL PROTECTED]> __

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: > dict doesn't dynamically bind any calls; to > properly replace the semantics of dict, you > have to implement *all* API. What was the rationale for this decision? To me it looks like a hold- over from the time when dicts were not subclassable. I agree,

[issue1627] Problem with httplib and Content-Length: -1

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r61035. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: It's intentional that dict doesn't dynamically bind any calls; to properly replace the semantics of dict, you have to implement *all* API. There might be lack of documentation of this aspect, however, that is a separate issue from the one being discussed here.

[issue1486335] httplib: read/_read_chunked failes with ValueError sometime

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed for bug #900744. -- nosy: +georg.brandl resolution: -> duplicate status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue900744] catch invalid chunk length in httplib read routine

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r61034, including unittest. -- resolution: -> fixed status: open -> closed Tracker <[EMAIL PROTECTED]> ___

[issue1411097] httplib patch to make _read_chunked() more robust

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: This seems to have been fixed in r60747. -- resolution: -> out of date status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Changes by Ralf Schmitt: -- nosy: +georg.brandl _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: also patch docs. Added file: http://bugs.python.org/file9528/more-vcs-exclude+docs.txt _ Tracker <[EMAIL PROTECTED]> _ __

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: updated version of diff, which also excludes .hg, .git, .bzr, and _darcs. Added file: http://bugs.python.org/file9527/more-vcs-exclude.txt _ Tracker <[EMAIL PROTECTED]>

[issue1175194] import statement likely to crash if module launches threads

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: The documentation has now been updated to reflect this. -- nosy: +georg.brandl resolution: invalid -> duplicate status: pending -> closed _ Tracker <[EMAIL PROTECTED]> _

[issue1759997] poll() on cygwin sometimes fails [PATCH]

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Closing as 3rd party, then. -- nosy: +georg.brandl status: open -> closed versions: +3rd party -Python 2.5 _ Tracker <[EMAIL PROTECTED]> _ __

[issue1720705] thread + import => crashes?

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Documented in both thread and threading docs in r61029. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> ___

[issue1367711] Remove usage of UserDict from os.py

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: I would say dict's failure to call overloaded __setitem__ from setdefault is a dict implementation problem which should be either fixed, or clearly documented as warning to anyone who wants to derive from dict. A fix would be trivial: =

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: .bzr, and _darcs (yes, underscore) also. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Un

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: * I like factoring out the .pypirc code into a separate class. * Overall I think the patch is acceptable. We'd need to decide whether the new .pypirc is considered suitable -- I don't remember the reaction to it on the distutils-sig or catalog-sig -- but thi

[issue1858] Make .pypirc handle multiple servers

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Random notes on bugday.distutils.patch: * dist.py: this change should definitely be applied, no matter what happens to the rest of the patch. * Yay! Lots of tests! * distutils.pypirc: I'm doubtful of the finalize_options() here; looking for '-r' in the ar

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: .hg, .git, are also candidates _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1725737] Distutils default exclude doesn't match top level .svn

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: running setup.py sdist --prune results in: making hard links in ex-0.0.0... hard linking MANIFEST.in -> ex-0.0.0 hard linking setup.py -> ex-0.0.0 hard linking .hg/00changelog.i -> ex-0.0.0/.hg hard linking .hg/dirstate -> ex-0.0.0/.hg hard linking .hg/requires ->

[issue1506171] Add "methodcaller" to the operator module

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Committed patch as r61028. -- assignee: rhettinger -> georg.brandl resolution: -> accepted status: open -> closed _ Tracker <[EMAIL PROTECTED]>

[issue1826] operator.attrgetter() should accept dotted attribute paths

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Committed in r61027. -- status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing li

[issue1825] msilib.add_data() takes exactly three parameters

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r61025. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Added test case in r61024. _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2008-02-23 Thread Raymond Hettinger
Raymond Hettinger added the comment: All three items are still open. The second one is the easiest. __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-li

[issue1820] Enhance Object/structseq.c to match namedtuple and tuple api

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Is there something else to be done for this to be closed? -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ _

[issue2144] os.environ should inherit dict

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: And another. Added file: http://bugs.python.org/file9525/environ-modern3.diff __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2144] os.environ should inherit dict

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: See #1367711 for a discussion whether this is really the way to go. -- nosy: +georg.brandl __ Tracker <[EMAIL PROTECTED]> __ ___

[issue2144] os.environ should inherit dict

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: Here's a corrected version. -- keywords: +patch Added file: http://bugs.python.org/file9524/environ-modern2.diff __ Tracker <[EMAIL PROTECTED]> __

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-02-23 Thread Quentin Gallet-Gilles
Quentin Gallet-Gilles added the comment: Here's an updated patch, taking in account akuchling and schmir suggestions. -- keywords: +patch Added file: http://bugs.python.org/file9523/cfgparser_doublequotes_r61014.patch __ Tracker <[EMAIL PROTECTED]>

[issue919238] Recursive variable definition causes sysconfig infinite loop

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Is a "print" really the right way to emit this warning? -- nosy: +georg.brandl Tracker <[EMAIL PROTECTED]> _

[issue2144] os.environ should inherit dict

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Small comment on the patch: def clear(self): -for key in self.data.keys(): +for key in self.keys(): unsetenv(key) -del self.data[key] +

[issue1718942] glibc error: corrupted double linked list (CPython 2.5.1)

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: As Raymond says, it's not a Python issue, but an extension one. -- nosy: +facundobatista resolution: -> rejected status: open -> closed _ Tracker <[EMAIL PROTECTED]> ___

[issue1740] use unittest for test_logging

2008-02-23 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is an updated patch, it should apply fine against trunk. Added file: http://bugs.python.org/file9522/logtest2.patch __ Tracker <[EMAIL PROTECTED]> __ ___

[issue1607087] popen() slow on AIX due to large FOPEN_MAX value

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Changed popen2 to use os.closerange() in r61019. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> __

[issue1607087] popen() slow on AIX due to large FOPEN_MAX value

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: python 2.6 has os.closerange. however it is currently not used in popen2. -- nosy: +schmir _ Tracker <[EMAIL PROTECTED]> _ __

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: For what it's worth, here's a test case against the trunk. -- keywords: +patch Added file: http://bugs.python.org/file9521/test_mutex.diff _ Tracker <[EMAIL PROTECTED]> ___

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-02-23 Thread Facundo Batista
Changes by Facundo Batista: -- keywords: +easy -patch _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe:

[issue1524825] ConfigParser: accept leading whitespace on options+comments

2008-02-23 Thread Georg Brandl
Changes by Georg Brandl: -- type: -> feature request versions: +Python 2.6, Python 3.0 _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bu

[issue1576208] ConfigParser: whitespace leading comment lines

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: Duplicate of #1524825 -- nosy: +facundobatista resolution: -> duplicate status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ __

[issue2101] xml.dom documentation doesn't match implementation

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r61017. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ _

[issue1633953] re.compile("(.*$){1,4}", re.MULTILINE) fails

2008-02-23 Thread Ralf Schmitt
Changes by Ralf Schmitt: -- nosy: +schmir _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue1156430] doctest should support -m

2008-02-23 Thread Georg Brandl
Georg Brandl added the comment: Closing as fixed. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1746071] class mutex doesn't do anything atomically

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: On 2008/2/23, Guido van Rossum said in python-dev > According to the docstring it's only meant to be used with sched.py. > Please don't try to make it work with threads! Anyway, this module will be removed, or at least its API hidden, in 3.0. -- nosy:

[issue1156430] doctest should support -m

2008-02-23 Thread Mike Beachy
Mike Beachy added the comment: This request was implemented in 1663234, so this case can be closed. -- nosy: +mbeachy _ Tracker <[EMAIL PROTECTED]> _ ___

[issue1088077] [PATCH] tty needs a way to restore the terminal mode.

2008-02-23 Thread Facundo Batista
Facundo Batista added the comment: As Martin says, the functionality is present. If still you think we have a new method here, please raise a discussion in python-dev regarding this. Thank you! -- nosy: +facundobatista resolution: -> out of date status: open -> closed

[issue1291] test_resource fails on recent linux systems

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: I went ahead and pulled the 2.6 test back into 2.5-maint in rev. 61016, and then realized that Nick actually backported the change in rev. 60727. I decided to leave it alone; the 2.6 test should still avoid the problem, has the additional feature of using unitte

[issue1311] os.path.exists(os.devnull) regression on windows

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- resolution: -> invalid status: open -> closed __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list

[issue1040026] os.times() is bogus

2008-02-23 Thread Alexander Belopolsky
Changes by Alexander Belopolsky: _ Tracker <[EMAIL PROTECTED]> _ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailm

[issue1040026] os.times() is bogus

2008-02-23 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: os_times3.PATCH works for me on Mac OS 10.4 and RHEL. I have a few comments on the patch: 1. sysconf return type is long, not clock_t 2. If sysconf is present, but _SC_CLK_TCK is not supported, it will return -1. In this case we should fall back to sys

[issue1291] test_resource fails on recent linux systems (

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- keywords: +easy __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue2014] xmlrpclib cannot send datetime objects with dates before 1900

2008-02-23 Thread Ralf Schmitt
Ralf Schmitt added the comment: Attaching an updated version of the patch against trunk revision 61011. Added file: http://bugs.python.org/file9520/xmlrpc_date_before_1900_r61011.txt __ Tracker <[EMAIL PROTECTED]> __

[issue1519] async_chat.__init__() parameters

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> josiahcarlson nosy: +josiahcarlson __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing lis

[issue1064] Test issue

2008-02-23 Thread Martin v. Löwis
Martin v. Löwis added the comment: Attaching this patch should a) set the patch keyword, and b) set the mime type to text/plain. -- keywords: +patch Added file: http://bugs.python.org/file9519/foo.diff __ Tracker <[EMAIL PROTECTED]>

[issue1714] ConfigParser.py do not allow leading (and trailing) space in values.

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1483] xml.sax.saxutils.prepare_input_source ignores character stream in InputSource

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: Could you please provide a simple little test case for the bug? I'd like to add a test when I commit the change, but you can probably boil the problem down into a test faster than I can. -- nosy: +akuchling __ Tracker <[E

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-02-23 Thread A.M. Kuchling
A.M. Kuchling added the comment: The patch looks reasonable. I'll commit it on Monday when I'm on a machine with a more up-to-date autoconf. -- keywords: +64bit __ Tracker <[EMAIL PROTECTED]> ___

[issue1204] readline configuration for shared libs w/o curses dependencies

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1040026] os.times() is bogus

2008-02-23 Thread rbp
rbp added the comment: Malte noticed that my previous patch won't compile when HAVE_SYSCONFIG and HZ are not defined. My bad, silly mistake. I've attached a new version, which compiles and has been tested on all three cases (with test_posix4.PATCH). Please, someone with privileges remove os_time

[issue2143] smtplib.SSLFakeFile hangs forever if "\n" is not encountered

2008-02-23 Thread Rafael Zanella
Rafael Zanella added the comment: As of 2.6 the smtplib uses the ssl module, until 2.5 it uses _ssl, I *think* that this issue would bring an Exception on 2.5 while on 2.6 would return a zero length string: """ def read(self, len=1024): """Read up to LEN bytes and return them. Re

[issue1193577] add server.shutdown() method and daemon arg to SocketServer

2008-02-23 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: This is getting in my way, so I'll take a look at it. I'm planning to model the shutdown API after http://java.sun.com/javase/6/docs/api/java/util/concurrent/ExecutorService.html. The serve_forever->shutdown interval should probably also be available through a c

[issue2149] Queue.maxsize, __init__() accepts any value as maxsize

2008-02-23 Thread Benjamin Peterson
Benjamin Peterson added the comment: > The only "possible" problem I'm able to see is someone passing an object wich has __int__() and expecting it to be used. They should be explicit and say Queue(int(object_with__int__)). __ Tracker <[EMAIL PROTECTED]>

[issue2170] rewrite of minidom.Node.normalize

2008-02-23 Thread A.M. Kuchling
Changes by A.M. Kuchling: -- assignee: -> akuchling nosy: +akuchling __ Tracker <[EMAIL PROTECTED]> __ ___ Python-bugs-list mailing list Unsub

[issue1040026] os.times() is bogus

2008-02-23 Thread Malte Helmert
Malte Helmert added the comment: Sorry, but the test was still wrong because I misunderstood how assertAlmostEqual works. Attaching a fourth (final?) test. Added file: http://bugs.python.org/file9517/test_posix4.PATCH _ Tracker <[EMAIL PROTECTED]>

  1   2   >