[issue5139] Add combinatoric counting functions to the math module.

2009-02-03 Thread Ezio Melotti
Ezio Melotti added the comment: itertools.permutations_with_repetitions(iterable[, r]) is not necessary, writing in the doc that set(itertools.permutations(iterable[, r])) has the same result is probably enough (I put the set() in the wrong place in the previous message - this version is also le

[issue5128] compileall: consider ctime

2009-02-03 Thread Brett Cannon
Brett Cannon added the comment: Patch is really close. Can you use a context manager for the file management? That way the file is guaranteed to be closed without issue. ___ Python tracker __

[issue4347] Circular dependency causes SystemError when adding new syntax

2009-02-03 Thread Brett Cannon
Brett Cannon added the comment: So I finally got around to reviewing the patch and while it looks fine, I ended up with some failing tests: test_compiler test_quopri test_sys test_transformer. Do you know what is going on Thomas? This is after repeated make/make clean calls and using your non-r

[issue2578] Figure out what to do with unittest's redundant APIs

2009-02-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5135] Expose simplegeneric function in functools module

2009-02-03 Thread Ryan Freckleton
Ryan Freckleton added the comment: PJE seems to have borrowed the time machine :-). Based on the code the register function is already a decorator: def register(typ, func=None): if func is None: return lambda f: register(typ, f) registry[typ] = func retur

[issue2422] Automatically disable pymalloc when running under valgrind

2009-02-03 Thread James Henstridge
James Henstridge added the comment: Attached is an updated version of the patch against trunk (2.7). It simply fixes the conflicts that have occurred since the previous patch. Added file: http://bugs.python.org/file12935/disable-pymalloc-on-valgrind-py27.patch ___

[issue5149] syntactic sugar: type coercion on pointer assignment

2009-02-03 Thread Peter A Silva
New submission from Peter A Silva : tough% cat toy.py from ctypes import * class foo(Structure): _fields_ = [ ( "bar", c_char_p ) ] foofoo = foo() babar = create_string_buffer(32) foofoo.bar = babar tough% python toy.py Traceback (most recent call last): File "toy.py", line 11, in

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Damien Neil
Damien Neil added the comment: On Feb 3, 2009, at 3:12 PM, Martin v. Löwis wrote: > This is DOM parsing, not SAX parsing. 1) The title of this ticket begins with "xml.sax and xml.dom...". 2) I am creating a SAX parser and passing it to xml.dom, which uses it. > So break layers of abstraction,

[issue5148] gzip.open breaks with 'U' flag

2009-02-03 Thread Christopher Barker
New submission from Christopher Barker : If you pass the 'U' (Universal newlines) flag into gzip.open(), the flag gets passed into the file open command used to open the gzip file itself. As the 'U' flag can cause changes in teh data (Lineffed translation), when it is used with a binary file open

[issue4753] Faster opcode dispatch on gcc

2009-02-03 Thread Skip Montanaro
Skip Montanaro added the comment: This has been checked in, right? Might I suggest that the TARGET and TARGET_WITH_IMPL macros not include the trailing colon? I think that will make it more friendly toward "smart" editors such as Emacs' C mode. I definitely get better indentation with TA

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread Rafe Kaplan
Rafe Kaplan added the comment: I'm going to attempt to implement this feature. -- nosy: +rafe ___ Python tracker ___ ___ Python-bugs-l

[issue1519638] Unmatched Group issue - workaround

2009-02-03 Thread Bobby Xiao
Bobby Xiao added the comment: It was so long ago, I've since redone half my codebase (the hack is still there, but I can't remember what it was meant to replace now :( ). Sorry about that. ___ Python tracker ___

[issue977470] Deleted files are reinstalled

2009-02-03 Thread Akira Kitada
Akira Kitada added the comment: Tarek, I think this is not a bug and would be safe to close. What do you think? -- nosy: +akitada, tarek ___ Python tracker ___

[issue1076233] distutils.core.setup() with unicode arguments broken

2009-02-03 Thread Akira Kitada
Akira Kitada added the comment: It seems this problem was fixed already. Can we close this? -- nosy: +akitada, tarek ___ Python tracker ___ ___

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > I must be missing some detail, but what does the Unicode database > have to do with the unicodeobject.c C API ? Ah, now I understand your concerns. My suggestion is to change only the 20 functions in unicodectype.c: _PyUnicode_IsAlpha, _PyUnicode_ToLo

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Where in the following sequence am I supposed to receive the document > locator? > > parser = xml.sax.make_parser() > parser.setEntityResolver(CachingEntityResolver()) > doc = xml.dom.minidom.parse('file.xml', parser) This is DOM parsing, not SAX parsing.

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12931/dbsqlite.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: That's a bummer. Changing this method to __bool__ and then setting __len__ back to "count(*)". Added file: http://bugs.python.org/file12933/dbsqlite.py ___ Python tracker _

[issue2636] Regexp 2.7 (modifications to current re 2.2.2)

2009-02-03 Thread Matthew Barnett
Matthew Barnett added the comment: issue2636-features.diff is based on Python 2.6. It includes: Named Unicode characters eg \N{LATIN CAPITAL LETTER A} Unicode character properties eg \p{Lu} (uppercase letter) and \P{Lu} (not uppercase letter) Other character properties not restricted to Unico

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Damien Neil
Damien Neil added the comment: I just discovered another really fun wrinkle in this. Let's say I want to have my entity resolver return a reference to my local copy of a DTD. I write: source = xml.sax.InputSource() source.setPublicId(publicId) source.setSystemId(systemId) sou

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Antoine Pitrou
Antoine Pitrou added the comment: I think issuing 'SELECT MAX(ROWID)' to compute the length of the table is not correct if some rows get deleted in the table. I've found a thread about it here: http://osdir.com/ml/db.sqlite.general/2004-03/msg00329.html In that thread someone suggested caching t

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Here's an updated patch (it's also in the sandbox): * Added a sync() method to support shelves. * Removed commits on granular sets and gets. * Optimized __len__ and __contains__. Added file: http://bugs.python.org/file12931/dbsqlite.py

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Damien Neil
Damien Neil added the comment: On Feb 3, 2009, at 1:42 PM, Martin v. Löwis wrote: > Sure. But ContentHandler.setDocumentLocator receives it, and you are > supposed to store it for the entire parse, to always know what entity > is being processed if you want to. Where in the following sequence a

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12896/dbsqlite.py ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger : Removed file: http://bugs.python.org/file12891/tmp_dev_shelver.py ___ Python tracker ___ ___ Python-bugs-list ma

[issue5139] Add combinatoric counting functions to the math module.

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: Besides paralleling itertools names, the names should also parallel each other -- when I find permutations, I also expect to find combinations. No matter what names are selected, we'll include alternate index targets for the various names "binonimial coeffic

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-03 Thread Tim Lesher
Changes by Tim Lesher : -- nosy: +tlesher ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: > It's indeed possible to provide that as a third-party module; one > would have to implement an EntityResolver, and applications would > have to use it. If there was a need for such a thing, somebody would > have done it years ago. I don't think this is t

[issue4285] Use a named tuple for sys.version_info

2009-02-03 Thread Eric Smith
Changes by Eric Smith : -- assignee: brett.cannon -> eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5146] threading via uid method doesn't work in imaplib

2009-02-03 Thread Piers Lauder
Piers Lauder added the comment: I agree with this change. It should be propagated to all versions. ___ Python tracker ___ ___ Python-bugs-list

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > EntityResolver.resolveEntity() is called with the publicId and systemId as > arguments. It does not receive a locator. Sure. But ContentHandler.setDocumentLocator receives it, and you are supposed to store it for the entire parse, to always know what entity

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone added the comment: Though it's inconvenient to do so, you can arrange to have the locator available from the entity resolver. The content handler's setDocumentLocator method will be called early on with the locator object. So you can give your entity resolver a reference to

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Damien Neil
Damien Neil added the comment: On Feb 3, 2009, at 11:23 AM, Martin v. Löwis wrote: > I don't think this is actually the case. Did you try calling getSystemId > on the locator? EntityResolver.resolveEntity() is called with the publicId and systemId as arguments. It does not receive a locator.

[issue5139] Add combinatoric counting functions to the math module.

2009-02-03 Thread Fredrik Johansson
Fredrik Johansson added the comment: I understand the connection with itertools, but why not just call a binomial coefficient a binomial coefficient? Probably 90% of all math libraries call this function 'binomial' or 'bincoef' and I suspect that's the name most people would search for. ---

[issue5147] MozillaCookieJar should not store leading whitespace in Magic header

2009-02-03 Thread Ajith Antony
New submission from Ajith Antony : It seems that in the MozillaCookieJar library, the author accidently indented the long string that represents the magic header of the Netscape compatible cookie file. This is not a problem for MozillaCookieJar as the regex to test the magic header is not bou

[issue1294959] Problems with /usr/lib64 builds.

2009-02-03 Thread Akira Kitada
Akira Kitada added the comment: Similar problem report: http://bugs.python.org/issue1019715 -- nosy: +akitada ___ Python tracker ___ __

[issue4285] Use a named tuple for sys.version_info

2009-02-03 Thread Eric Smith
Changes by Eric Smith : -- nosy: +eric.smith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue1019715] distutils ignores configure's --includedir

2009-02-03 Thread Akira Kitada
Akira Kitada added the comment: I'm having the same problem. This is a real headache, especially on systems that run both 32-bit and 64-bit apps, where I often see "lib64", "include64" and "bin64". In my opinion, lib, include and bin shouldn't be hard-coded in anywhere. Note that these hard-c

[issue5139] Add combinatoric counting functions to the math module.

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: -1 on perms_with_repetitions. That's headed in the direction of bloat -- taking every formula in a textbook and putting it in the module. Also, it is somewhat use case challenged. I've *never* needed this in my 30 years of programming. I like Mark's idea

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2009-02-03 Thread Miki Tebeka
Miki Tebeka added the comment: Can't we find a faster dog for lambda :) Anyway, I agree that we need to see more demand for that before going on. Let's keep this ticket open and see if someone else comes along. ___ Python tracker

[issue4124] Patch for adding "default" to itemgetter and attrgetter

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger added the comment: That makes sense. You've found two object models that have optional attributes and have had some need to extract them with a default. My remaining concern is about adding complexity for functionality that is not often needed. It wouldn't be an issue if ite

[issue5146] threading via uid method doesn't work in imaplib

2009-02-03 Thread abhishek
New submission from abhishek : Hi, IMAP commands in general can be either called directly or via the UID command which basically returns the UIDs instead of message IDs. Consider this example: 02:23.02 > GDJB3 UID THREAD references UTF-8 (SEEN) 02:23.02 < * THREAD (3)(2)(4)(1) 02:23.02

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: As for checking CRT handles: it seems that __pioinfo is exported from msvcr90.dll. So we could check whether osfile has the FOPEN flag set, and we could check whether fh >= 0. Unfortunately, there seems to be no way to check for _nhandle. However, that might no

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone : -- nosy: +exarkun ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> georg.brandl components: +Documentation -Extension Modules nosy: +georg.brandl ___ Python tracker ___

[issue1706256] Give Partial the ability to skip positionals

2009-02-03 Thread John Ehresman
John Ehresman added the comment: Commenting because this was brought up on python-dev -- I'd like this, primarily for the string method & itertools optimization. It's ugly, but it would be better than writing C code. The alternative might be to somehow optimize trivial functions to execute wit

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The EntityResolver's resolveEntity() method is not, however, passed the > base path to resolve the relative systemId from. > > This makes it impossible to properly implement a parser which caches > fetched DTDs. I don't think this is actually the case. Did

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti added the comment: haypo> ord() of Python3 (narrow build) rejects surrogate characters: haypo> '\U0001' haypo> >>> len(chr(0x1)) haypo> 2 haypo> >>> ord(0x1) haypo> TypeError: ord() expected string of length 1, but int found ord() works fine on Py3, you probably meant t

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer
bob gailer added the comment: Someone pointed out that one must consider alignment. I had overlooked that. It makes sense that a d is double-word aligned. Perhaps the documentation should mention alignment. ___ Python tracker

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ned Deily
Ned Deily added the comment: Thanks for the patches, I'll report back on them. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubsc

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > Still, the "call" fix should be backported to python 2.6 as it doesn't > depend on changing supported tcl versions and is also more severe. That sounds like a good approach. If you can split the patch into two, backporting only one of them - go ahead! _

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread Brett Cannon
Changes by Brett Cannon : -- assignee: -> brett.cannon stage: needs patch -> test needed ___ Python tracker ___ ___ Python-bugs-list m

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread Brett Cannon
Brett Cannon added the comment: On Tue, Feb 3, 2009 at 03:28, STINNER Victor wrote: > > STINNER Victor added the comment: > > The UTC class have to be converted to C. Yes, the example code is just an example. =) > Can someone write a patch for > datetimemodule.c (and the doc plus an unit tes

[issue5145] struct.calcsize('cd') returns 16 instead of 9

2009-02-03 Thread bob gailer
New submission from bob gailer : struct.calcsize('cd') returns 16 instead of 9 struct.calcsize('dc') returns 9 as expected -- components: Extension Modules messages: 81085 nosy: bgailer severity: normal status: open title: struct.calcsize('cd') returns 16 instead of 9 type: behavior ver

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: > The syntax would be this: > > #if defined(_MSC_VER) > # pragma warning(push) >/* Disable warnings for this file, see >http://www.sqlite.org/faq.html#q17 why we don't care for them. */ > # pragma warning(disable: 4244) > # pragma warning(disable: 4

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: Please let me know if second patch (patch-remove-PYTHONEXECUTABLE.txt) fixes the issue for you as well, if it does I'll commit it to the 3.x branch (and add an item to the NEWS file). -- resolution: -> accepted _

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ronald Oussoren
Changes by Ronald Oussoren : Added file: http://bugs.python.org/file12930/patch-remove-PYTHONEXECUTABLE.txt ___ Python tracker ___ ___ Python-b

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: The quick fix is to convert "p" to a wchar_t (using mbstowcs), see patch-mbstowcs.txt. However, I don't think this is the right fix. AFAIK this environment variable is only used by .app bundles created by bundlebuilder.py which is no longer part of the sta

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

2009-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-03 14:50, Amaury Forgeot d'Arc wrote: > Amaury Forgeot d'Arc added the comment: > >> That would cause major breakage in the C API > > Not if you recompile. I don't see how this breaks the API at the C level. Well, then try to look at such a c

[issue2124] xml.sax and xml.dom fetch DTDs by default

2009-02-03 Thread Damien Neil
Damien Neil added the comment: I just ran into this problem. I was very surprised to realize that every time the code I was working on parsed a docbook file, it generated several HTTP requests to oasis-open.org to fetch the docbook DTDs. I attempted to fix the issue by adding an EntityResolver

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis added the comment: fopen.patch is fine, please apply. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue976869] Stripping script extensions with distutils

