Displaying 6 results from an estimated 6 matches for "closeit".
2013 Sep 22
1
type="message" possibility for capture.output() ?
...apture.output <- function(..., file=NULL, append=FALSE)
+capture.output <- function(..., file=NULL, append=FALSE,
+ type = c("output", "message"))
{
+ type <- match.arg(type)
args <- substitute(list(...))[-1L]
rval <- NULL; closeit <- TRUE
@@ -31,9 +33,9 @@
} else
stop("'file' must be NULL, a character string or a connection")
- sink(file)
+ sink(file,type=type)
## for error recovery: all output will be lost if file=NULL
- on.exit({sink(); if(closeit) close(file)})
+ on.exi...
2009 Dec 18
0
Samba4 Provisioning Segfault
...68
#20 0x000a0a88 in PyEval_EvalCode (co=0x244eaa18, globals=0x1617f0,
locals=0x15fd88) at ../Python/ceval.c:522
#21 0x000bfdb4 in PyRun_FileExFlags (fp=0x253cd8,
filename=0xbeee19ff "./setup/provision", start=<value optimized out>,
globals=0x40290270, locals=0x40290270, closeit=1076710432,
flags=0xbeee176c) at ../Python/pythonrun.c:1335
#22 0x000c007c in PyRun_SimpleFileExFlags (fp=0x253cd8,
filename=0xbeee19ff "./setup/provision", closeit=1, flags=0xbeee176c)
at ../Python/pythonrun.c:931
#23 0x00019bd4 in Py_Main (argc=2, argv=0xbeee18e4) at ../Modu...
2019 Sep 11
0
[PATCH nbdkit] python: Drop support for Python 2.
...YTHON_ABI_VERSION
printf ("python_pep_384_abi_version=%d\n", PYTHON_ABI_VERSION);
-#endif
if (script && callback_defined ("dump_plugin", &fn)) {
PyErr_Clear ();
@@ -337,11 +312,7 @@ py_config (const char *key, const char *value)
/* Note that because closeit flag == 1, fp is now closed. */
/* The script should define a module called __main__. */
-#ifdef HAVE_PYSTRING_FROMSTRING
- modname = PyString_FromString ("__main__");
-#else
modname = PyUnicode_FromString ("__main__");
-#endif
module = PyImport_Import (modna...
2017 Feb 26
2
samba-tool domain classicupgrade smb_krb5_context_init_basic failed (Invalid argument)
...ffff7fc91e0>, outf=<file at remote 0x7ffff7fc9150>) at remote
0x7fffdd988990>, 'cmd_sambatool': <type at remote 0x73f9c0>, '__package__': None, 'sys': <module at
remote 0x7ffff7faebb0>, '__name__': '__main__', '__doc__': None}, closeit=closeit at entry=1,
flags=flags at entry=0x7fffffffe1e0) at /usr/src/debug/Python-2.7.5/Python/pythonrun.c:1360
ret = <optimized out>
mod = <optimized out>
arena = 0x694030
#48 0x00007ffff7b147c9 in PyRun_SimpleFileExFlags (fp=fp at entry=0x6bed40,
filename=filen...
2017 Feb 16
2
samba-tool domain classicupgrade smb_krb5_context_init_basic failed (Invalid argument)
On Fri, 2017-02-17 at 07:48 +1100, Tom Robinson via samba wrote:
> Anyone?
Can you please post a gdb backtrace --full?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 862 bytes
Desc: This is a digitally signed message part
URL:
2019 Sep 11
3
[PATCH nbdkit] python: Drop support for Python 2.
This patch proposes to drop support for Python 2 in nbdkit.
Rather than abruptly drop it everywhere, my proposal is that we point
people to nbdkit 1.14 (the current stable version) if they want to
continue with Python 2 plugins, while gently reminding them of the
upcoming Python 2.7 end of life announcement.
Libnbd never supported Python 2. Libguestfs in theory supports
Python 2 but I dropped