search for: docstring

Displaying 20 results from an estimated 86 matches for "docstring".

Did you mean: docstrings
2018 Aug 22
4
[PATCH] generator: Do not claim copyright for future years
...ike /usr/include/guestfs-gobject.h /usr/lib/perl5/vendor_perl/5.26.2/x86_64-linux-thread-multi/Sys/Guestfs.pm /usr/lib64/python2.7/site-packages/guestfs.py /usr/lib64/ocaml/guestfs/guestfs.mli Commits like 212762c59351822e9db7d3dc82afe1765808d918 will take care of updating the year. --- generator/docstrings.ml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/generator/docstrings.ml b/generator/docstrings.ml index fa7b1668a..b480d036e 100644 --- a/generator/docstrings.ml +++ b/generator/docstrings.ml @@ -68,9 +68,7 @@ let version_added = function Some (sprintf "%d.%d.%d...
2018 Aug 22
0
Re: [PATCH] generator: Do not claim copyright for future years
.../usr/lib/perl5/vendor_perl/5.26.2/x86_64-linux-thread-multi/Sys/Guestfs.pm > /usr/lib64/python2.7/site-packages/guestfs.py > /usr/lib64/ocaml/guestfs/guestfs.mli > > Commits like 212762c59351822e9db7d3dc82afe1765808d918 > will take care of updating the year. > --- > generator/docstrings.ml | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > > diff --git a/generator/docstrings.ml b/generator/docstrings.ml > index fa7b1668a..b480d036e 100644 > --- a/generator/docstrings.ml > +++ b/generator/docstrings.ml > @@ -68,9 +68,7 @@ let version_added = function...
2015 May 28
4
[PATCH 1/4] generator: move api_version to a common version_added
This way the version string of each API can be used also in other generator modules. Mostly code motion, no actual behaviour changes. --- generator/c.ml | 21 ++++++++++----------- generator/docstrings.ml | 6 ++++++ 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/generator/c.ml b/generator/c.ml index 63dc09a..a2b9c94 100644 --- a/generator/c.ml +++ b/generator/c.ml @@ -301,8 +301,10 @@ I<The caller must free the returned buffer after use>.\n\n" pr "This fu...
2016 Feb 23
7
[PATCH 0/4] Various tweaks to the generator.
Use interfaces files (*.mli files) instead of exporting all symbols randomly. Change the 'file is generated' warnings at the top of generated files so they accurately describe which source file generates each output file. Rich.
2016 Mar 18
0
Fwd: libguestfs patch
...demann" <bwiedemann@suse.de> To: rjones@redhat.com Subject: libguestfs patch User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 Hi, here is a patch for making libguestfs build more reproducibly Ciao Bernhard M. Index: libguestfs-1.26.10/generator/docstrings.ml =================================================================== --- libguestfs-1.26.10.orig/generator/docstrings.ml +++ libguestfs-1.26.10/generator/docstrings.ml @@ -51,9 +51,7 @@ fact that they are deprecated indicates with correct use of these functions." prefix alt in Some tx...
2019 Nov 23
2
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...case we have to do: buf[:] = r.read() Since we work on v2 now, I think we should consider this change. An uglier alternative is: def preadinto(h, buf, offset): Matching python read() and readinto() interface. > > test-python-plugin.py > > > > This text can use python docstring: > > > > """ > > This tests ... > > """ > > Good point, I'll fix this. We could probably also have nbdkit do > something with the docstring, such as printing it in --help output, > although that's something for another patch...
2009 Jun 15
0
python bindings update
Hi, here is a webpage for the Python bindings: http://certik.github.com/python-theora/ Changes since the last time: * tests added, e.g. there is a script that downloads some theora tests videos and then I test the python wrappers on them * every single method has a docstring with a doctested example * sphinx documentation added, see the link above * couple minor changes, like better control what arrays go to the encoder I suggest you browse the theora module docs: http://certik.github.com/python-theora/module_theora.html and go over the examples. This should give yo...
2015 Aug 31
0
[PATCH v5 2/2] fish: add journal-view command (RHBZ#988100)
...am index a3fe50d..bd466c2 100644 --- a/generator/Makefile.am +++ b/generator/Makefile.am @@ -37,6 +37,7 @@ sources = \ haskell.ml \ java.ml \ lua.ml \ + journal.ml \ main.ml \ ocaml.ml \ optgroups.ml \ @@ -60,13 +61,14 @@ sources = \ objects = \ types.cmo \ utils.cmo \ + pr.cmo \ + docstrings.cmo \ + journal.cmo \ actions.cmo \ structs.cmo \ optgroups.cmo \ prepopts.cmo \ events.cmo \ - pr.cmo \ - docstrings.cmo \ checks.cmo \ c.cmo \ xdr.cmo \ diff --git a/generator/actions.ml b/generator/actions.ml index 13c8bc8..e914fd3 100644 --- a/generator/actions.ml +++ b/generat...
2011 May 06
1
Create and access several instances of a C++ class from R
Hello We have a C++ class with several methods that manipulate an object. How is it possible to create several instances of that class *from R* in the C++ realm, which can then be accessed via a given name character? Symbolic example (we hope this illustrates our problem): // C++ side: class Foo{ ... } // perhaps: void my_new_instance_wrapper("the_character") // plain to see that I am
2018 Apr 20
1
[PATCH] uefi: remove last references to kraxel's old edk2 builds
...so remove the last ones, and the supporting code. --- generator/UEFI.ml | 6 ------ v2v/utils.ml | 1 - 2 files changed, 7 deletions(-) diff --git a/generator/UEFI.ml b/generator/UEFI.ml index 5161e28ee..1ff3f84d2 100644 --- a/generator/UEFI.ml +++ b/generator/UEFI.ml @@ -30,12 +30,6 @@ open Docstrings (* Order is significant *within architectures only*. *) let firmware = [ - "i386", - "/usr/share/edk2.git/ovmf-ia32/OVMF_CODE-pure-efi.fd", - None, - "/usr/share/edk2.git/ovmf-ia32/OVMF_VARS-pure-efi.fd", - []; - "x86_64", "...
2010 Dec 09
1
displaying a note or comment when --format doc
I''m new to rspec, so, I might be coloring outside the lines, but, there have been several instances where I have wanted to display a comment or note. for example: describe "truck" do it "should require model" do end end rspec spec --format doc truck should require model What I mean by display a comment or note would be like: truck NOTE: blah, blah,
2019 Nov 23
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...e best. I thought bytearray & bytes were the same thing :-/ Would adding this break existing nbdkit Python scripts? Should this be considered for v2 of the API? Are there performance implications / improvements from doing this? > test-python-plugin.py > > This text can use python docstring: > > """ > This tests ... > """ Good point, I'll fix this. We could probably also have nbdkit do something with the docstring, such as printing it in --help output, although that's something for another patch series. > > + h = nbd.NBD (...
2015 Aug 27
0
[PATCH v4 2/2] fish: add journal-view command
...am index a3fe50d..bd466c2 100644 --- a/generator/Makefile.am +++ b/generator/Makefile.am @@ -37,6 +37,7 @@ sources = \ haskell.ml \ java.ml \ lua.ml \ + journal.ml \ main.ml \ ocaml.ml \ optgroups.ml \ @@ -60,13 +61,14 @@ sources = \ objects = \ types.cmo \ utils.cmo \ + pr.cmo \ + docstrings.cmo \ + journal.cmo \ actions.cmo \ structs.cmo \ optgroups.cmo \ prepopts.cmo \ events.cmo \ - pr.cmo \ - docstrings.cmo \ checks.cmo \ c.cmo \ xdr.cmo \ diff --git a/generator/actions.ml b/generator/actions.ml index 13c8bc8..e914fd3 100644 --- a/generator/actions.ml +++ b/generat...
2012 Sep 11
2
R equivalent of python module structure and functionality?
...se that's not specific enough :-) I know how to structure files/ modules in python like http://python.net/~goodger/projects/pycon/2007/idiomatic/cmdline.py (i.e., generically, http://python.net/~goodger/projects/pycon/2007/idiomatic/handout.html#module-structure > """module docstring""" > > # imports > # constants > # exception classes > # interface functions > # classes > # internal functions & classes > > def main(...): > ... > > if __name__ == '__main__': > status = main() > sys.exit(status) )...
2019 Nov 24
0
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...lier alternative is: > > def preadinto(h, buf, offset): > > Matching python read() and readinto() interface. Is this different somehow from def pread(h, buf, offset) defined above? Rich. > > > test-python-plugin.py > > > > > > This text can use python docstring: > > > > > > """ > > > This tests ... > > > """ > > > > Good point, I'll fix this. We could probably also have nbdkit do > > something with the docstring, such as printing it in --help output, > > althoug...
2016 Feb 23
0
[PATCH 1/4] generator: Add interfaces to all modules.
...generator/c.mli | 41 +++++++++++++++++++++++++++++++++++++++++ generator/checks.mli | 18 ++++++++++++++++++ generator/csharp.mli | 19 +++++++++++++++++++ generator/customize.mli | 22 ++++++++++++++++++++++ generator/daemon.mli | 23 +++++++++++++++++++++++ generator/docstrings.mli | 34 ++++++++++++++++++++++++++++++++++ generator/erlang.mli | 20 ++++++++++++++++++++ generator/errnostring.mli | 21 +++++++++++++++++++++ generator/events.mli | 20 ++++++++++++++++++++ generator/fish.mli | 28 ++++++++++++++++++++++++++++ generator/gobject.mli | 29...
2019 Jul 29
1
Re: [PATCH] Rust bindings: Add Rust bindings
...les Rust bindings: Incorporate bindings to build system --- Makefile.am | 3 + configure.ac | 6 + generator/Makefile.am | 3 + generator/bindtests.ml | 67 ++++ generator/bindtests.mli | 1 + generator/docstrings.ml | 6 +- generator/docstrings.mli | 2 +- generator/main.ml | 5 + generator/rust.ml | 558 ++++++++++++++++++++++++++++ generator/rust.mli | 22 ++ m4/guestfs-rust.m4 | 33 ++ run.in...
2015 Aug 31
5
[PATCH v5 0/2] RFE: journal reader in guestfish
There seems to be a minor issue when user wants to run it through pager (more) and wants cancel it. User will end up with stuck guestfish until journal-view transfers all journal items. Output is configurable, it's the same format as virt-log has, since both uses same code. Maros Zatko (2): cat: move get_journal_field to fish/journal.c fish: add journal-view command (RHBZ#988100)
2019 Nov 24
1
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...et) defined above? > We keep nicer pread for compatibility and add preadinto for people that care about performence. This is the current approach in the standard library. > Rich. > > > > > test-python-plugin.py > > > > > > > > This text can use python docstring: > > > > > > > > """ > > > > This tests ... > > > > """ > > > > > > Good point, I'll fix this. We could probably also have nbdkit do > > > something with the docstring, such as printing it...
2019 Nov 22
3
Re: [PATCH nbdkit v2 10/10] tests: Test the Python plugin thoroughly.
...THE POSSIBILITY OF > +# SUCH DAMAGE. > + > +# This tests the Python plugin thoroughly by issuing client commands > +# through libnbd and checking we get the expected results. It uses an > +# associated plugin (test-python-plugin.sh). test-python-plugin.py This text can use python docstring: """ This tests ... """ > + > +import os > +import sys > +import pickle > +import codecs > + > +# Python has proven very difficult to valgrind, therefore it is disabled. > +if "NBDKIT_VALGRIND" in os.environ: > + print ("$...