[issue10611] sys.exit() in a test causes a test run to die

2010-12-09 Thread Éric Araujo
Éric Araujo added the comment: LGTM. -- stage: unit test needed -> patch review ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue10611] sys.exit() in a test causes a test run to die

2010-12-09 Thread Ray.Allen
Ray.Allen added the comment: Agreed. I think the "except Exception" in TestCase.run() should be "except BaseException", since BaseException could catch Exception, SystemExit, GeneratorExit, KeyboardInterrupt. The KeyboardInterrupt should be caught first. The remaining three is exactly what is

[issue10669] Remove Deprecation Warnings

2010-12-09 Thread Rusi
New submission from Rusi : I am trying to port some app from 2.x to 3.x Terry Reedy suggested using 2.7 I get deprecation warnings (with -3 flag) I would be good to have a place to check all such and have suggested solutions -- components: 2to3 (2.x to 3.0 conversion tool) messages: 123

[issue10668] Array tests have nonsense in them

2010-12-09 Thread R. David Murray
Changes by R. David Murray : -- versions: +Python 3.1, Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue10668] Array tests have nonsense in them

2010-12-09 Thread R. David Murray
R. David Murray added the comment: This class was added by the fix for issue 1486663 in r53509. Adding Georg as nosy since he committed it, but it seems like it would be worth fixing it in case someone else uses the class in an additional test in the future. -- nosy: +georg.brandl, r

[issue10668] Array tests have nonsense in them

2010-12-09 Thread Alex
New submission from Alex : In ArraySubclassWithKwargs, when __init__ is called it doesn't actually pass self to `array.array.__init__`, this doesn't actually cause errors because the contents of the array isn't tested anywhere. -- components: Library (Lib) messages: 123714 nosy: alex p

[issue10273] Clean-up Unittest API

2010-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: fyi - since I didn't chime in earlier on this: I think you made the right choice with what was decided in msg122413 and implemented in the renaming done in r86910 and the work done in issue10242. -- ___ Python tr

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2010-12-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: I have to agree that the name assertCountEqual does not work well for me as something I can read and really comprehend what it is going to do without searching for the docs or implementation to double check. (not that assertItemsEqual did either). 'Count'

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Not sure why you chose 0.11 here. It should probably be 0.2 as in the command-line code. As for applying the patch, this can't be done before 3.2 is released. -- nosy: +pitrou stage: unit test needed -> patch review ___

[issue10667] collections.Counter object in C

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: When adding some C accelerations, we often try to keep a pure Python alternative in the stdlib, since it can then benefit other Python implementations (and easy prototyping). If you move some of the methods inside a mixin and use multiple inheritance with th

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: There is no readline support on Windows at all, so I don't think the Windows installer can be affected. I'm uncertain what the proposed change to Python is at this point, though. -- ___ Python tracker

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Martin v . Löwis
Martin v. Löwis added the comment: Please, one issue per report and checkin, and no work-in-progress on the tracker. The issue of factually correcting claims about the unicodedata module and elaborations on how it works are unrelated issues. -- nosy: +loewis _

[issue10667] collections.Counter object in C

2010-12-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file19993/time_counter.py ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10667] collections.Counter object in C

2010-12-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thanks for the patch. FWIW, I'm attaching some timing code that I've used in the past. -- assignee: -> rhettinger ___ Python tracker ___ _

[issue10667] collections.Counter object in C

2010-12-09 Thread Justin Peel
New submission from Justin Peel : I put the Counter's update and __missing__ methods into C code. The rest of the existing methods remain the same. The new Counter is at least 2x-10x (or more) faster for updating depending on the input. I also added a new method, update_fromsubs, which is docu

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily added the comment: Nosying Martin: any Windows installer concerns? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-l

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : Removed file: http://bugs.python.org/file19990/unicodedata-doc.diff ___ Python tracker ___ ___ Python-bugs-l

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Added more tables semi-automatically produced from http://www.unicode.org/Public/UNIDATA/PropertyValueAliases.txt -- Added file: http://bugs.python.org/file19991/unicodedata-doc.diff ___ Python tracker

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Changes by Ned Deily : -- Removed message: http://bugs.python.org/msg123702 ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily added the comment: Keep in mind that the Python readline module may be linked to either GNU readline or the BSD editline (libedit) library and they have different command strings. Note the warning here: http://docs.python.org/dev/py3k/library/readline.html Here's a snippet of what

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily added the comment: Keep in bind that there the Python readline module may be linked to either GNU readline or the BSD editline (libedit) library and they have different command strings. Note the warning here: http://docs.python.org/dev/py3k/library/readline.html Here's a snippet o

