Change by Mark Grandi :
--
title: functools.singledispatchfunction has confusing error message if no
position arguments are passed in -> functools.singledispatchfunction has
confusing error message if no positional arguments are pas
New submission from Mark Grandi :
this is with python 3.8:
```plaintext
PS C:\Users\mark> py -3 --version --version
Python 3.8.2 (tags/v3.8.2:7b3ab59, Feb 25 2020, 23:03:10) [MSC v.1916 64 bit
(AMD64)]
```
So when using functools.singledispatch or functools.singledispatchmethod, you
n
Mark Grandi added the comment:
same issue here, if we can't fix it then maybe we should edit the documentation
to not suggest that @classmethod works?
--
nosy: +markgrandi
___
Python tracker
<https://bugs.python.org/issue39
New submission from Mark Grandi :
It seems that something with windows 10, python 3.8, or both changed where
`locale.getlocale()` is now returning strange results
According to the documentation:
https://docs.python.org/3/library/locale.html?highlight=locale%20getlocale#locale.getlocale
Mark Grandi added the comment:
Is there anything that can be done to help this issue move along? I just ran
into it just now
--
nosy: +markgrandi
___
Python tracker
<https://bugs.python.org/issue9
Mark Grandi added the comment:
While I will say that is slightly easier than subclassing, it still requires a
function, or a variation of that to be present in every project that wants to
have a RotatingHandler + compression, and extra lines if you use
logging.config.dictConfig, as you
Mark Grandi added the comment:
I just ran into this myself, and would challenge the notion that just because
few people complain about the fact that built in compression isn't built in for
logging handlers (such as TimedRotatingFileHandler), that it isn't a needed
feature
Mark Grandi added the comment:
Oh, I didn't realize that both REG_QWORD and REG_QWORD_LITTLE_ENDIAN had the
same value, that works then.
--
resolution: fixed ->
status: closed -> open
___
Python tracker <rep...@bugs.python.o
Mark Grandi added the comment:
in 'test_winreg.py', there should probably be a test that covers
REG_QWORD_LITTLE_ENDIAN, even if they are essentially equivalent
Also, in Py2Reg and Reg2Py, it seems that both are missing the 'case' clause
for REG_QWORD_LITTLE_ENDIAN as well
case REG_QWORD
Mark Grandi added the comment:
@hakril: ok, that makes sense, I'm not a windows/win32 programmer by any means
so I was mostly going on the microsoft web docs
also the patch by hakril includes the documentation from my patch, so that
patch should be the one considered (as a FYI
Mark Grandi added the comment:
why do you say that QWORD is not present in windows.h?
I found it here:
https://msdn.microsoft.com/en-us/library/windows/desktop/aa383751%28v=vs.85%29.aspx
typedef unsigned __int64 QWORD;
--
___
Python tracker <
Mark Grandi added the comment:
I Attempted to modify Reg2Py and Py2Reg to handle the QWORDs, this is assuming
that the only thing that needs to change is just using
PyLong_AsUnsignedLongLong()/FromUnsignedLongLong() instead of just
UnsignedLong()
the patch has the same changes as the 'part1
New submission from Mark Grandi:
The winreg module has constants for the different Windows registry types:
https://docs.python.org/3/library/winreg.html?highlight=winreg#value-types
It also links to the Microsoft documentation on the registry types, and I
noticed that python doesn't have
New submission from Mark Grandi:
In the asyncio documentation, specifically asyncio-eventloop.rst, in the
description for BaseEventLoop.call_at(), it has:
Arrange for the *callback* to be called at the given absolute timestamp
*when* (an int or float), using the same time reference
Mark Grandi added the comment:
I don't have an idea how to make it easier and still meet all/most
requirements and without cluttering up the api.
That is what i mentioned in my original post, a lot of the time users just
_don't care_ about a lot of the stuff that a tar archive can store
Mark Grandi added the comment:
I still don't see why TarFile.add() can't be changed to accept a file like
object so users don't have to fumble around with a TarInfo object when they
just want add a file like object, and don't care about the permission bits and
whatnot. It also says un
Mark Grandi added the comment:
I was just thinking that if os.stat fails, then you try getting the size by
just calling len() on it, as stuff like io.BytesIO and io.StringIO will respond
to that.
But if we are not changing the behavior of the API, at the very least there
needs
New submission from Mark Grandi:
So I ran into this problem today, where near impossible to create a
tarfile.TarFile object, then add files to the archive, when the files are in
memory file-like objects (like io.BytesIO, io.StringIO, etc)
code example:
###
import tarfile, io
Changes by Mark Grandi markgra...@gmail.com:
--
nosy: +markgrandi
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14156
___
___
Python-bugs-list
Mark Grandi added the comment:
are any more changes needed to the code that is already posted as a patch in
this bug report? or are the changes you wanted to see happen in msg157669 not
happen yet?
--
___
Python tracker rep...@bugs.python.org
http
Mark Grandi added the comment:
Where are you even seeing these json property lists? I just checked the most
recent documentation for NSPropertyListSerialization, and they have not updated
the enum for NSPropertyListFormat. It seems that if even Apple doesn't support
writing json property
Mark Grandi markgra...@gmail.com added the comment:
Hi,
I noticed in the latest message that d9pounces posted that JSON format does
not allow dates and data, so XML is used by default to write files.. Rthe XML
version of plists also do not really 'support' those types, and they are
converted
22 matches
Mail list logo