[issue4904] Typo for PickingError in pickle.py

2009-01-09 Thread Erick Tryzelaar
New submission from Erick Tryzelaar : Noticed that in the release version of python 3.0 and the latest svn that on line 835 the exception UnpickingError is raised instead of UnpicklingError. -- components: Library (Lib) messages: 79531 nosy: erickt severity: normal status: open title: T

[issue4753] Faster opcode dispatch on gcc

2009-01-09 Thread Paolo 'Blaisorblade' Giarrusso
Paolo 'Blaisorblade' Giarrusso added the comment: @ ajaksu2 > Applying your patches makes no difference with gcc 4.2 and gives a > barely noticeable (~2%) slowdown with icc. "Your patches" is something quite unclear :-) Which are the patch sets you are comparing? And on 32 or 64 bits? But does Y

[issue4631] urlopen returns extra, spurious bytes

2009-01-09 Thread Craig Holmquist
Changes by Craig Holmquist : -- nosy: +craigh ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue4903] binascii.crc32()

2009-01-09 Thread David M. Beazley
David M. Beazley added the comment: Can someone PLEASE make sure this gets documented someplace. ___ Python tracker ___ ___ Python-bugs-list ma

[issue1202] zlib.crc32() and adler32() return value

2009-01-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: err not 3.0.x, 3.0 is always unsigned like anyone sane would want. :) -- versions: -Python 3.0 ___ Python tracker ___ ___

[issue1202] zlib.crc32() and adler32() return value

2009-01-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: seems there are bugs with it not staying signed as it should on some 64bit platforms. i'll be looking into this shortly. its a good candidate bug for 2.6.x and 3.0.x releases. -- keywords: -easy ___ Python tra

[issue4903] binascii.crc32()

2009-01-09 Thread Gregory P. Smith
Gregory P. Smith added the comment: When treated as an unsigned 32bit value those are identical. Guido prefers to keep Python 2.x always having signed values for the scattered crc functions. We changed it for 3.0 because it makes more sense given that python these days no real fixed-bits num

[issue4882] Behavior of backreferences to named groups in regular expressions unclear

2009-01-09 Thread Jim Jewett
Jim Jewett added the comment: That sounds like a good idea, particularly since it is a bit different from Perl. Please do write up the a clarification. Typically, I have either attached a file with the suggested wording, or included it in a comment from which a commiter could cut-and-paste.

[issue4903] binascii.crc32()

2009-01-09 Thread David M. Beazley
New submission from David M. Beazley : The result of binascii.crc32() is different on the same input in Python 2.6/3.0. For example: Python 2.6: >>> binascii.crc32('Hello') -137262718 Python 3.0: >>> binascii.crc32(b'Hello') 4157704578 -- components: Library (Lib) messages: 79524 n

[issue4074] Building a list of tuples has non-linear performance

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Ok, committed in trunk and py3k. Thanks! Thanks! ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: Ah, ok. ctypes can indeed only build with GNU tools. This is a known issue, and nobody has volunteered to fix it yet. Closing it as such, then. -- resolution: -> wont fix status: open -> closed ___ Python tracker

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12665/counter3.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file12671/counter4.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue4893] Use separate thread support code under MS Windows CE

2009-01-09 Thread Mark Hammond
Mark Hammond added the comment: Early windows CE devices were very crippled, and IIRC, only the Unicode version of the API existed, and (also IIRC) this was well before Python had builtin unicode. I agree with Martin; it is probably worth investigating how much effort it is to get thread_nt.h w

[issue4074] Building a list of tuples has non-linear performance

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, committed in trunk and py3k. Thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue4890] handling empty text search pattern in tkinter

2009-01-09 Thread Guilherme Polo
Guilherme Polo added the comment: I don't know what I was thinking when I said that, the check you are doing in the patch is fine. And just to answer your next question: it would raise ValueError. Also, it would be good to add the other missing search switches. -- nosy: +gpolo versions

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Aki
Aki added the comment: > I'm really puzzled; gcc would normally not generate assembler code like this. This is because an assembler source (sysv.S) was given. Python-2.6.1/Modules/_ctypes/libffi/src/x86/sysv.S It was created by Red Hat. A macro, RAW_CLOSURE_CIF_OFFSET, contains '~'.

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Aki
Aki added the comment: I have installed GNU binutil package to my machine to use GNU as. I re-run configure but configure somehow always found Sun as rather than GNU as even I saw GNU as first from my csh environment. I temporalily renamed Sun as so that configure was forced to use GNU as. With

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: > movl 10 + 3) & ~3) + 4) + 4)(%eax), %edx I'm really puzzled; gcc would normally not generate assembler code like this. Instead, with the expression being constant, gcc should normally compute its result, and fill that into the assembler code. To study t

[issue4857] syntax: no unpacking in augassign

2009-01-09 Thread Terry J. Reedy
Terry J. Reedy added the comment: The grammar in the doc is not the one used to generate the parser/compiler. The former is meant to be easier for humans to read, the latter easier for the parser generator. Neither completely embody Python's syntax rules. Additional restrictions may be applie

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Aki
Aki added the comment: Hello Martin, Thank you for your prompt response. I recompiled the source with --save-temps. I examined the assembler source and found that it was complaining about '~'! movl 10 + 3) & ~3) + 4) + 4)(%eax), %edx ^ this one The source was compiled a

[issue4899] doctest should support fixtures

2009-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I concur with David. This is not in the spirit of the doc test module. We already have the heavy-weight unittest module as an alternative when more firepower is needed. Also, adding more infra-structure to the this already lengthy module will make it harde

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: The counts/counter moniker emerged from the python-dev discussion and I'm basically happy with it since the typical usage is c=Counter(myseq) with no other non-dict accesses (mostly just c[elem]+=1 and print c[elem]). It's a simple counter with a dict interf

[issue4293] Thread Safe Py_AddPendingCall

2009-01-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I indeed forgot the unittests and docs. They are now in, in revision: 68461 ___ Python tracker ___ __

[issue4074] Building a list of tuples has non-linear performance

2009-01-09 Thread Collin Winter
Collin Winter added the comment: LGTM. Go ahead and commit this. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: Run the gcc command line with --save-temps (-fsave-temps if the former doesn't work), and inspect the assembler file around the line where the assembler complains. Is this inline assembler code possibly? -- nosy: +loewis __

[issue4902] failed to build ctypes in Python2.6.1 (even with gcc)

2009-01-09 Thread Aki
New submission from Aki : I'm trying to build Python 2.6.1 on Solaris/x86 machine but it puked. gcc -fPIC -fno-strict-aliasing -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I. -I/home/neko/gnu/Python-2.6.1/./Include -Ibuild/temp.solaris-2.10-i86pc-2.6/libffi/include -Ibuild/temp.solaris-2.1

[issue4293] Thread Safe Py_AddPendingCall

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Kristján Valur Jónsson added the comment: > > Checked in as revision: 68460 Looks like you forgot the unit tests! ___ Python tracker ___ ___

[issue4074] Building a list of tuples has non-linear performance

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch with updated comments. Added file: http://bugs.python.org/file12670/gctrigger6.patch ___ Python tracker ___ __

[issue4753] Faster opcode dispatch on gcc

2009-01-09 Thread Daniel Diniz
Daniel Diniz added the comment: Paolo, Applying your patches makes no difference with gcc 4.2 and gives a barely noticeable (~2%) slowdown with icc. These results are from a Celeron M 410 (Core Solo Yonah-based), so it's a rather old platform to run benchmarks on. __

[issue4293] Thread Safe Py_AddPendingCall

2009-01-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Checked in as revision: 68460 -- resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue3582] thread_nt.c update

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: Windows NT (3.1, and a number of later versions) only support 64 TLS keys. Starting with Windows 2000, they added another page per thread for TLS, giving an addition 1024 TLS slots, for a total of 1088 TLS slots. FWIW, Win 9.x supported 80 TLS slots. See http:

[issue4336] Fix performance issues in xmlrpclib

2009-01-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Checked in revision: 68458 and revision: 68459 -- resolution: -> accepted status: open -> closed ___ Python tracker ___ _

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
Skip Montanaro added the comment: >> I thought "why_not_here" was meaningful. Antoine> I don't know, when I see "goto why_not_here" it looks like a Antoine> joke to me :) Well, I think the enum name WHY_NOT is kind of a joke itself, but it's been that way for so long I see no reason to

[issue3677] importing from UNC roots doesn't work

2009-01-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Checked in as revision: 68457 -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___

[issue4604] close() seems to have limited effect

2009-01-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: accepted -> fixed status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mail

[issue3582] thread_nt.c update

2009-01-09 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Committed this as revision: 68455 -- resolution: -> accepted status: open -> closed ___ Python tracker ___

[issue4604] close() seems to have limited effect

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Expanded the test a bit and committed the patch in r68454. Thanks! -- resolution: -> accepted stage: patch review -> committed/rejected status: open -> pending versions: -Python 3.1 ___ Python tracker

