[issue7593] Computed-goto patch

2009-12-28 Thread Martin v . Löwis
Changes by Martin v. Löwis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue7585] [patch] difflib should separate filename from timestamp with tab

2009-12-28 Thread Brian Curtin
Brian Curtin added the comment: Shouldn't the patch tool handle that? FWIW, both the "svn diff" and *nix diff utilities produce headers with the parts split by a tab character. Would the code in example.py work in your tool to handle both tabs and spaces? -- Added file: http://bugs.pyt

[issue4758] Python 3.x internet documentation needs work

2009-12-28 Thread David M. Beazley
David M. Beazley added the comment: An apology on the delay. Things have been rather hectic. Regarding a patch, I don't really have a patch so much as a suggested procedure. Basically, I'm suggesting that the maintainers of the library documentation simply do a quick survey of network rela

[issue7593] Computed-goto patch

2009-12-28 Thread Ezio Melotti
Changes by Ezio Melotti : -- keywords: +needs review, patch nosy: +ezio.melotti priority: -> normal stage: -> patch review type: -> performance ___ Python tracker ___ _

[issue7593] Computed-goto patch

2009-12-28 Thread A.M. Kuchling
Changes by A.M. Kuchling : Added file: http://bugs.python.org/file15690/re-computed-goto-v1.txt ___ Python tracker ___ ___ Python-bugs-list mai

[issue7593] Computed-goto patch

2009-12-28 Thread A.M. Kuchling
New submission from A.M. Kuchling : Part of Unladen Swallow's roadmap is to use a threaded-interpreter technique for the regular expression engine. That sounded like an interesting idea, so I went ahead and tried to implement it. The current patch is attached. To try it: run configure --with-c

[issue210849] Fwd: Debian Bug#42318: urllib.py has problems with malformed proxy env. variables (PR#59)

2009-12-28 Thread Shinnosuke
Shinnosuke added the comment: I found a solution of the same errors from Windows, and my solution was removed the double quote at HTTP_PROXY settings. -- components: +Windows -Library (Lib) nosy: +shinnosuke versions: +Python 2.6 ___ Python tracker

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Gregory P. Smith
Gregory P. Smith added the comment: yes its a real need and yes we should support this in the standard library. no i have not had time to look at it since my comment a 14 months ago. Thanks for the updated patch Eldon! -- ___ Python tracker

[issue7582] [patch] diff.py to use iso timestamp

2009-12-28 Thread anatoly techtonik
Changes by anatoly techtonik : Removed file: http://bugs.python.org/file15688/diff.py_iso_timestamps_true.diff ___ Python tracker ___ ___ Pytho

[issue7582] [patch] diff.py to use iso timestamp

2009-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: Pepeighfied and regenerated. Should be flawless now. -- Added file: http://bugs.python.org/file15689/diff.py_iso_timestamps_true.diff ___ Python tracker

[issue7585] [patch] difflib should separate filename from timestamp with tab

2009-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: Conditional checks are required to prevent leaving trailing whitespace in filename when date component is not present. Such trailing whitespace may confuse patch tools. [1] [1] http://code.google.com/p/python-patch/issues/detail?id=2 -- _

[issue7582] [patch] diff.py to use iso timestamp

2009-12-28 Thread Brian Curtin
Brian Curtin added the comment: Looks cleaner and works for me. One very minor comment: the spaces inside the parenthesis on the time.localtime call are inconsistent and don't comply with PEP-8. -- ___ Python tracker

[issue7582] [patch] diff.py to use iso timestamp

2009-12-28 Thread anatoly techtonik
anatoly techtonik added the comment: Thanks! Now the most elegant patch I could think out. -- Added file: http://bugs.python.org/file15688/diff.py_iso_timestamps_true.diff ___ Python tracker ___

[issue7592] ssl module documentation: SSLSocket.unwrap description shown twice

