Commit Graph

22 Commits

Author SHA1 Message Date
Daniel Folkinshteyn
643788b478 Math: default %f formatting rounds to 6 decimal places. increase that to 16. 2012-08-30 11:32:43 +02:00
Valentin Lorentz
987aaa6c37 Math: use string.ascii_uppercase instead of string.uppercase. 2012-08-04 20:23:30 +02:00
Valentin Lorentz
dcd07a2ec4 ChannelStats & Filter & Math & Unit: use utils instead of str.translate. 2012-08-04 19:13:35 +02:00
nyuszika7h
d41acf34cc Math: Add cbrt() function 2012-05-23 12:11:43 +02:00
Valentin Lorentz
1f60a9487c Math: Allow 'factorial()' in icalc. 2012-05-07 17:52:02 +02:00
Valentin Lorentz
695078edeb Math: Block factorial() in calc functions. 2012-05-07 15:16:20 +00:00
Valentin Lorentz
203fe3c56a Internationalize Herald, Internet, Karma, Lart, Later, Limiter, Math, and Misc 2010-10-17 15:36:26 +02:00
James Vega
22da325656 Math: Move convertcore to the local directory
There's no need to try importing a system-wide copy (for now) as convertcore
is our own munging of convertall's code into a form that's easy for us to use.
This may change in the future.

Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 19:58:21 -04:00
James Vega
ed32faabe1 Math: Remove extra try block in favor of universalImport
Signed-off-by: James Vega <jamessan@users.sourceforge.net>
2009-03-11 14:06:25 -04:00
Jeremy Fincher
a86b4694d7 Added utils.python.universalImport to make the previous idiom cleaner. 2009-03-11 14:05:53 -04:00
Jeremy Fincher
d6ad5b051f Fix math to be capable of using externally-installed third-party packages, while still providing them for people who don't have them externally installed. 2009-03-11 14:05:26 -04:00
James Vega
62897a9663 Workaround Python's idiocy with float -> str -> float conversions 2009-03-11 13:37:26 -04:00
James Vega
a3e4fc5b1d Change the modeline to use softtabstop instead of tabstop. 2006-02-11 15:52:51 +00:00
James Vega
099231df05 plugins/Math: Quote some example strings so the STX version is formatted better. 2005-07-25 22:15:14 +00:00
James Vega
9971e991fe Fix the modelines. 2005-03-23 20:07:45 +00:00
James Vega
90c000793d utils.gen.* functions shouldn't explicitly be called since they're all in the utils namespace. 2005-02-15 13:57:57 +00:00
Jeremy Fincher
b0cb616709 Changed callbacks.Privmsg to be callbacks.Plugin, and callbacks.PrivmsgCommandAndRegexp to be callbacks.Plugin. 2005-02-09 07:04:04 +00:00
James Vega
68d3b830da Remove the use of format() in logger functions since they handle it natively. 2005-02-01 13:43:57 +00:00
James Vega
de89bf0265 Update usage of utils.str functions. 2005-01-31 14:52:27 +00:00
James Vega
28cb5abc65 Update usage of functions in utils.gen. 2005-01-31 13:06:43 +00:00
Jeremy Fincher
5fd6bbb52d Completely restructured our utils modules.
Tons of changes.  Here's the summary of things that matter most:

* There is no more supybot.fix.
* There is no more supybot.webutils; now there is supybot.utils.web.
  * It's no longer webutils.WebError, but just utils.web.Error.
* You shouldn't import itertools, ideally, but instead import utils.iter.
* No more using imap/ifilter in commands unless absolutely necessary.  It's
  premature optimization and annoying.
* utils.str.format isn't quite ready yet, but will be soon.  That'll be the
  next big thing to fix in our code.
2005-01-27 06:59:08 +00:00
Jeremy Fincher
d9df5136cd Added the Math plugin in the new plugin package format. 2005-01-19 23:29:28 +00:00