python-dateutil 1.4.1-2 rrule.py miss __str__() method

Bug #365529 reported by Khertan on 2009-04-23
4
Affects Status Importance Assigned to Milestone
python-dateutil (Ubuntu)
Undecided
Unassigned

Bug Description

python-dateutil 1.4.1-2 have at least one difference in the file dateutil/rrule.py

Indeed the method __str__ is missing from the source when compared to the 1.4.1 tar.gz source available at http://labix.org/download/python-dateutil/python-dateutil-1.4.1.tar.gz

which prevent to convert a rrule to an rfc rrule string.

Example :

#!/usr/bin/python
import dateutil
import dateutil.rrule
import datetime
r = dateutil.rrule.rrule(dateutil.rrule.DAILY,dtstart=datetime(2007,1,1))

print r

>>>Current result :
<dateutil.rrule.rrule instance of 0x254612>

>>>Expected result :
DTSTART:20070101;RRULE:FREQ=DAILY

Raumkraut (raumkraut) wrote :

I can find no indication of a __str__ method being defined for any of dateutil's classes. A recursive grep comes up blank for both the linked-to archive and the Ubuntu package. The relevant archive available from pypi also shows no sign of such code.
Additionally, the documentation makes no mention of converting *to* RFC 2445 rrules, only *from* them.

Changed in python-dateutil (Ubuntu):
status: New → Invalid
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers