[issue8853] getaddrinfo should accept port of type long

2010-05-29 Thread AndiDog
New submission from AndiDog : socket.getaddrinfo("127.0.0.1", 80L) error: Int or String expected I would expect getaddrinfo to convert the port number to an integer. -- components: Library (Lib) messages: 106726 nosy: AndiDog priority: normal severity: normal status:

[issue8456] sqlite3.connect documentation is incorrect

2010-04-19 Thread AndiDog
New submission from AndiDog : The sqlite3.connect documentation (keyword args) is incorrect: sqlite3.connect(database[, timeout, isolation_level, detect_types, factory]) As opposed to the C implementation: if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O|diOiOi&quo

[issue8304] strftime and Unicode characters

2010-04-04 Thread AndiDog
AndiDog added the comment: Definitely a Windows problem. I did this on Visual Studio 2008: wchar_t out[1000]; time_t currentTime; time(¤tTime); tm *timeStruct = gmtime(¤tTime); size_t ret = wcsftime(out, 1000, L"%d%A", timeStruct); wprintf(L"ret = %

[issue8304] strftime and Unicode characters

2010-04-04 Thread AndiDog
AndiDog added the comment: Just installed Python 3.1.2, same problem. I'm using Windows XP SP2 with two Python installations (2.6.4 and now 3.1.2). -- ___ Python tracker <http://bugs.python.org/i

[issue8304] strftime and Unicode characters

2010-04-03 Thread AndiDog
New submission from AndiDog : There is inconsistent behavior in time.strftime, comparing Python 2.6 and 3.1. In 3.1, non-ASCII Unicode characters seem to get dropped whereas in 2.6 you can keep them using the necessary Unicode-to-UTF8 workaround. This should be fixed if it isn't int