2009-02-03 Thread Tarek Ziadé
Tarek Ziadé added the comment: It makes sense to me but we need to look at setuptools console feature nowadays. I think it might be the right piece to add in distutils for console scripts. -- assignee: -> tarek ___ Python tracker

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ronald Oussoren
Ronald Oussoren added the comment: This is a bug, I'm working on a fix. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue5115] Extend subprocess.kill to be able to kill process groups

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I suspect that on Windows, TerminateJobObject won't work with a handle returned by CreateProcess. A solution could look like http://www.mobzystems.com/code/killprocesstree.aspx -- nosy: +amaury.forgeotdarc ___

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Ned Deily
Ned Deily added the comment: I think it is a problem and it explains one of the problems with IDLE.app in 3.x. The value of PYTHONEXECUTABLE should end up in sys.executable: $ export PYTHONEXECUTABLE='/test' @fimt:~$ python2.6 Python 2.6.1 (r261:67515, Dec 17 2008, 23:27:50) [GCC 4.0.1 (App

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: On VS8.0, _get_osfhandle() begins with three assert statements. This function is not safer than the others... ___ Python tracker ___ __

[issue976869] Stripping script extensions with distutils

2009-02-03 Thread Akira Kitada
Akira Kitada added the comment: I doubt "strip-extensions" has to be in distutils. Isn't a simple script like below enough for this? $ for i in *.py; do mv $i ${i%.py}; done -- nosy: +akitada, tarek ___ Python tracker

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >Only file descriptors seem to have no way to verify them. How about _get_osfhandle()? I cannot see _ASSERTE in that function on VC6, but maybe there on VC9. ___ Python tracker

[issue4491] email.Header.decode_header() doesn't work if encoded-word was separeted by CRLF

2009-02-03 Thread Tom Lynn
Tom Lynn added the comment: Duplicates issue1079. -- nosy: +tlynn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue4958] email/header.py ecre regular expression issue

2009-02-03 Thread Tom Lynn
Tom Lynn added the comment: Oops, duplicates issue 1079 even. ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyt

[issue4958] email/header.py ecre regular expression issue

2009-02-03 Thread Tom Lynn
Tom Lynn added the comment: Duplicates issue1047. -- nosy: +tlynn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe

[issue1079] decode_header does not follow RFC 2047

2009-02-03 Thread Tom Lynn
Tom Lynn added the comment: The only difference between the two regexps is that the email/header.py version looks for:: (?=[ \t]|$) # whitespace or the end of the string at the end (with re.MULTILINE, so $ also matches '\n'). To expand on "There is nothing about that thing in RFC

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-02-03 Thread David W. Lambert
Changes by David W. Lambert : -- nosy: +LambertDW ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue5144] PySys_SetArgv has wrong documentation

2009-02-03 Thread jan matejek
New submission from jan matejek : documentation for PySys_SetArgv states that the function sets sys.argv, but fails to mention that it also resolves script's path and prepends it to sys.path. Or, in case no script was specified, it prepends empty string (which in versions <2.6 allowed relative im

[issue5143] OS X: Py_SetProgramName argument has type char*; should be wchar_t*

2009-02-03 Thread Mark Dickinson
New submission from Mark Dickinson : When building the py3k branch on OS X, I get the following warning: gcc -c -fno-strict-aliasing -g -Wall -Wstrict-prototypes -I. -IInclude - I./Include -DPy_BUILD_CORE -o Modules/main.o Modules/main.c Modules/main.c: In function ‘Py_Main’: Modules/main.c:4

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyt

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Guilherme Polo
Guilherme Polo added the comment: > That's not really a meaningful difference, though.. if the application > uses this code continuously then the conditions will pile up in memory > until it fills up. I'm not trying to discourage you to do the complete fix (for these two problems), but this API

[issue1519638] Unmatched Group issue - workaround

2009-02-03 Thread Gerard
Gerard added the comment: Bobby, Can you post the actual text you need this for? The back ref indeed returns a None. I'm wondering if the regex can be be simplefied and if a positive lookbehind could solve this. Symantically speaking ... If there's a "b" then return the "ar", because then an e

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Robert Hancock
Robert Hancock added the comment: That's not really a meaningful difference, though.. if the application uses this code continuously then the conditions will pile up in memory until it fills up. -- nosy: +robhancock1 -robhancock ___ Python tracker <

[issue3871] cross and native build of python for mingw32 with distutils

2009-02-03 Thread Guido van Rossum
Changes by Guido van Rossum : ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/pyth

[issue5139] Add combinatoric counting functions to the math module.

