I am writing a class to provide a db backed configuration for an application.
In my programs code, I import the class and pass the ODBC params to the
class for its __init__ to instantiate a connection.
I would like to create a function to generically access a table and provide an
iterator. How do
>Have the method yield instead of returning:
Thanks, that was simple, I was hung up on implementing magic methods.
Thanks for the pointers guys!
jlc
--
http://mail.python.org/mailman/listinfo/python-list
> It's probably best if you use separate cursors anyway. Say you have
> two methods with a shared cursor:
>
> def iter_table_a(self):
> self.cursor.execute("SELECT * FROM TABLE_A")
> yield from self.cursor
>
> def iter_table_b(self):
> self.cursor.execute("SELECT *
When you use optional named arguments in a function, how do you deal with with
the incorrect assignment when only some args are supplied?
If I do something like:
def my_func(self, **kwargs):
then handle the test cases with:
if not kwargs.get('some_key'):
raise SyntaxError
or:
> Don't use kwargs for this. List out the arguments in the function
> spec and give the optional ones reasonable defaults.
> I only use kwargs myself when the set of possible arguments is dynamic
> or unknown.
Gotch ya, but when the inputs to some keywords are similar, if the function is
called
I have a dataset that consists of a dict with text descriptions and values that
are integers. If
required, I collect the values into a list and create a numpy array running it
through a simple
routine: data[abs(data - mean(data)) < m * std(data)] where m is the number of
std deviations
to includ
>Assuming your data and the dictionary are keyed by a common set of keys:
>
>for key in descriptions:
> if abs(data[key] - mean(data)) >= m * std(data):
> del data[key]
> del descriptions[key]
Heh, yeah sometimes the obvious is too simple to see. I used a dict comp to
rebuild
> In other words: this approach for detecting outliers is nothing more than
> a very rough, and very bad, heuristic, and should be avoided.
Heh, very true but the results will only be used for conversational purposes.
I am making an assumption that the data is normally distributed and I do expec
Hi,
Slightly different take on an old problem, I have a list of dicts, I need to
build one dict
from this based on two values from each dict in the list. Each of the dicts in
the list have
similar key names, but values of course differ.
[{'a': 'xx', 'b': 'yy', 'c': 'zz'}, {'a': 'dd', 'b': 'ee'
> >>> data = [{'a': 'xx', 'b': 'yy', 'c': 'zz'}, {'a': 'dd', 'b': 'ee', 'c':
> >>> 'ff'}]
> >>> {d["a"]: d["c"] for d in data}
> {'xx': 'zz', 'dd': 'ff'}
Priceless,
That is exactly what I needed, for which I certainly over complicated!
Thanks everyone!
jlc
--
http://mail.python.org/mailman/
Thank you.
The question is that. Get the messages that was sended and save in
maildir format.
One more question... testing here, has the smtpd.pureproxy support
stream username and password for smtp authentication ?. I read some
doc and don't find anything about.
--
http://mail.python.org/mailman/
At 02:13 AM 6/17/2011, David Aldrich wrote:
Hi
I am building a 32-bit C++ application using Visual C++ Express 2008
on 64-bit Windows 7. The application links to Python, so I
installed 32-bit Python 2.7.2 by running python-2.7.2.msi.
When I run my app, I get error:
... python27.dll is miss
There is also
print(match_obj.string)
which gives you a copy of the string searched. See end of section
6.2.5. Match Objects
At 02:58 PM 6/23/2011, John Salerno wrote:
After I've run the re.search function on a string and no match was
found, how can I access that string? When I try to p
At 01:39 PM 6/26/2011, Shashank Singh wrote:
On Sun, Jun 26, 2011 at 11:58 PM, Marc Aymerich wrote:
> Hi,
> I'm trying to define a function that has an optional parameter which
> should be an empty list whenever it isn't given. However, it takes as
> value the same value as the last time the fun
st invalid. Hence, filter on invalid
posts.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
http://www.stonehenge.com/merlyn/>
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussi
Depending on what you want to do, you might try looking at the pyparsing
module. I have used it to successfully parse sentences looking for
keywords and structures.
On 8/3/2011 9:26 AM, Jayron Soares wrote:
Hi folks,
I've created a simple method to grab files texts from directory by
words r
At 08:12 PM 2/27/2011, you wrote:
On 28/02/2011 01:31, Laurent Duchesne wrote:
Hi,
I'm using python 3.2 and got the following error:
nntpClient = nntplib.NNTP_SSL(...)
nntpClient.group("alt.binaries.cd.lossless")
nntpClient.over((534157,534157))
... 'subject': 'Myl\udce8ne Farmer - Anamorpho
At 10:03 AM 3/8/2011, Tim Golden wrote:
On 08/03/2011 15:58, Tim Golden wrote:
On 08/03/2011 14:55, Edward Diener wrote:
I have multiple versions of Python installed under Vista. Is there any
easy way of switching between them so that invoking python and file
associations for Python extensions
Greetings,
I'm trying to understand the behavior of the multiprocessing.Process
daemonic attribute.
Based on what I have read, if a Process ( X ) is created, and before it
is started ( X.start() ), I should be able to set the process as
daemonic using X.daemon=True.
Once this attribute is
On 3/15/2011 11:19 PM, James Mills wrote:
On Wed, Mar 16, 2011 at 12:34 PM, John L. Stephens
wrote:
I would have expected the daemonic children processes to terminate with the
parent process, regardless of how the parent process terminates, either
normally or forcefully.
As I understand it
At 11:39 PM 3/18/2011, Manatee wrote:
I hope this is the place to post this question. I am a really new
pythonista. I am studying Tkinter and when I run this basic code, I
get a syntax error on line 20, print "hi there, everyone". Its a
simple print line, but I can't see the problem. I am using
On 3/18/2011 7:54 PM, Jason Grout wrote:
Right; thanks. Let me rephrase my questions:
1. Why is important that the multiprocessing Pool worker processors
have daemon=True (I think this is the same as asking: why is it
important that they be terminated with terminate() rather than join() )?
At 07:46 PM 3/20/2011, Ken D'Ambrosio wrote:
Hey, all -- I know how to match and return stuff from a regex, but I'd
like to do an if, something like (from Perl, sorry):
if (/MatchTextHere/){DoSomething();}
How do I accomplish this in Python?
You say you've done matching and accessing stuff fr
At 08:33 PM 3/22/2011, monkeys paw wrote:
When i open a file in python, and then print the
contents line by line, the printout has an extra blank
line between each printed line (shown below):
>>> f=open('authors.py')
>>> i=0
>>> for line in f:
print(line)
i=i+1
if i > 14:
On Thu, Oct 5, 2017 at 17:07 Fetchinson . via Python-list <
python-list@python.org> wrote:
> Hi folks,
>
> I have a rather simple program which cycles through a bunch of files,
> does some operation on them, and then quits. There are 500 files
> involved and each operation takes about 5-10 MB of m
I have some code that makes use of the typing module.
This code creates several instances of objects it creates
from a library that has some issues.
For example, I have multiple list comps that iterate properties
of those instance and the type checker fails with:
Expected type 'collections.It
> I couldn't find any information on how to implement logging in a library that
> doesn't know the name of the application that uses it. How is that done?
Hello,
That's not how it works, it is the opposite. You need to know the name of its
logger,
and since you imported it, you do.
Logging is hi
I am trying to track down a slow script startup time. I have executed the
script using `python -m cProfile -o profile /path/script.py` and read through
the results, but the largest culprit only shows various built-ins.
I expected this given the implementation, but I was hoping to get some
finer de
> You might try `py-spy`.
That worked well, I started trying to get more data from the profile
output with the stats module but didn't quite get there.
Thank you everyone,
jlc
--
https://mail.python.org/mailman/listinfo/python-list
I have some code that I am testing on Windows without c extensions which
runs on a RHEL server with c extensions. In a simplified test case as follows:
connection = mysql.connector.connect(...)
cursor = connection.cursor(cursor_class=MySQLCursorDict)
while True:
cursor.execute('SELECT foo,biz
> Perhaps you simplified too much, but changes between the select and the
> update could be lost. I think you need at least three states:
>
> 1 mark rows where baz is null (by setting baz to some value other than NULL
> or 42, 24, say: set baz = 24 where baz is NULL)
> 2 show marked rows (select
> Interesting. Generally, I allocate cursors exactly at the same time as I open
> transactions;
> not sure if this works with the mysql connector, but with psycopg2
> (PostgreSQL), my code looks like this:
>
> with conn, conn.cursor() as cur:
> cur.execute(...)
> ... = cur.fetchall()
>
>
Im running windows 7 pro, 64 bit. I downloaded 3.5.2 64 bit and when I try to
run I get the error message api-ms-win-crt-runtime-l1-1-0.dll is missing. I
loaded that file and still will not run.
suggestions?
thanks
--
https://mail.python.org/mailman/listinfo/python-list
Looks like the shipped implementation doesn't give access to all the discrete
copies
of tls for us in a case where a context manager needs to perform any cleanup.
Does
something exists where I can leverage this feature or do I need to roll my own?
Thanks,
jlc
--
https://mail.python.org/mailman
On 10/27/2016 11:05 PM, Michael Torrie wrote:
> On 10/27/2016 04:07 AM, Terry Reedy wrote:
>> As I and others have said, those keyboard functions are not available on
>> text terminals. I predict that keyboard functions that so not work on
>> all systems will never become built-ins. But some ar
> Try these links on for size:
>
> https://msdn.microsoft.com/en-us/library/hh242982(v=vs.103).aspx which links
> to
> https://msdn.microsoft.com/en-us/library/hh242983(v=vs.103).aspx near the end.
These two SO threads have a variation of pretty good explanations:
http://stackoverflow.com/questi
>> There is the recent flurry around the new async additions to python
>
> I meant to add: “… which I dont pretend to understand…”
Try these links on for size:
https://msdn.microsoft.com/en-us/library/hh242982(v=vs.103).aspx which links to
https://msdn.microsoft.com/en-us/library/hh242983(v=vs.10
> Thanks Joseph
> Trouble is there is stew of technologies/languages…
> (meta)-stewed with more abstract concepts, eg push vs pull,
> Enumerable-Observable
> duality, continuous vs discrete time
> The last causing its own share of confusion with “functional reactive
> programming” (FRP) meaning s
> One more question: Do you know if (and how much) of these things would work
> in Linux/C# (ie mono)?
Mono, I forgot what that is when .net core debuted:)
Looks like the .net Rx guys have a port,
https://github.com/Reactive-Extensions/Rx.NET/issues/148
A package for .net core is up on nuget.
> So you are saying that nuget-ing .Net core would be a workable pre-requisite
> for
> Rx on mono?
Microsoft open sourced .net a while ago. With that came the movement to
bring .net to other platforms.
https://en.wikipedia.org/wiki/.NET_Framework#.NET_Core
As its currently being heavily develop
> Just downloaded Python 3.6.0 2016-12-23 and PyCharm. Tried to run the "Hello
> World" program and got the following message:
> "Process finished with exit code 1073741515 (0xC135)"
> I am using Windows 8.1 on an HP ENVY Touchsmart Notebook (64-bit OS,
> x64-based processor).
If you track
> And this is coming up a lot. This is something that should already be
> on all supported versions of Windows if Windows updates are done, right?
No, it's not an update. You install the runtime *if* you need it.
> but maybe it's time that the
> Python installer bundles the redistributable inst
> while True:
>for client in clients:
> stats = ThreadStats()
> stats.start()
> p = Process(target=getWhispererLogsDirSize, args=(client,queue,))
> jobs.append(p)
> p.start()
> p.join()
You start one client then join before starting the next...
Start them all an
> Trying to sniff Ethernet packets, I do this:
>
>s = socket.socket(socket.AF_INET, socket.SOCK_RAW, socket.IPPROTO_IP)
>
> but it results in this:
>
> $ sudo python3 sniff_survey.py
> Traceback (most recent call last):
> File "sniff_survey.py", line 118, in
> s = socket
> .NET is a library that can be used from many languages, including Python.
No.
.NET Core (what the OP asked about which is not .NET) is a cross-platform
framework. Obviously Python and .NET differ in runtime semantics with
respect to the original source code, however they are now roughly equiva
> What .NET APIs are anticipated to be released that aren't on the
> official CLI list now:
> https://en.wikipedia.org/wiki/List_of_CLI_languages#Current_Languages,
> and/or, are .NET supported languages expected to expand beyond the CLI
> list?
I think this (and the last point) misinterprets the
> What do you mean by "both platforms"? Python scripts already run on
> three major operating systems (Win/Lin/Mac) and a good number of
> less-popular OSes; a well-written Python script will run in four major
> Pythons (CPython, PyPy, Jython, IronPython) and a number of others;
> and all manner of
> Python still has my heart, but .NET Core tempts me. One great thing of
> coding in C# would be no GIL.
Seriously, check out the benchmarks at https://github.com/aspnet/benchmarks.
I think aside from the obvious, you'll find the Razor engine and the overall
library
to be a pleasure to work with
> C# hardly seems any better than Java to me as far as a language goes.
Which sounds pretty good to me, they are both high performance, mature
and rich languages.
> Being forced into working with classes even when they are not
> appropriate is jarring.
And 100% irrelevant, it doesn't prevent you
I have a class which implements a context manager, its __init__
has a signature and the __enter__ returns an instance of the
class.
Along with several methods which implement functionality on
the instance, I have one method which itself must open a context
manager against a call on an instance att
From: Python-list on
behalf of Rob Gaddi
Sent: Thursday, March 15, 2018 12:47 PM
To: python-list@python.org
Subject: Re: Context manager on method call from class
> from contextlib import contextmanager.
>
> Then you just use the @contextmanager decorator on a function, have it
> set up,
-Original Message-
From: Python-list On Behalf Of joseph
pareti
Sent: Sunday, March 25, 2018 10:15 AM
To: python-list@python.org
Subject: issues when buidling python3.* on centos 7
> The following may give a clue because of inconsistent python versions:
>
> [joepareti54@xxx ~]$ python -V
I have an array of hex chars which designate required characters.
and one happens to be \x5C or "\". What foo is required to build the
pattern to exclude all but:
regex = re.compile('[^{}]+'.format(''.join(c for c in character_class)))
I would use that in a re.sub to collapse and replace all but
-Original Message-
From: Python-list On Behalf Of MRAB
Sent: Friday, April 13, 2018 12:05 PM
To: python-list@python.org
Subject: Re: Python regex pattern from array of hex chars
> Use re.escape:
>
> regex = re.compile('[^{}]+'.format(re.escape(''.join(c for c in
> character_class
Br
From: Python-list on
behalf of Irv Kalb
Sent: Monday, April 16, 2018 10:03 AM
To: python-list@python.org
Subject: Instance variables question
> class PartyAnimal():
> x = 0
>
> def party(self):
> self.x = self.x + 1
> print('So far', self.x)
Your not accessing the
-Original Message-
From: Python-list On Behalf Of Brian
Gibbemeyer
Sent: Tuesday, April 24, 2018 11:01 AM
To: Ethan Furman
Cc: python-list@python.org
Subject: Re: Issue with python365.chm on window 7
> The file at
> https://www.python.org/ftp/python/3.6.4/python364.chm
>
> Loads up into
From: Brian Gibbemeyer
Sent: Tuesday, April 24, 2018 12:36 PM
To: Joseph L. Casale
Cc: python-list@python.org
Subject: RE: Issue with python365.chm on window 7
> I right clicked on the file, no option to unblock.
Sorry, choose properties, then unblock.
--
https://mail.python.org/mail
-Original Message-
From: Python-list On Behalf Of Skip
Montanaro
Sent: Wednesday, August 15, 2018 3:26 PM
To: Python
Subject: lxml namespace as an attribute
> Much of XML makes no sense to me. Namespaces are one thing. If I'm
> parsing a document where namespaces are defined at the top
I need to serialize a deep graph only for the purposes of visualizing it to
observe primitive data types on properties throughout the hierarchy.
In my scenario, I cannot attach a debugger to the process which would
be most useful. Using json is not the easiest as I need to chase endless
custom seri
-Original Message-
From: Python-list On Behalf Of Rhodri
James
Sent: Friday, September 21, 2018 11:39 AM
To: python-list@python.org
Subject: Re: Serializing complex objects
> Depending on what exactly your situation is, you may be able to use the
> pickle module (in the standard library)
I have CDLL function I use to get a pointer, several other functions happily
accept this
pointer which is really a long when passed to ctypes.c_void_p. However, only
one with
same type def in the prototype overflows. Docs suggest c_void_p takes an int
but that
is not what the first call returns,
> I generally avoid c_void_p because its lenient from_param method
> (called to convert arguments) doesn't provide much type safety. If a
> bug causes an incorrect argument to be passed, I prefer getting an
> immediate ctypes.ArgumentError rather than a segfault or data
> corruption. For example, w
I have some code where sys.argv is sliced up and manually fed to discrete
argparse
instances each with a single subparser. The reason the discrete parsers all
having a
single subparser was to make handling the input simpler, the first arg in the
slice
could be left in.
This has become unmaintai
> Not sure if this fits the bill, or makes sense here, but I came cross
> "docopt" which touts itself as a "Command-line interface description
> language". I used it in a project and it seems to be pretty easy to use
> as well as elegant. It stores the arguments & values as a dictionary,
> keyed by
> Or any other libraries that can be recommended?
I'd recommend Spyne, code and docs are good, but more importantly the
lead dev is responsive and very helpful. Can't speak highly enough about him...
http://spyne.io/
hth,
jlc
--
https://mail.python.org/mailman/listinfo/python-list
> -Original Message-
> From: Python-list bounces+jcasale=activenetwerx@python.org> On Behalf Of Simon
> Connah
> Sent: Thursday, March 14, 2019 3:03 AM
> To: Python
> Subject: asyncio Question
>
> Hi,
>
> Hopefully this isn't a stupid question. For the record I am using Python
> 3.7
Hi,
Is it possible to associate combinations of types for a given signature, for
example:
T = TypeVar('T', Foo, Bar, Baz)
S = TypeVar('S', FooState, BarState, BazState)
closure = 'populated dynamically'
def foo(factory: Callable[[List[T], str], None], state: S) -> List[T]:
results = []
I am trying to find explicit documentation on the initialization logic for a
Base class when multiple exist. For the example in the documentation at
https://docs.python.org/3/tutorial/classes.html#multiple-inheritance,
if Base1 and Base2 both themselves inherited from the same base class,
only Base
-Original Message-
From: Barry Scott
Sent: Tuesday, July 16, 2019 11:53 AM
To: Joseph L. Casale
Cc: python-list@python.org
Subject: Re: Class initialization with multiple inheritance
> And here is the MRO for LeftAndRight.
>
> >>> import m
> LeftAndRight.__ini
input.
I understand that there is probably hundreds of these programs but to
teach myself i want to wright my own program and then i can update it
when needed.
Thx
L Smit
--
https://mail.python.org/mailman/listinfo/python-list
Hi
New to programming.
Please can u help me. I have python 3.7 installed on linux peppermint 10
and pyinstaller 3.6 but dont know how to run pyinstaller or how to
install it on the correct diectory.
Thx
L Smit
--
https://mail.python.org/mailman/listinfo/python-list
Please help me with this.
squares =input("\nSquares: ")
print(float((squares) *float(.15)) *(1.3))
Cant print answer.
print(float((squares) * float(.15)) *(1.3))
TypeError: can't multiply sequence by non-int of type 'float'
Thx
L Smit
--
https://mail.python.or
I am looking to replace a home built solution which allows a program
to derive a series of variable values through configuration or policy.
The existing facility allows dependences so one of the requested variables
can depend on another, they are ordered and computed. It also allows
callbacks so c
I have some json encoded input for nodemailer
(https://nodemailer.com/message/embedded-images)
where the path key is a string value which contains the base64 encoded data
such as:
{
html: 'Embedded image: ',
attachments: [{
filename: 'image.png',
path: 'data:image/png;bas
I need off this list please. I don’t even have this.
On Wed, Jun 3, 2020 at 11:30 PM Albert Chin <
python-l...@mlists.thewrittenword.com> wrote:
> On Wed, Jun 03, 2020 at 08:11:17PM -0400, Dennis Lee Bieber wrote:
> > On Tue, 2 Jun 2020 12:26:16 -0500, Albert Chin
> > de
> Invalid character found in method name [{}POST]. HTTP method names must be
> tokens.
/snip
> I could see in from wireshark dumps it looked like - {}POST
> HTTP/1.1
The error message and your own debugging indicate the error.
Your method *name* is {}POST, you have somehow included two
brac
> Installed on this Slackware-14.2/x86_64 workstation with python-3.9.1 are:
> python-setuptools-22.0.5-x86_64-1
I just ran into this recently, I don't recall the actual source but it was the
version
of setuptools having been so old. Your version is from Jun 3, 2016...
Update it, that was what w
Anyone ever used pexpect with tooling like kadmin and have
insight into how to manage interacting with it?
After setting up debug logging, I was able to adjust the expect
usage to get the input and output logs to at least appear correct
when setting a password for a principal, however even with a
> If you have windows 10 can you use Windows Subsystem for Linux (WSL)
> to install one of the Linux distros and use that?
Interesting idea, sadly I am too far past the deadline on this to go through
the red tape needed to get that in place.
Thanks,
jlc
--
https://mail.python.org/mailman/listi
I've started writing some asyncio code in lieu of using threads and
managing concurrency and primitives manually.
Having spent a lot of time using c#'s async implementation, I am struggling
to see an elegant pattern for implementing cancellation. With the necessity
for the loop (that of which I un
Tuvas wrote:
> Anyone know a module that does CRC16 for Python? I have an aplication
> that I need to run it, and am not having alot of sucess. I have a
> program in C that uses a CRC16 according to CCITT standards, but need
> to get a program that tests it with python as well. Thanks!
>
Try this
Can someone suggest a package that allows me to write a data file for
xmgr.
So far I have found some packages that allow me to start an
interactive xmgrace session from python, but I would rather have a
package that write a text file.
I realize that xmgr can read text-files, and that the format
LAS library with which you
#want to test LAPACK.
#
#When you type 'make', the installation of LAPACK begins.
#It consists of constucting the LAPACK library.
#
#LAPACK is Fortran code so you need the Fortran BLAS interface to
ATLAS:
#-L/usr/local/src/ATLAS/lib/Linux_P4SSE2 -lf77blas -latlas
#
LAS library with which you
#want to test LAPACK.
#
#When you type 'make', the installation of LAPACK begins.
#It consists of constucting the LAPACK library.
#
#LAPACK is Fortran code so you need the Fortran BLAS interface to
ATLAS:
#-L/usr/local/src/ATLAS/lib/Linux_P4SSE2 -lf77blas -latlas
#
Shi Mu wrote:
> any python module to calculate sin, cos, arctan?
The other answers in this thread point you to the standard modules. If
you need arbitrary precision floating point versions of these functions
check out:
http://calcrpnpy.sourceforge.net/clnumManual.html
--
http://mail.python.org/
Alex Martelli wrote:
> As things stand now (gmpy 1.01), an instance d of decimal.Decimal cannot
> transparently become an instance of any of gmpy.{mpz, mpq, mpf}, nor
> vice versa (the conversions are all possible, but a bit laborious, e.g.
> by explicitly going through string-forms).
>
> I'm thin
I just started learning python and I have been wondering. Is there a
short pythonic way to find the element, x, of a list, mylist, that
maximizes an expression f(x).
In other words I am looking for a short version of the following:
pair=[mylist[0],f(mylist[0])]
for x in mylist[1:]:
if f(x) >
The rpncalc package adds an interactive Reverse Polish Notation (RPN)
interpreter to Python. This interpreter allows the use of Python as
an RPN calculator. You can easily switch between the RPN interpreter
and the standard Python interpreter.
Home page: http://calcrpnpy.sourceforge.net/
Chang
Peter Hansen wrote:
> Larry Bates wrote:
>
>> I'm trying to get the results of binascii.crc32
>> to match the results of another utility that produces
>> 32 bit unsigned CRCs.
>
>
> What other utility? As Tim says, there are many CRC32s... the
> background notes on this one happen to stumble
Tim Peters wrote:
> [Raymond L. Buvel]
>
>>Check out the unit test in the following.
>>
>>http://sourceforge.net/projects/crcmod/
>
>
> Cool!
>
>
>>I went to a lot of trouble to get the results to match the results of
>>binascii.crc32. As y
Bo Peng wrote:
Dear list,
I am writing a Python extension module that needs a way to expose pieces
of a big C array to python. Currently, I am using NumPy like the following:
PyObject* res = PyArray_FromDimsAndData(1, int*dim, PyArray_DOUBLE,
char*buf);
Users will get a Numeric Array object an
The rpncalc package adds an interactive Reverse Polish Notation (RPN)
interpreter to Python. This interpreter allows the use of Python as
an RPN calculator. You can easily switch between the RPN interpreter
and the standard Python interpreter.
Home page: http://calcrpnpy.sourceforge.net/
Changes
The ratfun module provides classes for defining polynomial and rational
function (ratio of two polynomials) objects. These objects can be used
in arithmetic expressions and evaluated at a particular point.
Home page: http://calcrpnpy.sourceforge.net/ratfun.html
Note: If you are using rpncalc-1.
Robert Brewer wrote:
Gavin Bauer wrote:
My DOS window (running in windows ME) closes the second it finishes
running my programs. As you can imagine, this makes it hard to see the
results. I've gotten in the habit of putting raw_input("Press enter to
exit") at the end of every program, and in additi
I see rotor was removed for 2.4 and the docs say use an AES module
provided separately... Is there a standard module that works alike or
an AES module that works alike but with better encryption?
cheers,
reed
--
http://mail.python.org/mailman/listinfo/python-list
Super Sorry for the extra traffic. ;-)
--
http://mail.python.org/mailman/listinfo/python-list
Pro Grammer <[EMAIL PROTECTED]> writes:
> Hello, all,
> I am not sure if this is the right place to ask, but could you kindly tell me
> how to "load" a shared object (like libx.so) into python, so that the methods
> in
> the .so can be used? That too, given that the shared object was written in
I am preparing to release an extension module that interfaces Python to
the Class Library for Numbers (http://www.ginac.de/CLN/). This module
will provide Python types for arbitrary precision floating point
numbers, rational numbers, and their complex counterparts. The module
also includes most o
I have just released a new module that interfaces the Class Library for
Numbers (CLN) to Python. The CLN library is a C++ library that provides
rational and arbitrary precision floating point numbers in real and
complex form. The clnum module exposes these types to Python and also
provides arbitr
Chris Spencer wrote:
> Is there any library for Python that implements a kind of universal
> number object. Something that, if you divide two integers, generates a
> ratio instead of a float, or if you take the square root of a negative,
> generates a complex number instead of raising an exception?
201 - 300 of 618 matches
Mail list logo