Debian Codegraph @

wxgeometrie/pylib/__init__.py

raw symbols SCIP
1 # -*- coding: utf-8 -*-
2
3 # WxGeometrie
4 # Dynamic geometry, graph plotter, and more for french mathematic teachers.
5 # Copyright (C) 2005-2013 Nicolas Pourcelot
6 #
7 # This program is free software; you can redistribute it and/or modify
8 # it under the terms of the GNU General Public License as published by
9 # the Free Software Foundation; either version 2 of the License, or
10 # (at your option) any later version.
11 #
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 # GNU General Public License for more details.
16 #
17 # You should have received a copy of the GNU General Public License
18 # along with this program; if not, write to the Free Software
19 # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
20
21 from .. import param # parametres du programme
22
23 #from fonctions import * # librairie regroupant diverses fonctions "maison"
24 #from infos import * # librairie servant a generer des infos sur la configuration (utile pour le debugage)
25 from .fonctions import is_in, WeakMultiSet, print_error, property2, \
26 CompressedList, rstrip_, no_twin, warning, \
27 debug, no_argument, path2, \
28 removeend, advanced_split, regsub, split_around_parenthesis,\
29 msplit, OrderedDict, find_closing_bracket
30 # outils pour gerer la securite lors d'execution de code (tache delicate !)
31 from .securite import eval_safe, eval_restricted
32 #import bugs_report
33 #import erreurs
34 #import rapport
35 from .generic_wrapper import GenericWrapper
36
37 from .decorator import decorator
38
39 import numpy
40
41
42 def fullrange(a, b, pas):
43 '''Comme range(), mais avec des flottants, et contient en dernière valeur 'b'.
44
45 Équivalent de numpy.append(numpy.arrange(a, b, pas), b).'''
46 return numpy.append(numpy.arange(a, b, pas), b)