[issue14558] Documentation for unittest.main does not describe some keyword arguments.

2012-04-11 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : Documentation for unittest.main, at <http://docs.python.org/dev/library/unittest.html#unittest.main>, does not describe the keyword arguments 'module', 'argv', or 'testLoader'. -- assignee: docs@pytho

[issue13278] Typo in documentation for sched module

2011-10-28 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Thank you for the great work, Python project! On Fri, Oct 28, 2011 at 5:36 AM, Ezio Melotti wrote: > > Ezio Melotti added the comment: > > Fixed, thanks for the report! > > -- > assignee: docs@python -> ezio.melotti

[issue13278] Typo in documentation for sched module

2011-10-27 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : In the documentation for the sched.scheduler.enter() function, change the phrase "Other then the relative time" to "Other than the relative time" (i.e. change "then" to "than"). -- assignee: docs@p

[issue12516] imghdr.what should take one argument

2011-07-07 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : Currently imghdr.what() accepts two parameters. The first is a file or filename and the second is a byte stream. If the second is not None, the first is ignored. This is clunky. It would be simpler to accept just one argument, which can be either an

[issue10455] typo in urllib.request documentation

2010-11-18 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : Typo in Doc/library/urllib.request.rst, under the "urllib.response" module description: "and" -> "an" -- assignee: d...@python components: Documentation files: urllib.request_typo.diff keywords: patch m

[issue10417] unittest triggers UnicodeEncodeError with non-ASCII character in the docstring of the test function

2010-11-15 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: I am not having this problem on Ubuntu 10.10 with the most recent Python 2.7: $ ./python unicodetest.py --verbose test_unicode_docstring (__main__.UnicodeTest) täst - docstring with unicode character ... ok

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Nevermind. -- resolution: -> invalid ___ Python tracker <http://bugs.python.org/issue10390> ___ ___ Python-bugs-lis

[issue10390] json.load should handle bytes input

2010-11-11 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : The following code produces an error: # APIKEY defined above r = urllib.request.urlopen('http://api.billboard.com/apisvc/chart/v1/' 'list/spec?api_key={}&format=JSON' .format(

[issue10036] compiler warnings for various modules on Ubuntu x86

2010-10-05 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : On Ubuntu 10.04.1, with "uname -a" outputting "Linux hostname 2.6.32-25-generic #44-Ubuntu SMP Fri Sep 17 20:26:08 UTC 2010 i686 GNU/Linux" "gcc --version" outputting "gcc (Ubuntu 4.4.3-4ubuntu5) 4.4.3" On hg rev

[issue6664] readlines should understand Line Separator and Paragraph Separator characters

2010-10-01 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: This seems to be because codecs.StreamReader.readlines() function does this: def readlines(self, sizehint=None, keepends=True): data = self.read() return data.splitlines(keepends) But the io readlines() functions make multiple calls

[issue1481347] parse_makefile doesn't handle $$ correctly

2010-09-30 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: There seems to be a test case for this: http://svn.python.org/view/python/trunk/Lib/distutils/tests/test_sysconfig.py?view=diff&r1=73340&r2=73341 -- nosy: +jfinkels ___ Python tracker <http://bugs

[issue1050268] rfc822.parseaddr is broken, breaks sendmail call in smtplib

2010-09-30 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: I can confirm this bug. Attached is the test case. -- keywords: +patch nosy: +jfinkels Added file: http://bugs.python.org/file19079/issue1050268.testcase.patch ___ Python tracker <http://bugs.python.

[issue6640] urlparse should parse mailto: URL headers as query parameters

2010-09-28 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Adding the 'mailto' scheme to the urllib.parse.uses_query list changes the behavior as described in msg91249. A patch with a test is attached. Note that this changes the behavior of urllib.parse.urlparse() on 'mailto:' URLs:

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-27 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Here's a patch for the python-email6 branch. It seemed to make sense to remove parsedate_tz() and mktime_tz() here, since the parsedate() function now returns a datetime object, including timezone information (if it was parsed from the input s

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-22 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Where does "email6" live? -- ___ Python tracker <http://bugs.python.org/issue9864> ___ ___ Python-bugs-l

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-20 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: I was not clear: the patch I provided REQUIRES the function I provided in issue9909. But I don't know how to change the "Dependencies" field in Roundup. -- ___ Python tracker <http://bugs.py

[issue9864] email.utils.{parsedate, parsedate_tz} should have better return types

2010-09-20 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: If the changes I propose in issue9909 are implemented (briefly: a calendar.dayofyear() function), the following patch (with documentation and tests) should fill in the missing fields in the returned tuple. Note that the email._parseaddr module now

[issue9909] request for calendar.dayofyear() function

2010-09-20 Thread Jeffrey Finkelstein
New submission from Jeffrey Finkelstein : This is a function which computes the integer between 1 and 366 representing the day of the year, given a year, month, and day. The implementation I have provided computes the difference between the ordinal numbers of the given day and January first

[issue1187] pipe fd handling issues in subprocess.py on POSIX

2010-09-16 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Here's a patch which adds the test from 1187-dustin.patch for the py3k branch. The test passes without any additional changes to the py3k code. -- nosy: +jfinkels Added file: http://bugs.python.org/file18902/issue1187.

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-15 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Here's the updated patch, which checks whether the file is closed on each call to read(), write(), and flush(), along with a test. -- Added file: http://bugs.python.org/file18893/issue9759.patch ___ P

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-13 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Here's the 2.7 branch patch. -- Added file: http://bugs.python.org/file18875/issue9759.patch ___ Python tracker <http://bugs.python.org/i

[issue9759] GzipFile object should raise ValueError on .read() after .close()

2010-09-13 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Here is a patch for the py3k branch which adds a check for whether the GzipFile is closed on each call to GzipFile.read(). If the file is closed already, the method raises a ValueError if it is (with the message text copied from the corresponding

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Removed copyright additions from patch. -- Added file: http://bugs.python.org/file18634/issue1194222-trunk.diff ___ Python tracker <http://bugs.python.org/issue1194

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Removed copyright additions from patch. -- Added file: http://bugs.python.org/file18633/issue1194222-py3k.diff ___ Python tracker <http://bugs.python.org/issue1194

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Changes by Jeffrey Finkelstein : Removed file: http://bugs.python.org/file18630/issue1194222-trunk.diff ___ Python tracker <http://bugs.python.org/issue1194222> ___ ___

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Added my copyright information to the patch for trunk. -- Added file: http://bugs.python.org/file18631/issue1194222-trunk.diff ___ Python tracker <http://bugs.python.org/issue1194

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Attached a patch with just the y2k changes and new unit test, for the trunk branch. -- Added file: http://bugs.python.org/file18630/issue1194222-trunk.diff ___ Python tracker <http://bugs.python.

[issue1194222] parsedate and Y2K

2010-08-24 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Attached a patch with just the y2k changes and new unit test, for the py3k branch. -- Added file: http://bugs.python.org/file18629/issue1194222-py3k.diff ___ Python tracker <http://bugs.python.

[issue1194222] parsedate and Y2K

2010-08-21 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: I suppose this is a bug fix because it changes the behavior of email.utils.parsedate_tz() to match the RFC standards. -- versions: +Python 2.7, Python 3.1 ___ Python tracker <http://bugs.python.

[issue1194222] parsedate and Y2K

2010-08-21 Thread Jeffrey Finkelstein
Jeffrey Finkelstein added the comment: Sorry about that; the diff paths have the "a/" and "b/" prefixes. Patch with -p1 at the top-level directory: patch -p1 < issue1194222fix-py3k.diff -- ___ Python tracker <http://bu