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

2009-02-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: This all sounds good to me. -- nosy: +marketdickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: This is a known issue with SQLite. It's not as bad as it looks at first sight, though. http://www.sqlite.org/faq.html#q17 (17) I get hundreds of compiler warnings when I compile SQLite. Isn't this a problem? Doesn't it indicate poor code

[issue831643] Set option for subprocess in setup.py

2009-02-03 Thread Pim Buurman
Pim Buurman pimb...@users.sourceforge.net added the comment: I am not developing Python extensions anymore, so I am not interested in this issue. I am not sure whether this issue is still applicable to e.g. Python 3.0 You can close it if you wisj ___ Python

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Martin, if you can find a way to silence the compiler for the upstream code that would be great. If not, go ahead and close as won't fix. -- assignee: ghaering - loewis ___ Python

[issue2459] speedup for / while / if with better bytecode

2009-02-03 Thread Armin Rigo
Changes by Armin Rigo ar...@users.sourceforge.net: -- nosy: -arigo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2459 ___ ___ Python-bugs-list

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Gerhard Häring
Gerhard Häring g...@ghaering.de added the comment: I propose to either close this as wontfix. I don't know the switches for the Microsoft compiler to disable the warnings myself. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5134

[issue4879] Allow buffering for HTTPResponse

2009-02-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: The socket.socket.makefile() now returns a quite different kind of object, namely a SocketIO thing. This comes as a result of the IO refactoring in 3.0. The good side to this is that old and naughty apps have been forbidden to

[issue4879] Allow buffering for HTTPResponse

2009-02-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I'm afraid I misunderstood the problem. Yes, since u.fp is now a io.BufferedReader() rather than a socket.Socket (), the _sock member has moved. But looking at the other assertions in test_urllib2net.py, you can see the different

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: The attached patch sets the /W1 flag for the sqlite3 project. -- keywords: +patch nosy: +amaury.forgeotdarc Added file: http://bugs.python.org/file12928/sqlite3_warnings.patch ___ Python

[issue831643] Set option for subprocess in setup.py

2009-02-03 Thread Tarek Ziadé
Changes by Tarek Ziadé ziade.ta...@gmail.com: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue831643 ___

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

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: I had a thought to name them perms(n,r), combs(n,r) and combs_with_replacement(n,r). The abbreviated names read nicely and avoid a namespace collision with the itertools module (making the world safe for from math import *).

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The UTC class have to be converted to C. Can someone write a patch for datetimemodule.c (and the doc plus an unit test ;-))? -- nosy: +haypo ___ Python tracker rep...@bugs.python.org

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Ulrich Eckhardt
Ulrich Eckhardt eckha...@satorlaser.com 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

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

2009-02-03 Thread Mark Dickinson
Mark Dickinson dicki...@gmail.com added the comment: I agree that the names shouldn't clash with those in math, especially since it seems quite plausible that a user might want to use both itertools.combinations and math.combs (for example) in the same script. No strong feelings about the

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

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net added the comment: Will put together a patch. -- assignee: - rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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)),

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2009-02-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

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

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp added the comment: Hmm, maybe _lock_fhandle can be used to solve such race condition. I'm not sure. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___

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

2009-02-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

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

2009-02-03 Thread Senthil
New submission from Senthil orsent...@gmail.com: 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

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

2009-02-03 Thread Senthil
Changes by Senthil orsent...@gmail.com: -- components: +Library (Lib) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5142 ___ ___ Python-bugs-list

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

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

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

2009-02-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue1028

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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,

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Robert Hancock
Robert Hancock hanc...@sedsystems.ca 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

[issue1519638] Unmatched Group issue - workaround

2009-02-03 Thread Gerard
Gerard g...@gp-net.nl 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,

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Guilherme Polo
Guilherme Polo ggp...@gmail.com 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

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

2009-02-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I don't understand the behaviour of unichr(): Python 2.7a0 (trunk:68963M, Jan 30 2009, 00:49:28) import unicodedata unicodedata.category(u\U0001) 'Lo' unicodedata.category(u\U00011000) 'Cn'

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

2009-02-03 Thread David Moss
David Moss drk...@gmail.com 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-

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

2009-02-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list

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

2009-02-03 Thread Mark Dickinson
New submission from Mark Dickinson dicki...@gmail.com: 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

[issue5144] PySys_SetArgv has wrong documentation

2009-02-03 Thread jan matejek
New submission from jan matejek jmate...@suse.cz: 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

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

2009-02-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' billiej...@users.sourceforge.net: -- nosy: +giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3871 ___

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

2009-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-03 14:14, STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: amaury Since r56395, ord() and chr() accept and return surrogate pairs amaury even in narrow builds. Note: My examples are made

[issue1079] decode_header does not follow RFC 2047

2009-02-03 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net 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

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

2009-02-03 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: Duplicates issue1047. -- nosy: +tlynn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4958 ___

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

2009-02-03 Thread Hirokazu Yamamoto
Changes by Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___ Python-bugs-list mailing list

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

2009-02-03 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: Oops, duplicates issue 1079 even. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4958 ___ ___

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

2009-02-03 Thread Tom Lynn
Tom Lynn tl...@users.sourceforge.net added the comment: Duplicates issue1079. -- nosy: +tlynn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4491 ___

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

2009-02-03 Thread Hirokazu Yamamoto
Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp 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

[issue976869] Stripping script extensions with distutils

2009-02-03 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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 Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: On VS8.0, _get_osfhandle() begins with three assert statements. This function is not safer than the others... ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804

[issue5141] C API for appending to arrays

2009-02-03 Thread Hrvoje Nikšić
New submission from Hrvoje Nikšić hnik...@gmail.com: The array.array type is an excellent type for storing a large amount of native elements, such as integers, chars, doubles, etc., without involving the heavy machinery of numpy. It's both blazingly fast and reasonably efficient with memory.

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

2009-02-03 Thread Ned Deily
Ned Deily n...@acm.org 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)

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

2009-02-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2009-02-03 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- nosy: +ezio.melotti ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5139 ___ ___ Python-bugs-list

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

2009-02-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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 Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com added the comment: This is a bug, I'm working on a fix. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5143 ___ ___

[issue976869] Stripping script extensions with distutils

2009-02-03 Thread Tarek Ziadé
Tarek Ziadé ziade.ta...@gmail.com 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

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

2009-02-03 Thread Luke Kenneth Casson Leighton
Luke Kenneth Casson Leighton l...@lkcl.net added the comment: On Mon, Feb 2, 2009 at 9:10 PM, Roumen Petrov rep...@bugs.python.org wrote: Roumen Petrov bugtr...@roumenpetrov.info added the comment: The proposed patch for this issue include parts of other pending issues - so its all is

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

2009-02-03 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: Ok. I have submitted methods to verify the input to strftime() and fopen(). Only file descriptors seem to have no way to verify them. Mark Hammond seems to think this is ok (if tests can be selectively turned off), and if that

[issue5119] wide character parameter handling in ctypes

2009-02-03 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc amaur...@gmail.com: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5119 ___ ___

[issue5119] wide character parameter handling in ctypes

2009-02-03 Thread Jason R. Coombs
Jason R. Coombs jar...@jaraco.com added the comment: Thanks for the excellent suggestion. Please close this issue. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5119 ___

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

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: fopen.patch is fine, please apply. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4804 ___ ___

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

2009-02-03 Thread Damien Neil
Damien Neil ne...@misago.org 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

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

2009-02-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

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

2009-02-03 Thread Marc-Andre Lemburg
Marc-Andre Lemburg m...@egenix.com added the comment: On 2009-02-03 14:50, Amaury Forgeot d'Arc wrote: Amaury Forgeot d'Arc amaur...@gmail.com 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,

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

2009-02-03 Thread Ronald Oussoren
Changes by Ronald Oussoren ronaldousso...@mac.com: Added file: http://bugs.python.org/file12930/patch-remove-PYTHONEXECUTABLE.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5143 ___

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

2009-02-03 Thread Ronald Oussoren
Ronald Oussoren ronaldousso...@mac.com 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

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Tue, Feb 3, 2009 at 03:28, STINNER Victor rep...@bugs.python.org wrote: STINNER Victor victor.stin...@haypocalc.com added the comment: The UTC class have to be converted to C. Yes, the example code is just an example. =) Can someone

[issue5094] datetime lacks concrete tzinfo impl. for UTC

2009-02-03 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- assignee: - brett.cannon stage: needs patch - test needed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5094 ___

[issue1731706] tkinter memory leak problem

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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 -

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

2009-02-03 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - georg.brandl components: +Documentation -Extension Modules nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5145

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

2009-02-03 Thread Jean-Paul Calderone
Changes by Jean-Paul Calderone exar...@divmod.com: -- nosy: +exarkun ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2124 ___ ___ Python-bugs-list

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

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue1294959] Problems with /usr/lib64 builds.

2009-02-03 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: Similar problem report: http://bugs.python.org/issue1019715 -- nosy: +akitada ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1294959 ___

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

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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

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

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue5015] The Py_SetPythonHome C API function is undocumented

2009-02-03 Thread Tim Lesher
Changes by Tim Lesher tles...@gmail.com: -- nosy: +tlesher ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5015 ___ ___ Python-bugs-list mailing

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

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

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

2009-02-03 Thread Damien Neil
Damien Neil ne...@misago.org 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

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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

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

2009-02-03 Thread Damien Neil
Damien Neil ne...@misago.org 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)

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

2009-02-03 Thread Matthew Barnett
Matthew Barnett pyt...@mrabarnett.plus.com 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

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

2009-02-03 Thread Akira Kitada
Akira Kitada akit...@gmail.com added the comment: It seems this problem was fixed already. Can we close this? -- nosy: +akitada, tarek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1076233

[issue977470] Deleted files are reinstalled

2009-02-03 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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 rep...@bugs.python.org http://bugs.python.org/issue977470

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file12931/dbsqlite.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

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

2009-02-03 Thread Jean-Paul Calderone
Jean-Paul Calderone exar...@divmod.com 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

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

2009-02-03 Thread bob gailer
bob gailer bgai...@gmail.com 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

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file12896/dbsqlite.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

[issue4124] Patch for adding default to itemgetter and attrgetter

2009-02-03 Thread Miki Tebeka
Miki Tebeka miki.teb...@gmail.com 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

[issue1706256] Give Partial the ability to skip positionals

2009-02-03 Thread John Ehresman
John Ehresman j...@wingware.com 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

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: Removed file: http://bugs.python.org/file12891/tmp_dev_shelver.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3783 ___

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

2009-02-03 Thread Ezio Melotti
Ezio Melotti ezio.melo...@gmail.com 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

[issue3783] dbm.sqlite proof of concept

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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:

[issue1019715] distutils ignores configure's --includedir

2009-02-03 Thread Akira Kitada
Akira Kitada akit...@gmail.com 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

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

2009-02-03 Thread Ajith Antony
New submission from Ajith Antony ajith.ant...@gmail.com: 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

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

2009-02-03 Thread abhishek
New submission from abhishek abhis...@synovel.com: 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

[issue1519638] Unmatched Group issue - workaround

2009-02-03 Thread Bobby Xiao
Bobby Xiao nneon...@gmail.com 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 rep...@bugs.python.org

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

2009-02-03 Thread Piers Lauder
Piers Lauder pi...@it.usyd.edu.au added the comment: I agree with this change. It should be propagated to all versions. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5146 ___

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

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

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

2009-02-03 Thread Fredrik Johansson
Fredrik Johansson fredrik.johans...@gmail.com 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

[issue5134] Compiler warnings in sqlite module

2009-02-03 Thread Martin v. Löwis
Martin v. Löwis mar...@v.loewis.de 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

[issue4285] Use a named tuple for sys.version_info

2009-02-03 Thread Eric Smith
Changes by Eric Smith e...@trueblade.com: -- nosy: +eric.smith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4285 ___ ___ Python-bugs-list mailing

[issue4124] Patch for adding default to itemgetter and attrgetter

2009-02-03 Thread Raymond Hettinger
Raymond Hettinger rhettin...@users.sourceforge.net 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

  1   2   >