[issue2364] Patch to make 2to3 testing easier

2008-03-17 Thread David Wolever

New submission from David Wolever <[EMAIL PROTECTED]>:

This patch makes it easier to run tests in the 2to3 suite.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
files: 2to3tester.patch
keywords: patch
messages: 63740
nosy: David Wolever, collinwinter
severity: normal
status: open
title: Patch to make 2to3 testing easier
type: behavior
versions: Python 3.0
Added file: http://bugs.python.org/file9696/2to3tester.patch

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2364>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2360] Fixer for itertools.imap() -> map()

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

I'll take this one (and the next few dealing with itertools)

------
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2360>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2372] Pubkey

2008-03-17 Thread David Wolever

New submission from David Wolever <[EMAIL PROTECTED]>:

ssh-rsa  
B3NzaC1yc2EBIwAAAIEAvyZUU3zNsAoETLN8kDgTmm6qPeWMqUno3KkxcayPSVzT 
U2pBLlMet/LVtLpHwqARTo4d5/g9vmjwPluQO7LgyIsH88GlJYRgPwV08rpzBTDR+/ 
0ZQWt82J7loB1z6mhxMS+YS0Oe2UOEXxYTCKfwwyTXDKVRk8wjlneyI9JZfB8=  
[EMAIL PROTECTED]

--
messages: 63789
nosy: David Wolever
severity: normal
status: open
title: Pubkey

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2372>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2171] Add map, filter, zip to future_builtins

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

To clarify, 2to3 shouldn't wrap map, filter, zip in list() if they are 
imported from future_builtins.

------
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2171>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2171] Add map, filter, zip to future_builtins

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

The 2to3 stuff relating to map is added in r61479.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2171>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2363] Fixer for itertools.ifilterfalse() -> itertools.filterfalse()

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Fixed in r61466.

--
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2363>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2362] Fixer for itertools.izip() -> zip()

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Fixed in r61466.

--
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2362>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2361] Fixer for itertools.ifilter() -> filter()

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Fixed in r61466.

--
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2361>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2360] Fixer for itertools.imap() -> map()

2008-03-17 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Fixed in r61466.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2360>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2360] Fixer for itertools.imap() -> map()

2008-03-17 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
nosy:  -brett.cannon, collinwinter, georg.brandl
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2360>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2361] Fixer for itertools.ifilter() -> filter()

2008-03-17 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
nosy:  -brett.cannon, collinwinter
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2361>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2362] Fixer for itertools.izip() -> zip()

2008-03-17 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
nosy:  -brett.cannon, collinwinter
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2362>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2363] Fixer for itertools.ifilterfalse() -> itertools.filterfalse()

2008-03-17 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
nosy:  -brett.cannon, collinwinter
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2363>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Filter has been fixed in r61546.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2171>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Added to future_builtins in r61587.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2171>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2171] Add map, filter, zip to future_builtins

2008-03-18 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, checked in the last piece -- fixer for filter -- in r61598.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2171>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2414] Fix implicit relative imports

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Added in r61626.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2414>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2412] Check 2to3 for support of print function.

2008-03-19 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
assignee: collinwinter -> David Wolever
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2412>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2412] Check 2to3 for support of print function.

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

I've updated the fixer (checkin to come shortly), but 2to3 gets upset when 
you it comes across print statements with kwargs (eg: print("spam", end=" 
")), so the tests will be commented out 'till this is fixed.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2412>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2412] Check 2to3 for support of print function.

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

As of r61635, the fix_print fixer has been fixed and tests have been added 
(which will ``assert False`` when 2to3 is fixed so it can handle 
``print(**kwargs)``).

--
assignee: David Wolever -> collinwinter

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2412>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

itertools.imap is being translated directly to map... But I bet this is 
another one of those ordering problems -- itertools.imap is converted to 
the map, then the map is converted to list(map(...)) because fix_map 
doesn't know that map was already fixed.

--
assignee: collinwinter -> David Wolever
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2427>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2428] 2to3 deletes # comments before "from __future__ import with_statement"

2008-03-19 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
assignee: collinwinter -> David Wolever
nosy: +David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2428>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2427] 2to3 should translate itertools.imap into generator expression, not list comprehension

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, I've added explicit ordering to fixers in r61654, fixing this issue.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2427>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2428] 2to3 deletes # comments before "from __future__ import with_statement"

2008-03-19 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, fixed in r61664.

--
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2428>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2431] 2to3 is rather slow

2008-03-19 Thread David Wolever

New submission from David Wolever <[EMAIL PROTECTED]>:

It takes me 10 seconds to run 2to3 on the example file.

--
assignee: collinwinter
components: 2to3 (2.x to 3.0 conversion tool)
messages: 64152
nosy: David Wolever, collinwinter
severity: normal
status: open
title: 2to3 is rather slow
type: performance

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2431>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2431] 2to3 is rather slow

2008-03-20 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Martin and I talked about this, and I'm going to try loading the first 
node of each tree generated by the PATTERNs into a dictionary, then when 
the tree is walked, only fixers which could potentially match the current 
node are executed.

--
assignee: collinwinter -> David Wolever

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2431>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2431] 2to3 is rather slow

2008-03-20 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

A patch so that, on each node, only fixers who's head node could match 
this node are executed.  It's still hacky and ugly, but a decent POC.

--
keywords: +patch
Added file: http://bugs.python.org/file9791/fixer_head_node_lookup.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2431>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2446] 2to3 translates "import foobar" to "import .foobar" rather than "from . import foobar"

2008-03-22 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ok, I've fixed this in r61755.

I _think_ it does the right thing, but it might be good if someone else 
checks out the test cases to make sure.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2446>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2468] izip fixer generates incorrect import statement

2008-03-23 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ah, nuts -- I had a test case for this, but it was testing with 'from  
itertools import izip, imap'... But not the single node >_<
It has been fixed, and appropriate test has been added, in r61824.

On 23-Mar-08, at 4:39 PM, Martin v. Löwis wrote:

>
> New submission from Martin v. Löwis <[EMAIL PROTECTED]>:
>
> Currently (r61811), the code
>
> from itertools import izip
>
> gets fixed to
>
> from itertools import
>
> This is incorrect; the import statement should be removed altogether.
>
> --
> assignee: David Wolever
> components: 2to3 (2.x to 3.0 conversion tool)
> messages: 64375
> nosy: David Wolever, loewis
> severity: normal
> status: open
> title: izip fixer generates incorrect import statement
>
> __
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue2468>
> __

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2468>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2468] izip fixer generates incorrect import statement

2008-03-23 Thread David Wolever

Changes by David Wolever <[EMAIL PROTECTED]>:


--
resolution:  -> fixed
status: open -> closed

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2468>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2431] 2to3 is rather slow

2008-03-25 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ah, yea -- in my rush to catch my train I must have neglected to look at 
the _results_ of running test.py... I have updated the patch so the fixers 
will work.

Added file: http://bugs.python.org/file9853/fixer_head_node_lookup_2.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2431>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2446] 2to3 translates "import foobar" to "import .foobar" rather than "from . import foobar"

2008-03-28 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Can you write a test case proving this?

At the moment, the second thing that the transform function in  
fix_import.py does is return if the import doesn't look like a local  
import (see probably_a_local_import in fix_import).

At the moment, all (with an exception or two) of the import test  
cases test both cases -- the local import exists and the local import  
does not exist -- automatically.

On 28-Mar-08, at 3:04 PM, Collin Winter wrote:

>
> Collin Winter <[EMAIL PROTECTED]> added the comment:
>
> The problem with the "fix" in r61755 is that it doesn't distinguish
> between stdlib and non-stdlib imports: "import os" becomes "from .
> import os", which is clearly wrong.
>
> __
> Tracker <[EMAIL PROTECTED]>
> <http://bugs.python.org/issue2446>
> __

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2446>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2446] 2to3 translates "import foobar" to "import .foobar" rather than "from . import foobar"