[issue4888] misplaced (or misleading) assert in ceval.c

2009-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: I wasn't opposing the patch. Just wanted to look back at why the assertion was put there in the first place. If you want it in, go ahead. -- assignee: rhettinger -> ___ Python tracker

[issue4881] Python's timezon handling: daylight saving option

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: For Windows (what version are you using?), you need to install Microsoft's time zone patches, e.g. the one described in http://support.microsoft.com/kb/951072 Depending on the exact version of Windows that you use, and depending on whether or not you run Wind

[issue4899] doctest should support fixtures

2009-01-09 Thread David W. Lambert
David W. Lambert added the comment: I disagree. Purpose of __doc__ is to explain functionality all at once. This command idiom is useful: $ python -c 'from a_module import thing; help(thing)' The doctest module is a lightweight nicety that helps verify that which is suitable. The sufficientl

[issue4898] {context, unified}_diff add spurious trailing whitespace if fromfiledate/tofiledate are emptyk

2009-01-09 Thread Adeodato Simó
Adeodato Simó added the comment: > Who is the author of this patch? I am the author of the patch attached to this bug report. ___ Python tracker ___ _

[issue4898] {context, unified}_diff add spurious trailing whitespace if fromfiledate/tofiledate are emptyk

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: Who is the author of this patch? -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list maili

[issue4893] Use separate thread support code under MS Windows CE

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: So perhaps it is better to use thread_nt.h now on WinCE? Mark? -- nosy: +loewis, mhammond ___ Python tracker ___ _

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-09 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Is the problem related to this issue or should I create new issue about that. You should assume that it is not related. > I can also provide simple project that could be used to test this out. That would be necessary.

[issue4705] python3.0 -u: unbuffered stdout

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r68451. Thanks! -- resolution: accepted -> fixed status: open -> closed ___ Python tracker ___

[issue4897] PyIter_Next documentation inconsistent with implementation

2009-01-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: The reason I linked to that issue is that the proposed patch brings the implementation inline with the documentation as you wished. :) ___ Python tracker

[issue4897] PyIter_Next documentation inconsistent with implementation

2009-01-09 Thread garcia
garcia added the comment: Thanks for the quick response. I see that the discussion in 3720 implicitly involves the implementation of PyIter_Next, but the documentation for PyIter_Next (and its conflict with the implementation) is not mentioned. ___ Python

[issue4901] inconsistent API docs for tp_iter

2009-01-09 Thread garcia
New submission from garcia : Page 107 of api.pdf says that Py_TPFLAGS_HAVE_ITER is set if the type object has the tp_iter and tp_iternext fields, but on page 109, preceding the documentation of tp_iter and tp_iternext, it says "the next two fields only exist if the Py_TPFLAGS_HAVE_CLASS flag b

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I thought "why_not_here" was meaningful. I don't know, when I see "goto why_not_here" it looks like a joke to me :) > I don't think continue will work. The goto is coming out of an > inner loop. If you continue from there you just continue the inner loop.

[issue4884] Work around gethostbyaddr_r bug

2009-01-09 Thread Jeffrey Yasskin
Jeffrey Yasskin added the comment: Committed as r68450. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue4705] python3.0 -u: unbuffered stdout

2009-01-09 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- resolution: -> accepted stage: patch review -> commit review versions: +Python 3.1 ___ Python tracker ___ _

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
Skip Montanaro added the comment: Antoine> The label "why_not_here" should be renamed to something more Antoine> meaningful IMO. Or you could just kill the label and use Antoine> "continue" instead. I thought "why_not_here" was meaningful. "Here" is where you go when why == WHY_NOT. I

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: I get a 3% speedup on x86-64 with gcc 4.3.2. The label "why_not_here" should be renamed to something more meaningful IMO. Or you could just kill the label and use "continue" instead. -- nosy: +pitrou ___ Python track

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Daniel Diniz
Daniel Diniz added the comment: Neat, gives a 10% speedup on a Celeron M with gcc 4.2. -- nosy: +ajaksu2 versions: +Python 3.0, Python 3.1 Added file: http://bugs.python.org/file12669/gcc_4.2.4_linux_ia32_bench.txt ___ Python tracker

[issue4900] Can't Locate File with No Capital in Name

2009-01-09 Thread Benjamin Peterson
Changes by Benjamin Peterson : -- resolution: -> invalid status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue4897] PyIter_Next documentation inconsistent with implementation

2009-01-09 Thread Benjamin Peterson
Benjamin Peterson added the comment: Closing a duplicate of #3720. -- nosy: +benjamin.peterson resolution: -> duplicate status: open -> closed superseder: -> segfault in for loop with evil iterator ___ Python tracker

[issue4900] Can't Locate File with No Capital in Name

2009-01-09 Thread mark pennock
mark pennock added the comment: Your right! Thanks a lot, I am obviously a newbie. ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue4900] Can't Locate File with No Capital in Name

2009-01-09 Thread Ulrich Eckhardt
Ulrich Eckhardt added the comment: "\t" is a tab while "\T" is (I think) just an ugly equivalent to "T". Use either of r"D:\test.html" "D:\\test.html" Please check if that is the reason for your failure. -- nosy: +eckhardt ___ Python tracker

[issue4900] Can't Locate File with No Capital in Name

2009-01-09 Thread mark pennock
New submission from mark pennock : error reading files in python 2.5 reports files don't exist under certain conditions *Doesn't Work Code* f = open("D:\test.html", "r").read() *Does Work Code* (Change file name and retry) f = open("D:\Test.html", "r").read() *Comments* i tried different fil

[issue4900] Can't Locate File with No Capital in Name

2009-01-09 Thread mark pennock
Changes by mark pennock : -- components: None nosy: markpennock severity: normal status: open title: Can't Locate File with No Capital in Name versions: Python 2.5 ___ Python tracker

[issue4899] doctest should support fixtures

2009-01-09 Thread Giovanni
New submission from Giovanni : The doctest module should have support for fixtures (e.g. setUp and tearDown methods). It is very silly to be forced to always re-import all the modules needed in every function tested with doctest. For example, when you have to document functions that open files,

[issue4881] Python's timezon handling: daylight saving option

2009-01-09 Thread Pablo Castagnino
Pablo Castagnino added the comment: Ok, first of all I want to say I'm no Python programmer/developer. However, I recently posted a 'bug' for a Linux/Windows program I'm using very much which is based in Python. The program is called Anki and it's designed to help you remember facts (such as wor

[issue4888] misplaced (or misleading) assert in ceval.c

2009-01-09 Thread Guido van Rossum
Guido van Rossum added the comment: I don't see why the refactoring has to maintain the same logic bug as the original. I'm with Skip & Jeffrey. -- nosy: +gvanrossum ___ Python tracker

[issue4892] Sending Connection-objects over multiprocessing connections fails

2009-01-09 Thread Jesse Noller
Jesse Noller added the comment: thanks for filing this. I'll need to compare the two code bases and figure out why it's either regressed, or Richard removed it prior to the integration. ___ Python tracker

[issue4892] Sending Connection-objects over multiprocessing connections fails

2009-01-09 Thread Jesse Noller
Changes by Jesse Noller : -- assignee: -> jnoller nosy: +jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue4898] {context, unified}_diff add spurious trailing whitespace if fromfiledate/tofiledate are emptyk

2009-01-09 Thread Adeodato Simó
New submission from Adeodato Simó : Hello. I recently noticed that Bazaar's unified_diff() was emiting ---/+++ lines with a trailing whitespace if fromfiledate/tofiledate were the empty string. (Which was bad because a program to detect spurious trailing whitespace in diffs would flag them as

[issue4897] PyIter_Next documentation inconsistent with implementation

2009-01-09 Thread garcia
New submission from garcia : The documentation for PyIter_Next says it will raise TypeError if the object passed to it is not an iterator. However, the implementation in abstract.c performs an assert rather than raising TypeError. I would prefer if the implementation were adjusted to match t

[issue1696199] Add collections.counts()

2009-01-09 Thread Antoine Pitrou
Antoine Pitrou added the comment: Some comments: - Counter sounds like a really strange name for a container. Why not call it "Bag" or "Multiset" (or "CountingSet"?) - why are the unittests inline rather than in Lib/test? inline tests don't get executed by the buildbots, nor by people running th

[issue4896] Faster why variable manipulation in ceval.c

2009-01-09 Thread Skip Montanaro
New submission from Skip Montanaro : The why_code enum in ceval.c has values which form a bit set. Comparison of the why variable against multiple values is going to be faster using bitwise operations instead of logical ones. For example, instead of why == WHY_RETURN || why == WHY_CONTINUE

[issue4895] Missing strdup() under MS Windows CE

2009-01-09 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : CE6 doesn't provide strdup() but provides an equivalent _strdup() in stdlib.h. The attached patch simply #defines strdup _strdup after including said header file. -- components: Interpreter Core files: python-2.7-wince-strdup.0.patch keywords: patch

