[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-03-04 Thread Jeff Allen
Jeff Allen added the comment: I worked out that the essence of the test is to insert an extra \n at the end of a GET request line. The request is syntactically invalid for HTTP. The \n\r\n appears like two blank lines, implying no headers, but the headers then follow where no data should

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-02-23 Thread Jeff Allen
Jeff Allen added the comment: Thanks for adding to the evidence here. As discussed above, disabling the security product (which is Bitdefender) on my PC didn't stop the problem for me, and I'm reluctant to uninstall. I narrowed it to the Windows Base Filtering Engine, but perhaps

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-02-23 Thread Jeff Allen
Jeff Allen added the comment: Actual patch for your convenience. I'm not set up to build CPython from source, so I've tested this with my installed CPython 2.7.6, and it's clean. [As for keeping the tests in sync, yes that's our aim. Jython's Lib contains only the customised versions

[issue13866] {urllib, urllib.parse}.urlencode should not use quote_plus

2014-01-26 Thread Jeff Edwards
Jeff Edwards added the comment: It's interesting how long this issue has been around. It seems to be because the form-urlencoded spec is specified as url-percent-encoding EXCEPT for ' ' - '+', which does seem to be unintuitive. To note, there are a few known cases where the exception does

[issue20155] Regression test test_httpservers fails, hangs on Windows

2014-01-06 Thread Jeff Allen
New submission from Jeff Allen: When I run: start python -m test.test_httpservers test_request_line_trimming reports ERROR, and the test hangs at test_version_none. If I run a copy of the test in which the latter test is skipped with @unittest.skipIf(sys.platform == win32, ...), the error

[issue19453] pydoc.py doesn't detect IronPython, help(foo) can hang

2013-10-31 Thread Jeff Hardy
Changes by Jeff Hardy jdha...@gmail.com: -- nosy: +jeff.hardy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19453 ___ ___ Python-bugs-list mailing

[issue18237] unittest.assertRaisesRegex(p) example is wrong in docs

2013-06-16 Thread Jeff Tratner
New submission from Jeff Tratner: One of the examples for assertRaisesRegex(p) is wrong by one character. Current is: self.assertRaisesRegexp(ValueError, 'invalid literal for.*XYZ$', int, 'XYZ') The $ at the end is wrong because the actual error message is ValueError

[issue17994] Change necessary in platform.py to support IronPython

2013-05-20 Thread Jeff Hardy
Changes by Jeff Hardy jdha...@gmail.com: -- nosy: +jeff.hardy ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17994 ___ ___ Python-bugs-list mailing

[issue17684] Skip tests in test_socket like testFDPassSeparate on OS X

2013-04-09 Thread Jeff Ramnani
New submission from Jeff Ramnani: The changeset for subtests in #16997 cause some tests in test_socket to fail on OS X. Specifically, they cause some tests that were marked as expected failures to be run and be marked as failures. I'm experiencing the same test failures as the OS X Mountain

[issue2292] Missing *-unpacking generalizations

2013-04-05 Thread Jeff Kaufman
Jeff Kaufman added the comment: What would it take to get this moving again? -- nosy: +Jeff.Kaufman ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2292

[issue17483] In urlopen the check_hostname variable can never be False.

2013-03-19 Thread Jeff Knupp
Jeff Knupp added the comment: Was this discovered when you were trying to tell urlopen not to check the hostname for https connections? If so, that should be reflected in the title so others know what the observable effect is. Referencing specific variables is less useful both for searching

[issue16709] unittest discover order is filesystem specific - hard to reproduce

2013-03-18 Thread Jeff Ramnani
Jeff Ramnani added the comment: I've added tests for this behavior by un-sorting the test inputs for test_find_tests, and adding comments that the results should be sorted for reliable test execution. Attaching an updated patch. -- nosy: +jramnani Added file: http://bugs.python.org

[issue17383] Error in documentation /2/tutorial/modules.html#more-on-modules

2013-03-08 Thread Jeff Knupp
Jeff Knupp added the comment: I think Piotr's point is the wording of the last sentence is ambiguous. The second statement reads It is customary *but not required* to place all import statements at the beginning of a module The third seems to state that regardless of whether or not you

[issue17383] Possibly ambiguous phrasing in tutorial/modules#more-on-modules

2013-03-08 Thread Jeff Knupp
Jeff Knupp added the comment: Of the two different things, the first (the scope of imported names) is never covered in the documentation. As a result, the text in question seems to imply an import statement can *only* be in module scope. From the reader's perspective: If I wanted to import

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Jeff Mansfield
New submission from Jeff Mansfield: Python-2.3.5.exe seems to be corrupt. I’ve tried downloading Python-2.3.5.exe a number of times in the past week, and so have a few of my colleagues. It always transfers in an incomplete manner, resulting in only 4.7 out of 9.1 MB. I have tried from several

[issue17241] Python-2.3.5.exe file possibly corrupt

2013-02-19 Thread Jeff Mansfield
Jeff Mansfield added the comment: Ezio, It is what was in use on my old machine, and I don't want to move versions. Thanks, Jeff -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue17241

[issue16988] argparse: PARSER option for nargs not documented

2013-01-18 Thread Jeff Knupp
Jeff Knupp added the comment: This is not a bug. The 'PARSER' nargs choice is an implementation detail as a way to handle subparsers. The parser needs to know that the first value should be handled, but everything that follows will be handled by the subparser. By using a subparser, you're

[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-01-18 Thread Jeff Knupp
Jeff Knupp added the comment: Attached a patch. Rather than altering choices or making a special check for string instances, I just changed the if statement to if action.choices is not None and value not in list(action.choices): from if action.choices is not None and value

[issue16989] allow distutils debug mode to be enabled more easily

2013-01-18 Thread Jeff Knupp
Jeff Knupp added the comment: Patch uploaded. Note that updating the test_distutils.core test revealed that the test was importing DEBUG from the wrong module (which only existed because distutils.core use the 'from ... import DEBUG' form). I've corrected the import and updated the test

[issue16977] argparse: mismatch between choices parsing and usage/error message

2013-01-18 Thread Jeff Knupp
Jeff Knupp added the comment: The only time this would be an issue is for infinite sequences via range or a generator, which doesn't work anyway. p = argparse.ArgumentParser() a = p.add_argument('a', choices=itertools.count(0), type=int) p.parse_args(['1']) ... hangs Are there any

[issue16687] Fix small gramatical error and add reference link in hashlib documentation

2012-12-20 Thread Jeff Knupp
Jeff Knupp added the comment: Previous patch had unintentional local changes. Uploaded correct patch. -- Added file: http://bugs.python.org/file28382/new_patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16687

[issue16687] Fix small gramatical error and add reference link in hashlib documentation

2012-12-20 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: Removed file: http://bugs.python.org/file28318/patch.txt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16687

[issue16702] Force urllib2_localnet test not to use http proxies

2012-12-17 Thread Jeff Knupp
New submission from Jeff Knupp: test_urllib2_localnet is concerned with testing connections only using 'localhost' or '127.0.0.1' hosts. If a user has the http_proxy environment variable set, these test will likely fail as the proxy won't have any idea where to send a request for 'localhost

[issue16658] Missing return in HTTPConnection.send()

2012-12-17 Thread Jeff Knupp
Jeff Knupp added the comment: I'm assuming this is the patch you were looking for. However, there are a couple of unrelated issues with http.client.send that jumped out at me: 1. Encoding a file handed directly to send() seems wrong. If a client wants to send a file encoded using something

[issue16687] Fix small gramatical error and add reference link in hashlib documentation

2012-12-14 Thread Jeff Knupp
New submission from Jeff Knupp: Original text is: Feeding string objects is to update is not supported Should be ... objects in to update instead of is to Also, mark GIL as a :term: to provide a link to its definition, as it's used without much context in the following note: .. note

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-12-14 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15743

[issue10050] urllib.request still has old 2.x urllib primitives

2012-11-10 Thread Jeff McNeil
Jeff McNeil added the comment: Reverting of the len(block) back to 'bs' here aside, does it even make sense to include block information at all? That's the attempted read size, so it might not be an accurate representation of the size of the data actually read. Thus the reason

[issue10050] urllib.request still has old 2.x urllib primitives

2012-11-10 Thread Jeff McNeil
Jeff McNeil added the comment: Ah, disregard. I followed up on the other bug. The legacy interface indeed should have stayed consistant. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
New submission from Jeff McNeil: mcjeff@martian:~/cpython$ ./python -V Python 3.4.0a0 When an SSLSocket is created via SSLContext.wrap_socket, it is passed a _context parameter directly. SSLSocket.__init__ sets self.context at this point, but it does not set self.keyfile or self.certfile

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
Jeff McNeil added the comment: Ak! Yes, cut and paste error. Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import ssl c = ssl.SSLContext(ssl.PROTOCOL_SSLv23) c.load_cert_chain('Lib

[issue16357] SSLSocket created from SSLContext.wrap_socket doesn't include cert/keyfile

2012-10-29 Thread Jeff McNeil
Jeff McNeil added the comment: Updated to pass in the parent context only actually, as it doesn't look like all of the attributes on SSLSocket will be set if a context was initially passed in. -- Added file: http://bugs.python.org/file27784/ssl_context_2.patch

[issue13403] Option for XMLPRC Server to support HTTPS

2012-10-28 Thread Jeff McNeil
Jeff McNeil added the comment: I've hacked this support in myself a few times with a simple socket wrap call in SimpleXMLRPCServer's __init__. I'd be happy to put a quick patch together if that's a viable approach. Is there any desire to support client authentication or advanced features

[issue13403] Option for XMLPRC Server to support HTTPS

2012-10-28 Thread Jeff McNeil
Jeff McNeil added the comment: Attached... worked in the way I've done it in the past and updated documents. -- keywords: +patch Added file: http://bugs.python.org/file27773/ssl_xmlrpc_server.patch ___ Python tracker rep...@bugs.python.org http

[issue5004] socket.getfqdn() doesn't cope properly with purely DNS-based setups

2012-10-27 Thread Jeff McNeil
Jeff McNeil added the comment: Gave this a go myself... $ ./python Python 3.4.0a0 (default:57a33af85407, Oct 27 2012, 21:26:30) [GCC 4.4.3] on linux Type help, copyright, credits or license for more information. import socket socket.getfqdn() 'host.domain.com' $ hostname -f

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-10-20 Thread Jeff McNeil
Jeff McNeil added the comment: Yeah clearly the wrong behavior on Winders. I think that moving to 'normpath' instead of 'normcase' is likely the right thing to do. Patch is attached, so if someone with commit powers could review real quick I'll address whatever needs to be addressed. IMHO

[issue15316] runpy swallows ImportError information with relative imports

2012-08-22 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: -- nosy: +Jeff.Knupp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15316 ___ ___ Python-bugs-list mailing

[issue15752] change test_json's use of deprecated unittest function

2012-08-21 Thread Jeff Knupp
New submission from Jeff Knupp: patch to test_json to not use assert(Raises)Regexp, which has been deprecated in favor of assert(Raises)Regex. -- components: Tests files: json_deprecated.patch keywords: patch messages: 168750 nosy: Jeff.Knupp priority: normal severity: normal status

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
New submission from Jeff Knupp: urllib was updated to deprecate a number of Request methods for 3.3. The test_urllib2 and test_urllib tests still use some of the deprecated methods. -- components: Tests messages: 168692 nosy: Jeff.Knupp priority: normal severity: normal status: open

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
Jeff Knupp added the comment: Attaching patch. -- keywords: +patch Added file: http://bugs.python.org/file26935/test_urllib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15743

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: Removed file: http://bugs.python.org/file26935/test_urllib.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15743

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
Jeff Knupp added the comment: Updated with correct patch file. -- Added file: http://bugs.python.org/file26936/test_urllib.patch.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15743

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
Jeff Knupp added the comment: Senthil, sorry, missed your comment and hadn't realized anyone had seen the patch yet. I replaced it with an updated version (had missed a few places deprecated functions were used). Could you review the new patch instead

[issue15743] test_urllib2/test_urllib use deprecated urllib.Request methods

2012-08-20 Thread Jeff Knupp
Jeff Knupp added the comment: Yes, that was part of the original patch which was incorrectly uploaded. The current patch (2) should be correct wrt get_method. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15743

[issue15702] Multiprocessing Pool deadlocks on join after empty map operation

2012-08-16 Thread Jeff Knupp
Jeff Knupp added the comment: This is a duplicate of http://bugs.python.org/issue12157, which was fixed. -- nosy: +Jeff.Knupp ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15702

[issue15033] Different exit status when using -m

2012-07-03 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Fixed for 3.3. Does this need to be back ported as well? -- keywords: +patch nosy: +Jeff.Knupp Added file: http://bugs.python.org/file26244/exit_code.patch ___ Python tracker rep...@bugs.python.org http

[issue15033] Different exit status when using -m

2012-07-03 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: And by 'Fixed' I of course meant 'Patched, awaiting review'. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15033

[issue15166] Implement imp.get_tag() using sys.implementation

2012-06-26 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Adding patch. If I misunderstood the issue, let me know. -- keywords: +patch nosy: +Jeff.Knupp Added file: http://bugs.python.org/file26170/imp.patch ___ Python tracker rep...@bugs.python.org http

[issue7719] distutils: ignore .nfsXXXX files

2012-05-21 Thread Jeff Ramnani
Jeff Ramnani j...@jefframnani.com added the comment: Hynek, I would indeed like to update this patch. I will make the updates you have suggested. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7719

[issue7719] distutils: ignore .nfsXXXX files

2012-05-21 Thread Jeff Ramnani
Jeff Ramnani j...@jefframnani.com added the comment: Attached the updated patch. I have added a .nfs file to test_prune_file_list in test_sdist. I've also cleaned up the documentation to read a little better (IMO). -- Added file: http://bugs.python.org/file25668/issue7719

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2012-05-17 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Yeah, that's a good point too. I still personally favor the transport encapsulation and related unit testing, but I think that's a call for someone with a snake icon next to their tracker name. Your English is just fine

[issue14134] xmlrpc.client.ServerProxy needs timeout parameter

2012-05-16 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I would think it might make more sense just to make the change to the Transport object. Since there's an argument for a transport on ServerProxy already, that seems more straightforward and keeps the network layer isolated. Otherwise, it seems

[issue14652] Better error messages for wsgiref validator failures

2012-05-16 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I went through the patch real quick and I noticed that your using single element tuples in your string formatting. That makes sense in situations where the argument might itself be a tuple, however, not on calls to len() as that will return

[issue14759] Is LICENSES.txt up to date?

2012-05-09 Thread Jeff Laing
Jeff Laing jeffla...@gmail.com added the comment: @Jesús, as has been pointed out already, the Berkeley DB stuff is not part of Python 3 so I don't see any point in discussing this with Oracle. We don't actually use or need the bsddb module, it's just part of the standard runtime library

[issue14759] Berkeley DB License conditions are onerous (and poorly documented)

2012-05-08 Thread Jeff Laing
New submission from Jeff Laing jeffla...@gmail.com: As part of an audit of license compliance, I was looking at the terms in the LICENSE.txt that describe the Berkeley DB product. I had thought this would be under the standard Berkeley license, but Oracle have added their own zinger. * 3

[issue14759] Berkeley DB License conditions are onerous (and poorly documented)

2012-05-08 Thread Jeff Laing
Jeff Laing jeffla...@gmail.com added the comment: With all due respect, I think that the 2.7.3 License Page is still being actively used by people as a reference, and it should be accurate. I agree that the code developers can't do anything, but the documentation for all releases

[issue14672] Windows installer: add desktop shortcut(s)

2012-04-25 Thread Jeff Dean
New submission from Jeff Dean python.x@xoxy.net: Spun off from Issue3561: I recently saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it easy for new Windows users to run python, consider (optionally) installing a desktop shortcut. This would make it easy for new users

[issue14487] Add pending() query method to Queue.Queue

2012-04-03 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I looked at doing this. The empty() and full() methods are marked with a disclaimer stating they're likely to be removed at some point? I'm curious, does just checking the value of Queue.unfinished_tasks satisfy the requirement? It could still

[issue14387] Include\accu.h incompatible with Windows.h

2012-04-02 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: I'm happy to try another build of apsw, but am not up-to-speed with how to get development copies of Python. As a user, I typically download the latest Windows .msi file and install it. If you can point me to a document on how to proceed

[issue14387] Include\accu.h incompatible with Windows.h

2012-04-02 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: Thanks for the pointer to the .msi. The fix solved my apsw build problem. I installed Python 3.3.a2 and apsw-3.7.11-r1. I ran this build: C:\Temp\apsw-3.7.11-r1c:\Python33\python setup.py fetch --all build --enable-all-extensions install

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-03-29 Thread Jeff Dean
Jeff Dean chima...@gmail.com added the comment: I just saw Brian Curtin's Pycon 2012 presentation. If a goal is to make it easy for new users to run python, consider installing a desktop shortcut. This would make it very easy for new users (easier than starting up a shell

[issue14425] Improve handling of 'timeout' parameter default in urllib.urlopen

2012-03-27 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Quick little patch to change the default to None and update the corresponding documentation. -- keywords: +patch nosy: +mcjeff Added file: http://bugs.python.org/file25044/urllib_urlopen_default.patch

[issue14399] zipfile and creat/update comment

2012-03-26 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: I'm unable to reproduce on either 2.7 or 3.3. Running the following: from zipfile import ZipFile z=ZipFile('test.zip','a') z.comment='Create a new comment' z.close() produces the output: Archive: test.zip Create a new comment with the comment

[issue14421] Avoid ResourceWarnings in ccbench

2012-03-26 Thread Jeff Knupp
New submission from Jeff Knupp jkn...@gmail.com: ccbench.py warns about unclosed sockets in the bandwidth test. Fix to close socket properly at end of test. -- components: Demos and Tools files: ccbench.patch keywords: patch messages: 156891 nosy: Jeff.Knupp priority: normal severity

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I was looking at a somewhat unrelated issue and I bumped up against a similar situation with the warnings system. I didn't look too much into it, but it appeared that warnings didn't get added to __warningregistry__ correctly. Though, when I

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-25 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Disregard. That was in concert with ntpath, which uses a funky approach to testing. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
New submission from Jeff Robbins je...@livedata.com: Windows.h includes RpcNdr.h which does this: #define small char accu.h in Python\Include (Python 3.2.3rc2) has this in it: typedef struct { PyObject *large; /* A list of previously accumulated large strings */ PyObject *small

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: The easiest fix would be to rename the small field in accu.h (and of course in any file that references that field.) I have no idea who uses this file. Perhaps the 2nd easiest fix would be to put this after the #include of Windows.h #ifdef

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Patch to default character set to utf8 if non-ascii characters are found in the input string. Please let me know if this is what you had in mind. -- nosy: +Jeff.Knupp ___ Python tracker rep

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Changes by Jeff Knupp jkn...@gmail.com: -- keywords: +patch Added file: http://bugs.python.org/file24997/mailutf8.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14380

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: re Stefan Krah's posting: I am sorry if I've caused any confusion. I am building a Python extension (APSW), and it includes the sqlite amalgamation and also includes Python.h. Sqlite includes Windows.h. Which then causes the problem when

[issue14380] MIMEText should default to utf8 charset if input text contains non-ASCII

2012-03-22 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Understood. Please take a look at the updated patch. Also, removed the unrelated diffs that somehow were hanging around in my hg mq. -- Added file: http://bugs.python.org/file24999/mimeutf8.patch

[issue14387] Include\accu.h incompatible with Windows.h

2012-03-22 Thread Jeff Robbins
Jeff Robbins je...@livedata.com added the comment: Stefan asked 'Did you include Python.h before or after Windows.h? Extensions are supposed to include Python.h before anything else. ' I downloaded http://code.google.com/p/apsw/ to test it out on the latest sqlite release. I followed

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: I don't know that this is a bug. Rather, the string '--' means different things to argparse and optparse. In argparse, '--' is a psuedo-argument taken to mean everything after this is a postional argument and not stop processing arguments, which

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: In that case, wouldn't you use 'parse_known_args' instead of 'parse_args' and pass the remaining arguments to the next script? This case is explicitly mentioned in the argparse documentation. Again it seems to me that the meaning of '--' has changed

[issue13922] argparse handling multiple -- in args improperly

2012-03-18 Thread Jeff Knupp
Jeff Knupp jkn...@gmail.com added the comment: Added patch so that only the first '--' is removed by an argparse.PARSE or argparse.REMAINDER argument. Note that, as Steven said, argparse.REMAINDER should be used in the OP's issue (and the added test makes sure all remaining arguments

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-15 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Here's a tiny patch that just changes normcase-normpath. This fixes the casing issue at the 'gettempdir' level, though it doesn't address the 'normcase' function itself. Note that *both* macpath.py and ntpath.py use s.lower, which obviously

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-15 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: It doesn't seem to me that the right approach on either platform is to simply downcase. Maybe just deprecate the call altogether as its not doing anything normpath isn't if the s.lower call is removed

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-14 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: The normcase call isn't exactly a no-op in ntpath.py as it also swaps / for \\. Removing the .lower() seems to simply make it a watered down version of normpath. There are a couple of options I guess. We could simply keep the altsep

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-14 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I don't see why we'd need to make these _private -- they're just accessors/mutators for the most part. I'd be happy to help clean this up if you need it. -- ___ Python tracker rep...@bugs.python.org

[issue12890] cgitb displays p tags when executed in text mode

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Did this ever get committed? Is there anything left for me to do here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I made the change suggested in the last comment, patch is attached. Trying to clean up any bugs I've got my name on! -- keywords: +patch Added file: http://bugs.python.org/file24816/makedirs_function.patch

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Documentation patch to outline the use of context manager protocol attached. Trying to cleanup any bugs with my name on them. -- keywords: +patch Added file: http://bugs.python.org/file24817/urllib_request_doc.patch

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-13 Thread Jeff McNeil
Changes by Jeff McNeil j...@jmcneil.net: -- nosy: -mcjeff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10050 ___ ___ Python-bugs-list mailing

[issue1429] FD leak in SocketServer

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: In an effort to walk through bugs in my nosy list, I dug into this and tried to reproduce it to no avail. Also, as the handle_error method is supposed to handle problems gracefully, calling shutdown on handle_error exception is probably

[issue1666318] shutil.copytree doesn't give control over directory permissions

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Ah, understood. I kind of like the idea of having the added functionality behind a custom callable, but if it's generally just a bug then copystat is a good solution, too. -- ___ Python tracker rep

[issue7719] distutils: ignore .nfsXXXX files

2012-03-13 Thread Jeff Ramnani
Jeff Ramnani j...@jefframnani.com added the comment: I've updated SilentGhost's patch to include a test and documentation. -- nosy: +jramnani Added file: http://bugs.python.org/file24828/issue7719-nfs_silly_rename.patch ___ Python tracker rep

[issue12365] URLopener should support context manager protocol

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Yeah, updated with different wording and proper caps. I left the piece in regarding the use without the context manager as I think that's probably the more common use case still. -- Added file: http://bugs.python.org/file24832

[issue10050] urllib.request still has old 2.x urllib primitives

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I'd be happy to do that (URLopener, to begin with), though I'm not familiar with the usual approach. Is it simply a matter of warning in __init__? -- nosy: +mcjeff ___ Python tracker rep

[issue14255] tempfile.gettempdir() didn't return the path with correct case.

2012-03-13 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: The actual implementation calls os.path.normcase from tempfile._get_default_tempdir. In this scenario here, that resolves to the ntpath module triggers a lowercase conversion. On the other hand, the posixpath module is simply an identity

[issue13685] argparse does not sanitize help strings for % signs

2012-01-03 Thread Jeff Yurkiw
Jeff Yurkiw j...@cyan.com added the comment: That would probably work too. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13685 ___ ___ Python

[issue13685] argparse does not sanitize help strings for % signs

2011-12-30 Thread Jeff Yurkiw
New submission from Jeff Yurkiw j...@cyan.com: I discovered this while programming the command line interface for a python program that can take a passed argument and throw it into the 'where like' clause of a SQL expression (intended for a postgresql database). The wildcard character

[issue12890] cgitb displays p tags when executed in text mode

2011-11-21 Thread Jeff McNeil
Changes by Jeff McNeil j...@jmcneil.net: Added file: http://bugs.python.org/file23743/head-cgitb-display.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890

[issue12890] cgitb displays p tags when executed in text mode

2011-11-20 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Added everything to one file. Updated tests to also include a logdir argument as that is required to trigger the original bug. Weeded out a spurious write that occurred when format was set to text. -- Added file: http://bugs.python.org

[issue12890] cgitb displays p tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Is there anything else needed here? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12890

[issue12890] cgitb displays p tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: I didn't add one initially as I was just changing output format and not actual behavior. I guess I could add something to ensure it doesn't regress? I'll make sure there's coverage to begin

[issue12890] cgitb displays p tags when executed in text mode

2011-11-19 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Test to ensure html isn't included when the formatting is text. I don't seem to be able to update the stage. -- Added file: http://bugs.python.org/file23731/head-cgitb-display-tests.patch ___ Python

[issue12890] cgitb displays p tags when executed in text mode

2011-09-02 Thread Jeff McNeil
New submission from Jeff McNeil j...@jmcneil.net: If cgitb.enable is ran with a logdir set and a format='text' argument, then a trailing message is printed that includes p tags. This should only happen if the format requested is HTML. The following tiny script shows the problem: import

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Jeff Blaine cjbla...@gmail.com added the comment: FWIW, this same problem exists with 2.7.1, compiled by myself, and only on some Solaris 10 boxes of ours that have not had a lot of recent patching. == On an old-ish Solaris 10

[issue12013] file /usr/local/lib/python3.1/lib-dynload/_socket.so: symbol inet_aton: referenced symbol not found

2011-07-17 Thread Jeff Blaine
Changes by Jeff Blaine cjbla...@gmail.com: -- versions: +Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12013 ___ ___ Python-bugs-list

[issue12365] URLopener should support context manager protocol

2011-06-20 Thread Jeff McNeil
Jeff McNeil j...@jmcneil.net added the comment: Isn't that snippet (contextlib.closing(...)) passing the result of urllib.urlopen to closing? The urlopen call is a factory function of sorts, so there's really no context to manage on its part? Maybe it's just a matter of making that clear

<    1   2   3   4   >