I hereby claim:
- I am fried on github.
- I am revfried (https://keybase.io/revfried) on keybase.
- I have a public key whose fingerprint is EB61 7397 1C29 3608 36C5 006B FC9F B5E1 214E E92B
To claim this, I am signing this object:
#### The Fibo generator | |
import math | |
import os | |
def fibo(a=0, b=1): | |
if a == 0 and b == 1: | |
skip = False | |
else: | |
skip = True | |
if not skip: |
from enum import IntEnum | |
class Type(IntEnum): | |
String = 0 | |
List = 1 | |
Struct = 2 | |
class Struct1: |
from __future__ import annotations | |
import unittest | |
from contextlib import ExitStack | |
from enum import Enum | |
from pathlib import Path | |
from tempfile import TemporaryDirectory | |
from lmdb_graph import Assoc, FieldIndex, Graph, Label, field, frozen, register_enum |
def test_kind_prop_nodes(self): | |
q = Query.n(Character, "chars", level=GTE(3)) | |
self.assertEqual(type(q).__name__, "_PropNodeQuery") | |
nodes = list(q) | |
self.assertEqual(len(nodes), 3) | |
expected_results = [("guile", 5), ("ken", 4), ("ryu", 4)] | |
q = q.extract("chars.name", "chars.level") | |
self.assertEqual(type(q).__name__, "_ExtractedQuery") | |
results = list(q) | |
results.sort() |
""" | |
When unittesting asyncio code, you should really check tasks | |
to see that you are not creating them and not checking them for results. | |
So you can get a set of tasks before and after the unittest runs, | |
then you need to be sure that somebody performed one of these operations | |
* await task | |
* task.result() | |
* task.exception() |
Generating Random Test Tar Files................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ |
Generating Random Test Tar Files................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ |
I hereby claim:
To claim this, I am signing this object:
// Copyright Arvid Norberg 2006-2013. Use, modification and distribution is | |
// subject to the Boost Software License, Version 1.0. (See accompanying | |
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) | |
#ifndef BYTES_HPP | |
#define BYTES_HPP | |
#include <string> | |
struct bytes |
diff libtorrent-rasterbar-0.16.16/bindings/python/src/big_number.cpp libtorrent/big_number.cpp | |
6a7,19 | |
> #include "bytes.hpp" | |
> | |
> long getHash(boost::python::object o) | |
> { | |
> using namespace boost::python; | |
> return PyObject_Hash(str(o).ptr()); | |
> } | |
> |