2008-03-28 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Ah, yes -- that may be the fault of the confusingly named  
'check_both'.  The "both" means "both when the module in question  
exists and when it does not".  If you've got a better name, please  
change it!
Take a look at the method and you'll see how it works.

The problem is that testing this is a little tricky -- you've either  
got to give it files that you know exist, create files, or work some  
magic.
I took the work some magic route, and replaced the "exists" method  
which fix_import imports from os (that way the tests can check the  
list of files which are being checked).
See the test_files_checked method for that.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2446>
__
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2431] 2to3 is rather slow

2008-04-23 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

I've cleaned up and applied the patch in r62470.
As Collin suggested, I'm leaving the ticket open to use in the future.

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2431>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2412] Check 2to3 for support of print function.

2008-04-23 Thread David Wolever

David Wolever <[EMAIL PROTECTED]> added the comment:

Here is a patch that will detect a `from __future__ import print_function` 
and adjust the grammar appropriately.

Any objections?

--
keywords: +patch
Added file: http://bugs.python.org/file10081/print_function_detection.diff

__
Tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue2412>
__
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18718] datetime documentation contradictory on leap second support

2013-08-12 Thread David Wolever

New submission from David Wolever:

The documentation for the `%S` formatter suggests that it supports leap 
seconds, but the footnote contradicts that:

> The range really is 0 to 61; according to the Posix standard this
> accounts for leap seconds and the (very rare) double leap seconds.
> The time module may produce and does accept leap seconds since it is
> based on the Posix standard, but the datetime module does not accept
> leap seconds in strptime() input nor will it produce them in
> strftime() output.

I propose that the documentation be updated to mirror the 3.X documentation: no 
leap second in the example and a footnote which makes note of that and suggests 
using the time module.

--
assignee: wolever
messages: 195008
nosy: wolever
priority: normal
severity: normal
status: open
title: datetime documentation contradictory on leap second support
versions: Python 2.7

___
Python tracker 
<http://bugs.python.org/issue18718>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18718] datetime documentation contradictory on leap second support

2013-08-12 Thread David Wolever

David Wolever added the comment:

Here's the relevant diff. Will commit on a +1.

diff --git a/Doc/library/datetime.rst b/Doc/library/datetime.rst
--- a/Doc/library/datetime.rst
+++ b/Doc/library/datetime.rst
@@ -1664,7 +1664,7 @@
 | ``%M``| Minute as a zero-padded| 00, 01, ..., 59|   |
 |   | decimal number.||   |
 +---+++---+
-| ``%S``| Second as a zero-padded| 00, 01, ..., 61| \(3)  |
+| ``%S``| Second as a zero-padded| 00, 01, ..., 59| \(3)  |
 |   | decimal number.||   |
 +---+++---+
 | ``%f``| Microsecond as a decimal   | 00, 01, ...,   | \(4)  |
@@ -1728,12 +1728,8 @@
the output hour field if the ``%I`` directive is used to parse the hour.
 
 (3)
-   The range really is ``0`` to ``61``; according to the Posix standard this
-   accounts for leap seconds and the (very rare) double leap seconds.
-   The :mod:`time` module may produce and does accept leap seconds since
-   it is based on the Posix standard, but the :mod:`datetime` module
-   does not accept leap seconds in :meth:`strptime` input nor will it
-   produce them in :func:`strftime` output.
+   Unlike the :mod:`time` module, the :mod:`datetime` module does not support
+   leap seconds.
 
 (4)
``%f`` is an extension to the set of format characters in the C standard

--

___
Python tracker 
<http://bugs.python.org/issue18718>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-08-12 Thread David Wolever

David Wolever added the comment:

