[issue35339] Populating instances of class automatically

2018-11-28 Thread Geoffrey Spear
Geoffrey Spear added the comment: It's impossible to guess exactly what you did from your vague description instead of actual code, but it may be covered by this FAQ question: https://docs.python.org/3/faq/programming.html#why-are-default-values-shared-between-objects (mutable objects

[issue34808] bytes[0] != bytes[0:1]

2018-09-26 Thread Geoffrey Spear
Geoffrey Spear added the comment: Indexing bytes giving an int is a feature. Some might argue it's a bad feature, but it was done on purpose. -- nosy: +geoffreyspear ___ Python tracker <https://bugs.python.org/issue34

[issue34682] Typo reports on docs@

2018-09-14 Thread Geoffrey Spear
Geoffrey Spear added the comment: "Means" is perfectly acceptable to use as a singular form: http://grammarist.com/usage/means/ (the rest of these all look like legitimate typos) -- nosy: +geoffreyspear ___ Python track

[issue33185] Python 3.7.0b3 fails in pydoc where b2 did not.

2018-03-30 Thread Geoffrey Spear
Geoffrey Spear <geoffsp...@gmail.com> added the comment: This behavior seems to have been introduced in commit ee3784594b33c72c3fdca6a71892d22f14045ab6 -- nosy: +geoffreyspear, ncoghlan ___ Python tracker <rep...@bugs.python.or

[issue24836] Consistent failure in test_email on OS X Snow Leopard buildbot for Python 3.5

2015-09-14 Thread Geoffrey Spear
Changes by Geoffrey Spear <geoffsp...@gmail.com>: -- nosy: +geoffreyspear ___ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue24836> ___

[issue24085] large memory overhead when pyc is recompiled

2015-05-01 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- components: +Interpreter Core nosy: +geoffreyspear type: - resource usage versions: +Python 3.5 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue24085

[issue23398] calendar.monthrange for February 2015

2015-02-05 Thread Geoffrey Spear
Geoffrey Spear added the comment: Returns weekday of first day of the month and number of days in month, for the specified year and month.. The 6 means February began on a Sunday, not that there are 6 weeks in the month. -- nosy: +geoffreyspear

[issue18454] distutils crashes when uploading to PyPI having only the username (no pw) defined

2015-02-01 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue18454 ___ ___ Python-bugs

[issue5187] distutils upload should prompt for the user/password too

2015-02-01 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5187 ___ ___ Python-bugs

[issue23230] Bug parsing integers with zero padding

2015-01-13 Thread Geoffrey Spear
Geoffrey Spear added the comment: This is not a bug, it's a deliberate change. Python 2.x doesn't work correctly; what you have there is an octal literal, not a 0-padded base-10 integer. Try 008 or 011 and be surprised that python 2 is broken and you'll see why this syntax was removed

[issue23211] test.test_logging.SMTPHandlerTest failing on Snow Leopard

2015-01-09 Thread Geoffrey Spear
New submission from Geoffrey Spear: This seems to be related to issue20605 where _socket.getaddrinfo() mysteriously fails on some Snow Leopard systems but not others; I don't think the cause of that one was ever explained but this appears to be the same error

[issue22532] A suggested change

2014-10-01 Thread Geoffrey Spear
Geoffrey Spear added the comment: From the documentation: Complex numbers have a real and imaginary part, which are each a floating point number. Needing to use int() to convert these floats to integers is not a bug, it's the expected behavior. -- nosy: +geoffreyspear

[issue22532] A suggested change

2014-10-01 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- components: +Interpreter Core type: compile error - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue22532

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: The same behavior exists in Python 3, however, I'm not sure it's a bug. The documentation says The characters in salt must be in the set [./a-zA-Z0-9]. Presumably the behavior when there is a $ in the salt is undefined by Python, and different on different

[issue22432] function crypt not working on OSX

2014-09-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: This is actually the expected behavior of crypt(3) on OS X. It doesn't support the $id$ modular format, and if the salt does not begin with an underscore only the first 2 bytes are used (presumably in your bug #2 you're changing parts of the salt beyond

[issue21929] Rounding properly

2014-09-08 Thread Geoffrey Spear
Geoffrey Spear added the comment: Robert: That is not related. Python 3's round() function, as documented, rounds halves to the even choice; what you describe is the expected behavior. -- nosy: +geoffreyspear ___ Python tracker rep

[issue19884] Importing readline produces erroneous output

2014-08-19 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19884 ___ ___ Python-bugs

[issue21555] gcmodule.c could use pytime.h

