Re: Abandoning Python

2011-05-22 Thread John J Lee
Daniel Kluev dan.kl...@gmail.com writes: On Sun, May 22, 2011 at 2:49 AM, John J Lee j...@pobox.com wrote: Here's my wishlist (not really in any order): How come pony is not listed there? Language cannot be better than python without pony! Pony, absolutely. I took that as read

Re: List of WindowsError error codes and meanings

2011-05-21 Thread John J Lee
Andrew Berg bahamutzero8...@gmail.com writes: This is probably somewhat off-topic, but where would I find a list of what each error code in WindowsError means? WindowsError is so broad that it could be difficult to decide what to do in an except clause. Fortunately, sys.exc_info()[1][0] holds

Re: application level monitoring for python

2011-05-21 Thread John J Lee
Walter Chang weidezhang2...@gmail.com writes: Hi is there any open source library for python that can allow application level monitoring ? For example,application can send per request level/ aggregated monitoring events and some remote server dump it and show in the monitoring graph in real

Re: Parsing a graph image

2011-05-21 Thread John J Lee
Bastian Ballmann ba...@chaostal.de writes: Hi, the project sounds like the exact tool that i need but regarding the user manual one has to mark the points on the graph manually. Therefore it's more work to get the data out than doing it without a tool. Or may I miss something here? Greets

Re: checking if a list is empty

2011-05-21 Thread John J Lee
Gregory Ewing greg.ew...@canterbury.ac.nz writes: Hans Georg Schaathun wrote: 0 is a number as real and existent as any other, one would think that the empty list is also as real and existent as any other list. 0 does have some special properties, though, such as being the additive

Abandoning Python

2011-05-21 Thread John J Lee
/troll I still like Python after using it for over a decade, but there are things I don't like. What are your favourite up-and-coming languages of the moment? Here's my wishlist (not really in any order): * A widely used standard for (optional) interface declaration -- or something better.

[issue2193] Cookie Colon Name Bug

2011-01-30 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: I agree with And Clover that Carsten Klein's comments in #msg127366 are not correct, for the reason that And stated. Also, Carsten repeats again the idea that the trac issue is about the trac server failing to generate appropriate

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: karl: I'm not clear precisely what it is that you want to draw our attention to. Note this bug is about parsing of Cookie headers by servers, not production of Set-Cookie headers by servers

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Again, I don't think this is relevant, because the bug is about servers parsing Cookie: headers. Note that that string (the value of the Cookie: header) may be generated by a different server than the server that parses it (see

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look

[issue2193] Cookie Colon Name Bug

2011-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Yes, interoperability is good. Do you have a specific concern about the change that I proposed? If not, and you're instead just trying to ensure conformance, by all means read the draft specification that you pointed out and look

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-20 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Oops, I hadn't noticed that max_redirections isn't part of the API. In that case, I agree that it's not strictly a bug. I'd also agree it's not very important. FWIW: want[ing] to see all redirects is not the same thing as printing

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-15 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: That's silly. A justification of the need for a new feature isn't needed, because this is already-implemented feature that simply does the wrong thing at the edge case. It's not high priority, but it is a bug

[issue1520831] urrlib2 max_redirections=0 disables redirects

2010-11-13 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Why not? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1520831 ___ ___ Python-bugs

[issue2193] Cookie Colon Name Bug

2010-10-19 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: dstanek Would it be better to file bugs against buggy implementations instead of changing Python's implementation to be more lenient? No. Another app running on the same domain that knows nothing about RFC 2109 (and why should

[issue1660009] continuing problem with httplib multiple set-cookie headers

2010-09-21 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: What I said in 2007 re commas could be well out of date (might well have been so even then, in fact). Somebody should check what browsers do now... -- ___ Python tracker rep

[issue2193] Cookie Colon Name Bug

2010-09-21 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Looks like a bug. Here's the trac bug that this caused -- trac fixed their bug by working around this bug in a really ugly way: http://trac.edgewall.org/ticket/2256 It would be nice to notify the trac developers if/when this is fixed

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-20 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Hmm, I never tested with Python 3, though I assume the forward-port was straightforward. The patch was created against (2.x) trunk, so indeed it should be committed there also. Deselecting 2.6 since I assume no more maintenance

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-07-19 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: My patch should be applied. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704

[issue8975] Bug in cookiejar

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This is a duplicate of issue3924 -- nosy: +jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8975

[issue2277] MozillaCookieJar does not support Firefox3 cookie files

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: There is code in PyPI project mechanize that implements this feature. That code is marked experimental though, due to lack of testing. -- nosy: +jjlee ___ Python tracker rep

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2010-07-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Is deprecation really necessary? lynx still uses that format. lynx doesn't write the header that MozillaCookieJar insists on being present, but a trivial subclass can read cookies files written by lynx

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2010-07-10 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Suggest removing the comment that Terry refers to. That referenced MSIE code doesn't have an automated test, I've no idea whether it still works on modern Windows OSes, mechanize no longer supports use with urllib2, and I don't think

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-11 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: What specific breakage do you expect resulting from my patch being backported? There is no behaviour change here, except to the minimal extent that all bug fixes involve behaviour change. This seems a clear-cut backport candidate

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-10 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: I'll upload a patch when I'm back home (bugs.python.org went down yesterday). Will turn docstring into comment. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-10 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Just re-read your comment, Tres. Since when do docstrings determine whether a stdlib function is public? If it's documented in the docs, it's public. If not, it's not. This function isn't, so it's not public. It's also

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-10 Thread John J Lee
Changes by John J Lee jj...@users.sourceforge.net: Added file: http://bugs.python.org/file17285/issue3704.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-10 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Didn't bother changing docstring to comment, since that would be inconsistent with rest of module. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue3704

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-10 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: FWIW, the certain semantics that request_path promises are 1. that it returns the RFC 2965 request-URI (which has never been true -- it returns the path component of the request-URI instead) and 2. that that request-URI is as defined

[issue3704] cookielib doesn't handle URLs with / in parameters

2010-05-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: It looks to me that it's just request_path that's wrong, so no need to add extra arguments to that function. It should discard the query and fragment (still keeping the parameters -- using urlparse.urlsplit instead

[issue6588] insert cookies into cookie jar - cookielib.py

2010-05-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Jon, If you want to get these changes applied you need to: 1. Split up these three separate issues 2. Most important: explain in full detail exactly how you used cookielib, what you expected it to do, and what it actually did

[issue5537] LWPCookieJar cannot handle cookies with expirations of 2038 or greater on 32-bit platforms

2010-05-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Shouldn't module time be changed to use a cross-platform implementation that uses a 64 bit time_t-like type? Apparently Perl 6 has made the equivalent change. Admittedly there seems to be no sign of that actually happening

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

2010-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: To make sure I understood something Antoine said: By per-request, I assume you mean the same kind of thing as the current use of .redirect_dict -- the multiple urllib2.Request instances that may result from a single request passed

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

2010-01-05 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Yes,it currently does not handle chained redirects via cache. I dont know RFC's stance on it. RFC does not say anything about 301 chained redirects I don't see anything in the RFC that prevents us caching chained 301 redirections

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-15 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: If you have a feature request, please open a separate ticket. This one is about an alleged bug. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1424148

[issue1424148] urllib.FancyURLopener.redirect_internal looses data on POST!

2009-08-14 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This issue is not a bug, and should be closed. It was discussed at length many years ago (different bug tracker ticket), and resolved. Since then the same issue seems to come up every year or so, apparently raised by people who

[issue1372650] Cookie and multiple names

2009-02-13 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: A patch for this bug is attached to issue1375011. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1372650

[issue1172011] BaseCookie does not call value_decode

2009-02-13 Thread John J Lee
Changes by John J Lee jj...@users.sourceforge.net: -- nosy: -jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1172011 ___ ___ Python-bugs-list

[issue991266] Cookie.py does not correctly quote Morsels

2009-02-13 Thread John J Lee
Changes by John J Lee jj...@users.sourceforge.net: -- nosy: -jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue991266 ___ ___ Python-bugs-list

[issue918368] urllib doesn't correct server returned urls

2009-02-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Mike's list is missing one more character, % itself. So, the replacement should be: quote(newurl, safe=%/:=?~#+!$,;'@()*[]) The replacement should be done in the .open() method, not in the code that handles redirects

