[Debian-hebrew-package] Bug#583092: Bug#583092: should return None instead of none

kobi zamir kobi.zamir at gmail.com
Tue May 25 18:34:35 UTC 2010


This is not a bug in libhdate-python. It is not a bug at all ... it is
how the library work.

the C library libhdate ( http://packages.debian.org/sid/libhdate1 ) function:
char* hdate_get_parasha_string  	(int parasha, int s);
actually returns the static char* 'none' for parasha number 0,

this behavior can be changed in future versions of the C library. i do
not believe many usres  relay on this behavior, but if someone do
relay on this, a change in the behavior of the function may be
problematic. for example: if i will change the behavior of this
function, the script you suggested for printing only days with parasha
will not work correctly.

2010/5/25 Ron Varburg <linux-il at hotmail.com>:
>
> Package: libhdate-python
> Version: 1.4.12-2
> Severity: normal
>
> Consider the following:
>
> $ cat bugDemonstration
> #! /usr/bin/python
>
> import hdate
>
> h = hdate.Hdate()
> h.set_gdate(1, 1, 2010)
> julian = h.get_julian()
> parasha = h.get_parasha_string(julian)
> if parasha:
>     print parasha
>
> $ ./bugDemonstration
> none
>
>
> _________________________________________________________________
> Hotmail: שירות דואר אלקטרוני רב עוצמה בחינם עם האבטחה של Microsoft.
> https://signup.live.com/signup.aspx?id=60969
> _______________________________________________
> Debian-hebrew-package mailing list
> Debian-hebrew-package at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/debian-hebrew-package





More information about the Debian-hebrew-package mailing list