[issue15008] PEP 362 reference implementation for 3.3

2012-06-05 Thread Alexandre Zani

Changes by Alexandre Zani alexandre.z...@gmail.com:


--
nosy: +Alexandre.Zani

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15008
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14908] datetime.datetime should have a timestamp() method

2012-06-04 Thread Alexandre Zani

Alexandre Zani alexandre.z...@gmail.com added the comment:

I think the easiest and most intuitive approach is to simply define timestamp() 
as being the reverse of fromtimestamp(). Don't worry about leap seconds and all 
that stuff.

If non-1970 epochs are a concern, this could be renamed to posix_timestamp or 
some such with perhaps a generic timestamp function that takes both a time and 
epoch.

But let's not let such a useful function not happen just because it won't solve 
everyone's problem.

--
nosy: +Alexandre.Zani

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14908
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue14908] datetime.datetime should have a timestamp() method

2012-06-04 Thread Alexandre Zani

Alexandre Zani alexandre.z...@gmail.com added the comment:

I'm still reading through the issue you mentioned. (It's a painful read I have 
to admit) One major obstacle seems to be that during the DST switch over, an 
hour gets repeated and so the datetime object is ambiguous. (are you on the 
first or second hour?) I would argue that it isn't a problem that this function 
needs to solve. The ambiguity isn't tied to the conversion. It's tied to the 
datetime object itself.

Let's add an optional parameter to specify the DST status, doc the pitfall and 
not worry overmuch about it.

Side note: Let me know if I misunderstood Alexander, but if I didn't this 
should be documented with the datetime object. Based upon my understanding, the 
datetime object is a bad choice if you care about that ambiguity. That's not 
really clear.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14908
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2012-06-01 Thread Alexandre Zani

Alexandre Zani alexandre.z...@gmail.com added the comment:

I would tend to disagree with the use of **kwargs. It means the argument list 
would be implicit, not documented by the code and not checked at runtime. We 
could end up with anything in there. I'll try to propose a patch tonight that 
implements Jean-Paul's solution.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4849
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2012-06-01 Thread Alexandre Zani

Alexandre Zani alexandre.z...@gmail.com added the comment:

Here is my patch for it.

--
keywords: +patch
Added file: http://bugs.python.org/file25796/easier_element_init.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4849
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2012-05-20 Thread Alexandre Zani

Alexandre Zani alexandre.z...@gmail.com added the comment:

This patch allows the cloning of elements that do not have a document owner.

If a node does not have a document owner, a new document owner is created for 
the clone.

--
keywords: +patch
Added file: http://bugs.python.org/file25651/orphan_node_clone.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4851
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1105770] null source chars handled oddly by tokenize

2012-05-20 Thread Alexandre Zani

Changes by Alexandre Zani alexandre.z...@gmail.com:


--
nosy: +Alexandre.Zani

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1105770
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4849] instantiating and populating xml.dom.minidom.Element is cumbersome

2012-05-20 Thread Alexandre Zani

Changes by Alexandre Zani alexandre.z...@gmail.com:


--
nosy: +Alexandre.Zani

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4849
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue4851] xml.dom.minidom.Element.cloneNode fails with AttributeError

2011-05-03 Thread Alexandre Zani

Changes by Alexandre Zani alexandre.z...@gmail.com:


--
nosy: +Alexandre.Zani

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue4851
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com