[issue10001] ~Py_buffer.obj field is undocumented, though not hidden

2010-10-01 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: This will work for bf_getbuffer, though having PyObject_GetBuffer set the obj field before passing it to the callback might be safer. Also, this does not address the case with wrapper types like memoryview. What happens if ~Py_buffer.obj is not visited in t

[issue5131] pprint doesn't know how to print a defaultdict

2010-10-01 Thread Nick Craig-Wood
Nick Craig-Wood added the comment: Terry J. Reedy (terry.reedy) wrote: > > IMHO pprint should be able to make a decent job of all the built in types > > Agreed, already true as far as I know, and irrelevant. This issue is not > about built-in types in the builtins module, as documented Lib Ref

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Nir Aides
Nir Aides added the comment: Should be min(n, 1024) instead of max(...) -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10000] mark more tests as CPython specific

2010-10-01 Thread Georg Brandl
Georg Brandl added the comment: Do you want to volunteer, Steve? ;) -- nosy: +georg.brandl ___ Python tracker ___ ___ Python-bugs-lis

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread Thomas Guettler
New submission from Thomas Guettler : I get the following traceback. I created a patch against email/quoprimime.py from SVN branch python2.7 File "/usr/lib64/python2.6/email/header.py", line 93, in decode_header dec = email.quoprimime.header_decode(encoded) File "/usr/lib64/python2.6/em

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread Thomas Guettler
Changes by Thomas Guettler : Added file: http://bugs.python.org/file19081/broken-subject.msg ___ Python tracker ___ ___ Python-bugs-list maili

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Should be min(n, 1024) instead of max(...) Well, no, because we want to buffer a non-trivial amount of bytes for the next accesses. So, if n < 1024, buffer at least 1024 bytes. -- ___ Python tracker

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Nir Aides
Nir Aides added the comment: Right, I missed the change from self.max_read_chunk to 1024 (read_size). Should not peek() limit to self.max_read_chunk as read() does? -- ___ Python tracker __

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
STINNER Victor added the comment: Update the patch for the new PyUnicode_AsWideCharString() function: - use Py_UNICODE_SIZE and SIZEOF_WCHAR_T in the preprocessor tests - faster loop: don't use a counter + pointer, but only use pointers (for the stop condition) The patch is not finished: I h

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file17322/pyunicode_aswidechar_surrogates-py3k.patch ___ Python tracker ___ _

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Right, I missed the change from self.max_read_chunk to 1024 > (read_size). Should not peek() limit to self.max_read_chunk as read() > does? This is used for the chunking of huge reads, but for peek(): 1) there is no chunking (peek() should do at most one raw

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
STINNER Victor added the comment: Patch version 3: - fix unicode_aswidechar if Py_UNICODE_SIZE == SIZEOF_WCHAR_T and w == NULL (return the number of characters, don't write into w!) - improve unicode_aswidechar() comment -- Added file: http://bugs.python.org/file19083/aswidechar_nonb

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
STINNER Victor added the comment: I don't know how to test "if Py_UNICODE_SIZE == 4 && SIZEOF_WCHAR_T == 2". On Windows, sizeof(wchar_t) is 2, but it looks like Python is not prepared to have Py_UNICODE != wchar_t for is Windows implementation. wchar_t is 32 bits long on Linux and Mac OS X. S

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I, too, can't think of any platforms where Py_UNICODE_SIZE == 4 && SIZEOF_WCHAR_T == 2 and I'm not sure what the previous policy has been. Have you noticed any other code that would set a precedent? If no one else chimes in, perhaps ask on IRC or python-de

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: STINNER Victor wrote: > > STINNER Victor added the comment: > > I don't know how to test "if Py_UNICODE_SIZE == 4 && SIZEOF_WCHAR_T == 2". On > Windows, sizeof(wchar_t) is 2, but it looks like Python is not prepared to > have Py_UNICODE != wchar_t for i

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
New submission from Popa Claudiu : In postgresql library, client3.py, the "__str__" method defined in Connection close calls the undefined method self.exception_string as in the following line of code: excstr = ''.join(self.exception_string(type(self.exception), self.exception)) -- co

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
Popa Claudiu added the comment: I meant "Connection class calls the.." -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: > You can tweak the Windows pyconfig.h to use UCS4, AFAIK, if you want to > test drive this case. I seem to recall seeing some other code that assumed Windows implied UCS2. Proceed with caution. ;-) > But it's probably easier to configure with "gcc -fshort

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Daniel Stutzbach wrote: > > Daniel Stutzbach added the comment: > >> You can tweak the Windows pyconfig.h to use UCS4, AFAIK, if you want to >> test drive this case. > > I seem to recall seeing some other code that assumed Windows implied UCS2. > Proce

[issue3488] Provide compress/uncompress functions on the gzip module

2010-10-01 Thread Anand B Pillai
Anand B Pillai added the comment: Okay. Verified as working. Thank you! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko : We ran into this while generating documentation for our project (PyMVPA) with recent sphinx and python2.6 (fine with 2.5, failed for 2.6, 2.7, 3.1), which relies on traversing all attributes given by "dir(obj)", BUT apparently __abstractmethods__ become

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread R. David Murray
R. David Murray added the comment: There is no postgresql client in the Python standard library, you'll need to report this bug on the appropriate project's tracker. -- nosy: +r.david.murray resolution: -> invalid stage: -> committed/rejected status: open -> closed _

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2010-10-01 Thread Christoph Burgmer
Christoph Burgmer added the comment: Here's a test case and a fix for get_matching_blocks() to return the same content on subsequent calls. -- keywords: +patch nosy: +christoph Added file: http://bugs.python.org/file19084/get_matching_blocks.diff __

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2010-10-01 Thread Christoph Burgmer
Christoph Burgmer added the comment: BTW, here's the commit that broke the behavior in the first place: http://svn.python.org/view/python/trunk/Lib/difflib.py?r1=54230&r2=59907 -- ___ Python tracker __

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Andreas Stührk
Changes by Andreas Stührk : -- nosy: +Trundle ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue9533] metaclass can't derive from ABC

2010-10-01 Thread Daniel Urban
Daniel Urban added the comment: If we create a new class, which is a metaclass, and also inherits an ABC, we create a new instance of ABCMeta. When ABCMeta.__new__ creates the __abstractmethods__ attribute of the new class, it iterates over the __abstractmethods__ attribute of every base clas

[issue10002] Installer doesn't install on Windows Server 2008 DataCenter R2

2010-10-01 Thread Brian Curtin
Brian Curtin added the comment: > Have you tried your Python 2.7 on a Windows Server 2008 R2? It works on my 2008 R2 Enterprise Edition. -- components: +Windows nosy: +brian.curtin ___ Python tracker

[issue6608] asctime does not check its input

2010-10-01 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: Committed with minor changes in r85137. Thanks for the patch! -- resolution: -> accepted stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue10007] Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory (PCBuild)

2010-10-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory. This happens on PCbuild. Python3.2 uses openssl-1.0.0a Python3.1 and 2.7 uses openssl-0.9.8l If the directory layout is like this, Python3.1 cannot build _ssl and _

[issue10007] Visual C++ cannot build _ssl and _hashlib if newer OpenSSL is placed in $(dist) directory (PCBuild)

2010-10-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: > Python3.1 cannot build _ssl and _hashlib. And Python2.7 cannot. -- ___ Python tracker ___ ___

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread R. David Murray
Changes by R. David Murray : -- nosy: +benjamin.peterson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue10004] irhe

2010-10-01 Thread R. David Murray
Changes by R. David Murray : -- title: email/quoprimime.py Exception (with patch) -> irhe ___ Python tracker ___ ___ Python-bugs-list

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
Changes by R. David Murray : -- title: irhe -> email/quoprimime.py Exception (with patch) ___ Python tracker ___ ___ Python-bugs-list

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
R. David Murray added the comment: Heh, cut and paste gone mad, sorry about that title change/change back. I can reproduce this in 3.2, so adding 3.1 and 3.2 to versions. -- nosy: +r.david.murray versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
Changes by R. David Murray : -- stage: -> unit test needed type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
R. David Murray added the comment: Here is Thomas's patch with a (simpler) unit test included. -- Added file: http://bugs.python.org/file19085/quoprime_chars.patch ___ Python tracker __

[issue10004] email/quoprimime.py Exception (with patch)

2010-10-01 Thread R. David Murray
R. David Murray added the comment: Committed in r85142 for 3.2, r85143 for 3.1, and r85144 for 2.7. Thanks, Thomas. -- resolution: -> fixed stage: unit test needed -> committed/rejected status: open -> closed ___ Python tracker

[issue9921] os.path.join('x','') behavior

2010-10-01 Thread Radu Grigore
Radu Grigore added the comment: I would say something like the following. The function join(path1, path2) is almost like os.sep.join(path1, path2), but (1) trailing path separators in path1 are ignored and (2) the result is simply path2 when path2 is an absolute path. The call join(path1, pat

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-01 Thread Brian Bossé
Brian Bossé added the comment: No idea if I'm getting the patch format right here, but tally ho! This is keyed from release27-maint Index: Lib/tokenize.py === --- Lib/tokenize.py (revision 85136) +++ Lib/tokenize.py (worki

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-10-01 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: This seems to be because codecs.StreamReader.readlines() function does this: def readlines(self, sizehint=None, keepends=True): data = self.read() return data.splitlines(keepends) But the io readlines() functions make multiple calls to

[issue9286] email.utils.parseaddr returns garbage for invalid input

2010-10-01 Thread R. David Murray
R. David Murray added the comment: In the first of your examples, parseaddr is correct (a lone token is considered a 'local' address per RFC). The second one is prossibly wrong, but if so the correct way to interpret it is not clear. If you read the RFC carefully (http://tools.ietf.org/html

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: I see the problem; will consider/fix later today hopefully. -- assignee: -> benjamin.peterson ___ Python tracker ___ __

[issue9986] PDF files of python docs have text missing

2010-10-01 Thread Amber Jain
Amber Jain added the comment: Reported to sphinx tracker at bitbucket: http://bitbucket.org/birkenfeld/sphinx/issue/531/pdf-files-of-python-docs-have-text-missing -- ___ Python tracker _

[issue10003] signal.SIGBREAK regression on windows

2010-10-01 Thread Brian Curtin
Brian Curtin added the comment: Fixed in r85140 (py3k), r85141 (release31-maint), and r85145 (release27-maint). Thanks for the report! -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python track

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Daniel Urban
Changes by Daniel Urban : -- nosy: +durban ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue10003] signal.SIGBREAK regression on windows

2010-10-01 Thread Martin
Martin added the comment: Thanks for the quick resolution Brian, head now works as expected. -- ___ Python tracker ___ ___ Python-bug

[issue1050268] rfc822.parseaddr is broken, breaks sendmail call in smtplib

2010-10-01 Thread R. David Murray
R. David Murray added the comment: It does appear as though parseaddr is dropping quoting information from the returned parsed address. Fixing this is likely to create backward compatibility issues, and I'm very curious to know why parseaddr drops the quoting info. Note that I do not observ

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2010-10-01 Thread Marien Zwart
Marien Zwart added the comment: That fixes the first problem in python 2. It should do: self.matching_blocks = [Match._make(t) for t in non_adjacent] in python 3 though, or it will return an already-exhausted map object if it is called again. This leaves the problem of other code mutating th

[issue9943] TypeError message became less helpful in Python 2.7

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: FWIW 3.1 gives same message as 2.6. I have not installed 3.2a yet to check that. Reporting of argument count mismatch has always been problematical, especially for methods. I almost think the message should be simplified to "Arguments passed do not match func

[issue5088] optparse: inconsistent default value for append actions

2010-10-01 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, attached a patch to add documentation about action=append and a default value. Regards, Sandro -- keywords: +patch nosy: +sandro.tosi Added file: http://bugs.python.org/file19087/issue5088-py3k.patch ___ Python

[issue9997] function named 'top' gets unexpected namespace/scope behaviour

2010-10-01 Thread Jeremy Thurgood
Changes by Jeremy Thurgood : -- nosy: +jerith ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue9977] TestCase.assertItemsEqual's description of differences

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy added the comment: If I understand correctly, you are requesting that .assertItemsEqual only use the 2nd (multiset comparison) method, so that if one want the first method, one should directly call .assertSequenceEqual(sorted(a), sorted(b)). This seems reasonable to me, but I d

[issue5501] Update multiprocessing docs re: freeze_support

2010-10-01 Thread Sandro Tosi
Sandro Tosi added the comment: Hello, well it's just 3 words that can clarify the situation, so maybe just add them would be nice Regards, Sandro -- nosy: +sandro.tosi ___ Python tracker _

[issue10008] Two links point to same place

2010-10-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Please see http://docs.python.org/genindex-T.html Thread (class in threading), [1] This two links point to same place. I think latter should point http://docs.python.org/library/threading.html#thread-objects or class threading.Thread(group=None, target=

[issue9977] TestCase.assertItemsEqual's description of differences

2010-10-01 Thread Matthew Woodcraft
Matthew Woodcraft added the comment: Terry J. Reedy wrote: > If I understand correctly, you are requesting that .assertItemsEqual > only use the 2nd (multiset comparison) method, so that if one want the > first method, one should directly call .assertSequenceEqual(sorted(a), > sorted(b)). Yes,

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch that fixes the issue. Can you try it? Unfortunately, more advanced uses such a slicing the memoryview are still crashing. That's because the new buffer protocol doesn't define ownership of Py_buffer structs. As a result, nothing can be assumed

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Of course, a patch is always better without the debugging prints :) -- Added file: http://bugs.python.org/file19089/memview.patch ___ Python tracker ___

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou : Removed file: http://bugs.python.org/file19088/memview.patch ___ Python tracker ___ ___ Python-bugs-list mailing li

[issue8879] Implement os.link on Windows

2010-10-01 Thread Brian Curtin
Brian Curtin added the comment: test_tarfile fails with this patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue9996] binascii should convert unicode strings

2010-10-01 Thread R. David Murray
R. David Murray added the comment: Since the issue/patch is about binascii, and I agree with Martin that binascii should continue to do bytes-to-bytes transforms (especially since that is its most common use case, IMO), I'm going to close this issue. Please open the discussion on python-dev

[issue9985] difflib.SequenceMatcher has slightly buggy and undocumented caching behavior

2010-10-01 Thread Ned Deily
Ned Deily added the comment: (+nosy Raymond as committer of r59907 and removing python2.6 since this is not a security issue) -- nosy: +ned.deily, rhettinger stage: -> needs patch versions: -Python 2.6 ___ Python tracker

[issue10009] Automated MSI installation does not work

2010-10-01 Thread Amaury Forgeot d'Arc
New submission from Amaury Forgeot d'Arc : >From an old post on python-dev: 2010/08/04 Paul Kippes: > For the most part, the information at > http://www.python.org/download/releases/2.4/msi/ assisted me with > automating a 2.7 installation on Windows XP.  The following initial > attempt, however,

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger nosy: +rhettinger ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: My bad, I took Tarek’s line about “implementing all functions” literally. Your client classes don’t have methods with the same exact names and signatures, but what matters is that they provide the functionality. If you can review the functions listed on the XM

[issue10010] ".. index::" position

2010-10-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto : Hello. While I was reading HTML help, I felt some links were not pointing to *before* what I wanted to read. When I selected "sort (list method)" in keyword pane, it jumped to *Note* section, but I was not sure where I was. Table above was actually what I w

[issue8879] Implement os.link on Windows

2010-10-01 Thread Hirokazu Yamamoto
Hirokazu Yamamoto added the comment: I think this is because os.stat and os.lstat doesn't set st_nlink. It is only set via os.fstat. I'll attach quick hack patch. (Again, this is just quick hack patch) I confirmed this passes test_os and test_tarfile. -- Added file: http://bugs.python.

[issue10010] ".. index::" position

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: +1 on the patch. I suspect there is the same problem for other links. -- nosy: +eric.araujo versions: +Python 3.1, Python 3.2 ___ Python tracker

[issue5088] optparse: inconsistent default value for append actions

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. Some remarks: > :attr:`~Option.dest` variable, that already contains the default value I would have used “which” here, but I’m not a native speaker. > not replaced (contrary to what one can think) I’d have used a comma, not parens. > This

[issue5501] Update multiprocessing docs re: freeze_support

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: I’m assuming this is a feature new in 2.7 and 3.2, please add 3.1 if this is wrong. -- nosy: +d...@python, eric.araujo ___ Python tracker ___

[issue9841] sysconfig and distutils.sysconfig differ in subtle ways

2010-10-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- nosy: +barry ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Alexis Metaireau
Alexis Metaireau added the comment: Yes, all the functions are covered. By the way, I've covered all the functions based on the pypi source code, not on the wiki. I'll update the wiki page with some examples soon :) -- ___ Python tracker

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ _

[issue1195571] simple callback system for Py_FatalError

2010-10-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Here is a new patch; I lifted the pre-Py_Initialize() restriction, because it seems to me that a wxPython application, for example, could use it. A wxPython application is not embedded, but it already often redirects stdout and even installs a segfault h

[issue1195571] simple callback system for Py_FatalError

2010-10-01 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Added file: http://bugs.python.org/file19096/fatalhook-2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue2771] test issue

2010-10-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Attach some file -- keywords: +patch Added file: http://bugs.python.org/file19097/README.diff ___ Python tracker ___ __

[issue1195571] simple callback system for Py_FatalError

2010-10-01 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Removed file: http://bugs.python.org/file19096/fatalhook-2.patch ___ Python tracker ___ ___ Python-bugs-li

[issue1195571] simple callback system for Py_FatalError

2010-10-01 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : Added file: http://bugs.python.org/file19098/fatalhook-2.patch ___ Python tracker ___ ___ Python-bugs-list

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: I see nothing obviously wrong in the patch. -- ___ Python tracker ___ ___ Python-bugs-list mailing list

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-01 Thread Martin v . Löwis
Martin v. Löwis added the comment: Éric: which patch: file18807, or http://codereview.appspot.com/2340041/? -- ___ Python tracker ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: Sorry, I was replying to this: “I'm still investigating that, but in the meantime, please go to codereview and let me know what you think so far.” I meant that for the distutils part, I’ve seen nothing bad. I have no idea about the import bug. --

[issue10011] `except` doesn't use `isinstance`

2010-10-01 Thread Ram Rachum
New submission from Ram Rachum : Is there a reason why `execpt` compares base classes instead of using `isinstance`? This prevents using `__instancecheck__` to override the instance check. -- components: Interpreter Core messages: 117844 nosy: cool-RR priority: normal severity: normal

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
STINNER Victor added the comment: Patch version 4: - implement unicode_aswidechar() for 16 bits wchar_t and 32 bits Py_UNICODE - PyUnicode_AsWideWcharString() returns the number of wide characters excluding the nul character as does PyUnicode_AsWideChar() For 16 bits wchar_t and 32 bits Py_U

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file19082/aswidechar_nonbmp-2.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file19083/aswidechar_nonbmp-3.patch ___ Python tracker ___ ___ Python-bugs-lis

[issue10011] `except` doesn't use `isinstance`

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou added the comment: Mainly to protect against potential infinite recursion with isinstance checks. Also, performance is probably better. Here are the relevant code and comments in PyErr_GivenExceptionMatches() (in Python/errors.c): /* PyObject_IsSubclass() can recurse a

[issue6691] Support for nested classes and function for pyclbr

2010-10-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Too late for version 2. I updated patch for 3.2, and tried to improve the documentation a little bit. -- nosy: +amaury.forgeotdarc versions: -Python 2.7, Python 3.1 Added file: http://bugs.python.org/file19100/pyclbr_nested_objects-py3k.patch _

[issue8670] c_types.c_wchar should not assume that sizeof(wchar_t) == sizeof(Py_UNICODE)

2010-10-01 Thread STINNER Victor
STINNER Victor added the comment: Ooops, I lost my patch to fix the initial (ctypes) issue. Here is an updated patch: ctypes_nonbmp.patch (which needs aswidechar_nonbmp-4.patch). -- Added file: http://bugs.python.org/file19101/ctypes_nonbmp.patch __

[issue9873] urllib.parse: Allow bytes in some APIs that use string literals internally

2010-10-01 Thread STINNER Victor
Changes by STINNER Victor : -- title: Allow bytes in some APIs that use string literals internally -> urllib.parse: Allow bytes in some APIs that use string literals internally ___ Python tracker __

[issue10011] `except` doesn't use `isinstance`

2010-10-01 Thread Ram Rachum
Ram Rachum added the comment: I don't understand the infinite recursion argument. If there's such an infinite recursion, wouldn't it be due to a bug in the user's implementation of __instancecheck__? -- ___ Python tracker

[issue9841] sysconfig and distutils.sysconfig differ in subtle ways

2010-10-01 Thread Tarek Ziadé
Tarek Ziadé added the comment: Not in distutils2 because we want to get rid of it, thats the whole point. distutils2 will use the sysconfig module I've extracted from distutils. -- ___ Python tracker __

[issue9841] sysconfig and distutils.sysconfig differ in subtle ways

2010-10-01 Thread Éric Araujo
Éric Araujo added the comment: By “d2/sysconfig” I meant d2._backport.sysconfig. -- ___ Python tracker ___ ___ Python-bugs-list mailin

[issue10012] httplib shadows builtin, assumes strings

2010-10-01 Thread Cliff Wells
New submission from Cliff Wells : httplib.py ~Line 924 def putheader(self, header, *values): str = '%s: %s' % (header, '\r\n\t'.join(values)) self._output(str) should be changed to something like: def putheader(self, header, *values): ... s = '%s: %s'

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Benjamin Peterson
Benjamin Peterson added the comment: As of r85154, type.__abstractmethods__ now raises an AttributeError, too. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue9807] deriving configuration information for different builds with the same prefix

2010-10-01 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: bzr branch lp:~barry/python/issue9807 https://code.edge.launchpad.net/~barry/python/issue9807 -- ___ Python tracker ___ __

[issue9990] PyMemoryView_FromObject alters the Py_buffer after calling PyObject_GetBuffer when ndim 1

2010-10-01 Thread Lenard Lindstrom
Lenard Lindstrom added the comment: Applied patch to: Python 3.2a2+ (py3k:85150M, Oct 1 2010, 14:40:33) [GCC 4.4.5 20100728 (prerelease)] on linux2 Python unit test test_capi.py crashes: internal test_broken_memoryview * ob object : type: str refcount: 0 address : 0xb7171178 * op->_ob_

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-01 Thread R. David Murray
R. David Murray added the comment: New version of patch including a BytesGenerator. -- Added file: http://bugs.python.org/file19102/email_parse_bytes3.diff ___ Python tracker ___

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-01 Thread R. David Murray
R. David Murray added the comment: In case it isn't clear, the code patch is now complete, so anyone who wants to give it a review, please do. I'll add the docs soon, but the basic idea is you can put bytes in by either using message_from_bytes or by using the 'ascii' codec and the 'surrogat

[issue4661] email.parser: impossible to read messages encoded in a different encoding

2010-10-01 Thread Alex Quinn
Changes by Alex Quinn : -- nosy: -Alex Quinn ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue10012] httplib shadows builtin, assumes strings

2010-10-01 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- assignee: -> orsenthil nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

  1   2   >