Skip to content
Snippets Groups Projects
  1. May 27, 2011
  2. May 26, 2011
  3. May 25, 2011
  4. May 26, 2011
  5. May 24, 2011
    • Peter Arrenbrecht's avatar
      wireproto: enable optional args for known() for future extensibility · 5adb52524779
      Peter Arrenbrecht authored
      Firstly, I think we should do this for all new wire commands, just
      to be on the safe side. So I want to get this into the 1.9 release.
      
      Secondly, there actually is potential here that sometimes the server
      can know that the number of its nodes which can possibly still be
      undecided on the client is small. It might then just send them along
      directly (cutting short the end game). This, however, requires
      walking the graph on the server, which can be expensive, so for the
      moment we're not actually doing it.
      5adb52524779
  6. May 26, 2011
  7. May 25, 2011
  8. May 24, 2011
  9. May 23, 2011
  10. May 18, 2011
    • Adrian Buehlmann's avatar
      pure: provide more correct implementation of posixfile for Windows · 5ef18e28df19
      Adrian Buehlmann authored
      requires ctypes
      
      Why is posixfile a class?
      
      Because the implementation needs to use the Python library call os.fdopen [1],
      which sets the 'name' attribute on the Python file object it creates to the
      mostly meaningless string '<fdopen>', since file descriptors don't have a name.
      
      But users of posixfile depend on the name attribute [2] being set to a proper
      value, like Python's built-in 'open' function sets it on file objects.
      
      Python file's name attribute is read-only, so we can't just assign to it after
      the file object has alrady been created.
      
      To solve this problem, we save the name of the file on a wrapper object,
      and delegate the file function calls to the wrapped (private) file object
      using __getattr__.
      
      [1] http://docs.python.org/library/os.html#os.fdopen
      [2] http://docs.python.org/library/stdtypes.html#file.name
      5ef18e28df19
  11. May 23, 2011
  12. May 22, 2011
  13. May 21, 2011
Loading