2009-12-28 Thread Michael Newman
New submission from Michael Newman : For the "ssl" module documentation at: http://docs.python.org/3.1/library/ssl.html I noticed that "SSLSocket.unwrap()" description is listed twice in the "17.3.2. SSLSocket Objects" section. -- assignee: georg.brandl components: Documentation message

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread R. David Murray
R. David Murray added the comment: If you want the maximum chance for this to get applied, it would be best to have one or a set of patch files in 'svn diff' format against trunk (see http://python.org/dev for information on how to produce such a patch, specifically section 6.1 of the dev FAQ).

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Eldon Ziegler
Eldon Ziegler added the comment: The patch files for Python 2.6 and a test file are in the attached tar file. Both httplib.py and socket.py need to be patched now. httplib.HTTPConnection(host[, port[, strict[, timeout]]]) becomes httplib.HTTPConnection(host[, port[, strict[, timeout[, bindip]

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: In case it helps, a guy recently reported the same issue for pyftpdlib: http://code.google.com/p/pyftpdlib/issues/detail?id=123 -- ___ Python tracker ___

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread R. David Murray
R. David Murray added the comment: You are correct that more than just httplib may need this; however, it is a real need. Consider for example a machine that has multiple IPs on the same network (perhaps there used to be two machines but the services were consolidated onto one or something), an

[issue7578] Behavior of operations on a closed file object is not documented correctly

2009-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I agree; though I would wish for a bit finer-grained I/O related > exceptions... I agree with that. It probably needs someone to shepherd the idea to python-dev so as to get it accepted. -- ___ Python tracker

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: > For my own case, I have a machine with 50 IP addresses set and I need to > run a script to grab data that will randomly select one of those IP > addresses to use for its outgoing connection. That's something which > needs to be selected at the socket level

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Greg
Greg added the comment: For my own case, I have a machine with 50 IP addresses set and I need to run a script to grab data that will randomly select one of those IP addresses to use for its outgoing connection. That's something which needs to be selected at the socket level, as best I unders

[issue4758] Python 3.x internet documentation needs work

2009-12-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- title: Python 3.0 internet documentation needs work -> Python 3.x internet documentation needs work ___ Python tracker ___

[issue7591] test_get_platform fails on 3.1

2009-12-28 Thread Antoine Pitrou
New submission from Antoine Pitrou : This started happening recently on some 3.1 buildbots: == FAIL: test_get_platform (distutils.tests.test_util.UtilTestCase)

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure why this is needed in httplib. Isn't it a matter of configuring the machine's routing tables properly? -- nosy: +pitrou ___ Python tracker

[issue7006] The replacement suggested for callable(x) in py3k is not equivalent

2009-12-28 Thread Benjamin Peterson
Benjamin Peterson added the comment: Fixed in r77093. -- resolution: -> accepted status: open -> closed ___ Python tracker ___ ___ Py

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Greg
Greg added the comment: Just looking at the indicated file in the 2.6.4 release tarball, it does not seem that it would apply cleanly. The line numbers do not apply properly anymore, though the edited lines themselves still appear to be unaffected. Without context diff in the original patch

[issue7590] 'exceptions' module mentioned in documentation

2009-12-28 Thread July Tikhonov
New submission from July Tikhonov : As I can see, 'exceptions' module does not exist in py3k. But it is mentioned in documentation http://docs.python.org/dev/py3k/library/exceptions.html "The exceptions are defined in the module exceptions. This module never needs to be imported explicitly: the

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread R. David Murray
R. David Murray added the comment: Since Gregory didn't update the ticket, it seems likely that it hasn't happened yet. If you'd care to try the patch and report on your results, that would help the process. We'll also need unit tests and documentation updates, so patches for those would also

[issue2204] document ConfigParser behaviour when a file has same section multiple times

2009-12-28 Thread honesthacker
Changes by honesthacker : -- nosy: +honesthacker ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue3972] Add Option to Bind to a Local IP Address in httplib.py

2009-12-28 Thread Greg
Greg added the comment: Did this ever happen? It seems like overkill in the non-Python sort of way to continue pointing people to over-riding classes and extending objects when such a small patch adds so powerful and useful a functionality to the library. -- nosy: +greg.hellings __

[issue7582] [patch] diff.py to use iso timestamp

2009-12-28 Thread Brian Curtin
Brian Curtin added the comment: Look at time.timezone - http://docs.python.org/library/time.html#time.timezone # I'm in US Central time, so it's -6 from UTC >>> import time >>> tz = time.timezone >>> tz 21600 >>> tz / 60 / 60 6 -- nosy: +brian.curtin __

[issue7585] [patch] difflib should separate filename from timestamp with tab

2009-12-28 Thread Brian Curtin
Brian Curtin added the comment: I don't think the conditional checks around the timestamps are necessary. Couldn't you just put the \t directly in the string that gets yielded? That way the chunk headers always follow the same format. -- nosy: +brian.curtin

[issue7569] ctypes doc improvement: c_char_p

2009-12-28 Thread Antoine Pitrou
Antoine Pitrou added the comment: The suggestion looks good to me. -- nosy: +pitrou ___ Python tracker ___ ___ Python-bugs-list mailin

[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-12-28 Thread R. David Murray
R. David Murray added the comment: I haven't reviewed the patch, but I would like the caching behavior to be settable. I can easily imagine a use case where I would not want the URLs cached: when using urllib in a test suite or test tool. (I just ran into this problem trying to use firefox as

[issue6283] Cannot build extension in amd64 using msvc9compiler

2009-12-28 Thread Stefan Krah
Stefan Krah added the comment: Duplicate of issue 7511. -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue5969] setup build with Platform SDK, finding vcvarsall.bat

2009-12-28 Thread Stefan Krah
Stefan Krah added the comment: Duplicate of issue 7511. -- nosy: +skrah ___ Python tracker ___ ___ Python-bugs-list mailing list Unsub

[issue7559] TestLoader.loadTestsFromName swallows import errors

2009-12-28 Thread Salman Haq
Salman Haq added the comment: I'm attaching a patch (against trunk) which I think is a step in the right direction but I could use some feedback. This patch modifies 'loadTestsFromName()' so that it saves and re-raises an ImportError. Further this patch introduces a new unittest (test_loadTes

[issue735515] urllib / urllib2 should cache 301 redirections

2009-12-28 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- dependencies: -Patch for [ 735515 ] urllib2 should cache 301 redir resolution: -> duplicate status: open -> closed superseder: -> Patch for [ 735515 ] urllib2 should cache 301 redir ___ Python tracker

[issue7589] setup.py shouldn't try to build nis module when nis headers aren't available

2009-12-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis : -- nosy: +loewis ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue7569] ctypes doc improvement: c_char_p

2009-12-28 Thread Nikolaus Rath
Nikolaus Rath added the comment: I don't want to judge if the best way to represent binary data in C is a void* or char*, but there is a lot of C code out there that uses char*, and if we want to interface with such a library we need to use POINTER(c_char). Note that my docpatch doesn't say any

[issue7589] setup.py shouldn't try to build nis module when nis headers aren't available

2009-12-28 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis : setup.py shouldn't try to build nis module when nis headers aren't available (e.g. on uclibc systems). I'm attaching the patch for setup.py. -- components: Build files: python-nis.patch keywords: patch messages: 96954 nosy: Arfre

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread Michael Foord
Michael Foord added the comment: Personally I agree. I'll see if I can find the change (don't think it was me) and see if there was some kind of rationale. -- ___ Python tracker

[issue1755841] Patch for [ 735515 ] urllib2 should cache 301 redir

2009-12-28 Thread Senthil Kumaran
Senthil Kumaran added the comment: > Antoine Pitrou added the Comment: > > I have trouble understanding what the patch does. I would expect it to > cache the -> mapping, but it

[issue7587] Python 3.1.1 source build issues

2009-12-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: To the poster's defense, the paragraph mentioning "external.bat" is below the list of the external projects. -- nosy: +amaury.forgeotdarc ___ Python tracker _

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread R. David Murray
Changes by R. David Murray : -- nosy: +michael.foord priority: -> normal ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue7579] Patch to add docstrings to msvcrt

2009-12-28 Thread Brian Curtin
Brian Curtin added the comment: I fixed up the bodies of the docstrings, removed the weird quotes around "pushed back" (copy/paste error), and got the heapmin/locking name fixed up. Thanks for taking a look at this. -- Added file: http://bugs.python.org/file15684/msvcrt_docstrings_v2.d

[issue7587] Python 3.1.1 source build issues

2009-12-28 Thread Martin v . Löwis
Martin v. Löwis added the comment: The purpose of this bug tracker is not to obtain help, but to report bugs etc. See PCbuild/readme.txt for detailed instructions. -- nosy: +loewis resolution: -> invalid status: open -> closed ___ Python tracker <

[issue7588] unittest.TestCase.shortDescription isn't short anymore

2009-12-28 Thread Jean-Paul Calderone
New submission from Jean-Paul Calderone : Sometime between Python 2.6 and 2.7a1, the unittest.TestCase.shortDescription method changed from returning just the test method name to the test method name, in parentheses, the fully qualified Python name of the test case. This breaks several Twisted u

[issue7587] Python 3.1.1 source build issues

2009-12-28 Thread Anurag
New submission from Anurag : Hi I downloaded the source for Python-3.1.1 for windows x86. I followed the instructions in the PCbuild\Readme.txt file to build python Basically, all I did was 1. Open the “PCbuild\pcbuild.sln” in VS2008. 2. Select the “Win32” as Solution Platform and “Re

[issue7033] C/API - Document exceptions

2009-12-28 Thread lekma
lekma added the comment: > Thanks for the patch! I rewrote the C function a bit to also take a dict > argument, and added a test for that. Committed in r77088. Will merge > to py3k. Great! Thanks to all for the help! -- ___ Python tracker

[issue7404] optparse Documentation References Example Files that do not Exist

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the report. I removed the references in r77092. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue1286] fileinput, StringIO, and cStringIO do not support the with protocol

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: FWIW, for the sake of consistency I'm +1 on supporting the context manager protocol on all file-like objects in the stdlib. -- ___ Python tracker