2009-02-03 Thread Ezio Melotti
Ezio Melotti added the comment: Should we add permutations with repetitions? Example (from Schaum's outline of theory and problems of probability and statistics): The number of different permutations of the 11 letters of the word MISSISSIPPI, which consists of 1 M, 4 I's, 4 S's and 2 P's, is 11

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

2009-02-03 Thread STINNER Victor
STINNER Victor added the comment: lemburg> This is not possible for unichr() in Python 2.x, since applications lemburg> always expect len(unichr(x)) == 1 Oh, ok. lemburg> Changing ord() would be possible in Python 2.x is easier, since lemburg> this would only extend the range of returned value

[issue1028] Tkinter binding involving Control-spacebar raises unicode error

2009-02-03 Thread Guilherme Polo
Guilherme Polo added the comment: Can you tell what: print(tkinter.Tcl().tk.call('info', 'patchlevel')) prints ? Specifically to know which tk 8.5.x has the problem. ___ Python tracker

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal raises an error (Py3)

2009-02-03 Thread Ezio Melotti
Ezio Melotti added the comment: > Problem: use different (encoding) rule for the display hook and for > print() may disturb new users (Why does ">>> chr(...)" work whereas > ">>> print(chr(...))" fails?). This is the same behavior that Python2.x has (with the only difference that Py2 always sho

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-02-03 Thread Senthil
Changes by Senthil : -- components: +Library (Lib) ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue5142] pdb feature request: Ability to skip standard lib modules and other selected packages/modules

2009-02-03 Thread Senthil
New submission from Senthil : When using the python debugger, most often I step ('s') through the code base and I often Call the standard library modules, whichever are imported in the scripts. This is often not desirable as I know that errors are within my modules and not in standard library. T

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > That would cause major breakage in the C API Not if you recompile. I don't see how this breaks the API at the C level. > and is not inline with the intention of having a Py_UNICODE > type in the first place. Py_UNICODE is still used as the allocatio

[issue5110] Printing Unicode chars from the interpreter in a non-UTF8 terminal (Py3)

2009-02-03 Thread STINNER Victor
STINNER Victor added the comment: > Victor, I'm not sure whether you are proposing that > display_hook_ascii.patch is included into Python. IIUC, this patch > breaks PEP3138, so it clearly must be rejected. > > Overall, I fail to see the bug in this report. Python 3.0 works as > designed as show

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: Hmm, maybe _lock_fhandle can be used to solve such race condition. I'm not sure. ___ Python tracker ___ __

[issue4804] Python on Windows disables all C runtime library assertions

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: >Only file descriptors seem to have no way to verify them. How about _get_osfhandle()? (Strictly, there is race condition between _get_osfhandle and fdopen etc though) ___ Python tracker

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

2009-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-03 14:14, STINNER Victor wrote: > STINNER Victor added the comment: > > amaury> Since r56395, ord() and chr() accept and return surrogate pairs > amaury> even in narrow builds. > > Note: My examples are made with Python 2.x. > >> The goal is

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

2009-02-03 Thread STINNER Victor
STINNER Victor added the comment: amaury> Since r56395, ord() and chr() accept and return surrogate pairs amaury> even in narrow builds. Note: My examples are made with Python 2.x. > The goal is to remove most differences between narrow and wide unicode > builds (except for string lengths, in

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

2009-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: On 2009-02-03 13:39, Amaury Forgeot d'Arc wrote: > Amaury Forgeot d'Arc added the comment: > > Since r56395, ord() and chr() accept and return surrogate pairs even in > narrow builds. > > The goal is to remove most differences between narrow and wide unic

[issue3959] Add Google's ipaddr.py to the stdlib

2009-02-03 Thread David Moss
David Moss added the comment: For reference, here are the (cross-posted) links to the discussion on the (now failed) netaddr/ipaddr merge talks :- http://groups.google.com/group/netaddr/browse_thread/thread/f80b7c69e459 02b7 http://groups.google.com/group/ipaddr-py- dev/browse_thread/thread/2b

[issue5119] wide character parameter handling in ctypes

2009-02-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Since r56395, ord() and chr() accept and return surrogate pairs even in narrow builds. The goal is to remove most differences between narrow and wide unicode builds (except for string lengths, indices or slices) To address this problem, I suggest to chan

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti added the comment: FWIW, on Python3 it seems to work: >>> import unicodedata >>> unicodedata.category("\U0001") 'Lo' >>> unicodedata.category("\U00011000") 'Cn' >>> unicodedata.category(chr(0x1)) 'Lo' >>> unicodedata.category(chr(0x11000)) 'Cn' >>> ord(chr(0x1)), 0x1

[issue5119] wide character parameter handling in ctypes

2009-02-03 Thread Jason R. Coombs
Jason R. Coombs added the comment: Thanks for the excellent suggestion. Please close this issue. ___ Python tracker ___ ___ Python-bugs-list m

  1   2   >