[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 ocean-c...@m2.ccsnet.ne.jp: 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

[issue1571170] Some numeric characters are still not recognized

2010-12-09 Thread Anders Chrigström
Anders Chrigström ander...@users.sourceforge.net added the comment: This is indeed a duplicate of #1571184 -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1571170

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue9927] Leak around GetFinalPathNameByHandle (Windows)

2010-12-09 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: Removed file: http://bugs.python.org/file18979/py3k_fix_leak_around_GetFinalPathNameByHandle.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9927

[issue10653] test_time test_strptime fails on windows

2010-12-09 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue10658] Link to source code is broken

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: 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

[issue10658] Link to source code is broken

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87143. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10658 ___

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

2010-12-09 Thread adrian
adrian adr...@lisas.de 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;

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread anatoly techtonik
New submission from anatoly techtonik techto...@gmail.com: 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

[issue9523] Improve dbm modules

2010-12-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

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

2010-12-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue10516

[issue10659] Hook scripts for immediate doc build system

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org 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,

[issue10660] format() to lower and uppercase

2010-12-09 Thread Hervé Cauwelier
New submission from Hervé Cauwelier he...@itaapy.com: 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

[issue10660] format() to lower and uppercase

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6422 ___

[issue10660] format() to lower and uppercase

2010-12-09 Thread Eric Smith
Eric Smith e...@trueblade.com 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':

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

2010-12-09 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone inva...@example.invalid: This is somewhat unfortunate behavior: from xml.etree.ElementTree import QName QName('foo') xml.etree.ElementTree.QName instance at 0x10049c830 It becomes even more apparent when encountered in a situation like this: print

[issue10662] Typo in concurrent.futures, seperate

2010-12-09 Thread Christian Oudard
New submission from Christian Oudard christian.oud...@gmail.com: 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

[issue10662] Typo in concurrent.futures, seperate

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Fixed in r87146. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10662 ___

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

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Added in r87147. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10661 ___

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

2010-12-09 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: This should be either: 'QName %r' % (self.text,) or: 'QName {!r}'.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 -

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

2010-12-09 Thread Georg Brandl
Georg Brandl ge...@python.org 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 rep...@bugs.python.org http://bugs.python.org/issue10661

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

2010-12-09 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

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

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue10663] configure shouldn't set a default OPT

2010-12-09 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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,

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-12-09 Thread Fred L. Drake, Jr.
New submission from Fred L. Drake, Jr. fdr...@acm.org: 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

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
New submission from Alexander Belopolsky belopol...@users.sourceforge.net: 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

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- components: +Unicode ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10665 ___

[issue10666] OS X installer variants have confusing readline differences

2010-12-09 Thread Ned Deily
New submission from Ned Deily n...@acm.org: 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily n...@acm.org 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- Removed message: http://bugs.python.org/msg123702 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___ ___

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: Removed file: http://bugs.python.org/file19990/unicodedata-doc.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10665 ___

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Nosying Martin: any Windows installer concerns? -- nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5845 ___

[issue10667] collections.Counter object in C

2010-12-09 Thread Justin Peel
New submission from Justin Peel pee...@gmail.com: 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,

[issue10667] collections.Counter object in C

2010-12-09 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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 rep...@bugs.python.org

[issue10667] collections.Counter object in C

2010-12-09 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Added file: http://bugs.python.org/file19993/time_counter.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10667 ___

[issue10665] Update and expand unicodedata module documentation

2010-12-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue5845] rlcompleter should be enabled automatically

2010-12-09 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue10667] collections.Counter object in C

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

[issue6422] timeit called from within Python should allow autoranging

2010-12-09 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2010-12-09 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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

[issue10273] Clean-up Unittest API

2010-12-09 Thread Gregory P. Smith
Gregory P. Smith g...@krypto.org 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. --

[issue10668] Array tests have nonsense in them

2010-12-09 Thread Alex
New submission from Alex alex.gay...@gmail.com: 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)

[issue10668] Array tests have nonsense in them

2010-12-09 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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. --

[issue10668] Array tests have nonsense in them

2010-12-09 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- versions: +Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10668 ___ ___

[issue10669] Remove Deprecation Warnings

2010-12-09 Thread Rusi
New submission from Rusi rustompm...@gmail.com: 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

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

2010-12-09 Thread Ray.Allen
Ray.Allen ysj@gmail.com 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

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

2010-12-09 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: LGTM. -- stage: unit test needed - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10611 ___