2014-05-24 Thread Geoffrey Spear
Geoffrey Spear added the comment: Per pitrou's suggestion, eliminate get_time altogether and use _PyTime_INTERVAL macro. -- Added file: http://bugs.python.org/file35340/issue21555-3.patch ___ Python tracker rep...@bugs.python.org http

[issue21555] gcmodule.c could use pytime.h

2014-05-23 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555 ___ ___ Python-bugs

[issue21555] gcmodule.c could use pytime.h

2014-05-23 Thread Geoffrey Spear
Geoffrey Spear added the comment: Attached patch replaces call to Python time.time() with _PyTime_gettimeofday() call. -- keywords: +patch Added file: http://bugs.python.org/file35324/issue21555.patch ___ Python tracker rep...@bugs.python.org http

[issue21555] gcmodule.c could use pytime.h

2014-05-23 Thread Geoffrey Spear
Geoffrey Spear added the comment: revised patch; thanks to berkerpeksag's code review. -- Added file: http://bugs.python.org/file35325/issue21555-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21555

[issue21015] support SSL_CTX_set_ecdh_auto on newer OpenSSLs

2014-04-10 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue21015 ___ ___ Python-bugs

[issue15037] curses.unget_wch and test_curses fail when linked with ncurses 5.7 and earlier

2014-03-23 Thread Geoffrey Spear
Geoffrey Spear added the comment: This test still fails in Python 3.5 on Snow Leopard with the system ncurses; it would be nice to at least skip the test on systems with older ncurses. -- nosy: +geoffreyspear versions: +Python 3.4, Python 3.5

[issue20975] Python 3.4 build info wrong in code snippet

2014-03-22 Thread Geoffrey Spear
Geoffrey Spear added the comment: There is no correct date and time Python 3.4 was built. I'm sure even the Windows binary installers weren't built simultaneously, and on Linux systems it will differ based on distro. My Python 3.4 says it was built 5 minutes ago, because it was. I suppose

[issue20806] os.times document points to wrong section of non-Linux manual

2014-02-28 Thread Geoffrey Spear
New submission from Geoffrey Spear: The documentation for os.times directs the reader: See the Unix manual page times(2) or the corresponding Windows Platform API documentation. However, the POSIX manual page in question is times(3P), and on OS X and BSD systems it's times(3). Falling back

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2014-02-17 Thread Geoffrey Spear
Geoffrey Spear added the comment: Attached patch to ignore OSError attempting to F_NOTIFY on a machine without dnotify but with sys/fcntl.h including #defines for F_NOTIFY and DN_MULTISHOT. The test as written attempts to skip the test, but fails when the header doesn't match the actual

[issue20605] test_socket (testGetaddrinfo) failing on OS X 10.6.8 (32-bit)

2014-02-12 Thread Geoffrey Spear
Geoffrey Spear added the comment: Ned: socket.gethostbyname(localhost) '127.0.0.1' socket.getaddrinfo(localhost, 00, 0, 0, 0, socket.AI_NUMERICSERV) Traceback (most recent call last): File stdin, line 1, in module File /usr/local/lib/python3.4/socket.py, line 530, in getaddrinfo

[issue7247] test_fcntl_64_bit from test_fcntl.py fails in Python 2.6.4

2014-02-12 Thread Geoffrey Spear
Geoffrey Spear added the comment: Reproduced this on a Cr-48 Chromebook running ChrUbuntu 3.4.0 in Python 3.3.4 and 3.4.0RC1. The kernel does appear to have been compiled with CONFIG_DNOTIFY=y, so that's not a complete solution. -- nosy: +geoffreyspear versions: +Python 3.3, Python

[issue20605] test_socket (testGetaddrinfo) failing on OS X 10.6.8 (32-bit)

2014-02-11 Thread Geoffrey Spear
New submission from Geoffrey Spear: On OS X 10.6.8, I'm getting the following result for test_socket: [cpython] % ./python.exe -m test test_socket [1/1] test_socket /Users/geoff/Documents/programming/cpython/Lib/test/test_socket.py:1721: RuntimeWarning: received malformed or improperly

[issue14075] argparse: unused method?

2012-02-25 Thread Geoffrey Spear
Geoffrey Spear geoffsp...@gmail.com added the comment: If people do override this provate method, would they really bother calling super() to get the essentially no-op functionality of the superclass method? FWIW, Google Code and github both seem to be free of any such code

[issue14075] argparse: unused method?

2012-02-21 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +geoffreyspear ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14075 ___ ___ Python-bugs

[issue8739] Update to smtpd.py to RFC 5321

2012-02-14 Thread Geoffrey Spear
Changes by Geoffrey Spear geoffsp...@gmail.com: -- nosy: +wooble ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8739 ___ ___ Python-bugs-list