Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (85 - 87 of 121)

Ticket Resolution Summary Owner Reporter
#84 worksforme how to install PyYaml to a linux xi anonymous

Reported by anonymous, 5 years ago.

Description

Hi,

I installed the PyYaml? both to a linux machine and a window machine. When I run command "import _yaml", the window machine can find the module. But on the linux, it can not find the module. I found _yaml.pyd file under the site-packages, I did not find any file with _yaml at the linux machine. I find the files (_yaml.c _yaml.h _yaml.pxd _yaml.pyx) under ext directory in the download package. What am I missing?

Thanks, -Yuan

#52 fixed importing gtk breaks unicode loading xi anonymous

Reported by anonymous, 6 years ago.

Description

The following summarizes it pretty well, I guess:

>>> import yaml
>>> u = u"\N{skull and crossbones}"
>>> yaml.load(yaml.dump(u))
u'\u2620'
>>> import gtk
>>> yaml.load(yaml.dump(u))
'\xe2\x98\xa0'
#40 worksforme incomplete dict constructor xi dvd@…

Reported by dvd@…, 7 years ago.

Description

Hi all,

I'm puzzled by a strange behavior of yaml

If you run the attached script you obtain an output like this:

{'date': '732638',
'fields': {},
'guid': '0000010f153544cf8a314808007f000000000001',
'expiration': None}
{'date': '732638',
'fields': {'': {}, 'it': {'title': 'Hello World'}},
'guid': '0000010f153544cf8a314808007f000000000001',
'expiration': None}

*Please note the 'fields' value (I wrap the output to increase legibility)*

the first line is printed inside this custom constructor function:

def news_constructor(loader, node):
    nodes = loader.construct_mapping(node)
    print nodes
    return nodes

the second line (the correct one) is the print of the return values of this function

Can you help me or explain me this strange behavior?

Note: See TracQuery for help on using queries.