search for: py2

Displaying 20 results from an estimated 22 matches for "py2".

Did you mean: py
2012 Sep 08
1
Using predict() After Adding a Factor to a glm.nb() Model
# Hello, # I have a data set that looks something like the following: site<-c(rep('a',5),rep('b',2),rep('c',4),rep('d',11)) year<-c(1980, 1981, 1982, 1993, 1995, 1980, 1983, 1981, 1993, 1995, 1999, c(1980:1990)) count<-c(60,35,36,12,8,112,98,20,13,15,15,65,43,49,51,34,33,33,33,40,11,0) data<-data.frame(site, year, count) # > site year count # 1
2020 Jan 09
0
[PATCH 5/7] python: replace guestfs_int_py_fromstringsize in Py2 branches
In Python 2 code branches use PyString_FromStringAndSize directly instead of the guestfs_int_py_fromstringsize wrapper (which calls PyString_FromStringAndSize anyway on Python < 3). --- generator/python.ml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/generator/python.ml b/generator/python.ml index 2a1a48fc0..0e1ed20d8 100644 --- a/generator/python.ml +++
2020 Oct 13
2
[RFC] Python 2 / Python 3 status, final step(s)
...hon 3 status* [0], ie. requiring Python3.6 for LLVM 12.0.0, to be released in 2021. At least Fedora already only ships Python3 and we didn't have much bugs reported wrt. Python compatibility for the LLVM toolchain. Indeed, all Python scripts should now be at least compatible with both python2 (py2) and python3 (py3), some of them already are already py3 only. The build system still depends on Python in a few place, but it explicitly mentions Python3_EXECUTABLE, and the main dependency (llvm-build) is currently being removed in D89142. The shebangs have already been harmonized in D83857: s...
2011 Mar 29
1
Get phone number from SIP header PAI
...llo list, I want to get the phone number out of the following P-Asserted-Identity header : /"BlaBlaBla" <sip://88779922//@192.168.8.10;user=phone>"/ I do the following in the dialplan : /exten => _XXX.,n,Set(PY=${SIP_HEADER(P-Asserted-Identity)}) exten => _XXX.,n,Set(PY2=${CUT(PY,@,1)})/ This gives me : /"BlaBlaBla" <sip://88779922/ How can I extract /88779922/ out of this string ?? I'm trying this : /exten => _XXX.,n,Set(PY4=${CUT(PY2,\:,1-)}) / but this does not change a thing to the string... I just want everything after the comma... K...
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
2009 Nov 06
0
Is there a function that can test if a path is in a directory or one of its sub-directory (recursively)?
On Fri, Nov 6, 2009 at 12:49 AM, Gabriel Genellina <gagsl-py2 at yahoo.com.ar> wrote: > En Fri, 06 Nov 2009 00:53:14 -0300, Chris Rebert <clp2 at rebertia.com> > escribi?: >> >> On Thu, Nov 5, 2009 at 7:41 PM, Peng Yu <pengyu.ut at gmail.com> wrote: > >>> I looked though the os.path manual. I don't find a funct...
2006 Sep 28
0
[BUG(let)] Dovecot does not recognize threaded/reentrant mysql libs
...Cards / \ & micro$oft attachments [GPG] OpenMacNews at gmail dot com fingerprint: 50C9 1C46 2F8F DE42 2EDB D460 95F7 DDBD 3671 08C6 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.5 (Darwin) iEYEARECAAYFAkUcAcUACgkQlffdvTZxCMYQXACgustNRKkqu97hWI88CTQwxZG7 q10AniSAcnhYesxf68x4y5Z7pg6uf/2f =py2/ -----END PGP SIGNATURE-----
2019 Oct 22
0
[Announce] Samba 4.9.14 Available for Download
...d server. o Poornima G <pgurusid at redhat.com> * BUG 14098: vfs_glusterfs: Use pthreadpool for scheduling aio operations. o Aaron Haslett <aaronhaslett at catalyst.net.nz> * BUG 13977: ldb: baseinfo pack format check on init. * BUG 13978: sambaundoguidindex is untested and py2-only. o Amitay Isaacs <amitay at gmail.com> * BUG 14147: ctdb-vacuum: Process all records not deleted on a remote node. o Bj?rn Jacke <bj at sernet.de> * BUG 14139: Fault.c: Improve fault_report message text pointing to our wiki. o Stefan Metzmacher <metze at samba.org&gt...
2019 Oct 22
0
[Announce] Samba 4.9.14 Available for Download
...d server. o Poornima G <pgurusid at redhat.com> * BUG 14098: vfs_glusterfs: Use pthreadpool for scheduling aio operations. o Aaron Haslett <aaronhaslett at catalyst.net.nz> * BUG 13977: ldb: baseinfo pack format check on init. * BUG 13978: sambaundoguidindex is untested and py2-only. o Amitay Isaacs <amitay at gmail.com> * BUG 14147: ctdb-vacuum: Process all records not deleted on a remote node. o Bj?rn Jacke <bj at sernet.de> * BUG 14139: Fault.c: Improve fault_report message text pointing to our wiki. o Stefan Metzmacher <metze at samba.org&gt...
2019 May 21
2
official package lists: the future
On Tue, 2019-05-21 at 17:44 +0100, Rowland penny via samba wrote: > There was some talk of this happening automatically, but this seems > to > have not come to fruition yet. It has. See the bootstrap/ system in master. This hasn't been backported to Samba 4.10 however. The files in generated-dists are intended to be linkable from the wiki as the definitive list of packages for a
2019 Mar 12
0
[Announce] Samba 4.9.5 Available for Download
...SERVERS if winbindd is not available. * BUG 13752: s4:server: Add support for 'smbcontrol samba shutdown' and 'smbcontrol <pid> debug/debuglevel'. o Noel Power <noel.power at suse.com> * BUG 13616: Python: Ensure ldb.Dn can doesn't rencoded str with py2. o Anoop C S <anoopcs at redhat.com> * BUG 13330: vfs_glusterfs: Adapt to changes in libgfapi signatures. * BUG 13774: s3-vfs: Use ENOATTR in errno comparison for getxattr. o Jiří Šašek <jiri.sasek at oracle.com> * BUG 13704: notifyd: Fix SIGBUS on sparc. o Christof Schmi...
2019 Mar 12
0
[Announce] Samba 4.9.5 Available for Download
...SERVERS if winbindd is not available. * BUG 13752: s4:server: Add support for 'smbcontrol samba shutdown' and 'smbcontrol <pid> debug/debuglevel'. o Noel Power <noel.power at suse.com> * BUG 13616: Python: Ensure ldb.Dn can doesn't rencoded str with py2. o Anoop C S <anoopcs at redhat.com> * BUG 13330: vfs_glusterfs: Adapt to changes in libgfapi signatures. * BUG 13774: s3-vfs: Use ENOATTR in errno comparison for getxattr. o Jiří Šašek <jiri.sasek at oracle.com> * BUG 13704: notifyd: Fix SIGBUS on sparc. o Christof Schmi...
2019 May 21
5
official package lists: the future
...ggested it. It didn't get any traction at the time, but perhaps with your enthusiasm someone might do the work. Particularly since we got CentOS7 working in master. The task is essentially to cherry-pick all the changes under bootstrap/ and then adjust the package list to also include the py2 packages. > > The files in generated-dists are intended to be linkable from the > > wiki > > as the definitive list of packages for a developer install, which > > will > > always be a superset of packages needed in production. > > > > So for 4.11 onwards...
2020 Jan 09
9
[PATCH 0/7] Various Python cleanups.
...d yet, however it will be easier after this series. Pino Toscano (7): build: enforce a minimum Python version python: drop code for Python < 2.5 python: assume support for Capsules python: remove compile time check for PyString_AsString python: replace guestfs_int_py_fromstringsize in Py2 branches python: stop including config.h python: stop bundling config.h in dist archives .gitignore | 1 - generator/python.ml | 32 ++------------------------------ m4/guestfs-python.m4 | 21 +++++---------------- python/MANIFEST.in | 1 - python/Makefile.am | 5 ----- pyth...
2014 Aug 04
6
[hivex] Segfault for an integer value to node_set_value
Hi, When an integer argument is passed as value, node_set_value segfaults. Reproducer is at the end of this message The backtrace points at hivex-py.c, function get_value. While obj is non-NULL, `bytes = PyUnicode_AsUTF8String (obj);` returns NULL. Kind regards, Peter https://lekensteyn.nl #!/usr/bin/env python3 import hivex, sys h = hivex.Hivex(sys.argv[1]) print(h) val = {
2018 Feb 22
0
[PATCH 5/5] v2v: Add -o rhv-upload output mode.
...conn.conn_url conn.conn_username conn.conn_debug + +(* Python code fragments go first. Note these must not be + * indented because of Python's stupid whitespace thing. + *) + +(* Print the Python version. *) +let python_get_version = " +import sys +print (sys.version[0]) # syntax works on py2 or py3 +" + +(* Import all the Python modules needed. *) +let python_imports = " +import logging +import ovirtsdk4 as sdk +import ovirtsdk4.types as types +import ssl +import sys +import time + +from http.client import HTTPSConnection + +try: + from urllib.parse import urlparse +except...
2018 Feb 27
0
[PATCH v2 3/3] v2v: Add -o rhv-upload output mode.
...conn.conn_url conn.conn_username conn.conn_debug + +(* Python code fragments go first. Note these must not be + * indented because of Python's stupid whitespace thing. + *) + +(* Print the Python version. *) +let python_get_version = " +import sys +print (sys.version[0]) # syntax works on py2 or py3 +" + +(* Import all the Python modules needed. *) +let python_imports = " +import logging +import ovirtsdk4 as sdk +import ovirtsdk4.types as types +import ssl +import sys +import time + +from http.client import HTTPSConnection + +try: + from urllib.parse import urlparse +except...
2018 Feb 27
5
[PATCH v2 0/3] v2v: Add -o rhv-upload output mode.
This patch set is still for discussion only. See 3/3 for the current list of problems. However this will upload an image to an oVirt or RHV server, although you must have absolutely the latest snapshot version of 4.2 for it to work. Rich.
2018 Feb 22
2
Re: [PATCH 5/5] v2v: Add -o rhv-upload output mode.
...bug > + > +(* Python code fragments go first. Note these must not be > + * indented because of Python's stupid whitespace thing. > + *) > + > +(* Print the Python version. *) > +let python_get_version = " > +import sys > +print (sys.version[0]) # syntax works on py2 or py3 > +" > + > +(* Import all the Python modules needed. *) > +let python_imports = " > +import logging > +import ovirtsdk4 as sdk > +import ovirtsdk4.types as types > +import ssl > +import sys > +import time > + > +from http.client import HTTPSConne...
2018 Feb 22
11
[PATCH 0/5] v2v: Add -o rhv-upload output mode.
The first four patches are straightforward. The final patch adds the -o rhv-upload output mode. It is still spooling into a temporary file because I've had some trouble getting streaming conversions working. There are other problems as outlined in the commit message, so this patch is not ready for upstream but is good for discussion. Also I hit this, which I'm assuming for now will be