Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (82 - 84 of 121)

Ticket Resolution Summary Owner Reporter
#107 invalid remove unused variable in representer xi py4fun@…

Reported by py4fun@…, 4 years ago.

Description

remove unused list self.object_keeper in representer

Index: C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py
===================================================================
--- C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py	(revision 298)
+++ C:/projects/workspace_python/PyYAML_2/lib/yaml/representer.py	(working copy)
@@ -26,14 +26,12 @@
         self.default_style = default_style
         self.default_flow_style = default_flow_style
         self.represented_objects = {}
-        self.object_keeper = []
         self.alias_key = None
 
     def represent(self, data):
         node = self.represent_data(data)
         self.serialize(node)
         self.represented_objects = {}
-        self.object_keeper = []
         self.alias_key = None
 
     def get_classobj_bases(self, cls):
@@ -54,7 +52,6 @@
                 #    raise RepresenterError("recursive objects are not allowed: %r" % data)
                 return node
             #self.represented_objects[alias_key] = None
-            self.object_keeper.append(data)
         data_types = type(data).__mro__
         if type(data) is types.InstanceType:
             data_types = self.get_classobj_bases(data.__class__)+list(data_types)

#108 invalid Setup.py install missing section header error xi anonymous

Reported by anonymous, 4 years ago.

Description

When I try to install pysyck on mac osx 10.5.5 by typing python setup. py install I get the following error:

Traceback (most recent call last):
  File "setup.py", line 121, in <module>
    'build_ext': PySyckBuildExt,
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py", line 125, in setup
    dist.parse_config_files()
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py", line 373, in parse_config_files
    parser.read(filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ConfigParser.py", line 267, in read
    self._read(fp, filename)
  File "/System/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/ConfigParser.py", line 462, in _read
    raise MissingSectionHeaderError(fpname, lineno, line)
ConfigParser.MissingSectionHeaderError: File contains no section headers.
file: /Users/s031540/.pydistutils.cfg, line: 1
'{\\rtf1\\ansi\\ansicpg1252\\cocoartf949\\cocoasubrtf350\n'

I used to get another error, syck.h not found, then I made a file in my home folder thanks to xi:

I'd suggest you to create a file named .pydistutils.cfg in your home directory and add the following lines to it:

[build_ext]
include_dirs=/usr/local/include
library_dirs=/usr/local/lib

The Syck.h error disappeared, but I can't get the new one to go away, nor can I find solutions online.

I anybody has any idea, that would be great!

#112 worksforme error on help() xi donny.viszneki@…

Reported by donny.viszneki@…, 4 years ago.

Description

Using Windows XP and Python 2.5.1

C:\Documents and Settings\Joe Sizlack\Desktop\hackers>easy_install pyyaml
Searching for pyyaml
Reading http://pypi.python.org/simple/pyyaml/
Couldn't find index page for 'pyyaml' (maybe misspelled?)
Scanning index of all packages (this may take a while)
Reading http://pypi.python.org/simple/
Reading http://pypi.python.org/simple/PyYAML/
Reading http://pyyaml.org/wiki/PyYAML
Best match: PyYAML 3.07
Downloading http://pyyaml.org/download/pyyaml/PyYAML-3.07.win32-py2.5.exe
Processing PyYAML-3.07.win32-py2.5.exe
creating 'c:\docume~1\joesiz~1\locals~1\temp\easy_install-5slfsi\PyYAML-3.07-py2
.5-win32.egg' and adding 'c:\docume~1\joesiz~1\locals~1\temp\easy_install-5slfsi
\PyYAML-3.07-py2.5-win32.egg.tmp' to it
Moving PyYAML-3.07-py2.5-win32.egg to c:\python25\lib\site-packages
Adding PyYAML 3.07 to easy-install.pth file

Installed c:\python25\lib\site-packages\pyyaml-3.07-py2.5-win32.egg
Processing dependencies for pyyaml
Finished processing dependencies for pyyaml

C:\Documents and Settings\Joe Sizlack\Desktop\hackers>python
Python 2.5.1 (r251:54863, Apr 18 2007, 08:51:08) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import yaml
>>> help(yaml)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "C:\Python25\lib\site.py", line 346, in __call__
    return pydoc.help(*args, **kwds)
  File "C:\Python25\lib\pydoc.py", line 1645, in __call__
    self.help(request)
  File "C:\Python25\lib\pydoc.py", line 1689, in help
    else: doc(request, 'Help on %s:')
  File "C:\Python25\lib\pydoc.py", line 1481, in doc
    pager(title % desc + '\n\n' + text.document(object, name))
  File "C:\Python25\lib\pydoc.py", line 324, in document
    if inspect.ismodule(object): return self.docmodule(*args)
  File "C:\Python25\lib\pydoc.py", line 1072, in docmodule
    contents.append(self.document(value, key, name))
  File "C:\Python25\lib\pydoc.py", line 325, in document
    if inspect.isclass(object): return self.docclass(*args)
  File "C:\Python25\lib\pydoc.py", line 1196, in docclass
    lambda t: t[1] == 'method')
  File "C:\Python25\lib\pydoc.py", line 1146, in spill
    name, mod, object))
  File "C:\Python25\lib\pydoc.py", line 326, in document
    if inspect.isroutine(object): return self.docroutine(*args)
  File "C:\Python25\lib\pydoc.py", line 1257, in docroutine
    doc = getdoc(object) or ''
  File "C:\Python25\lib\pydoc.py", line 82, in getdoc
    result = inspect.getdoc(object) or inspect.getcomments(object)
  File "C:\Python25\lib\inspect.py", line 521, in getcomments
    lines, lnum = findsource(object)
  File "C:\Python25\lib\inspect.py", line 510, in findsource
    if pat.match(lines[lnum]): break
IndexError: list index out of range
>>>
Note: See TracQuery for help on using queries.