Re: Python module vs library

2013-04-09 Thread Michael Torrie
On 04/09/2013 08:29 AM, rusi wrote: > I guess Michael meant "...module or package." > Else the next question is going to be "Can you explain recursion in > python?" :-) You're right. On both counts. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module vs library

2013-04-09 Thread rusi
On Apr 9, 7:18 pm, Michael Torrie wrote: > On 04/09/2013 03:58 AM, k.lykour...@gmail.com wrote: > > > Hi, what is the difference between python module and library ? > > "library" doesn't really mean anything specifically to Python's > interpreter.  It's not a valid keyword and is only used by huma

Re: Python module vs library

2013-04-09 Thread Michael Torrie
On 04/09/2013 03:58 AM, k.lykour...@gmail.com wrote: > Hi, what is the difference between python module and library ? "library" doesn't really mean anything specifically to Python's interpreter. It's not a valid keyword and is only used by humans to describe the abstract function and nature of a

Re: Python module vs library

2013-04-09 Thread Terry Jan Reedy
On 4/9/2013 5:58 AM, k.lykour...@gmail.com wrote: Hi, what is the difference between python module and library ? They are in different categories. A Python module is a namespace (a mapping of names to objects) created by running Python code as a main module or by import statements within Pyth

Re: Python module import failed error

2013-02-19 Thread Chris Angelico
On Wed, Feb 20, 2013 at 4:45 AM, wrote: > The directory /home/matt/bin contains "multimode_helper.py" and this file > path is in the PYTHONPATH. I still get the import error however. so now that > i know the file path is in PYTHONPATH but i am still getting the import error > i am really conf

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
Here is the PYTHONPATH >>> import sys >>> sys.path ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/

Re: Double posts (was Re: Python module import failed error)

2013-02-19 Thread matt . doolittle33
Thanks Lele. -- http://mail.python.org/mailman/listinfo/python-list

Double posts (was Re: Python module import failed error)

2013-02-19 Thread Lele Gaifax
matt.doolittl...@gmail.com writes: > Does anyone know why i keep having these double posts? That's because your posts carry the following headers: To: python-list@python.org Cc: python-list@python.org or these (from a previous message): To: comp.lang.pyt...@googlegroups.com Cc: python-

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > gnuradiocompanion.py ? And does the error message/stacktrace appear in > > the same terminal window? > hi. ok so i am trying to run the python module (multimode_helper.py) in the GNU radio companion (GRC) which is sort of like an IDE which lets you organize code blocks by arranging

Re: Python module import failed error

2013-02-19 Thread Mark Lawrence
On 19/02/2013 16:57, matt.doolittl...@gmail.com wrote: What is PYTHONPATH actually set to? You can find out by running python interactively, then i dont know. how do i run pythoin interactively? Type python at a command prompt :) -- Cheers. Mark Lawrence -- http://mail.python.org/mai

Re: Python module import failed error

2013-02-19 Thread Dave Angel
On 02/19/2013 11:57 AM, matt.doolittl...@gmail.com wrote: What is PYTHONPATH actually set to? You can find out by running python interactively, then i dont know. how do i run pythoin interactively? By typing the simple command 'python' davea@think2:~$ python Python 2.7.3 (default, A

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > What is PYTHONPATH actually set to? OK so i ran python and then : import sys sys.path bash returned: ['', '/home/matt', '/users/matt/bin', '/home/matt/bin', '/Home/bin', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-linux2', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old',

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
Does anyone know why i keep having these double posts? please excuse them; i am a super newbie to this forum (and python obviously). Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> What is PYTHONPATH actually set to? You can find out by running python > > interactively, then i dont know. how do i run pythoin interactively? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
On Tuesday, February 19, 2013 11:44:32 AM UTC-5, Thomas Calmant wrote: > Hi, > > Do you run Python in the same terminal than where you run the export command ? > no i dont. the python program looking for the modules in the ~/bin directory is called GNU radio companion. -- http://mail.python.

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
On Tuesday, February 19, 2013 11:39:14 AM UTC-5, Chris Angelico wrote:> > > What exactly do you mean by "no luck"? More details would be good. > The program i am using (GNU radio companion) that wants to import the modules from the ~/bin folder shows this error: Block - import_0_0_0 - Import(

Re: Python module import failed error

2013-02-19 Thread Mark Lawrence
On 19/02/2013 16:28, matt.doolittl...@gmail.com wrote: My guess would be /home/matt/bin - note the leading slash. ChrisA correct. and in the home directory i run export PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the wrong command? What is PYTHONPATH act

Re: Python module import failed error

2013-02-19 Thread Thomas Calmant
Hi, Do you run Python in the same terminal than where you run the export command ? ++ Thomas 2013/2/19 > My guess would be /home/matt/bin - note the leading slash. > > > > > > > > ChrisA > > correct. and in the home directory i run export > PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had

Re: Python module import failed error

2013-02-19 Thread Chris Angelico
On Wed, Feb 20, 2013 at 3:28 AM, wrote: > My guess would be /home/matt/bin - note the leading slash. >> >> >> >> ChrisA > > correct. and in the home directory i run export > PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the > wrong command? What exactly do you mean

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
My guess would be /home/matt/bin - note the leading slash. > > > > ChrisA correct. and in the home directory i run export PYTHONPATH=${PYTHONPATH}:/home/matt/bin and have had no luck? am i using the wrong command? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module import failed error

2013-02-19 Thread Chris Angelico
On Wed, Feb 20, 2013 at 3:17 AM, wrote: > thats the file path. the directory "bin" in my home directory. in bash it > obviously looks like this "~/bin" using the file system folder the path is > home/Home/bin. i have tried commands like, export > PYTHONPATH=${PYTHONPATH}:/users/matt/bin or

Re: Python module import failed error

2013-02-19 Thread matt . doolittle33
> > What do you mean by that path? That doesn't look like an Ubuntu/Linux > > path name. Pull up a terminal (Ctrl-Alt-T should do that for you, > > though I haven't used an Ubuntu since 10.10) and see if you can 'ls' > > the path - once you have the real path name (it might start with > > /ho

Re: Python module import failed error

2013-02-19 Thread Chris Angelico
On Wed, Feb 20, 2013 at 2:23 AM, wrote: > Hello all; I am using Ubuntu 12.10 and Python v2.7.3. I am trying to add a > directory to the PYTHONPATH. All of the commands I have found on the web > have failed. Please help me to add a directory to the PYHONPATH. The file > path is Home/home/bi

Re: python module

2012-04-16 Thread MRAB
On 17/04/2012 01:21, Chris Angelico wrote: On Tue, Apr 17, 2012 at 9:43 AM, Mark Lawrence wrote: I'd like to point out that it's frustrating when you find a piece of code that you'd like to use but neither easy_install nor pip work cos it can't be found. Worse still when you want to try a r

Re: python module

2012-04-16 Thread Kiuhnm
On 4/17/2012 1:23, Steven D'Aprano wrote: [...] Wherever you host the code itself, you should also register it on PyPI. Ok, thanks. Kiuhnm -- http://mail.python.org/mailman/listinfo/python-list

Re: python module

2012-04-16 Thread Chris Angelico
On Tue, Apr 17, 2012 at 9:43 AM, Mark Lawrence wrote: > I'd like to point out that it's frustrating when you find a piece of code > that you'd like to use but neither easy_install nor pip work cos it can't be > found.  Worse still when you want to try a really popular product like > taskcoach, but

Re: python module

2012-04-16 Thread Mark Lawrence
On 17/04/2012 00:23, Steven D'Aprano wrote: On Mon, 16 Apr 2012 12:23:14 +0200, Kiuhnm wrote: I'd like to share a module of mine with the Python community. I'd like to encourage bug reports, suggestions, etc... Where should I upload it to? Kiuhnm PyPI, unofficially known as the cheeseshop, i

Re: python module

2012-04-16 Thread Steven D'Aprano
On Mon, 16 Apr 2012 12:23:14 +0200, Kiuhnm wrote: > I'd like to share a module of mine with the Python community. I'd like > to encourage bug reports, suggestions, etc... Where should I upload it > to? > > Kiuhnm PyPI, unofficially known as the cheeseshop, is the semi-official place for third-p

Re: python module

2012-04-16 Thread Kiuhnm
On 4/16/2012 13:02, Thomas Rachel wrote: Am 16.04.2012 12:23 schrieb Kiuhnm: I'd like to share a module of mine with the Python community. I'd like to encourage bug reports, suggestions, etc... Where should I upload it to? Kiuhnm There are several ways to do this. One of them would be bitbuck

Re: python module

2012-04-16 Thread Chris Angelico
On Mon, Apr 16, 2012 at 8:23 PM, Kiuhnm wrote: > I'd like to share a module of mine with the Python community. I'd like to > encourage bug reports, suggestions, etc... > Where should I upload it to? Are you planning to open source it? If so, I would recommend using one of the version-control host

Re: python module

2012-04-16 Thread Thomas Rachel
Am 16.04.2012 12:23 schrieb Kiuhnm: I'd like to share a module of mine with the Python community. I'd like to encourage bug reports, suggestions, etc... Where should I upload it to? Kiuhnm There are several ways to do this. One of them would be bitbucket. Thomas -- http://mail.python.org/mai

Re: python module development workflow

2012-04-12 Thread rusi
On Apr 11, 8:38 pm, Peng Yu wrote: > On Apr 11, 10:25 am, John Gordon wrote: > > > In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng > > Yu writes: > > > > It is confusing to me what the best workflow is for python module > > > development. There is setup.py, egg. Also

Re: python module development workflow

2012-04-12 Thread John Nagle
On 4/11/2012 1:04 PM, Miki Tebeka wrote: Could any expert suggest an authoritative and complete guide for developing python modules? Thanks! I'd start with http://docs.python.org/distutils/index.html Make sure that python setup.py build python setup.py install works.

Re: python module development workflow

2012-04-11 Thread Miki Tebeka
> Could any expert suggest an authoritative and complete guide for > developing python modules? Thanks! I'd start with http://docs.python.org/distutils/index.html -- http://mail.python.org/mailman/listinfo/python-list

Re: python module development workflow

2012-04-11 Thread Peng Yu
On Apr 11, 10:25 am, John Gordon wrote: > In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng > Yu writes: > > > It is confusing to me what the best workflow is for python module > > development. There is setup.py, egg. Also, pip, easy_install. > > It's unclear what you a

Re: python module development workflow

2012-04-11 Thread John Gordon
In <2900f481-fbe9-4da3-a7ca-5485d1ceb...@m13g2000yqc.googlegroups.com> Peng Yu writes: > It is confusing to me what the best workflow is for python module > development. There is setup.py, egg. Also, pip, easy_install. It's unclear what you are asking. How to develop your own modules? How to

Re: python module to determine if a machine is idle/free

2011-08-03 Thread Chris Rebert
On Wed, Aug 3, 2011 at 9:06 PM, Danny Wong (dannwong) wrote: > Hi all, > >     I have 5 server machines that are using to process > information. I would like to write a quick server python script that > determines which of the machines are not in use. Any recommendations on > which pyt

Re: python module/utility equivalent to 'time' (linux) and/or 'ntimer'(Windows)

2010-03-12 Thread Godson Gera
Take a look at hotshot module of python http://docs.python.org/library/hotshot.html On Fri, Mar 12, 2010 at 7:26 PM, hiral wrote: > Hi, > > Is there any python module/utility available which would report the > time same as 'time' command in linux and/or report time same as > 'ntimer' utility in

Re: python module for data comparison of 2 MySQL servers

2009-09-04 Thread Tino Wildenhain
Hi, Am 02.09.2009 02:00, schrieb none: I have 2 MySQL servers in 2 different data centers. Between them, there is data replication setup. Is there a python tool so I can do data comparison for daily records? Why should the data differ and the replication not detect and correct it? I frequentl

Re: python module for data comparison of 2 MySQL servers

2009-09-04 Thread Kushal Kumaran
On Wed, Sep 2, 2009 at 5:30 AM, <> wrote: > I have 2 MySQL servers in 2 different data centers. > Between them, there is data replication setup. > > Is there a python tool so I can do data comparison for daily records? > > Basically, just access both servers and do a diff in memory and print out >

Re: Python Module for console text formatting?

2009-02-18 Thread alex goretoy
- > *From:* geremy condra > *To:* python-list@python.org > *Sent:* Wednesday, 18 February, 2009 10:04:34 AM > *Subject:* Re: Python Module for console text formatting? > > You can insert those codes just like you would any other character. If > there's enough intere

Re: Python Module for console text formatting?

2009-02-18 Thread srinivasan srinivas
0:04:34 AM Subject: Re: Python Module for console text formatting? You can insert those codes just like you would any other character. If there's enough interest I can whip up a wrapper library for you. http://www.linux.gr/cgi-bin/man2html?console_codes+4 On Tue, Feb 17, 2009 at 11:19

Re: Python Module for console text formatting?

2009-02-17 Thread geremy condra
You can insert those codes just like you would any other character. If there's enough interest I can whip up a wrapper library for you. http://www.linux.gr/cgi-bin/man2html?console_codes+4 On Tue, Feb 17, 2009 at 11:19 PM, srinivasan srinivas < sri_anna...@yahoo.co.in> wrote: > > Hi, > Does anyo

Re: Python Module: nift

2009-02-10 Thread r0g
J wrote: > Thanks for your answers, especially Chris Rebert and Paul McGuire's. I > have a question: > How far does Python go in the Game Development field? (Using Python > only, no extensions) Hey J, Python's all about the libraries (extensions), you won't be able to do much without them but th

Re: Python Module: nift

2009-02-09 Thread bearophileHUGS
Steven D'Aprano: > There's less code, fewer bugs and lines. Less applies to continuous > quantities, like weight and "amount of code", and fewer applies to > countable quantities. Thank you, I'll try to improve my use of the language. > Within reason, naturally. There's a reason why we write: >

Re: Python Module: nift

2009-02-08 Thread Steven D'Aprano
On Sun, 08 Feb 2009 13:34:50 -0800, bearophileHUGS wrote: > Gabriel Genellina: >> bearophile: >> > - Generally I suggest to learn to code in the small, using as little >> > code as possible. >> >> I completely agree with all the above suggestions, except this last >> one. Ok, I think I know what y

Re: Python Module: nift

2009-02-08 Thread Terry Reedy
J wrote: What are your thoughts on this module I created? ''' A Python Module created by a High School Student. Includes rev(), reet(), and leet(). Gutsy of you to post this. Setup: * Save to Python Directory\Lib\ as nift.py Add-in modules and package

Re: Python Module: nift

2009-02-08 Thread Paul McGuire
On Feb 8, 3:28 pm, Chris Rebert wrote: > This I disagree with as being unnecessarily clever; the dict literal > is just fine as-is and the zip() makes it less clear. However, I would > definitely rewrite the dict to use less lines, which, after removing > the capital dupes (as I mentioned in my po

Re: Python Module: nift

2009-02-08 Thread Chris Rebert
On Sun, Feb 8, 2009 at 2:45 PM, J wrote: > Thanks for your answers, especially Chris Rebert and Paul McGuire's. I > have a question: > How far does Python go in the Game Development field? (Using Python > only, no extensions) You pretty much need to integrate with some C(++) libraries in order to

Re: Python Module: nift

2009-02-08 Thread J
Thanks for your answers, especially Chris Rebert and Paul McGuire's. I have a question: How far does Python go in the Game Development field? (Using Python only, no extensions) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Module: nift

2009-02-08 Thread bearophileHUGS
Gabriel Genellina: > bearophile: > > - Generally I suggest to learn to code in the small, using as little > > code as possible. > > I completely agree with all the above suggestions, except this last one.   > Ok, I think I know what you mean, but a beginner might understand this   > completely wron

Re: Python Module: nift

2009-02-08 Thread Chris Rebert
On Sun, Feb 8, 2009 at 12:57 PM, Paul McGuire wrote: > On Feb 8, 12:42 pm, J wrote: >> What are your thoughts on this module I created? >> > Here are a few steps to illustrate some good basic Python idioms worth > learning: > > Step 1: Replace many-branched if-elif with dict > > While translating

Re: Python Module: nift

2009-02-08 Thread bearophileHUGS
Paul McGuire: > LEET_LETTERS = dict( zip("eEaAiItTsSoObB", "33441177550088") ) > def leet(s): >     return ''.join( LEET_LETTERS.get(c,c) for c in s ) This may be better: from string import maketrans def leet(txt): leet_chars = maketrans("eEaAiItTsSoObB", "33441177550088") return txt.tra

Re: Python Module: nift

2009-02-08 Thread Paul McGuire
On Feb 8, 12:42 pm, J wrote: > What are your thoughts on this module I created? > Here are a few steps to illustrate some good basic Python idioms worth learning: Step 1: Replace many-branched if-elif with dict While translating characters in a string is a special case that usually warrants usin

Re: Python Module: nift

2009-02-08 Thread Gabriel Genellina
En Sun, 08 Feb 2009 17:59:41 -0200, escribió: More suggestions for a real-world Python programmer: - There's code duplication, the original poster may express reet as a composition of the other functions. - A Python string/list/array can be inverted with [::-1] - I suggest to convert the exampl

Re: Python Module: nift

2009-02-08 Thread bearophileHUGS
More suggestions for a real-world Python programmer: - There's code duplication, the original poster may express reet as a composition of the other functions. - A Python string/list/array can be inverted with [::-1] - I suggest to convert the examples of the main doscstring into doctests. - The mai

Re: Python Module: nift

2009-02-08 Thread Chris Rebert
On Sun, Feb 8, 2009 at 10:42 AM, J wrote: > What are your thoughts on this module I created? * You should probably use individual docstrings for each function rather than one giant module docstring * Don't use 'list' as a variable name; it shadows the name of the builtin list type * You can use t

Re: Python module import loop issue

2008-12-30 Thread Gabriel Genellina
En Tue, 30 Dec 2008 01:32:48 -0200, Carl Banks escribió: Gabriel Genellina wrote: A problem with metaclasses is when you have intermediate subclasses that are not meant to be registered, but the metaclass applies equally to all of them. Not the way I wrote it. If you'll note, the metaclas

Re: Python module import loop issue

2008-12-29 Thread Kottiyath
On Dec 30, 8:24 am, "Gabriel Genellina" wrote: > En Mon, 29 Dec 2008 19:47:51 -0200, Carl Banks   > escribió: > > > On Dec 29, 10:51 am, Kottiyath wrote: > >> Module Factory: > >> A1Factory: {'B1Tag':1.1.B1, 'C1Tag':1.2.C1, 'D1Tag':1.3.D1'} > >> A2Factory: {'B2Tag':2.1.B2, 'C2Tag':2.2.C2, 'D2Tag

Re: Python module import loop issue

2008-12-29 Thread Carl Banks
Gabriel Genellina wrote: > En Mon, 29 Dec 2008 19:47:51 -0200, Carl Banks > escribi�: > > On Dec 29, 10:51�am, Kottiyath wrote: > > >> Module Factory: > >> A1Factory: {'B1Tag':1.1.B1, 'C1Tag':1.2.C1, 'D1Tag':1.3.D1'} > >> A2Factory: {'B2Tag':2.1.B2, 'C2Tag':2.2.C2, 'D2Tag':2.3.D2'} > >> > >> But,

Re: Python module import loop issue

2008-12-29 Thread Gabriel Genellina
En Mon, 29 Dec 2008 19:47:51 -0200, Carl Banks escribió: On Dec 29, 10:51 am, Kottiyath wrote: Module Factory: A1Factory: {'B1Tag':1.1.B1, 'C1Tag':1.2.C1, 'D1Tag':1.3.D1'} A2Factory: {'B2Tag':2.1.B2, 'C2Tag':2.2.C2, 'D2Tag':2.3.D2'} But, since Module requires objects of B1, C1 etc, it has

Re: Python module import loop issue

2008-12-29 Thread Carl Banks
On Dec 29, 10:51 am, Kottiyath wrote: > This might not be  pure python question. Sorry about that. I couldnt > think of any other place to post the same. > I am creating a _medium_complex_ application, and I am facing issues > with creating the proper module structure. > This is my first applicati

Re: Python module for reading FilePro files?

2008-04-17 Thread Steve Bergman
Thanks. Yes, there is a php-filepro extension that I could hook up with using the command line interpreter. That may well be what I end up doing. Or maybe port the php extension to python. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python module for reading FilePro files?

2008-04-17 Thread M.-A. Lemburg
On 2008-04-16 15:53, Steve Bergman wrote: > Does anyone know of a Python package or module to read data files from > the venerable old Filepro crossplatform database/IDE? No, but there is Filepro support in PHP, so you could write a PHP script which reads the data and then exports it to some other

Re: Python module for making Quicktime or mpeg movies from images

2007-10-15 Thread has
On 16 Oct, 00:55, jeremito <[EMAIL PROTECTED]> wrote: > > > -QuickTimePlayer is standard on OS X and its scripting interface > > (which you can access from Python via appscript, and is fully usable > > even in unpaid mode) includes an 'open image sequence' command. > > I have used this, but I want

Re: Python module for making Quicktime or mpeg movies from images

2007-10-15 Thread jeremito
On Oct 13, 5:30 am, has <[EMAIL PROTECTED]> wrote: > On 12 Oct, 20:53, jeremito <[EMAIL PROTECTED]> wrote: > > > I actually found NodeBox in my googling. This seems to be a stand > > alone application. I need to be able to convert my images to a movie > > from my code I wrote myself. > > Some Mac

Re: Python module for making Quicktime or mpeg movies from images

2007-10-15 Thread Hyuga
On Oct 12, 3:53 pm, jeremito <[EMAIL PROTECTED]> wrote: > > NodeBox; nodebox.org > > > GUI application that creates either PDFs or Quicktime vids from python > > code. Unix/Linux/MacOS. > > I actually found NodeBox in my googling. This seems to be a stand > alone application. I need to be able to

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread Diez B. Roggisch
>- The Mac version of Python includes wrappers for a number of Carbon > APIs, including QuickTime. One for brave souls only; QT's C APIs are > notoriously complex, AMEN. I tried to work with that stuff, and it was close to a totally failure & desaster... Diez -- http://mail.python.org/mailman/

Re: Python module for making Quicktime or mpeg movies from images

2007-10-13 Thread has
On 12 Oct, 20:53, jeremito <[EMAIL PROTECTED]> wrote: > I actually found NodeBox in my googling. This seems to be a stand > alone application. I need to be able to convert my images to a movie > from my code I wrote myself. Some Mac-specific options: - QuickTime Player is standard on OS X and

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread jeremito
On Oct 12, 10:37 am, TYR <[EMAIL PROTECTED]> wrote: > On Oct 11, 4:17 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > > > > > jeremito wrote: > > > On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > > >> jeremito wrote: > > >>> My Python script makes a bunch of images that I want to u

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread Daniel Fetchinson
> My Python script makes a bunch of images that I want to use as frames > in a movie. I've tried searching for a module that will take these > images and put them together in a Quicktime or mpeg movie, but haven't > found anything. My images are currently pdfs, but I could make them > into just a

Re: Python module for making Quicktime or mpeg movies from images

2007-10-12 Thread TYR
On Oct 11, 4:17 pm, Tim Golden <[EMAIL PROTECTED]> wrote: > jeremito wrote: > > On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > >> jeremito wrote: > >>> My Python script makes a bunch of images that I want to use as frames > >>> in a movie. I've tried searching for a module th

Re: Python module for making Quicktime or mpeg movies from images

2007-10-11 Thread Tim Golden
jeremito wrote: > On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: >> jeremito wrote: >>> My Python script makes a bunch of images that I want to use as frames >>> in a movie. I've tried searching for a module that will take these >>> images and put them together in a Quicktime o

Re: Python module for making Quicktime or mpeg movies from images

2007-10-11 Thread jeremito
On Oct 11, 10:43 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: > jeremito wrote: > > My Python script makes a bunch of images that I want to use as frames > > in a movie. I've tried searching for a module that will take these > > images and put them together in a Quicktime or mpeg movie, but h

Re: Python module for making Quicktime or mpeg movies from images

2007-10-11 Thread Diez B. Roggisch
jeremito wrote: > My Python script makes a bunch of images that I want to use as frames > in a movie. I've tried searching for a module that will take these > images and put them together in a Quicktime or mpeg movie, but haven't > found anything. My images are currently pdfs, but I could make t

Re: Python module question

2007-02-05 Thread Gabriel Genellina
En Mon, 05 Feb 2007 16:43:54 -0300, Rodolfo S. Carvalho <[EMAIL PROTECTED]> escribió: > My question is: can I code a method __getattr__() to change the behavior > of > the 'import' command? You can play with __import__, imp and ihooks, but could you explain better what you need? Perhaps you

Re: Python module for the IPod shuffle ...

2007-02-01 Thread Analog Kid
hi simon: thanks a lot for that resource ... i downloaded it and tried to use it ... but when i try to import pypod, i get an error, which is as follows... ImportError: No module named _gpod I guess I have to do something more than merely putting the two files ( pypod.py and gpod.py) in my site-

Re: Python module for the IPod shuffle ...

2007-02-01 Thread Simon Brunning
On 1/31/07, Analog Kid <[EMAIL PROTECTED]> wrote: > Hi all: > Im looking for a python module thatll let me do simple reads/writes from and > to an iPod shuffle similar to iTunes ... I read about the gPod module ... > but Im not sure whether it will work in Windows ... This any good?

Re: python module for finite element program

2006-10-20 Thread google
This isn't a python module, but python is embedded in the environment http://salome-platform.org/ Also check out http://www.caelinux.com/CMS/ for a live distro that contains several FE applications. Andy -- http://mail.python.org/mailman/listinfo/python-list

Re: python module for finite element program

2006-10-20 Thread Larry Bates
[EMAIL PROTECTED] wrote: > Hello, > > Is there any add on python modules suitable for finite element 3D mesh > such as to create (beam, plate, etc) ? > > Best Regards, > ajikoe > Google is your friend: http://www.python.org/pycon/papers/pysparse.html http://sourceforge.net/projects/feval/ http

Re: Python Module for Determining CPU Freq. and Memory?

2006-04-06 Thread Michele Petrazzo
Tim Golden wrote: > [efrat] > > |I'd like to determine at runtime the computer's CPU frequency and > | memory. > | > | (Please note: I'm interested in hardware stuff, like how much > | memory the > | machine has; not how much free memory is available.) > > I don't know if there's a cross-

Re: Python Module for Determining CPU Freq. and Memory?

2006-04-06 Thread Ron Adam
efrat wrote: > Hello, > > I'd like to determine at runtime the computer's CPU frequency and memory. > > Is there a module for these types of queries? platform.platform returns > the computer's CPU name and type, but not its frequency; nor does it > report how much memory the computer has. I

RE: Python Module for Determining CPU Freq. and Memory?

2006-04-06 Thread Tim Golden
[efrat] |I'd like to determine at runtime the computer's CPU frequency and | memory. | | (Please note: I'm interested in hardware stuff, like how much | memory the | machine has; not how much free memory is available.) I don't know if there's a cross-platform solution for this. For Window

Re: Python module for LX200 telescope command set

2006-01-31 Thread Alan Kennedy
[RayS] > I've begun a Python module to provide a complete interface to the Meade > LX200 command set: and > History: after searching for such a thing, I had found only: > http://72.14.203.104/search?q=cache:hOgO7H_MUeYJ:phl3pc02.phytch.dur.ac.uk/~jrl/source/source_code.html+lx200.py&hl=en&gl=us&

Re: Python module for the LX200 command set

2006-01-30 Thread A.M. Kuchling
On Mon, 30 Jan 2006 09:20:09 -0800, RayS <[EMAIL PROTECTED]> wrote: >>Hi Ray - I'm the co-ordinator of Project Galileo - great to see >>someone else is developing code too, especially in Python. (Assuming this refers to ...) This subject would make an

Re: Python module for LX200 telescope command set (Steve Horsley)

2006-01-30 Thread RayS
At 08:25 AM 1/30/2006, you wrote: >Terry Hancock wrote: >>On Sun, 29 Jan 2006 15:25:43 -0800 >>RayS <[EMAIL PROTECTED]> wrote: >>(about LX200 module) >>Sounds interesting, but I don't actually know what an LX200 >>is. I considered buying one of the Meade computer controlled >>telescopes (there is a

Re: Python module for the LX200 command set

2006-01-30 Thread RayS
Hello Dez, Thanks for the reply - I was hoping to hear from your project. It will be interesting to see what John Lucey is doing before I go too far along - I hate re-inventing the wheel. I was wondering why the directory was simply empty. I will try to email him, if I can. I suspect that he al

Re: Python module for LX200 telescope command set

2006-01-30 Thread RayS
Hello Neil, Thank you for the extended response! All of your suggestions are reasonable, at the least. The only misgiving I had with breaking up into multiple classes is that the scope itself maintains state variables (it runs a Motorola processor etc) - so you can pick an object from the libra

Re: Python module for LX200 telescope command set

2006-01-30 Thread Steve Horsley
Terry Hancock wrote: > On Sun, 29 Jan 2006 15:25:43 -0800 > RayS <[EMAIL PROTECTED]> wrote: > (about LX200 module) > > Sounds interesting, but I don't actually know what an LX200 > is. I considered buying one of the Meade computer controlled > telescopes (there is a very inexpensive one that has b

Re: Python module for LX200 telescope command set

2006-01-30 Thread Neil Benn
RayS wrote: >I've begun a Python module to provide a complete interface to the Meade >LX200 command set: >http://rjs.org/Python/LX200.py >and would like input from potential users or people interested in >developing it further. > > Hello, I know nothing about telescopes and spendin

Re: Python module for LX200 telescope command set

2006-01-29 Thread Robert Kern
RayS wrote: > Whatever happened to the astropy list? http://www.scipy.net/mailman/listinfo/astropy -- Robert Kern [EMAIL PROTECTED] "In the fields of hell where the grass grows high Are the graves of dreams allowed to die." -- Richard Harter -- http://mail.python.org/mailman/listinfo/pyth

Re: Python module for LX200 telescope command set

2006-01-29 Thread RayS
At 06:55 PM 1/29/2006, you wrote: >Subject: Re: Python module for LX200 telescope command set >Message: 9 > >On Sun, 29 Jan 2006 15:25:43 -0800, RayS <[EMAIL PROTECTED]> declaimed >the following in comp.lang.python: > > > I've begun a Python module to provid

Re: Python module for LX200 telescope command set

2006-01-29 Thread Terry Hancock
On Sun, 29 Jan 2006 15:25:43 -0800 RayS <[EMAIL PROTECTED]> wrote: (about LX200 module) Sounds interesting, but I don't actually know what an LX200 is. I considered buying one of the Meade computer controlled telescopes (there is a very inexpensive one that has been marketed through Walmart. Ordin

Re: Python Module Exposure

2005-07-10 Thread George Sakkis
"Jacob Page" <[EMAIL PROTECTED]> wrote: > OK, you've convinced me now to support and, or, and xor between every > combination of Intervals and IntervalSets, Intervals and IntervalSets, > and IntervalSets and Intervals. I'm sorry, this was not my intention . > However, I'm not sure I like the id

Re: Python Module Exposure

2005-07-10 Thread Jacob Page
George Sakkis wrote: > "Jacob Page" <[EMAIL PROTECTED]> wrote: > >>If the union of two integers yielded a set of integers, then >>it'd make more since for the union of two Intervals to yield an >>IntervalSet. > > AFAIK union is defined over sets, not numbers, so I'm not sure what you > mean by th

Re: Python Module Exposure

2005-07-10 Thread George Sakkis
"Jacob Page" <[EMAIL PROTECTED]> wrote: > If the union of two integers yielded a set of integers, then > it'd make more since for the union of two Intervals to yield an > IntervalSet. AFAIK union is defined over sets, not numbers, so I'm not sure what you mean by the "union of two integers". What

Re: Python Module Exposure

2005-07-09 Thread Jacob Page
George Sakkis wrote: > "Jacob Page" <[EMAIL PROTECTED]> wrote: > >>I selected option one; Intervals are immutable. However, this doesn't >>mean that __add__ has to go, as that function has no side-effects. The >>reason I chose option one was because it's uncommon for a mathematical >>operation o

Re: Python Module Exposure

2005-07-09 Thread George Sakkis
"Jacob Page" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > As I see it, there are two main options you have: > > > > 1. Keep Intervals immutable and pass all the responsibility of > > combining them to IntervalSet. In this case Interval.__add__ would have > > to go. This is simple to imple

Re: Python Module Exposure

2005-07-09 Thread Jacob Page
George Sakkis wrote: > "Jacob Page" <[EMAIL PROTECTED]> wrote: > >>I think I will keep Interval exposed. It sort of raises a bunch of >>hard-to-answer design questions having two class interfaces, though. >>For example, would Interval.between(2, 3) + Interval.between(5, 7) raise >>an error (as it

Re: Python Module Exposure

2005-07-09 Thread George Sakkis
"Jacob Page" <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > There are several possible use cases where dealing directly with > > intervals would be appropriate or necessary, so it's good to have them > > supported directly by the module. > > I think I will keep Interval exposed. It sort of

  1   2   >