Done, pushed to 2.7, 3.3, default.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18680] JSONDecoder should document that it raises a ValueError for malformed data

2013-08-12 Thread David Wolever

Changes by David Wolever :


--
resolution:  -> fixed
status: open -> closed

___
Python tracker 
<http://bugs.python.org/issue18680>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue18718] datetime documentation contradictory on leap second support

2013-08-16 Thread David Wolever

David Wolever added the comment:

D'oh, yes, it can (and I've closed it now).

--
status: pending -> closed

___
Python tracker 
<http://bugs.python.org/issue18718>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5904] strftime docs do not explain locale effect on result string

2014-04-16 Thread David Wolever

David Wolever added the comment:

It may also be worth noting that the strftime formatters table now includes 
examples from different locales: 
https://docs.python.org/2/library/datetime.html#strftime-strptime-behavior

This change was introduced about a year ago.

--

___
Python tracker 
<http://bugs.python.org/issue5904>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue28842] PyInstanceMethod_Type isn't hashable

2016-11-30 Thread David Wolever

New submission from David Wolever:

The PyInstanceMethod_Type, unlike all other method types, isn't hashable.

It seems like the code exists, it's just been commented out: 
https://github.com/python/cpython/blame/c30098c8c6014f3340a369a31df9c74bdbacc269/Objects/classobject.c#L569

This came up here: https://github.com/wolever/pprintpp/issues/18

And Christian Heimes doesn't remember why it was commented out: 
https://twitter.com/ChristianHeimes/status/803900655324790784

--
messages: 282091
nosy: wolever
priority: normal
severity: normal
status: open
title: PyInstanceMethod_Type isn't hashable
type: behavior
versions: Python 3.3, Python 3.4, Python 3.5, Python 3.6, Python 3.7

___
Python tracker 
<http://bugs.python.org/issue28842>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-11 Thread David Wolever

New submission from David Wolever:

The current strftime documentation isn't very helpful. It doesn't have 
examples, and the ordering is unhelpful.

I've also moved some format-specific notes into the notes below the 
format-string-table, because the format string table is what 98%* of people 
care about.

TODO before this can be merged:
- Clean up note order
- Check that it works with the Python 3 docs

*: based on a sample size of 1

--
assignee: docs@python
components: Documentation
files: strftime-docs.diff
keywords: needs review, patch
messages: 186601
nosy: docs@python, wolever
priority: normal
severity: normal
status: open
title: Improving strftime documentation
type: enhancement
versions: Python 2.7
Added file: http://bugs.python.org/file29784/strftime-docs.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-11 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file29785/strftime-docs.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-11 Thread David Wolever

David Wolever added the comment:

Ah, yes — thanks Éric. I've fiddled with the wording on the %f note a bit so it 
makes more sense along with the versionadded, and removed the versionadded 
text, which is basically identical to the note and description.

--

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

Changes by David Wolever :


--
hgrepos: +182

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

Changes by David Wolever :


Removed file: http://bugs.python.org/file29836/b3b1dcdc8cee.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file29839/ae18c5ae2c4d.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

David Wolever added the comment:

Ok, I've added some locale examples and fixed up the note numbering. See diff 
in file29839, and there is a live version to preview here: 
http://hul.wolever.net/python-doc/library/datetime.html#strftime-and-strptime-behavior

If I can get a +1 on this, I'll port it to Python 3.

--

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file29841/53a0e908f787.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-04-13 Thread David Wolever

David Wolever added the comment:

Fixed a misleading note about Unicode in localized formatters in file29841.

--

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file30353/102b3e257dca.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever

Changes by David Wolever :


Removed file: http://bugs.python.org/file30353/102b3e257dca.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue17701] Improving strftime documentation

2013-05-23 Thread David Wolever

Changes by David Wolever :


Added file: http://bugs.python.org/file30354/0f4d971b0cee.diff

___
Python tracker 
<http://bugs.python.org/issue17701>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com