File: cython3

package info (click to toggle)
python-pomegranate 0.15.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 36,948 kB
  • sloc: python: 11,489; makefile: 259; sh: 28
file content (31 lines) | stat: -rw-r--r-- 831 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: Michael R. Crusoe <crusoe@debian.org>
Subject: removed duplicate and non-functional copy function

The previous one works, but cython 3.x was taking the later definition
--- python-pomegranate.orig/pomegranate/base.pyx
+++ python-pomegranate/pomegranate/base.pyx
@@ -127,24 +127,6 @@
 		"""Thaw the distribution, re-allowing updates to occur."""
 		self.frozen = False
 
-	def copy(self):
-		"""Return a deep copy of this distribution object.
-
-		This object will not be tied to any other distribution or connected
-		in any form.
-
-		Parameters
-		----------
-		None
-
-		Returns
-		-------
-		distribution : Distribution
-			A copy of the distribution with the same parameters.
-		"""
-
-		return self.__class__(*self.parameters)
-
 	def sample(self, n=None):
 		"""Return a random item sampled from this distribution.