[issue11717] conflicting definition of ssize_t in pyconfig.h

2011-03-29 Thread Wolfgang Rohdewald
Wolfgang Rohdewald added the comment: types.h is from kdewin/include/msvc/sys git clone git://anongit.kde.org/kdewin types.h uses SSIZE_T but that is nowhere defined in KDE, so it must be the original one from msvc -- ___ Python tracker

[issue11719] test_msilib skip unexpected on non-Windows platforms

2011-03-29 Thread Nadeem Vawda
New submission from Nadeem Vawda : When running regrtest on a non-Windows platform, I get a warning that test_msilib was skipped unexpectedly. The attached patch modifies regrtest to indicate that this is expected. -- components: Tests files: test_msilib-expected.diff keywords: patch mes

[issue11717] conflicting definition of ssize_t in pyconfig.h

2011-03-29 Thread Martin v . Löwis
Martin v. Löwis added the comment: Where does R:\include\msvc\sys/types.h come from? -- nosy: +loewis ___ Python tracker ___ ___ Pyth

[issue8554] suspicious comment in msilib.py/__init__.py

2011-03-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue2694] msilib file names check too strict ?

2011-03-29 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list U

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Darren Dale
Darren Dale added the comment: On Tue, Mar 29, 2011 at 10:24 PM, Darren Dale wrote: > > Darren Dale added the comment: > > On Tue, Mar 29, 2011 at 9:31 PM, Benjamin Peterson > wrote: >> 2011/3/29 Darren Dale : >>> The benefit of abstractproperty.abstract{...} is that one decorator is >>> req

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Darren Dale
Darren Dale added the comment: On Tue, Mar 29, 2011 at 9:31 PM, Benjamin Peterson wrote: > 2011/3/29 Darren Dale : >> The benefit of abstractproperty.abstract{...} is that one decorator is >> required instead of two, right? Are there others? > > Mostly it doesn't create a weird asymmetry betwe

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: To control where mkdtemp() puts files, you could just use the "dir" argument (and you can use tempfile.gettempdir() beforehand if you want that location to be inside the normal temp directory) -- ___ Python tracker

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/29 Darren Dale : > > Darren Dale added the comment: > > I see some problems with this approach, but maybe I haven't fully appreciated > it. Let me summarize the goals and constraints as I see them: > > 1) compatible with long-form and decorator synta

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-29 Thread Nick Coghlan
Nick Coghlan added the comment: If support for a top level temporary directory is added, test.support should acquire alternatives to the tempfile module tools to make it easy for tests that create their own temporary files to respect that naming scheme. In particular, test.script_helper.temp_

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: Thank you. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11718] Teach IDLE's open-module command to find packages

2011-03-29 Thread Ned Deily
Changes by Ned Deily : -- nosy: +ned.deily title: Teach IDLE's open-modue command to find packages -> Teach IDLE's open-module command to find packages ___ Python tracker ___ __

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 075637897403 by Raymond Hettinger in branch '3.2': Issue 11713: clarify docstring for collections.deque() http://hg.python.org/cpython/rev/075637897403 New changeset 80e71592b114 by Raymond Hettinger in branch 'default': Issue 11713: clarify docstr

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset f4e6e18cae4b by Raymond Hettinger in branch '2.7': Issue 11713: clarify docstring for collections.deque() http://hg.python.org/cpython/rev/f4e6e18cae4b New changeset 36344c9505b2 by Raymond Hettinger in branch '3.1': Issue 11713: clarify docstring

[issue11718] Teach IDLE's open-modue command to find packages

2011-03-29 Thread Raymond Hettinger
New submission from Raymond Hettinger : The open-module command is a fast effective way to examine source code regardless of where it sits on sys.path; however, it gets lost when seeking a package name. Instead of aborting, it could bring-up the __init__.py file. For example, "open-module uni

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 2.7 doc actually says that the two arguments to cmp are list items, rather than list items or keys "cmp specifies a custom comparison function of two arguments (list items)". And this "In general, the key and reverse conversion processes are much faster t

[issue11717] conflicting definition of ssize_t in pyconfig.h

2011-03-29 Thread Wolfgang Rohdewald
New submission from Wolfgang Rohdewald : compiling pykde on windows with msvc2010 on a 32bit Windows 7: sipdnssdpart0.cpp R:\include\msvc\sys/types.h(52) : error C2371: 'ssize_t' : redefinition; different basic types c:\python27\include\pyconfig.h(201) : see declaration of 'ssize_t' I

[issue11716] mixing calls to io.TextIOWrapper.write and io.BufferedWriter.write produces undefined results

2011-03-29 Thread Sean Sherrard
Sean Sherrard added the comment: Never mind, I didn't realize that TextIOWrapper was doing its own buffering. The behaviour makes sense to me now after reading textio.c -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Raymond Hettinger
Raymond Hettinger added the comment: There's no need to guess what it does ;-) We don't document by experiment when source and test suites are available. Mathew was correct, it works as documented: the key function is applied at the outset (as it always does) and then cmp function is use

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: > - speed up the test: because dump_backtraces_later() has now a > subsecond resolution, we can use sleep of 50 ms instead of 1 sec This is too short, there may be random failures on some slow buildbots. IMO, 0.5s is the minimum you can use. +def _check_d

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Darren Dale
Darren Dale added the comment: I see some problems with this approach, but maybe I haven't fully appreciated it. Let me summarize the goals and constraints as I see them: 1) compatible with long-form and decorator syntax of {abstract}property declaration 2) backwards compatible, no change in

[issue11716] mixing calls to io.TextIOWrapper.write and io.BufferedWriter.write produces undefined results

2011-03-29 Thread Sean Sherrard
New submission from Sean Sherrard : Maybe this is by design, but it certainly took me by surprise. Steps to reproduce: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type "copyright", "credits" or "license()" for more information. >>> import io >>> raw = io.B

[issue11688] SQLite trace callback

2011-03-29 Thread Torsten Landschoff
Torsten Landschoff added the comment: > - you need to document the new API in Doc/library/sqlite3.rst Included in the updated patch. > +self.assertTrue([x for x in traced_statements if x.find("create > table foo") != -1]) > > This looks a bit complicated, why not something like > `any

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
Terry J. Reedy added the comment: On pydev, Mathew Woodcraft says the actual rule is 4) Neither 'wins': cmp is applied to the output of key. which is consistent with my experiment also. -- ___ Python tracker _

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: Remainder for me: the patch contains some whitespace changes in Makefile.pre.in and Setup.dist. dump_traceback(), enable(), dump_tracebacks_later(), register() flush the input file. It is not said in the doc. Should it be documented? For enable(), dump_trace

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: I regenerated the patch. Last changes: - I merged Antoine's new implementation of faulthandler.dump_backtraces_later() using a thread - dump_backtraces_later() has a new exit option: if exit=True, call _exit() - disable (remove) register() and unregister()

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
Changes by STINNER Victor : Removed file: http://bugs.python.org/file21404/605422430234.diff ___ Python tracker ___ ___ Python-bugs-list maili

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
Changes by STINNER Victor : Added file: http://bugs.python.org/file21467/c684b1e59aaa.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/29 Darren Dale : > > Darren Dale added the comment: > > Benjamin: have you thought this idea through? Perhaps inadequately? -- ___ Python tracker _

[issue8554] suspicious comment in msilib.py/__init__.py

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: This issue has been fixed when issue11696 was fixed. -- ___ Python tracker ___ ___ Python-bugs-list m

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 10:11 PM, Matthias Klose wrote: >heh, that's easy, just add the multiarch id to the extension name ;-) Clever! :) -- ___ Python tracker __

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Darren Dale
Darren Dale added the comment: Benjamin: have you thought this idea through? -- ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 10:12 PM, Matthias Klose wrote: >no, it looks for headers and libraries in more directories. But really, this >whole testing for paths is wrong. Just use the compiler to search for headers >and libraries, no need to check these on your own

[issue2694] msilib file names check too strict ?

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: This issue has been fixed by changes made in issue7639 and issue11696 -- ___ Python tracker ___ ___ P

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose added the comment: On 29.03.2011 21:28, Antoine Pitrou wrote: > > Barry: does it allow to install Python into /usr/lib/whateverarch, no, it looks for headers and libraries in more directories. But really, this whole testing for paths is wrong. Just use the compiler to search for

[issue11677] make test has horrendous performance on an ecryptfs

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Antoine, -P is fine with me! Also, since my idea is that --usetmp/-P would just use the mkdtemp() algorithm (which looks for $TMPDIR, $TEMP or $TMP), getting the build into a subdirectory, e.g. /tmp/test_python would be as easy as setting TMP=/tmp/test_pyth

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Matthias Klose
Matthias Klose added the comment: heh, that's easy, just add the multiarch id to the extension name ;-) -- ___ Python tracker ___ _

[issue11702] dir on return value of msilib.OpenDatabase() crashes python

2011-03-29 Thread Mark Mc Mahon
Mark Mc Mahon added the comment: That fixed it - but it seems we need that for the other Types defined in the module. Regarding testing - would it be a good idea to add an MSI to the test suite - or better to create one during testing (using msilib) and then use that in the tests? -

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 07:38 PM, Arfrever Frehtes Taifersar Arahesis wrote: >A proper fix is to introduce sys.libdir, which would be controllable by >--libdir=${value} option of `configure`. If --libdir=${value} is not passed, >then sys.libdir would default to sy

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21465/d504ca7e0fe5.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : -- keywords: +patch Added file: http://bugs.python.org/file21464/a9b05b89ea39.diff ___ Python tracker ___ ___

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I retract my patch for this bug because the issue described here is actually different than the one I want to fix. See issue 11715 for the problem of building Python on multiarch Debian and Ubuntu (e.g. Ubuntu 11.04). -- ___

[issue11715] Building Python on multiarch Debian and Ubuntu

2011-03-29 Thread Barry A. Warsaw
New submission from Barry A. Warsaw : Ubuntu 11.04 introduces new directories for libraries and headers to support multiple architectures on a single machine. E.g. 64bit and 32bit on a 64bit Ubuntu. Here are the specs: https://wiki.ubuntu.com/MultiarchSpec http://wiki.debian.org/ReleaseGoals

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: On Mar 29, 2011, at 07:28 PM, Antoine Pitrou wrote: > >Antoine Pitrou added the comment: > >Barry: does it allow to install Python into /usr/lib/whateverarch, or is it >just a partial fix for something slightly unrelated to this issue? Antoine, you're right

[issue11610] Improving property to accept abstract methods

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: I have an idea. How about instead of reusing abstractmethod for abstract getters and setters, you add abstractproperty.abstractgetter/setter/deleter? -- ___ Python tracker ___

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: that's great, closing then :) -- resolution: -> out of date stage: needs patch -> status: open -> closed ___ Python tracker ___ _

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: > I like the approach suggested by Gregory in issue11284 (msg129912) - if we are > sure the program is not multithreaded, get the list of fds before forking, and > use that; otherwise, do it the slow way. A signal handler can also opens new files :-) -

[issue11393] Integrate faulthandler module into Python 3.3

2011-03-29 Thread STINNER Victor
STINNER Victor added the comment: regrtest_timeout.patch: add --timeout option to regrtest.py to display the traceback and then exit if a test takes more than TIMEOUT seconds. It adds also a check on the subprocess exit code (regrtest.py -j): raise a exception if it is different than zero. -

[issue8052] subprocess close_fds behavior should only close open fds

2011-03-29 Thread Nadeem Vawda
Nadeem Vawda added the comment: > For what its worth, an strace of Java's Process class appears to "cheat" by > opening /proc/self/fd inbetween fork & exec. Looking at the OpenJDK source confirms this: http://hg.openjdk.java.net/jdk6/jdk6/jdk/file/tip/src/solaris/native/java/lang/UNIXProcess_md

[issue9331] sys.setprofile is not described as CPython implementation detail

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: As Benjamin just confirmed on #python-dev, sys.setprofile is not a cpython impl detail, hence closing this issue. -- nosy: +benjamin.peterson, sandro.tosi resolution: -> invalid stage: needs patch -> committed/rejected status: open -> closed ___

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Gregor Lingl
Gregor Lingl added the comment: Right. I cannot replicate this bug even with an IDLE from Python 3.2. So it seems to me, that this problem has been solved. Regards, Gregor -- ___ Python tracker ___

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Changes by Andreas Stührk : Added file: http://bugs.python.org/file21462/issue6498_31.patch ___ Python tracker ___ ___ Python-bugs-list mailing

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Andreas Stührk
Andreas Stührk added the comment: The comment in the source that describes `Py_InspectFlag` also says `SystemError` instead of `SystemExit`. I changed that and added the missing :exc: for the SystemExit and created a patch for 3.1. -- nosy: +Trundle Added file: http://bugs.python.org/

[issue7101] tarfile: OSError with TarFile.add(..., recursive=True) about non-existing file

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: Hi, I don't understand why you think tarfile should not fail in case you're trying to add a non-existing file. the problem is that glob() already extracted a list of files&dirs and then while the script is tar-ring them, you're removing some of them -> script cr

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: -> rhettinger priority: normal -> low ___ Python tracker ___ ___ Python-bugs-list mailing

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: It would be simpler to use "with" indeed. Do you want to provide a patch? -- nosy: +pitrou versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker ___

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel added the comment: Of course. I hope it is correct, and I hop it is ok when I change to use "with ...:" on the other places I consider it useful as well... -- keywords: +patch type: -> behavior Added file: http://bugs.python.org/file21460/threading.patch __

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
Thomas Rachel added the comment: I wonder if it is right what I wrote. After a second thought, the acquire() should come *after* try:, as well in threading.Event. Because if Ctrl-C is pressed while waiting in acquire(), a KeyboardInterrupt is thrown immediately after returning from acquire().

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Changes by Erik Cederstrand : -- versions: +Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +Arfrever ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand added the comment: Just checked on Python 2.7.1 with the same result. Test script attached. -- Added file: http://bugs.python.org/file21459/q.py ___ Python tracker

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue7124] idle.py -n : help() doesn't work in a reopened shell window

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: Hi Gregor, are you still able to replicate this bug? I just tried on a freshly built 3.3 and (hopefully correctly) following your description, I can print help just fine: >>> help(print) Help on built-in function print in module builtins: print(...) print(v

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Erik Cederstrand
Erik Cederstrand added the comment: I'm not sure if I was supposed to respond. The patch looks straight-forward to me. -- ___ Python tracker ___ ___

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Ned Deily
Changes by Ned Deily : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue11109] socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass

2011-03-29 Thread Gregory P. Smith
Gregory P. Smith added the comment: not yet, thanks for the reminder. if any other committers feel like jumping on this and doing it before I get around to it, feel free. -- ___ Python tracker __

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: Ok, merged into the central repo. Let me know where I screwed up. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5937d2119a20 by guido in branch '3.1': Issue 11662: Fix vulnerability in urllib/urllib2. http://hg.python.org/cpython/rev/5937d2119a20 New changeset 96a6c128822b by guido in branch '3.2': Merge Issue 11662 from 3.1 branch. http://hg.python.org/cpyt

[issue7365] grp and pwd should treat uid and gid as unsigned

2011-03-29 Thread Sandro Tosi
Sandro Tosi added the comment: I took the freedom to refresh the patch against default (I don't know yet the policies for what to backport and what not), built a debug version of python with the patch applied and run the test suite with no regression. A test would be nice to be added, but I'm

[issue11714] threading.Semaphore does not use try...finally

2011-03-29 Thread Thomas Rachel
New submission from Thomas Rachel : The acquire() and release() functions of threading.Semaphore do not make use of the try...finally suite as it would be reasonable. They just do def acquire(self, blocking=1): rc = False self.__cond.acquire() [...] self.__c

[issue11155] multiprocessing.Queue's put() signature differs from docs

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: Well it's been quite some time and no response yet. -- ___ Python tracker ___ ___ Python-bugs-lis

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Ezio Melotti
Changes by Ezio Melotti : -- nosy: +ezio.melotti ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11713] collections.deque docstring wrong/misleading

2011-03-29 Thread Davide Rizzo
New submission from Davide Rizzo : collections.deque docstring is: 'deque(iterable[, maxlen]) --> deque object\n\nBuild an ordered collection accessible from endpoints only.' As it reads now, it seems to imply that only endpoints can be read/modified. The rst correctly states that random acces

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Raymond Hettinger
Changes by Raymond Hettinger : -- assignee: docs@python -> rhettinger nosy: +rhettinger priority: normal -> low ___ Python tracker ___ ___

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
Cloudberry added the comment: Thank you for clarifications. Closing it as an invalid issue, as this is (not) working as expected. Apologies for the noise. -- resolution: -> invalid status: open -> closed ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: A proper fix is to introduce sys.libdir, which would be controllable by --libdir=${value} option of `configure`. If --libdir=${value} is not passed, then sys.libdir would default to sys.prefix + "/lib". sysconfig, distutils etc. would have

[issue11678] Add support for Arch Linux to platform.linux_distributions()

2011-03-29 Thread Westley Martínez
Westley Martínez added the comment: That's the release version for the installation disc. -- ___ Python tracker ___ ___ Python-bugs-l

[issue1571878] Improvements to socket module exceptions

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.py

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Ross Lagerwall
Ross Lagerwall added the comment: It is noted in the Linux man page for socketpair: On Linux, the only supported domain for this call is AF_UNIX (or synonymously, AF_LOCAL). (Most implementations have the same restriction.) -- nosy: +rosslagerwall

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : Added file: http://bugs.python.org/file21457/issue11703_py31.patch ___ Python tracker ___ ___ Python-bugs-list mai

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya added the comment: Attaching patches against 2.7 and 3.1 branches. -- keywords: +patch Added file: http://bugs.python.org/file21456/issue11703_py27.patch ___ Python tracker _

[issue11712] Doc list.sort(cmp=,key=) result.

2011-03-29 Thread Terry J. Reedy
New submission from Terry J. Reedy : l=[1,3,2] l.sort(cmp=lambda x,y:y-x, key=lambda x: x) print(l) With CPython 2.7 this 1) could raise an exception like TypeError: conflicting arguments passed; 2) could ignore cmp= and print [1,2,3] on the basis that the new should override the old; 3) does i

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Antoine Pitrou
Antoine Pitrou added the comment: Barry: does it allow to install Python into /usr/lib/whateverarch, or is it just a partial fix for something slightly unrelated to this issue? -- nosy: +pitrou ___ Python tracker

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: I should note that I'd love to backport this to Python 3.2, 3.1, 2.7 and 2.6 since none of them can build entirely now on multiarch systems. Since it only affects search order in the build process, one could argue that it's not a new feature :). --

[issue11711] socketpair does not accept AF_INET family argument [Linux]

2011-03-29 Thread Cloudberry
New submission from Cloudberry : System where issue was reproduced is Ubuntu 10.04 32-bit with python 2.6.5 Expected behavior for socket.socketpair as per the docstring: "The arguments are the same as for socket() except the default family is AF_UNIX if defined on the platform; otherwise, the

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21454/a4dcae4cd033.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Removed file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list ma

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Changes by Barry A. Warsaw : Added file: http://bugs.python.org/file21453/a9b05b89ea39.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue1294959] Problems with /usr/lib64 builds.

2011-03-29 Thread Barry A. Warsaw
Barry A. Warsaw added the comment: Here's a fix that works for me on Ubuntu 11.04. -- hgrepos: +12 ___ Python tracker ___ ___ Pytho

[issue11700] mailbox.py proxy updates

2011-03-29 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: This new patch adheres your suggestion. Now all implemented operations perform a "file is open at all" check and raise ValueError if not, which somewhat reflects what i've seen when i was looking into fileio.c. My questions: - shouldn't _ProxyFile inher

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Benjamin Peterson
Benjamin Peterson added the comment: 2011/3/29 Guido van Rossum : > > Guido van Rossum added the comment: > > The fix is now also in the 3.1, 3.2 and default branches of my repo > (http://hg.python.org/sandbox/guido). > > Maybe I should just merge the whole bunch into the root repo and be > don

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: The fix is now also in the 3.1, 3.2 and default branches of my repo (http://hg.python.org/sandbox/guido). Maybe I should just merge the whole bunch into the root repo and be done with it? -- ___ Python tracker

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The updated doc patch is missing :exc: markup on one of "SystemExit"s. -- ___ Python tracker ___ _

[issue6498] Py_Main() does not return on SystemExit

2011-03-29 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: The SystemExit vs. SystemError is clearly a typo in the doc. The VC comment accompanying the addition of that note says "note that Py_Main doesnt return on SystemExit." See [e5d8f0c0d634] and #5227. -- nosy: +belopolsky ___

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Santoso Wijaya added the comment: This is because the Request class' constructor splits the URL into __original and fragment: def __init__(self, url, data=None, headers={}, origin_req_host=None, unverifiable=False): # unwrap('') --> 'type://host/path' self.

[issue11703] Bug in python >= 2.7 with urllib2 fragment

2011-03-29 Thread Santoso Wijaya
Changes by Santoso Wijaya : -- nosy: +santa4nt versions: +Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscr

[issue11662] Redirect vulnerability in urllib/urllib2

2011-03-29 Thread Guido van Rossum
Guido van Rossum added the comment: Also for the Python 3 family it's best to backport Senthil's patch. I will try that in my tree as well. -- ___ Python tracker ___ __

  1   2   >