[issue31218] del expects __delitem__ if __setitem__ is defined

2017-08-16 Thread Calvin
New submission from Calvin: I noticed some odd behaviour on classes defining __setitem__. Using del on a class defining __setitem__ but not __delitem__ results in "AttributeError: __delitem__". On classes definig neiter __setitem__ nor __delitem__ on the other hand this results in

[issue12554] Failed imports clean up module, but not sub modules

2011-07-13 Thread Calvin Spealman
New submission from Calvin Spealman : I came across this behavior when it was related to the shadowing of a small typo bug and took me forever to find. In my case, the original error was shadowed in a way that is unrelated to this bug, but lead to the module being imported twice (because it

[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman
New submission from Calvin Spealman : For example, if I had a project with a "src/" directory and inside that directory is a package named "foo", then I can run "python3 -m unittest discover -s ." and the tests will be not be found, but I can run "python3 -m

[issue11683] unittest discover should recurse into packages which are already in sys.path

2011-03-26 Thread Calvin Spealman
Calvin Spealman added the comment: Doesn't it already go into multiple directories? Isn't that a requirement of a recursive directory walk, which I understand discover does? I am also thinking the current documentation just doesn't make these details clear, so should that be

[issue4331] Can't use _functools.partial() created function as method

2008-11-16 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: I don't think this is any kind of bug, it is simply a product of only function objects being decorated automatically as methods. Your python version works because it is, in fact, a function. _functools.partial objects are no

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman <[EMAIL PROTECTED]>: -- nosy: +ironfroggy ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4579> ___ __

[issue4579] .read() and .readline() differ in failing

2008-12-07 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: Confirmed this behavior on my ubuntu installations but it fails properly on Windows. ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.pytho

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Calvin Spealman <[EMAIL PROTECTED]> added the comment: This should be applicable to 2.7, at least, as well. Here is a backport of the patch against trunk. -- nosy: +ironfroggy Added file: http://bugs.python.org/file12273/zsh-fnmatch-2.

[issue4573] zsh-style subpattern matching for fnmatch/glob

2008-12-07 Thread Calvin Spealman
Changes by Calvin Spealman <[EMAIL PROTECTED]>: -- versions: +Python 2.7 ___ Python tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue4573> ___ _

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
New submission from Calvin Spealman : The following example from the xmlrpclib docs has an obviously erronous call to close() after the actual return. (http://docs.python.org/library/xmlrpclib.html) def python_logo(): handle = open("python_logo.jpg") return xmlrpc

[issue5174] xmlrpclib docs include incorrect file closing

2009-02-06 Thread Calvin Spealman
Calvin Spealman added the comment: The patch attached uses a with statement for proper file closing in the examples. ___ Python tracker <http://bugs.python.org/issue5

[issue5191] Partial function application 'from the right'

2009-02-09 Thread Calvin Spealman
Changes by Calvin Spealman : -- nosy: +ironfroggy ___ Python tracker <http://bugs.python.org/issue5191> ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Calvin Davis
New submission from Calvin Davis : See attached image The behavior of min() (and probably max and other related functions) changes depending on the order of the parameters it sorts. In the image, I sorted two tuples, coordinate points, with the same Y value and different X values. When the

[issue41276] Min / Max returns different values depending on parameter order

2020-07-10 Thread Calvin Davis
Calvin Davis added the comment: Thank you for the clarification, sorry for the report! You're awesome! -- ___ Python tracker <https://bugs.python.org/is

[issue41276] Min / Max returns different values depending on parameter order

2020-07-12 Thread Calvin Davis
Calvin Davis added the comment: You say that confusing IDLE with Python is common for beginners, do you mean to suggest that IDLE isn't a Python interpreter? I know IDLE is essentially just an IDE and distinctly different than the python shell, but I wasn't aware the differe

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-16 Thread Calvin Cheng
New submission from Calvin Cheng: The attached test script works fine with IPv4 syslog: $ python test_syslog.py 192.168.1.4 (no errors reported) When running the attached script with python 3.5.2 on Ubuntu 16.04, received the following error: $ python3 test_syslog.py ::1 --- Logging error

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-16 Thread Calvin Cheng
Changes by Calvin Cheng : -- nosy: +Calvin Cheng -calcheng ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsub

[issue30378] SysLogHandler does not support IPv6 destinations

2017-05-16 Thread Calvin Cheng
Changes by Calvin Cheng : -- nosy: +calcheng -Calvin Cheng ___ Python tracker <http://bugs.python.org/issue30378> ___ ___ Python-bugs-list mailing list Unsub

[issue16388] Urllib screws up capitalization in "User-Agent" HTTP Header

2012-11-02 Thread Calvin Owens
New submission from Calvin Owens: Urllib encodes as: "User-agent" The correct form is: "User-Agent" This is quite important, as it makes this library totally unusable for scraping moronic websites which require a recognized User-Agent string to work correctly, of

[issue16388] Urllib screws up capitalization in "User-Agent" HTTP Header

2012-11-02 Thread Calvin Owens
Calvin Owens added the comment: 2275 hasn't been touched for almost 2 years. If there was a fix in v3.3, it ought to be backported. But it doesn't look like they ever came up with one. -- ___ Python tracker <http://bugs.python.o

[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

2015-09-24 Thread Calvin Walton
New submission from Calvin Walton: On Exherbo, the main C/C++ compilers are named e.g. "x86_64-pc-linux-gnu-cc" and "x86_64-pc-linux-gnu-c++", and they are symlinks to either (usually) gcc or (rarely) clang. Since distutils (in unixccompiler.py) is checking for the su

[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

2015-09-24 Thread Calvin Walton
Changes by Calvin Walton : -- keywords: +patch Added file: http://bugs.python.org/file40568/distutils-compiler-name.patch ___ Python tracker <http://bugs.python.org/issue25

[issue25229] distutils doesn't add "-Wl, " prefix to "-R" on Linux if the C compiler isn't named 'gcc'

2015-09-24 Thread Calvin Walton
Changes by Calvin Walton : Added file: http://bugs.python.org/file40569/distutils-compiler-name.patch ___ Python tracker <http://bugs.python.org/issue25229> ___ ___ Pytho

[issue25819] print "Hi" in python 3 exception handling doesn't work

2015-12-07 Thread Calvin Simpkinson
New submission from Calvin Simpkinson: When you execute the code: try: print "Hi" except: print("Hello") in python 3.5, it creates a syntax error in Terminal on Mac and a pop-up error in IDLE, while it should just print Hello in the console. -- messages: