[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 as class rather than instance attributes will display similar 
behavior. This isn't a bug.)

--
nosy: +geoffreyspear

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



[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/issue34808>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 tracker 
<https://bugs.python.org/issue34682>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.org>
<https://bugs.python.org/issue33185>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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>
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23398
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--
nosy: +geoffreyspear

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23230
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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:


==
ERROR: test_basic (test.test_logging.SMTPHandlerTest)
--
Traceback (most recent call last):
  File /Users/geoff/Documents/programming/cpython/Lib/test/test_logging.py, 
line 930, in test_basic
sockmap)
  File /Users/geoff/Documents/programming/cpython/Lib/test/test_logging.py, 
line 687, in __init__
decode_data=True)
  File /Users/geoff/Documents/programming/cpython/Lib/smtpd.py, line 654, in 
__init__
type=socket.SOCK_STREAM)
  File /Users/geoff/Documents/programming/cpython/Lib/socket.py, line 730, in 
getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

--
components: Macintosh, Tests
messages: 233779
nosy: geoffreyspear, ned.deily, ronaldoussoren
priority: normal
severity: normal
status: open
title: test.test_logging.SMTPHandlerTest failing on Snow Leopard
type: behavior
versions: Python 3.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue23211
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22532
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 platforms.

--
nosy: +geoffreyspear

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22432
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 the first 2 bytes.)

Python's behavior differing based on the underlying C library on the system is 
documented; this is neither a bug in Python or in OS X crypt (although it could 
be argued that OS X crypt is kind of useless and insecure...)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue22432
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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...@bugs.python.org
http://bugs.python.org/issue21929
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue21555
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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://bugs.python.org/issue21555
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue15037
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 bumping to some date after 3.4 was released makes sense, but trying 
to get it to show the user exactly what they're going to see when they run 
Python is impossible.

--
nosy: +geoffreyspear

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20975
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 to man times without specifying a manual 
section also doesn't work, since this finds the bash builtin rather than the 
library function.

--
assignee: docs@python
components: Documentation
messages: 212424
nosy: docs@python, geoffreyspear
priority: normal
severity: normal
status: open
title: os.times document points to wrong section of non-Linux manual
versions: Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20806
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 capabilities of fcntl(2).

--
keywords: +patch
Added file: http://bugs.python.org/file34124/issue7247.patch

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7247
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 8] nodename nor servname provided, or not known


And to show that using AI_NUMERICSERV isn't *completely* broken on my machine:

 socket.getaddrinfo(localhost, 80, 0, 0, 0, socket.AI_NUMERICSERV)
[(AddressFamily.AF_INET: 2, SocketType.SOCK_DGRAM: 2, 17, '', ('127.0.0.1', 
80)), (AddressFamily.AF_INET: 2, SocketType.SOCK_STREAM: 1, 6, '', 
('127.0.0.1', 80)), (AddressFamily.AF_INET6: 30, SocketType.SOCK_DGRAM: 2, 
17, '', ('::1', 80, 0, 0)), (AddressFamily.AF_INET6: 30, 
SocketType.SOCK_STREAM: 1, 6, '', ('::1', 80, 0, 0)), 
(AddressFamily.AF_INET6: 30, SocketType.SOCK_DGRAM: 2, 17, '', 
('fe80::1%lo0', 80, 0, 1)), (AddressFamily.AF_INET6: 30, 
SocketType.SOCK_STREAM: 1, 6, '', ('fe80::1%lo0', 80, 0, 1))]

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20605
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue7247
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-truncated ancillary data
  result = sock.recvmsg(bufsize, *args)
/Users/geoff/Documents/programming/cpython/Lib/test/test_socket.py:1812: 
RuntimeWarning: received malformed or improperly-truncated ancillary data
  result = sock.recvmsg_into([buf], *args)
test test_socket failed -- Traceback (most recent call last):
  File /Users/geoff/Documents/programming/cpython/Lib/test/test_socket.py, 
line 1169, in testGetaddrinfo
socket.getaddrinfo(localhost, None, 0, 0, 0, socket.AI_NUMERICSERV)
socket.gaierror: [Errno 8] nodename nor servname provided, or not known

1 test failed:
test_socket


According to the OS X manpage for getaddrinfo(3), (and RFC 3493) this error is 
the expected behavior for a POSIX socket implementation:

AI_NUMERICSERV  If the AI_NUMERICSERV bit is set, then a
non-null servname string supplied shall be
a numeric port string.  Otherwise, an
EAI_NONAME error shall be returned.  This
bit shall prevent any type of name resolu-
tion service (for example, NIS+) from
being invoked.

(servname is the 2nd argument to getaddrinfo(), where the test passes None. 
EAI_NONAME is Errno 8.)

Confirmed on 2.7.6, 3.3 and current HEAD of 3.4; the offending test code didn't 
exist in 3.2 and earlier.

--
components: Library (Lib), Tests
messages: 211053
nosy: geoffreyspear
priority: normal
severity: normal
status: open
title: test_socket (testGetaddrinfo) failing on OS X 10.6.8 (32-bit)
versions: Python 2.7, Python 3.3, Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue20605
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue14075
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com