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
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
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
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
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
Changes by Calvin Spealman <[EMAIL PROTECTED]>:
--
nosy: +ironfroggy
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4579>
___
__
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
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.
Changes by Calvin Spealman <[EMAIL PROTECTED]>:
--
versions: +Python 2.7
___
Python tracker <[EMAIL PROTECTED]>
<http://bugs.python.org/issue4573>
___
_
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
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
Changes by Calvin Spealman :
--
nosy: +ironfroggy
___
Python tracker
<http://bugs.python.org/issue5191>
___
___
Python-bugs-list mailing list
Unsubscribe:
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
Calvin Davis added the comment:
Thank you for the clarification, sorry for the report! You're awesome!
--
___
Python tracker
<https://bugs.python.org/is
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
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
Changes by Calvin Cheng :
--
nosy: +Calvin Cheng -calcheng
___
Python tracker
<http://bugs.python.org/issue30378>
___
___
Python-bugs-list mailing list
Unsub
Changes by Calvin Cheng :
--
nosy: +calcheng -Calvin Cheng
___
Python tracker
<http://bugs.python.org/issue30378>
___
___
Python-bugs-list mailing list
Unsub
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
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
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
Changes by Calvin Walton :
--
keywords: +patch
Added file: http://bugs.python.org/file40568/distutils-compiler-name.patch
___
Python tracker
<http://bugs.python.org/issue25
Changes by Calvin Walton :
Added file: http://bugs.python.org/file40569/distutils-compiler-name.patch
___
Python tracker
<http://bugs.python.org/issue25229>
___
___
Pytho
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:
24 matches
Mail list logo