The two functions are doing something completely different: one is
generating a string representation that can be reinput into python, and the
other is generating a list of digits (base 2) for further manipulation.  I
think our current behavior is perfectly acceptable, though adding more
documentation is always useful.
David


On Fri, Feb 15, 2013 at 10:03 PM, Jason Grout
<jason-s...@creativetrax.com>wrote:

> On 2/15/13 10:58 PM, Robert Bradshaw wrote:
>
>> That doesn't play well with indexing:
>>
>>
>> sage: bin(-10)[3]
>> '1'
>> sage: bin(-10)[2]
>> 'b'
>>
>
> No, you're right, but it is valid python still:
>
> >>> -0b1010
> -10
>
> It seems to indicate that having a separate sign bit would make sense...
>
>
> Jason
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "sage-devel" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to 
> sage-devel+unsubscribe@**googlegroups.com<sage-devel%2bunsubscr...@googlegroups.com>
> .
> To post to this group, send email to sage-devel@googlegroups.com.
> Visit this group at 
> http://groups.google.com/**group/sage-devel?hl=en<http://groups.google.com/group/sage-devel?hl=en>
> .
> For more options, visit 
> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
> .
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-devel+unsubscr...@googlegroups.com.
To post to this group, send email to sage-devel@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-devel?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to