[issue9786] Native TLS support for pthreads

2010-09-07 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Hm, both the test you mention are using the (non-recursive) lock to synchronize threads. I can't see anything wrong there. Could you please try to replace the cod in pthread_getspecific() with this: int err = errno void *result = pthread_getspecific(

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-07 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: As far as I can tell, _mkdir(name) is equivalent to CreateDirectoryA(name, NULL), except one uses errno and the other uses GetLastErrno. It is definitely possible that there's something I don't know, though, and the documentation doesn't explicitly state t

[issue9786] Native TLS support for pthreads

2010-09-07 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: "errno" is preserved by PyEval_RestoreThread(), so this isn't the issue. What you are probably seeing is latent race conditions in the test suite, made apparent by a non-locking TLS implementation. The test suite isn't free from those, see for example

[issue9787] Release the TLS lock during allocations

2010-09-07 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: You're right. Added a new version of the patch. -- Added file: http://bugs.python.org/file18793/tlspatch.patch ___ Python tracker ___ __

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-07 Thread Brian Curtin
Brian Curtin added the comment: What about using CreateDirectory? -- components: +Build nosy: +brian.curtin ___ Python tracker ___ ___

[issue9752] MSVC Compiler warning in Python\import.c

2010-09-07 Thread Jon Anglin
Jon Anglin added the comment: Windows provides two versions of mkdir in direct.h: int mkdir(const char* dirname) int _mkdir(const char* dirname) The latter is the preferred function because it is conformant to the ISO C++ standard. As you can see, neither function has a mode parameter

[issue9796] Add summary tables for unittest API

2010-09-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue4459] bdist_rpm should enable --fix-python by default

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> rejected stage: -> committed/rejected status: pending -> closed ___ Python tracker ___ ___

[issue9261] include higher (../../) dirs fails

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue8420] Objects/setobject.c contains unsafe code

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- status: closed -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue6114] distutils build_ext path comparison only based on strings

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: symlinks are not supported at all on Windows before 3.2, so we’re good, except for cygwin. -- ___ Python tracker ___ _

[issue6114] distutils build_ext path comparison only based on strings

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report and patch. I just tested that When the executable itself is symlinked (not installed, just linked from an existing installation), sys.exec_prefix and sys.executable are different. This means that a unit test (to prevent regressions) will be

[issue6087] distutils.sysconfig.get_python_lib gives surprising result when used with a Python build

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: What ./configure line did you use? -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue4359] at runtime, distutils uses buildtime files

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: I think the future sysconfig module (http://bitbucket.org/tarek/distutils2/src/tip/docs/design/wiki.rst) addresses part of the issue: It will use a configparser file to store installation directories. There is nothing about other build-time variables, though; th

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: It would. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue7402] Improve reduce example in doanddont.rst

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- title: Imrpove reduce example in doanddont.rst -> Improve reduce example in doanddont.rst ___ Python tracker ___ _

[issue7402] Imrpove reduce example in doanddont.rst

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: I agree with Raymond that the example should be kept. We could add a comment explaining the difference with sum: reduce + operator.add works with all types. (sum would be marked up so that a link gets generated.) Is there a subsection about functional programmin

[issue7402] reduce() is an anti-example in "Idioms and Anti-Idioms"

2010-09-07 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-09-07 Thread R. David Murray
R. David Murray added the comment: (1) and (2) are good ideas. For (3), would it be clear enough if it read "``except:`` catches *all* exceptions, [...] and GeneratorExit (which is not an error and should not normally be caught by user code)." --

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: I agree with your reply (that’s what I meant with “works for me”, the question about untabify vs. hooks only occurred to me after our IRC exchange). -- ___ Python tracker ___

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Sep 7, 2010 at 8:31 PM, Éric Araujo wrote: .. > My real question was: Shouldn’t this be a VCS hook instead of untabify’s job? > (or in addition to untabify if you insist) > Yes, VCS hook makes sense (and may almost eliminate the need to handle

[issue9786] Native TLS support for pthreads

2010-09-07 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: The code may need a little bit of extra work: The pthreads machine that I have to work with is a PS3 :). And, despite the documentation not saying, I suspect that pthread_getspecific() actually does mess with "errno", making it necessary to preserve "

[issue9762] build failures

2010-09-07 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: What platform/OS is this happening on? I've tested the PEP 3149 patch on various Ubuntu, OS X, and Debian systems and never needed this. Not saying it's a bad patch, I just think there's something else environmental going on that I never saw for some reaso

[issue9788] atexit and execution order

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- assignee: -> eric.araujo components: +Documentation -Library (Lib) resolution: -> accepted stage: -> needs patch versions: +Python 2.7, Python 3.1 ___ Python tracker __

[issue4947] sys.stdout fails to use default encoding as advertised

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +lemburg ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Your rewrite makes the text much clearer in my opinion. Here are some nits for you to grind, cheers :) 1) I’d say “using a bare ``except:``” and maybe add an index entry for “bare except” referring to that section, to make indexing and maybe googling find this.

[issue9796] Add summary tables for unittest API

2010-09-07 Thread Éric Araujo
New submission from Éric Araujo : Suggestion from Raymond: Add a table summarizing all assert* methods of TestCase. I will make a patch in some days or weeks. I think I’ll also add one table for the most useful objects from a user viewpoint (Loader, TestCase, main). See the docs of itertools a

[issue9424] Disable unittest.TestCase.assertEquals and assert_ during a regrtest run

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: See also #5846 -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: My real question was: Shouldn’t this be a VCS hook instead of untabify’s job? (or in addition to untabify if you insist) -- ___ Python tracker ___

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Tue, Sep 7, 2010 at 8:08 PM, Éric Araujo wrote: .. > Why would it be the job of untabify to report invalid non-ASCII characters in > C files? > Since untabify works by loading C code as text, it has to assume some encoding. Failing with uncaught dec

[issue9199] distutils upload command crashes when displaying server response

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Fixed in py3k, 3.1, 2.7 (r84611 through r84616) and distutils2 (ea174f2c7d8e). Thanks for the report. -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Why would it be the job of untabify to report invalid non-ASCII characters in C files? -- ___ Python tracker ___ _

[issue9793] Typo fix in What's New for 3.2: dynmaic -> dynamic

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Sorry about that. I wanted to give a quick response to Dag, so I grepped for other instances of the same typo and committed; it was hasty. -- ___ Python tracker _

[issue9793] Typo fix in What's New for 3.2: dynmaic -> dynamic

2010-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: The sort of editing should be done *much* later. I expect to be updating the file every few days and occasionally running the out through a spelling and grammar checker. Right now, it's a work in progress that doesn't benefit from micro-edits. -- no

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: > > PyUnicode_FromFormat("%s", text) expects a utf-8 buffer. > Really? The *format* looks more like latin-1, right. But the payload of a "%s" item is decoded as utf-8. > I don't think that a C file calls PyErr_Format() or > PyUnicode_FromFormat(V)() wit

[issue9598] untabify.py fails on files that contain non-ascii characters

2010-09-07 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: >From IRC: Me: UTF-8 was not strictly valid in ANSI C comments, so it is a bug in untabify to assume UTF-8 in C files. Merwok: Works for me. I am lowering the priority because it looks like untabify does not fail on the current code base. I'll follow

[issue9042] Gettext cache and classes

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Looks good. Another +1 from a core dev and I commit this. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue9632] Remove sys.setfilesystemencoding()

2010-09-07 Thread STINNER Victor
STINNER Victor added the comment: "keep the C function" Hum, currently, Python3 only has a *private* function called _Py_SetFileSystemEncoding() which can only be called after _Py_InitializeEx() (because it relies on the codecs API). If you consider that there is a real use case, we should c

[issue9632] Remove sys.setfilesystemencoding()

2010-09-07 Thread STINNER Victor
STINNER Victor added the comment: About "embedded Python interpreters or py2exe-style applications": do you mean that the application calls a C function to set the encoding before starting the interpreter? Or you mean the Python function, sys.setfilesystemencoding()? I would like to remove th

[issue9769] PyUnicode_FromFormatV() doesn't handle non-ascii text correctly

2010-09-07 Thread STINNER Victor
STINNER Victor added the comment: > PyUnicode_FromFormat("%s", text) expects a utf-8 buffer. Really? I don't see how "*s++ = *f;" (where s is Py_UNICODE* and f is char*) can decode utf-8. It looks more like ISO-8859-1. > Very recently (r84472, r84485), some C files of CPython source code > we

[issue9608] Re-phrase best way of using exceptions in doanddont.rst

2010-09-07 Thread R. David Murray
R. David Murray added the comment: Here is a more extensive rewrite that I think makes things clearer and (I hope) makes the text read better. I also updated the preceding section per the confusion expressed in issue 8518. Note that this patch is somewhat Python3 specific, since it assumes t

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Assigning this to me. Hopefully this should go into the plan of adding a context manager to all network libs (ftplib, smptlib, imaplib, etc..) in time for Python 3.2. -- assignee: -> giampaolo.rodola ___ Python

[issue9794] socket.create_connection context manager

2010-09-07 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' : -- assignee: -> giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9794] socket.create_connection context manager

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: It wasn't easy but here it is. =) I'll submit a patch which updates the doc tomorrow. -- Added file: http://bugs.python.org/file18790/socket_ctx_mgr.patch ___ Python tracker ___

[issue8518] small typo in http://docs.python.org/howto/doanddont.html

2010-09-07 Thread R. David Murray
R. David Murray added the comment: I've included my take on this in my proposed patch for issue 9608. -- stage: -> committed/rejected superseder: -> Re-phrase best way of using exceptions in doanddont.rst type: -> behavior ___ Python tracker

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +giampaolo.rodola ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue9795] nntplib.NNTP should support the context protocol

2010-09-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : As the title says. __exit__() simply has to call self.quit(), AFAICT. -- components: Library (Lib) messages: 115815 nosy: pitrou priority: normal severity: normal status: open title: nntplib.NNTP should support the context protocol type: feature reque

[issue9793] Typo fix in What's New for 3.2: dynmaic -> dynamic

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pytho

[issue9794] socket.create_connection context manager

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: You don't need to use socketserver. Take a look at how the other tests in test_socket are written. Inheriting from ThreadedTCPSocketTest should be easy. -- ___ Python tracker

[issue1718574] build_clib --build-clib/--build-temp option bugs

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: The bug has been present since the addition of those options in 2000. It is now fixed in py3k (r84608), 3.1 (r84609), 2.7 (r84610) and distutils2 (374a277616d8). Thanks! -- resolution: accepted -> fixed stage: patch review -> committed/rejected status: o

[issue9794] socket.create_connection context manager

2010-09-07 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : Patch in attachment adds a context manager to socket.socket class so that socket.create_connection() can be used with "with" statement. -- components: Library (Lib) files: socket_ctx_mgr.patch keywords: patch messages: 115812 nosy: amaury.forgeot

[issue9707] Reworked threading.local reference implementation

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Committed in r84607. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___ __

[issue9757] Add context manager protocol to memoryviews

2010-09-07 Thread Nick Coghlan
Nick Coghlan added the comment: >> Is this not covered by PEP 3118 at all? > > The PEP says “this memory view object holds on to the memory of base > [i.e. the object the buffer was acquired from] until it is deleted”. > Apparently issues pertaining to delayed garbage collection weren't > raised

[issue9793] Typo fix in What's New for 3.2: dynmaic -> dynamic

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Fixed in r84602, thanks. Note that for such small things, you don’t have to make a patch, it’s actually faster to just open the file at the right line and fix it than download and apply a patch. You can also send an email to d...@python.org instead of opening a

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue8574] transient_internet() (test_support): use socket.setdefaulttimeout() and test_robotparser failure

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: pending -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://

[issue6394] getppid support in os module on Windows

2010-09-07 Thread Amaury Forgeot d'Arc
Changes by Amaury Forgeot d'Arc : -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue6394] getppid support in os module on Windows

2010-09-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: Committed r84601. Thanks for the patch and your perseverance! -- ___ Python tracker ___ ___ Py

[issue8574] transient_internet() (test_support): use socket.setdefaulttimeout() and test_robotparser failure

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Improved again and committed in r84597 and r84599. Needs backporting. -- nosy: +pitrou resolution: -> fixed stage: -> committed/rejected status: open -> pending versions: -Python 2.6 ___ Python tracker

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Patch committed in r84598. Needs backporting to 3.1 and 2.7. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker __

[issue9509] argparse FileType raises ugly exception for missing file

2010-09-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Sébastien Sablé
Sébastien Sablé added the comment: I inverted the actions in the test I proposed in msg115768 (quick note from home, should have tested at work before posting). It should be: AC_MSG_CHECKING(for flock) have_flock=no AC_TRY_LINK([ #include "confdefs.h" #include ], [void* p = flock; flock(0, 0

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file18788/createconn.patch ___ Python tracker ___ __

[issue6394] getppid support in os module on Windows

2010-09-07 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: I'm currently working on it. I'll certainly commit it shortly with a few changes: - no need to say that a function fails with WindowsError, at least in the docstring. - return error sooner to reduce indentation. - in tests, use subprocess instead of mul

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: On Ubuntu 10.04: giampa...@ubuntu:~/svn/python-3.2$ ./python Python 3.2a1+ (py3k:84457, Sep 3 2010, 20:18:38) [GCC 4.4.3] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket >>> import socket >>> socket.setde

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Using this patch based on current py3k branch I've been able now to build the fcntl module for 32bit aix5.3 (with flock) and 64bit aix5.3 (without flock), both using an old gcc-3.3.6, as well as for 64bit linux. If necessary, I should be able to create

[issue9793] Typo fix in What's New for 3.2: dynmaic -> dynamic

2010-09-07 Thread Dag Odenhall
New submission from Dag Odenhall : Spotted a typo reading the What's New for 3.2a2 and thought I should give contributing a fix a try. Please excuse me if I failed to follow some procedure; this is my first contribution to the core source tree. -- assignee: d...@python components: Docu

[issue9779] argparse.ArgumentParser not support unicode in print help

2010-09-07 Thread R. David Murray
Changes by R. David Murray : -- nosy: +bethard ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pytho

[issue6394] getppid support in os module on Windows

2010-09-07 Thread Jon Anglin
Jon Anglin added the comment: I have uploaded a new diff file (from the py3k svn trunk) that has all of the changes in Doc/library/os.rst, Modules/posixmodule.c, and Lib/test/test_os.py. It is called 6394.diff. Let me know if I can do anything else to make this happen. -- Added file

[issue9792] create_connection() recasts timeout errors

2010-09-07 Thread Antoine Pitrou
New submission from Antoine Pitrou : When you call socket.create_connection() and it fails because it hits the socket timeout, the socket.timeout error is recast as a generic socket.error, which makes analyzing the failure more difficult (also, it means the "errno" attribute is lost for other

[issue6394] getppid support in os module on Windows

2010-09-07 Thread Jon Anglin
Jon Anglin added the comment: Here is a unit test for os.getppid on Windows. The test_os.diff file is the diff of the Lib/test/test.os.py file from the py3k svn branch. -- Added file: http://bugs.python.org/file18784/test_os.diff ___ Python tracker

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sorry to be pedantic - but it looks like (don't have a build > environment at hand at the moment) it will fail to build as 64bit on > the not-so-up-to-date AIX with missing 64bit flock implementation: > There, the compile-check will succeed and define HAVE_FLO

[issue9791] nntplib.py lacks a test suite

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, I just noticed there's some beginnings of a test file in #9360. -- ___ Python tracker ___

[issue9360] nntplib cleanup

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Note that according to RFC 3977, “The character set for all NNTP commands is UTF-8”. But it also says this about multi-line data blocks: Note that texts using an encoding (such as UTF-16 or UTF-32) that may contain the octets NUL, LF, or CR other than a

[issue1926] NNTPS support in nntplib

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Unfortunately nntplib lacks a test suite. I created #9791 to address this issue. -- ___ Python tracker ___ __

[issue9791] nntplib.py lacks a test suite

2010-09-07 Thread Giampaolo Rodola'
New submission from Giampaolo Rodola' : A very simple test suite which tests at least basic features and methods should be written. test_ftplib.py and test_smtplib.py can be taken as an example. Assigning this to me as a reminder. -- assignee: giampaolo.rodola components: Tests messages

[issue9788] atexit and execution order

2010-09-07 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Ok, I'll shut up then. =) > If you agree, I could make a patch to make the docs more explicit about > atexit’s simplicity and lack of guarantee about run order. Sure, go ahead. -- ___ Python tracker

[issue9788] atexit and execution order

2010-09-07 Thread Benjamin Peterson
Benjamin Peterson added the comment: I don't think the order should be defined. -- nosy: +benjamin.peterson ___ Python tracker ___ ___

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Sorry to be pedantic - but it looks like (don't have a build environment at hand at the moment) it will fail to build as 64bit on the not-so-up-to-date AIX with missing 64bit flock implementation: There, the compile-check will succeed and define HAVE_FL

[issue3402] test_nis is hanging on Solaris

2010-09-07 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- nosy: +loewis versions: +Python 3.1, Python 3.2 -Python 3.0 ___ Python tracker ___ ___ Python-bugs-list

[issue9758] ioctl mutable buffer copying problem

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: Actually, writing a test ended up quite easy (by re-using an existing test in test_ioctl and simply enlarging its buffer). I've committed an updated patch in r84589 (3.x), r84590 (3.1) and r84591 (2.7). Thank you! -- resolution: -> fixed stage: -> c

[issue2986] difflib.SequenceMatcher not matching long sequences

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: The patch changes the internal function that constructs the dict mapping b items to indexes to read as follows: create b2j mapping if isjunk function, move junk items to junk set if autojunk, move popular items to popular set I helped write and test the

[issue9080] Provide list prepend method (even though it's not efficient)

2010-09-07 Thread Raymond Hettinger
Raymond Hettinger added the comment: Sorry, this needs to stay closed. It has no chance. -- nosy: +rhettinger ___ Python tracker ___ _

[issue9757] Add context manager protocol to memoryviews

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Given this explanation, of course I am +1 on an explicit release() > method. But I'm still skeptical that a context manager adds much (not > sure if that counts as -0 or +0 :-). Ok, release() is probably enough. > I suppose after release() is called all acc

[issue5243] Missing dependency in distutils build

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Adding back distutils1. This is a bug, not a feature. -- ___ Python tracker ___ ___ Python-bugs-list ma

[issue5243] Missing dependency in distutils build

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- components: +Distutils nosy: +eric.araujo versions: -Python 2.5, Python 2.6, Python 3.0, Python 3.3 ___ Python tracker ___ ___

[issue8680] Add a sandbox in Distutils2

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: I talked a bit about that with haypo. A strong sandbox would have to intercept a number of C and Python calls to catch everything. The sandbox module in setuptools/distribute does that in 250 lines. I’m not sure it catches C code run from extension modules being

[issue7894] too aggressive dependency tracking in distutils

2010-09-07 Thread Terry J. Reedy
Changes by Terry J. Reedy : -- nosy: -terry.reedy ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9757] Add context manager protocol to memoryviews

2010-09-07 Thread Guido van Rossum
Guido van Rossum added the comment: Given this explanation, of course I am +1 on an explicit release() method. But I'm still skeptical that a context manager adds much (not sure if that counts as -0 or +0 :-). I suppose after release() is called all accesses through the memoryview object sh

[issue4673] Distutils should provide an uninstall command

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Status update: Josip implemented PEP 376 to provide the installation database and Alexis is working on distutils2.install_tools to provide an uninstall function. User-level tools like pip can reuse this code to provide an uninstall functionality. -- nos

[issue5411] add xz compression support to distutils

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: FTR, the distutils2 repo is http://bitbucket.org/tarek/distutils2. distutils2.tests.support contains helper to create temp directories and run commands; see docstrings and example uses in the tests for more info. -- _

[issue8933] Invalid detection of metadata version

2010-09-07 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +alexis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue7894] too aggressive dependency tracking in distutils

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: I understand this is not a bug but a nicety/performance issue, so I’m reassigning to distutils2. -- components: -Distutils nosy: +eric.araujo versions: +Python 2.5, Python 2.6, Python 3.1 ___ Python tracker

[issue9080] Provide list prepend method (even though it's not efficient)

2010-09-07 Thread sorin
sorin added the comment: +1 for adding it because it will make the code easier to read/understand. Bad performance could be documented and it's related about internal representation. -- nosy: +sorin ___ Python tracker

[issue9730] base64 docs refers to strings instead of bytes

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: I hope the trivial 2-byte fix does not get lost in the general issue. -- ___ Python tracker ___ ___

[issue9664] Make gzip module not require that underlying file object support seek

2010-09-07 Thread Terry J. Reedy
Terry J. Reedy added the comment: It is possible that only a fixed-size buffer is needed. If so, use of an alternate read mechanism could be conditioned on the underlying file(like) object not having seek. It is also possible to direct a stream to a temporary file, but I think having the use

[issue8312] Add post/pre hooks for distutils commands

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Hooks implemented for any command by Konrad and merged into the main repo. -- resolution: accepted -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker

[issue1926] NNTPS support in nntplib

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch might need a little reworking to make it work under 3.x, although probably not much. It should also, IMHO, take an instance of the new SSLContext class (*) as a parameter, rather than the keyfile and certfile args. (*) http://docs.python.org/dev/lib

[issue8324] add a distutils test command

2010-09-07 Thread Éric Araujo
Éric Araujo added the comment: Implemented by Konrad and merged into the main repo. -- resolution: accepted -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker __

[issue1053365] nntplib: add support for NNTP over SSL

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch in #1926 is more modern and up-to-date, closing as duplicate. -- nosy: +pitrou resolution: -> duplicate stage: unit test needed -> status: open -> closed superseder: -> NNTPS support in nntplib ___ Pytho

  1   2   >