-
#!/usr/bin/python
def a_dict():
return {1:2}
def main():
dict_a = {
'hello': 'world'
}
dict_a.update(a_dict())
dict_b = {
'hello': 'again'
}
dict_b.update(a_dict())
main()
Gives the warning ../../../test.py:11: Object (dict_a) has no attribute (update)
Note that the corresponding operation for dict_b does not give a warning.
2009-11-04 10:44:32 UTC by nobody
-
The entry at PyPi http://pypi.python.org/pypi/PyChecker is for an old version.
It contains no download url, so it won't install with setuptools and easy_install.
2009-10-27 14:32:30 UTC by rliebscher
-
Code:
t = dict({'one': 2, 'two': '3'})
t['one'] -= len(t['two'])
Traceback:
pytest.py:2: INTERNAL ERROR -- STOPPED PROCESSING FUNCTION --
Traceback (most recent call last):
File "/usr/local/lib/python2.6/dist-packages/pychecker/warn.py", line 231, in _checkFunction
_checkCode(code, codeSource)
File...
2009-10-12 11:35:19 UTC by buscher
-
thomasvs committed patchset 28 of module CVSROOT to the PyChecker CVS repository, changing 1 files.
2009-09-30 07:36:21 UTC by thomasvs
-
thomasvs committed patchset 1367 of module pychecker to the PyChecker CVS repository, changing 1 files.
2009-09-28 20:34:03 UTC by thomasvs
-
I attempted to install pychecker on my Linux host using the setuptools package by running:
easy_install pychecker-0.8.18.tar.gz
The install appeared to work fine, but when I went to run pychecker (by running "pychecker" anywhere), nothing would happen. A lengthy investigation led me to setup.py, where I found that the pychecker script was being created empty by the build_scripts step, and was...
2009-08-19 20:04:09 UTC by elitak
-
thomasvs committed patchset 1366 of module pychecker to the PyChecker CVS repository, changing 2 files.
2009-07-28 22:34:05 UTC by thomasvs
-
ENV_SET: PYTHONPATH=c:\code\libs;c:\code\backend;c:\code\entwit;c:\code
$(SYS.PYTHONPATH) = c:\code\libs;c:\code\backend;c:\code\entwit;c:\code
ENV_SET: DJANGO_SETTINGS_MODULE=entwit.settings
$(SYS.DJANGO_SETTINGS_MODULE) = entwit.settings
c:\Python25\python.exe c:\Python25\Lib\site-packages\pychecker\checker.py -#100 C:\Code\entwit\twit\models.py
Process started >>>
Warnings.....
2009-07-28 07:43:29 UTC by nobody
-
thomasvs committed patchset 1365 of module pychecker to the PyChecker CVS repository, changing 2 files.
2009-06-27 20:14:56 UTC by thomasvs
-
thomasvs committed patchset 1364 of module pychecker to the PyChecker CVS repository, changing 2 files.
2009-06-27 18:50:40 UTC by thomasvs