[issue4894] documentaion doesn't include parameter in urllib.request.HTTPRedirectHandler.redirect_request

2009-01-09 Thread mroman
New submission from mroman : documentaion doesn't include parameter in urllib.request.HTTPRedirectHandler.redirect_request http://docs.python.org/3.0/library/urllib.request.html#urllib.request.HT TPRedirectHandler.redirect_request says: HTTPRedirectHandler.redirect_request(req, fp, code, msg,

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12664/counter2.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Added file: http://bugs.python.org/file12665/counter3.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12662/counter.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Added a few more in-module tests. Added file: http://bugs.python.org/file12664/counter2.diff ___ Python tracker ___ __

[issue4893] Use separate thread support code under MS Windows CE

2009-01-09 Thread Ulrich Eckhardt
New submission from Ulrich Eckhardt : There is a separate file thread_wince.h for use with CE, but that is firstly not used due to a missing macro definition and secondly it doesn't compile as it is. The attached patch defines WINCE_THREADS for CE and makes the file at least compile. Note that t

[issue4892] Sending Connection-objects over multiprocessing connections fails

2009-01-09 Thread Henrik Gustafsson
Henrik Gustafsson added the comment: $ cat pipetest2.py try: from multiprocessing import Pipe except ImportError: from processing import Pipe c1, c2 = Pipe(duplex=False) c2.send('asdf') print c1.recv() c2.send(c1) print c1.recv() ___ Python

[issue4892] Sending Connection-objects over multiprocessing connections fails

2009-01-09 Thread Henrik Gustafsson
New submission from Henrik Gustafsson : It seems the old pyprocessing (http://pyprocessing.berlios.de/) can do some things that the new multiprocessing package can not; sending/receiving connection objects for one. This is a quite handy functionality, so it would be nice if it were reintroduc

[issue4891] formatwarning function signature change breaks code

2009-01-09 Thread Glenn Linderman
Glenn Linderman added the comment: For reference, the issue on the CherryPy tracker is #891 (amazing numerical coincidence 891 there and 4891 here). ___ Python tracker ___ ___

[issue4891] formatwarning function signature change breaks code

2009-01-09 Thread Glenn Linderman
New submission from Glenn Linderman : External code that temporarily replaces warnings.formatwarning, a technique used in IDLE and worked around (see issue 4043), is broken by the addition of the optional parameter lineno to the formatwarning function. While normal calls to functions can be "com

[issue1696199] Add collections.counts()

2009-01-09 Thread Raymond Hettinger
Raymond Hettinger added the comment: Attaching an updated patch for Py2.7. * Kept OP's simple constructor call but renamed it from counts() to Counter(): item_counts = Counter('acabbacba') * Followed Guido's advice and avoided subclassing from defaultdict(). Instead, subclassed from dict,

[issue1581476] Text search gives bad count if called from variable trace

2009-01-09 Thread Matthias Kievernagel
Matthias Kievernagel added the comment: >Matthias: your issue about the pattern should be placed in a >different >issue. Done as Issue4890. Appended a simplified copy of the demo program and a patch there. I do not understand your remark about None though (see new issue). Cheers, Matthias Kie

[issue4890] handling empty text search pattern in tkinter

2009-01-09 Thread Matthias Kievernagel
Changes by Matthias Kievernagel : -- keywords: +patch Added file: http://bugs.python.org/file12661/text_search_pattern.patch ___ Python tracker ___ ___

[issue4890] handling empty text search pattern in tkinter

2009-01-09 Thread Matthias Kievernagel
New submission from Matthias Kievernagel : Split this from issue 1581476 as suggested by Guilherme Polo (gpolo). >Matthias: your issue about the pattern should be placed in a >different >issue. Quote of my original report: (This is about the search function of the Text class in Tkinter. An I

[issue4566] 2.6.1 breaks many applications that embed Python on Windows

2009-01-09 Thread Juha Rantanen
Juha Rantanen added the comment: We encountered a problem that Windows installer created with 2.5.2 could not be installed with 2.6.1 as executing the post-installer script fails. More details about the reason can be found from http://code.google.com/p/robotframework/issues/detail?id=196. Is the

[issue4889] difflib

2009-01-09 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Can you be more precise? I tried to reproduce your problem, but I only get added/deleted chunks, nothing in yellow. Please include a script that shows what you did, and the result you expected. -- nosy: +amaury.forgeotdarc __

[issue4863] deprecate/delete distutils.mwerkscompiler...

2009-01-09 Thread Tarek Ziadé
Changes by Tarek Ziadé : -- assignee: -> tarek nosy: +tarek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt