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

2010-10-01 Thread Lenard Lindstrom
Lenard Lindstrom le...@telus.net 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

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

2010-10-01 Thread Nick Craig-Wood
Nick Craig-Wood n...@craig-wood.com 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

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Nir Aides
Nir Aides n...@winpdb.org added the comment: Should be min(n, 1024) instead of max(...) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9962 ___

[issue10000] mark more tests as CPython specific

2010-10-01 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Do you want to volunteer, Steve? ;) -- nosy: +georg.brandl ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1 ___

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

2010-10-01 Thread Thomas Guettler
New submission from Thomas Guettler guet...@thomas-guettler.de: 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

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

2010-10-01 Thread Thomas Guettler
Changes by Thomas Guettler guet...@thomas-guettler.de: Added file: http://bugs.python.org/file19081/broken-subject.msg ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10004 ___

[issue9962] GzipFile doesn't have peek()

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 n...@winpdb.org 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 rep...@bugs.python.org

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

2010-10-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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)

[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 victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file17322/pyunicode_aswidechar_surrogates-py3k.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8670

[issue9962] GzipFile doesn't have peek()

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

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

2010-10-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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:

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

2010-10-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

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

2010-10-01 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com 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,

[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 m...@egenix.com added the comment: STINNER Victor wrote: STINNER Victor victor.stin...@haypocalc.com 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

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
New submission from Popa Claudiu pcmantic...@gmail.com: 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),

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread Popa Claudiu
Popa Claudiu pcmantic...@gmail.com added the comment: I meant Connection class calls the.. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10005 ___

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

2010-10-01 Thread Daniel Stutzbach
Daniel Stutzbach dan...@stutzbachenterprises.com 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

[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 m...@egenix.com added the comment: Daniel Stutzbach wrote: Daniel Stutzbach dan...@stutzbachenterprises.com 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

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

2010-10-01 Thread Anand B Pillai
Anand B Pillai abpil...@gmail.com added the comment: Okay. Verified as working. Thank you! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3488 ___

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Yaroslav Halchenko
New submission from Yaroslav Halchenko yarikop...@gmail.com: 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

[issue10005] Postgresql calls undefined method in __str__

2010-10-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 cburg...@ira.uka.de 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 cburg...@ira.uka.de 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=54230r2=59907 -- ___ Python tracker rep...@bugs.python.org

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10006 ___ ___

[issue9533] metaclass can't derive from ABC

2010-10-01 Thread Daniel Urban
Daniel Urban urban.dani...@gmail.com 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__

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

2010-10-01 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 rep...@bugs.python.org

[issue6608] asctime does not check its input

2010-10-01 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net 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 ocean-c...@m2.ccsnet.ne.jp: 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,

[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 ocean-c...@m2.ccsnet.ne.jp added the comment: Python3.1 cannot build _ssl and _hashlib. And Python2.7 cannot. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10007 ___

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10006 ___ ___

[issue10004] irhe

2010-10-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: email/quoprimime.py Exception (with patch) - irhe ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10004 ___

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

2010-10-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- title: irhe - email/quoprimime.py Exception (with patch) ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10004 ___

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

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

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

2010-10-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- stage: - unit test needed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10004 ___

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

2010-10-01 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10004 ___ ___

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

2010-10-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 rep...@bugs.python.org

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

2010-10-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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 radugrig...@gmail.com 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.

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-01 Thread Brian Bossé
Brian Bossé pen...@gmail.com 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) +++

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

2010-10-01 Thread Jeffrey Finkelstein
Jeffrey Finkelstein jeffrey.finkelst...@gmail.com 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()

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

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

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: I see the problem; will consider/fix later today hopefully. -- assignee: - benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10006

[issue9986] PDF files of python docs have text missing

2010-10-01 Thread Amber Jain
Amber Jain i.amber.j...@gmail.com 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 rep...@bugs.python.org

[issue10003] signal.SIGBREAK regression on windows

2010-10-01 Thread Brian Curtin
Brian Curtin cur...@acm.org 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 ___

[issue10006] non-Pythonic fate of __abstractmethods__

2010-10-01 Thread Daniel Urban
Changes by Daniel Urban urban.dani...@gmail.com: -- nosy: +durban ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10006 ___ ___ Python-bugs-list

[issue10003] signal.SIGBREAK regression on windows

2010-10-01 Thread Martin
Martin gzl...@googlemail.com added the comment: Thanks for the quick resolution Brian, head now works as expected. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10003 ___

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

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

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

2010-10-01 Thread Marien Zwart
Marien Zwart m_zw...@123mail.org 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

[issue9943] TypeError message became less helpful in Python 2.7

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue5088] optparse: inconsistent default value for append actions

2010-10-01 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com 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

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

2010-10-01 Thread Jeremy Thurgood
Changes by Jeremy Thurgood fir...@gmail.com: -- nosy: +jerith ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9997 ___ ___ Python-bugs-list mailing

[issue9977] TestCase.assertItemsEqual's description of differences

2010-10-01 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu 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

[issue5501] Update multiprocessing docs re: freeze_support

2010-10-01 Thread Sandro Tosi
Sandro Tosi sandro.t...@gmail.com 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 rep...@bugs.python.org

[issue10008] Two links point to same place

2010-10-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: 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

[issue9977] TestCase.assertItemsEqual's description of differences

2010-10-01 Thread Matthew Woodcraft
Matthew Woodcraft matt...@woodcraft.me.uk 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),

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

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

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

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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 rep...@bugs.python.org

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

2010-10-01 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: Removed file: http://bugs.python.org/file19088/memview.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9990 ___

[issue8879] Implement os.link on Windows

2010-10-01 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: test_tarfile fails with this patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8879 ___ ___

[issue9996] binascii should convert unicode strings

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

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

2010-10-01 Thread Ned Deily
Ned Deily n...@acm.org 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 amaur...@gmail.com: 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

[issue9974] tokenizer.untokenize not invariant with line continuations

2010-10-01 Thread Raymond Hettinger
Changes by Raymond Hettinger rhettin...@users.sourceforge.net: -- assignee: - rhettinger nosy: +rhettinger ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9974 ___

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue10010] .. index:: position

2010-10-01 Thread Hirokazu Yamamoto
New submission from Hirokazu Yamamoto ocean-c...@m2.ccsnet.ne.jp: 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

[issue8879] Implement os.link on Windows

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

[issue10010] .. index:: position

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org

[issue5088] optparse: inconsistent default value for append actions

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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

[issue5501] Update multiprocessing docs re: freeze_support

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 rep...@bugs.python.org http://bugs.python.org/issue5501

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

2010-10-01 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- nosy: +barry ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9841 ___ ___ Python-bugs-list mailing

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Alexis Metaireau
Alexis Metaireau ametair...@gmail.com 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 :) -- ___

[issue8190] Add a PyPI XML-RPC client module

2010-10-01 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: accepted - fixed stage: patch review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8190

[issue1195571] simple callback system for Py_FatalError

2010-10-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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

[issue1195571] simple callback system for Py_FatalError

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

[issue2771] test issue

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

[issue1195571] simple callback system for Py_FatalError

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

[issue1195571] simple callback system for Py_FatalError

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

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

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I see nothing obviously wrong in the patch. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___

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

2010-10-01 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Éric: which patch: file18807, or http://codereview.appspot.com/2340041/? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9807 ___

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

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org 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 cool...@cool-rr.com: 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:

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

2010-10-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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

[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 victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file19082/aswidechar_nonbmp-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8670 ___

[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 victor.stin...@haypocalc.com: Removed file: http://bugs.python.org/file19083/aswidechar_nonbmp-3.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8670 ___

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

2010-10-01 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr 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): /*

[issue6691] Support for nested classes and function for pyclbr

2010-10-01 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com 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:

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

2010-10-01 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com 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 victor.stin...@haypocalc.com: -- 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 rep...@bugs.python.org

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

2010-10-01 Thread Ram Rachum
Ram Rachum cool...@cool-rr.com 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é ziade.ta...@gmail.com 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 rep...@bugs.python.org

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

2010-10-01 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: By “d2/sysconfig” I meant d2._backport.sysconfig. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9841 ___

[issue10012] httplib shadows builtin, assumes strings

2010-10-01 Thread Cliff Wells
New submission from Cliff Wells cl...@develix.com: 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): ...

[issue10006] non-Pythonic fate of __abstractmethods__

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

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

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

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

2010-10-01 Thread Lenard Lindstrom
Lenard Lindstrom le...@telus.net 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 : refcnt 0 at 0xb7171178 type: str

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

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

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

2010-10-01 Thread R. David Murray
R. David Murray rdmur...@bitdance.com 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'

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

2010-10-01 Thread Alex Quinn
Changes by Alex Quinn aq2...@alexquinn.org: -- nosy: -Alex Quinn ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4661 ___ ___ Python-bugs-list

[issue10012] httplib shadows builtin, assumes strings

2010-10-01 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10012 ___

  1   2   >