This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| """ | |
| Python is a dynamic language, and it is relatively easy to dynamically create | |
| and modify things such as classes and objects. Functions, however, are quite | |
| challenging to create dynamically. | |
| One area where we might want to do this is in an RPC library, where a function | |
| defined on a server needs to be available remotely on a client. | |
| The naive solution is to simply pass arguments to a generic function that | |
| accepts `*args` and `**kwargs`. A lot of information is lost with this approach, | |
| however, in particular the number of arguments taken. Used in an RPC | |
| implementation, this also delays any error feedback until after the arguments |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sbt.ResolveException: unresolved dependency: org.scalaz#scalaz-core_2.10;6.0.4: several problems occurred while resolving dependency: org.scalaz#scalaz-core_2.10;6.0.4 {compile=[default(compile)]}: | |
| java.util.NoSuchElementException | |
| java.util.NoSuchElementException | |
| java.util.NoSuchElementException | |
| java.util.NoSuchElementException | |
| unresolved dependency: com.github.mpeltonen#sbt-idea;1.6.0: several problems occurred while resolving dependency: com.github.mpeltonen#sbt-idea;1.6.0 {compile=[default(compile)]}: | |
| java.util.NoSuchElementException | |
| java.util.NoSuchElementException | |
| java.util.NoSuchElementException |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| from bulbs.titan import Graph, DEBUG, ERROR | |
| from bulbs.config import Config | |
| from bulbs.model import Node, Relationship | |
| from bulbs.property import String, Integer, DateTime | |
| from bulbs.utils import current_timestamp | |
| class Person(Node): |