[issue7033] C/API - Document exceptions

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks for the patch! I rewrote the C function a bit to also take a dict argument, and added a test for that. Committed in r77088. Will merge to py3k. -- resolution: -> accepted status: open -> closed ___ Python tra

[issue7530] doc of multiprocessing.managers is wrong (server_forever)

2009-12-28 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> jnoller ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue7578] Behavior of operations on a closed file object is not documented correctly

2009-12-28 Thread Georg Brandl
Changes by Georg Brandl : -- assignee: georg.brandl -> pitrou ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue7578] Behavior of operations on a closed file object is not documented correctly

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: I agree; though I would wish for a bit finer-grained I/O related exceptions... -- ___ Python tracker ___ _

[issue7569] ctypes doc improvement: c_char_p

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: Wouldn't a "general" pointer better be of type c_void_p? -- ___ Python tracker ___ ___ Python-bugs-lis

[issue7381] subprocess.check_output: "docstring has inconsistent leading whitespace"

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: OK, applied in r77086, r77087. -- resolution: -> fixed status: open -> closed ___ Python tracker ___

[issue7586] Typo in collections documentation

2009-12-28 Thread Georg Brandl
Georg Brandl added the comment: Thanks, fixed in r77084. -- resolution: -> fixed status: open -> closed ___ Python tracker ___ ___ Py