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
| # Implicit | |
| result = self.make_rpc_call() # implicit switch here |
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
| # Explicit | |
| result = yield from self.make_rpc_call() |
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
| # Implicit | |
| query = self.session.query(Book) | |
| book = query.get(1) # implicit switch here |
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
| # Explicit | |
| query = self.session.query(Book) | |
| book = yield from query.get(1) |
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
| chapters = book.chapters | |
| do_something(chapters) |
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
| yield from fill_lazy_attribute(book.chapters) | |
| chapters = book.chapters | |
| do_something(chapters) |
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
| ## | |
| ## schema file for OpenLDAP 2.x | |
| ## Schema for storing Samba user accounts and group maps in LDAP | |
| ## OIDs are owned by the Samba Team | |
| ## | |
| ## Prerequisite schemas - uid (cosine.schema) | |
| ## - displayName (inetorgperson.schema) | |
| ## - gidNumber (nis.schema) | |
| ## | |
| ## 1.3.6.1.4.1.7165.2.1.x - attributetypes |
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
| diff --git a/lib/sqlalchemy/util/langhelpers.py b/lib/sqlalchemy/util/langhelpers.py | |
| index 8d6fe5a..e064b84 100644 | |
| --- a/lib/sqlalchemy/util/langhelpers.py | |
| +++ b/lib/sqlalchemy/util/langhelpers.py | |
| @@ -159,6 +159,9 @@ def %(name)s(%(args)s): | |
| fn.__func__.__doc__ = doc | |
| else: | |
| fn.__doc__ = doc | |
| + | |
| + decorated.__module__ = fn.__module__ |
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
| from __future__ import unicode_literals | |
| from collections import defaultdict | |
| import random | |
| import requests | |
| from graphviz import Digraph | |
| USERNAME = 'shauns' | |
| PASSWORD = '****' |
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
| from sqlalchemy import Column, Integer, Text, String, ForeignKey, \ | |
| UniqueConstraint, Table, inspect | |
| from sqlalchemy.ext.associationproxy import association_proxy | |
| from sqlalchemy.ext.orderinglist import ordering_list | |
| from sqlalchemy.orm import relationship, backref, was_deleted | |
| from conftest import Base, Session | |
| def _unique(session, cls, hashfunc, queryfunc, constructor, arg, kw): |