[issue10666] OS X installer variants have confusing readline differences

2010-12-09 Thread Ned Deily
New submission from Ned Deily : 32-bit-only OS X installers build and link to a copy of the GNU readline library for use by the readline module in the standard library. But, the newer 64-bit/32-bit installer variants for 2.7 and 3.2 link to the OS X supplied BSD editline (libedit) library usi

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky : -- components: +Unicode ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky : unicodedata module documentation has not been updated to reflect transition to 6.0. Attached patch fixes the version and unicode.org links and starts making the documentation rely less on the unicode.org pages for basic understanding of the provided

[issue10664] xml.sax.expatreader should support namespace prefixes

2010-12-09 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. : The xml.sax.expatreader module pre-dates prefix reporting from Expat, and should be modified to support the feature_namespace_prefixes feature instead of complaining that Expat doesn't support prefixes. -- assignee: fdrake components: XML messag

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think TAB is the key expected by most people, so let's make it the default. As for the location, site.py is an adequate one IMO. -- components: +Library (Lib) -Interpreter Core versions: +Python 3.2 ___ Python trac

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Éric Araujo
Éric Araujo added the comment: Okay, that’s one question answered. Still to solve: How to bind the right key? (“But perhaps tab isn’t the right key to bind. I think inputrc could set it to something different, perhaps shell rc files too. Is there an API to get this setting, does readline.so

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread R. David Murray
R. David Murray added the comment: for what it is worth, I am +1 on having completion and history file work by default. The sqlite3 command line does this, for example. I think it is what unix user expect nowadays, and I think it is reasonable. Looking at my home directory, it would appear

[issue10663] configure shouldn't set a default OPT

2010-12-09 Thread Antoine Pitrou
New submission from Antoine Pitrou : The configure.in sets a default OPT of "-O" if none was set by the user, but I think that's wrong. The user could simply pass optimization flags as part of CFLAGS instead, and then the contents of OPT could conflict with that of CFLAGS (which is annoying to

[issue10453] Add -h/--help option to compileall

2010-12-09 Thread R. David Murray
R. David Murray added the comment: OK, here is what I hope is a comprehensive set of CLI tests, and fixes for the bugs revealed thereby. Except for the new test added by Georg after the original patch here was committed, all of the tests either pass using the old compileall module or fail on

[issue7475] codecs missing: base64 bz2 hex zlib hex_codec ...

2010-12-09 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: With Georg's approval, I am reopening this issue until a decision is made on whether {str,bytes,bytearray}.{transform,untransform} methods should go into 3.2. I am adding Guido to "nosy" because the decision may turn on the interpretation of his post.

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl added the comment: Granted. Since the rest of the file uses old-style format, I've kept to it, r87148. -- status: open -> closed ___ Python tracker ___ __

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Eric Smith
Eric Smith added the comment: This should be either: '' % (self.text,) or: ''.format(self.text) If self.text is a tuple (which granted is its own error), then the version checked in will raise an exception. -- nosy: +eric.smith resolution: fixed -> status: closed -> open ___

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Georg Brandl
Georg Brandl added the comment: Added in r87147. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10662] Typo in concurrent.futures, "seperate"

2010-12-09 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87146. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10662] Typo in concurrent.futures, "seperate"

2010-12-09 Thread Christian Oudard
New submission from Christian Oudard : Found the misspelling "seperate" in two places in the concurrent.futures library module. Patch attached, correcting the spelling to "separate". -- files: seperate.patch keywords: patch messages: 123688 nosy: Christian.Oudard priority: normal sever

[issue10661] ElementTree QName has a very uninformative repr()

2010-12-09 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : This is somewhat unfortunate behavior: >>> from xml.etree.ElementTree import QName >>> QName('foo') >>> It becomes even more apparent when encountered in a situation like this: >>> print {QName('foo'): 'bar', QName('baz'): 'quux'} {: 'bar', : 'quux'

[issue10660] format() to lower and uppercase

2010-12-09 Thread Eric Smith
Eric Smith added the comment: I agree with David. Here's an example of using such a subclass. It extends the format string for strings to begin with an optional 'u' or 'l': --- class U(str): def __format__(self, fmt): if fmt[0] == 'u': s = self.upper

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue10660] format() to lower and uppercase

2010-12-09 Thread R. David Murray
R. David Murray added the comment: The format support is written specifically so that it is extensible. You can write your own string subclass that extends the formatting mini-language with whatever features you find useful. There are too many variations on what might be useful with regards

[issue10660] format() to lower and uppercase

2010-12-09 Thread Hervé Cauwelier
New submission from Hervé Cauwelier : Hexadecimals can be formatted to lower and uppercase: >>> '{0:x}'.format(123) '7b' >>> '{0:X}'.format(123) '7B' I would like the same thing for strings: >>> '{0.lastname:u} {0.firstname}'.format(user) 'DOE John' I first thought using "S" for uppercase, bu

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread Georg Brandl
Georg Brandl added the comment: The development docs are rebuilt twice a day; that should be enough. As for tracker integration with version control, that is already an issue for the meta tracker at http://psf.upfronthosting.co.za/roundup/meta/issue20 (which you should know, since you comment

[issue10516] Add list.clear() and list.copy()

2010-12-09 Thread Ray.Allen
Ray.Allen added the comment: eli, you should also add "New in version 3.3" to the doc of the tow new list methods. -- nosy: +ysj.ray ___ Python tracker ___

[issue9523] Improve dbm modules

2010-12-09 Thread Ray.Allen
Ray.Allen added the comment: Here is the updated patch, which fixed: 1. remove get() method of gdbm since issue6045 has already add it. 2. method keys() and items() of dbm object return set instead of list. Since pep3119 said keys() and items() should return collections.Set and set is a coll

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik : When a new revision is committed to documentation, it will be nice to have hook scripts that start documentation build process on development server. Another hook script may also analyze commit message, extract ticket number, branch and revision from it

[issue10655] Wrong powerpc define in Python/ceval.c

2010-12-09 Thread adrian
adrian added the comment: Here is a patch that I had to include in my Linux PowerPC build of 2.7 and 3.2 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -31,10 +31,12 @@ typedef unsigned long long uint64; -#if defined(__ppc__) /* <- Don't know if this is the correct symbol; this +#if defined(

[issue10658] Link to source code is broken

2010-12-09 Thread Georg Brandl
Georg Brandl added the comment: Fixed in r87143. -- nosy: +georg.brandl resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue10658] Link to source code is broken

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik : http://docs.python.org/library/queue.html -- assignee: d...@python components: Documentation messages: 123677 nosy: d...@python, techtonik priority: normal severity: normal status: open title: Link to source code is broken versions: Python 2.7 ___

[issue10653] test_time test_strptime fails on windows

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > 1. Decoding the output of wcsftime(). Python expects mbcs (which > I believe is an UTF16-like wide char encoding) while Windows > apparently puts cp932 there in your locale. I don't have expertise > to address this issue. No, mbcs is not wide character

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : Removed file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker ___ _

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: This is updated version. Can you test this? (I only fixed leak, deferred other fixes to future) -- Added file: http://bugs.python.org/file19985/py3k_fix_leak_around_GetFinalPathNameByHandle_v2.patch ___ Python tr

[issue1571170] Some numeric characters are still not recognized

2010-12-09 Thread Anders Chrigström
Anders Chrigström added the comment: This is indeed a duplicate of #1571184 -- resolution: -> duplicate status: open -> closed ___ Python tracker ___

[issue10657] os.lstat/os.stat/os.fstat don't set st_dev (st_rdev) on Windows

2010-12-09 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : I noticed st_dev is not set yet. Attached patch fill this value, but sometimes it becomes negative value because dwVolumeSerialNumber is large enough. Maybe st_dev should be declared as unsigned int. # I think this is not new feature. Just bug. So I think