[issue36439] Inconsistencies with datetime.fromtimestamp(t) when t < 0

2020-10-13 Thread Dobatymo


Dobatymo  added the comment:

> I've encountered an issue on anaconda python on windows 10 v1909 which I 
> suspect is related. It looks like no dates in 1970 can be converted to 
> datetime.timestamp():

Yeah... there is more related weirdness going on.

>>> datetime(1970, 1, 3).astimezone(timezone.utc)
datetime.datetime(1970, 1, 2, 16, 0, tzinfo=datetime.timezone.utc)
>>> datetime(1970, 1, 2).astimezone(timezone.utc)
Traceback (most recent call last):
  File "", line 1, in 
OSError: [Errno 22] Invalid argument
>>> datetime(1970, 1, 1, 16, 0, tzinfo=timezone.utc)
datetime.datetime(1970, 1, 1, 16, 0, tzinfo=datetime.timezone.utc)

--
nosy: +Dobatymo

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



[issue31116] base85 z85 variant encoding

2020-02-14 Thread Dobatymo


Dobatymo  added the comment:

base64.b85encode does not use ", ' or \ as well.

That's the _b85alphabet 

_b85alphabet = (b"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"
b"abcdefghijklmnopqrstuvwxyz!#$%&()*+-;<=>?@^_`{|}~")

--
nosy: +Dobatymo

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



[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-05 Thread Dobatymo


Change by Dobatymo :


--
resolution:  -> works for me
stage:  -> resolved
status: open -> closed

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



[issue37005] bz2 module doesn't write end-of-stream marker

2019-06-02 Thread Dobatymo


Dobatymo  added the comment:

Sorry, I forgot about the bit alignment when I was checking for the footer. 
This can be closed then.

--

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



[issue37005] bz2 module doesn't write end-of-stream marker

2019-05-21 Thread Dobatymo


New submission from Dobatymo :

According to https://en.wikipedia.org/wiki/Bzip2 the reference implementation 
of bzip2 writes an end-of-stream marker (also called stream footer) with a 
magic number and a stream checksum to the file.

Python does not do so. The files can still be read by all bzip2 compatible 
software I tried. For completeness and better error detection however, writing 
this marker (optionally maybe) would be useful.

--
messages: 343143
nosy: Dobatymo
priority: normal
severity: normal
status: open
title: bz2 module doesn't write end-of-stream marker
type: behavior
versions: Python 2.7, Python 3.5, Python 3.6, Python 3.7, Python 3.8, Python 3.9

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