Custom Query (121 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (40 - 42 of 121)

Ticket Resolution Summary Owner Reporter
#71 wontfix libyaml does not build with MinGW xi clive.crous@…

Reported by clive.crous@…, 7 years ago.

Description

I'm unable to build libyaml under MinGW due to assumtions within the source code that "WIN32" means Visual Studio. I use gcc, even in windows.

Simple patch to yaml.h#260 fixes this =>

  • yaml.h

     
    2626 
    2727/** The public API declaration. */ 
    2828 
    29 #ifdef WIN32 
     29#if defined(WIN32) && !defined(__GNUC__) 
    3030#   if defined(YAML_DECLARE_STATIC) 
    3131#       define  YAML_DECLARE(type)  type 
    3232#   elif defined(YAML_DECLARE_EXPORT) 

Thanks, Clive

#42 wontfix List objects are unhashable xi dfnord@…

Reported by dfnord@…, 8 years ago.

Description

Even though yaml specification allows lists ("flow collections on yaml jargon") to be keys, pyaml fails to use them, as lists are unhashable.

For instance, loading "[1, 2]: something" gives the error "found unacceptable key (list objects are unhashable)"

As a away around this, flow collections could be translated into a simple hasheable subclass of list, such as:

class HasheableList(list):
    #############################
    ## Public Methods
    #############################
    def __hash__(self):
        return hash(tuple(self))
#6 fixed pyyaml 3000 is not in the Python cheese shop xi dholth@…

Reported by dholth@…, 8 years ago.

Description

Also consider this word of wisdom from PEP 8: "Modules should have short, lowercase names, without underscores."

Thanks!

Note: See TracQuery for help on using queries.