[issue918368] urllib doesn't correct server returned urls

2009-02-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: A suitable test would be to derive a urllib.URLOpener subclass that has an open_spam(url) method which records the URL. Then call .open(spam://) in the test and verify that the URL has been quoted

[issue918368] urllib doesn't correct server returned urls

2009-02-12 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Uh, that should have beeen something like .open(spam://example.com/%2E/) of course. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue918368

[issue1660009] continuing problem with httplib multiple set-cookie headers

2009-02-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: Why? ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1660009 ___ ___ Python-bugs-list mailing list

[issue918368] urllib doesn't correct server returned urls

2009-02-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This bug refers to urllib. Issue 1153027 refers to urllib2. It's the same problem in each case, though. -- nosy: +jjlee ___ Python tracker rep...@bugs.python.org http://bugs.python.org

[issue1153027] http_error_302() crashes with 'HTTP/1.1 400 Bad Request

2009-02-09 Thread John J Lee
John J Lee jj...@users.sourceforge.net added the comment: This bug refers to urllib2. Issue 918368 refers to urllib. It's the same problem in each case, though. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1153027

[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: This fix was applied in the wrong place. URI path components, and HTTP URI path components in particular, *can* be empty. See RFC 3986. So the comment in the code that was inserted with the fix for this bug that says possibly malformed

[issue3819] urllib2 sends Basic auth across redirects

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I agree this is a bug. Senthil -- re 1), the paragraph you refer to (quoted by the OP) is relevant. The fact that it doesn't specifically mention redirection is not relevant. Re 2): I don't know how digest auth works, but the paragraph you quote

[issue1205] urllib fail to read URL contents, urllib2 crash Python

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: This is fixed in trunk r61034 by issue #900744 . Please use that issue for any discussion re whether this should be fixed in 2.5. -- nosy: +jjlee ___ Python tracker [EMAIL PROTECTED] http

[issue1537445] urllib2 httplib _read_chunked timeout

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: urlopen() raises URLError, .read() may raise other errors. I don't think that's a bug in itself, though no doubt: 1. The documentation of exceptions raised could and should be improved 2. The exceptions that can be raised are likely still

[issue1123695] attempting to use urllib2 on some URLs fails starting on 2.4

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Can somebody close this? It's fixed on trunk in #900744 . ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1123695

[issue4492] httplib code thinks it closes connection, but does not

2008-12-02 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: The fix for #900744 tried to close the connection when a bad chunk length was received. The comment inserted with that fix close the connection as protocol synchronisation is probably lost is incorrect: self.close() in _read_chunked does

[issue900744] catch invalid chunk length in httplib read routine

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The fix for this doesn't actually close the connection as the comment in the fix claims -- I've raised #4492 to track that. -- nosy: +jjlee ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org

[issue1411097] httplib patch to make _read_chunked() more robust

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: For the record, I think my worry in msg49366 was a non-issue: the only time .readline() will return is when the connection has closed (so I think the fix that eventually applied is correct). ___ Python tracker

[issue1772481] urllib2 hangs with some documents.

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Please close: this is already fixed on trunk and release25-maint (r60747, issue #1966) (and on release26-maint, which was branched after the fix). -- nosy: +jjlee ___ Python tracker [EMAIL PROTECTED

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: This bug was known before the release -- unfortunately the original author of the patch didn't fix them in time. This and some other unresolved issues listed are listed on #2451. Somebody should raise bugs about the rest of them too, and fix them

[issue4079] new urllib2.Request 'timeout' attribute needs to have a default

2008-12-02 Thread John J Lee
Changes by John J Lee [EMAIL PROTECTED]: -- nosy: +facundobatista ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4079 ___ ___ Python-bugs-list mailing

[issue4493] urllib2 doesn't always supply / where URI path component is empty

2008-12-02 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: As required by RFC 2616 section 3.2.2, for all HTTP requests sent by urllib2, the path component of the URI should be normalized to / before the Request-URI derived from it gets passed to httplib (or something functionally equivalent

[issue2464] urllib2 can't handle http://www.wikispaces.com

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I've raised #4493 about the issue I raised in my previous comment. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2464

[issue4496] misleading comment in urllib2

2008-12-02 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: r54137 replaced a comment in urllib2.py with a misleading comment. The comment now implies the .insort() in question achieves the goal specified in the new comment. That's not true, which was the reason the original comment

[issue4496] misleading comment in urllib2

2008-12-02 Thread John J Lee
Changes by John J Lee [EMAIL PROTECTED]: -- components: +Library (Lib) nosy: +facundobatista versions: +Python 2.7, Python 3.0 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue4496

[issue1401] urllib2 302 POST

2008-12-02 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I think this was actually not a bug, and the fix should not have been applied. I guess this comment is just for the record, as the fix is probably cruft that can't be removed now, since people will have started relying on it. The only way

[issue2275] urllib2 header capitalization

2008-10-25 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I have attached a patch that just: * Improves doctests a bit * Changes .get_headers() and .has_header() to be case-insensitive * Documents .get_header() and .header_items(), fixes some incorrectly-documented argument names, and notes the case

[issue2275] urllib2 header capitalization

2008-10-25 Thread John J Lee
Changes by John J Lee [EMAIL PROTECTED]: Added file: http://bugs.python.org/file11887/issue2775-problems.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2275

[issue2756] urllib2 add_header fails with existing unredirected_header

2008-10-25 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I agree there is a bug here: clearly the methods on the Request class are inconsistent with AbstractHTTPHandler.do_open() . I think Facundo's patch is good, though it needs a test. The general principle when fixing earlier bugs has been

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-10-25 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Patch with tests attached. The patch is slightly different to my first suggestion: in the patch, invalid version values cause the cookie to be ignored (but double quotes around valid versions are fine). -- keywords: +patch Added file

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-10-25 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The bug is present on trunk and on the py3k branch, so I've selected versions Python 2.7 and Python 3.0 This is a straightforward bug, so I selected 2.5.3 and 2.6 also, to indicate this is a candidate for backport. -- components: +Library

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2008-10-16 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Forgot to add: if somebody else does the work, I'm happy to agree to the code being used in Python stdlib. Perhaps it would be necessary to get the author of the original Perl code from which this MSIE class is derived to sign a contributor

[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2008-10-16 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Here they are: http://bugs.python.org/issue1500504 http://bugs.python.org/issue1462525 http://bugs.python.org/issue1591035 ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3647

[issue3647] urlparse - relative url parsing and joins to be RFC3986 compliance

2008-10-16 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Hmm, I see you've already commented on some of those, Senthil. Perhaps you could add a comment to this bug explaining how your patch relates to the others. Should it replace them? (why?) Should one of those patches be applied also? Also, my

[issue2007] cookielib lacks FileCookieJar class for Internet Explorer

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Note that the code on wwwsearch.sf.net only reads cookies, and does not write them. Also, the approach used is fragile to changes to MS's index.dat database, which was the reason why that code was not included when cookielib was added. As far

[issue1570255] redirected cookies

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Sorry I turned up rather late here (is there a way to subscribe to changes to all bugs whose comments or title contain a given string?) If it works with Firefox and not with cookielib it's almost certainly a bug. However, it's not clear to me

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I think firefox 3 no longer writes cookies.txt (it writes cookies.sqlite instead). Can anybody point out a version of firefox that wrote this HttpOnly information to cookies.txt, so the patch can be tested

[issue4131] Note that Firefox 3 does not write cookies.txt

2008-10-15 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: Just adds a note to the cookielib documentation to point out that Firefox 3 no longer writes cookies.txt, the file format understood by cookielib.MozillaCookieJar (firefox now maintains persistent cookie state in an sqlite database

[issue3704] cookielib doesn't handle URLs with / in parameters

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Do we have an RFC 3986 URI parser in the stdlib now? It would be better to use that if so, but I don't see one. Failing that, an implementation of the relevant part of that RFC is only about four lines of code, so that would be better than

[issue3924] cookielib chokes on non-integer cookie version, should ignore it instead

2008-10-15 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The sensible fix for this is to strip the quotes off, defaulting to version 0 on failure to parse the version cookie-attribute. It's not necessary to retain the original version string. By the way, what you posted warning rather than a strictly

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-10 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: I was responding to your comment of 2008-10-08 03:08, not to the opening comment. I already responded to the opening comment. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1028088

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-10 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The Cookie: header does not have a secure flag (The Set-Cookie: header does). I don't strongly object to the issue identified in the original comment being fixed. ___ Python tracker [EMAIL PROTECTED] http

[issue2190] MozillaCookieJar ignore HttpOnly cookies

2008-10-09 Thread John J Lee
Changes by John J Lee [EMAIL PROTECTED]: -- nosy: +jjlee ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2190 ___ ___ Python-bugs-list mailing list

[issue1028088] Cookies without values are silently ignored (by design?)

2008-10-09 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: You haven't said what the specific problem is. Note that the SimpleCookie class really represents a set of cookies, and the Morsel class represents a single cookie. It seems that setting special value-less cookie-attributes like secure works

[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: ./configure --prefix=DIR make make install tries to install files in directories outside of DIR. This happens both with trunk (r66412) and 2.6b3. This is a problem for users of GNU stow, for example. I know that certainly this worked fairly

[issue3858] make install tries to install files outside of --prefix

2008-09-13 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: OK, this was because I had a .pydistutils.cfg file containing the following (ironically, put there following somebody's recipe for installing setuptools packages using stow): [install] install_lib=~/lib/python$py_version_short/site-packages

Re: [wwwsearch-general] python mechanize/libxml2dom question

2008-09-03 Thread John J Lee
On Mon, 1 Sep 2008, bruce wrote: [...] how can i [...] libxml2dom [...] Just a general point: try lxml.etree instead? Friendlier API. John -- http://mail.python.org/mailman/listinfo/python-list

Re: [wwwsearch-general] python - mechanize/browser/POST issue

2008-09-03 Thread John J Lee
On Tue, 2 Sep 2008, bruce wrote: [...] using mechanize/Browser, i can easily do a url/get, and process submitting a form that uses a GET as the action. however, I'm not quite sure how to implement the submittal of a form, that uses the POST action. [...] Same way as any other form. The HTTP

Re: [wwwsearch-general] python/xpath question..

2008-09-03 Thread John J Lee
On Wed, 3 Sep 2008, bruce wrote: [...] and get the number of total nodes... by subtracting, i can get the number of nodes, without text.. is there an easier way??!! [...] Yes -- don't use XPath :-) John -- http://mail.python.org/mailman/listinfo/python-list

RE: [wwwsearch-general] (no subject)

2008-08-31 Thread John J Lee
On Fri, 29 Aug 2008, bruce wrote: Hi john. Thanks for your reply. I tried your suggestion of using RobustFactory, and still get a badly maligned html back!!! The html is listed below. I would That's expected -- this affects the parsing of the HTML. It does not modify the HTML. have

Re: [wwwsearch-general] (no subject)

2008-08-29 Thread John J Lee
On Fri, 29 Aug 2008, bruce wrote: [...] does the page (test.html) need to be completely valid html? No, but there are certainly (poorly-defined) limitations. I haven't tried to understand your script or the HTML, but did you try this: br = mechanize.Browser(mechanize.RobustFactory()) ...

[issue3577] Interpreter name: python vs. python-3.0

2008-08-17 Thread John J Lee
New submission from John J Lee [EMAIL PROTECTED]: The tutorial says: The Python interpreter is usually installed as /usr/local/bin/python on those machines where it is available Shouldn't that be python3 or python-3.0? And the same throughout the rest of the tutorial? make install seems

[issue3577] Interpreter name: python vs. python-3.0

2008-08-17 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: make install actually installs as python3.0 (and not as python-3.0, nor python3, nor python). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3577

[issue2275] urllib2 header capitalization

2008-08-12 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: The CaseInsensitive dict class fails to preserve its invariants (implied invariants, since there are no tests for it). There are also problems with the documentation in the patch. I will submit a modified patch, I hope later this week

[issue2275] urllib2 header capitalization

2008-08-12 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: By the way, this is a feature addition, not a bug fix. The first beta releases for 2.6 and 3.0 came out some time ago, so according to PEP 361, this change should not be committed to trunk until after the 2.6 / 3.0 maintenance branches have been

[issue2275] urllib2 header capitalization

2008-07-22 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: With respect to point 1), I assume that we all agree upon that headers should stored in Titled-Format instead of Capitalized-format. I would probably choose to store the headers in Capitalized-form, because that makes implementing .headers

[issue2275] urllib2 header capitalization

2008-07-22 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Of course, that along the lines of suggestion isn't quite right: None does not have a .title() method. (and, to spell it out, I'm assuming in that suggestion that .headers is the dict of headers with .capitalize()d keys, i.e. unchanged from Python

[issue2275] urllib2 header capitalization

2008-07-11 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: There already is a test for the breakage, but the patch changes the expected output to match the new return value of .header_items(): -[('Foo-bar', 'baz'), ('Spam-eggs', 'blah')] +[('Foo-Bar', 'baz'), ('Spam-Eggs', 'blah')] Code

[issue2275] urllib2 header capitalization

2008-07-11 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: * The patch to the docs seems to muddy the waters even further (than the current slightly murky state) about whether and why .headers is to be preferred over the methods, or vice-versa. I think .headers should remain undocumented

[issue2275] urllib2 header capitalization

2008-07-11 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Just to quickly note that by providing case-insensitive lookup I don't necessarily mean via .headers. But it's you who's providing the patch, so I'll wait for your next suggestion rather than discuss how I might change the code

[issue2275] urllib2 header capitalization

2008-07-10 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: * The patch looks like it will break code that uses .header_items(), which is not acceptable. * The patch to the docs seems to muddy the waters even further (than the current slightly murky state) about whether and why .headers is to be preferred

[issue2451] No way to disable socket timeouts in httplib, etc.

2008-04-25 Thread John J Lee
John J Lee [EMAIL PROTECTED] added the comment: Facundo, are you going to review this? __ Tracker [EMAIL PROTECTED] http://bugs.python.org/issue2451 __ ___ Python-bugs-list mailing list

Re: str(bytes) in Python 3.0

2008-04-12 Thread John J. Lee
Christian Heimes [EMAIL PROTECTED] writes: Gabriel Genellina schrieb: On the last line, str(x), I would expect 'abc' - same as str(x, 'ascii') above. But I get the same as repr(x) - is this on purpose? Yes, it's on purpose but it's a bug in your application to call str() on a bytes object

Re: Any fancy grep utility replacements out there?

2008-04-06 Thread John J. Lee
[EMAIL PROTECTED] [EMAIL PROTECTED] writes: So I need to recursively grep a bunch of gzipped files. This can't be easily done with grep, rgrep or zgrep. (I'm sure given the right pipeline including using the find command it could be donebut seems like a hassle). So I figured I'd find

Re: py.test and test coverage analysis ?

2008-04-06 Thread John J. Lee
j vickroy [EMAIL PROTECTED] writes: Hello all, I am using py.test (http://codespeak.net/py/dist/test.html) to perform unit testing. I would like to include test coverage analysis using coverage.py (http://nedbatchelder.com/code/modules/coverage.html), but I do not know how to

  1   2   3   4   5   6   >