Iowa Python Users Group - First Meeting

2008-09-09 Thread Mike Driscoll
Hi, The first meeting date for the Iowa Python Users Group (USA) has been decided. Here are the details: Time / Date: Wednesday, Sept. 24 from 7-9 p.m. Location: Marshall County Sheriff's Office, 3rd floor 2369 Jessup Ave

Python-URL! - weekly Python news and links (Sep 9)

2008-09-09 Thread Gabriel Genellina
QOTW: So why am I supposed to care about SOAP again? Oh yes, the wizards I can use to generate 'web service end-points' from programming language code. My years in the SOAP trenches just makes me laugh myself half to death at that notion: I would probably have been twice as productive if every

Re: found a bug with smtpd, where can i report this?

2008-09-09 Thread Tim Roberts
Marcus.CM [EMAIL PROTECTED] wrote: Where should i report the bug? smtpd bug. Why don't you tell us about it? There may be another explanation. -- Tim Roberts, [EMAIL PROTECTED] Providenza Boekelheide, Inc. -- http://mail.python.org/mailman/listinfo/python-list

Newbie Question:Please help

2008-09-09 Thread Karthik Krishnan
Hi, I am a newbie to python and I hope this is not a stupid question. I am trying to run a main method from a Python command line using the command shell using the command. python main_test.py I get the following error. File stdin, line 1 python main_test.py Syntax Error: invalid syntax

Re: Newbie Question:Please help

2008-09-09 Thread Rob Weir
On 9 Sep 2008, Karthik Krishnan wrote: File stdin, line 1 python main_test.py Syntax Error: invalid syntax I get: File /tmp/x.py, line 11 if __name__ = __main__: ^ SyntaxError: invalid syntax if __name__ = __main__: ^ = is used for assignment in Python,

AttributeError: 'module' object has no attribute 'getdefaultlocale' on Python start

2008-09-09 Thread Barak, Ron
Hi Fellow Pythonians, I stated getting the following when starting Python (2.5.2 on Windows XP): C:\Documents and Settings\RBARAKpython -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # D:\Python25\lib\site.pyc matches D:\Python25\lib\site.py import site #

Re: Numeric literal syntax

2008-09-09 Thread glen stark
On Tue, 09 Sep 2008 08:32:29 +1000, Tom Harris wrote: I agree. So did Forth's early designers. That is why Forth's number parser considers a word that starts with a number and has embedded punctuation to be a 32 bit integer, and simply ignores the punctuation. I haven't used Forth in years,

Re: AttributeError: 'module' object has no attribute 'getdefaultlocale' on Python start

2008-09-09 Thread Matt Nordhoff
Barak, Ron wrote: Hi Fellow Pythonians, I stated getting the following when starting Python (2.5.2 on Windows XP): C:\Documents and Settings\RBARAKpython -v # installing zipimport hook import zipimport # builtin # installed zipimport hook # D:\Python25\lib\site.pyc matches

Re: Correcting for Drift between Two Dates

2008-09-09 Thread Steven D'Aprano
On Mon, 08 Sep 2008 21:53:18 -0700, W. eWatson wrote: I have two dates, ts1, ts2 as below in the sample program. I know the clock drift in seconds per day. I would like to calculate the actual date of ts2. See my question at the end of the program. When faced with a complicated task, break

Re: universal unicode font for reportlab

2008-09-09 Thread Jeroen Ruigrok van der Werven
-On [20080909 05:23], Terry Reedy ([EMAIL PROTECTED]) wrote: Ariel Unicode MS is the one that seems pretty complete. Not really. It misses a lot of characters. Might I recommend using BabelMap (http://www.babelstone.co.uk/Software/BabelMap.html) so you can investigate your fonts? The only font

Re: finding the parent class (not superclass) of the currently executing method derived from a Borg class

2008-09-09 Thread Bruno Desthuilliers
seanacais a écrit : I want to create a class derived from a Borg class that can instantiated as part of a script or be contained in other classes. When methods from the Borg class are called, I would like to know the name of the class that contains the Borg class. I've played a bit with

Re: class(object) and (type)??

2008-09-09 Thread Bruno Desthuilliers
On Mon, Sep 8, 2008 at 2:35 PM, AON LAZIO [EMAIL PROTECTED] wrote: Hi again pythoners, I notice in the class of a code having (object) and (type) attached to the name of the class. I know that in other cases, that means the class inherits methods and properties from other but In this case,

Re: Test if list contains another list

2008-09-09 Thread Bruno Desthuilliers
Matimus a écrit : On Sep 8, 12:32 am, Bruno Desthuilliers [EMAIL PROTECTED] wrote: (snip) set(a).issubset(set(b)) True Just to clarify, doing it using sets is not going to preserve order OR number of elements that are the same. That is: a = [1,1,2,3,4] b = [4,5,3,7,2,6,1]

biopython

2008-09-09 Thread Beema Shafreen
Hi all, I am using Biopython to fetch pumed Id's ,The module i use is (from Bio import Entrez) But i am getting this error from Bio import Entrez Traceback (most recent call last): File stdin, line 1, in ? ImportError: cannot import name Entrez what should i do know can anybody suggest me

Python Installation and Running on Windows Vista

2008-09-09 Thread Mchizi_Crazy
Please help with issue... I heard of compatimbiltity issues and would like clarification. -- http://mail.python.org/mailman/listinfo/python-list

How to record audio from Python on Mac?

2008-09-09 Thread skip
(I asked this on pythonmac-sig a couple days ago but got no response, so I'm casting a broader net.) Can I easily control audio record/playback from Python on my Mac? I know zip about audio recording or about Apple APIs via Python. Pointers to simple examples would be much appreciated. Thanks,

видео Бритни и Кевина.

2008-09-09 Thread fernandena
Смотри, как она сосет член, она лучшая! http://ragdai.info/golaya-pravda.htm Это видео супер! -- http://mail.python.org/mailman/listinfo/python-list

Re: biopython

2008-09-09 Thread skip
from Bio import Entrez Traceback (most recent call last): File stdin, line 1, in ? ImportError: cannot import name Entrez Can you import Bio, e.g.: import Bio ? If not, check to see where it's installed and make sure the directory containing Bio (or Bio.py) is in

Re: Python Installation and Running on Windows Vista

2008-09-09 Thread ToshiBoy
I don't use it often in Vista, but I haven't had any issues. Matter-of- fact, some things seem nicer in Vista... for instance it resets IDLE whenever I rerun a module. Mchizi_Crazy wrote: Please help with issue... I heard of compatimbiltity issues and would like clarification. --

Re: Python Installation and Running on Windows Vista

2008-09-09 Thread Sumitava Mukherjee
On Sep 9, 3:46 pm, Mchizi_Crazy [EMAIL PROTECTED] wrote: Please help with issue... I heard of compatimbiltity issues and would like clarification. The win32 installer available from python.org works absolutely fine with Vista. So, go ahead and try it out. It works for all of my friends and

Re: Correcting for Drift between Two Dates

2008-09-09 Thread W. eWatson
Steven D'Aprano wrote: On Mon, 08 Sep 2008 21:53:18 -0700, W. eWatson wrote: I have two dates, ts1, ts2 as below in the sample program. I know the clock drift in seconds per day. I would like to calculate the actual date of ts2. See my question at the end of the program. When faced with a

Re: Python Installation and Running on Windows Vista

2008-09-09 Thread Ben Finney
Mchizi_Crazy [EMAIL PROTECTED] writes: Please help with issue... What is the issue? What have you tried, what is happening, and what behaviour were you expecting instead? I heard of compatimbiltity issues and would like clarification. Same here. Can you please clarify what the issue is, as

Python training in Colorado, October 15-17

2008-09-09 Thread Mark Lutz
Python author and trainer Mark Lutz will be teaching another 3-day Python class at a conference center in Longmont, Colorado, on October 15-17, 2008. This is a public training session open to individual enrollments, and covers the same topics as the 3-day onsite sessions that Mark teaches, with

creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread metaperl.com
Pyparsing has a really nice feature that I want in PLY. I want to specify a list of strings and have them converted to a regular expression. A Perl module which does an aggressively optimizing job of this is Regexp::List - http://search.cpan.org/~dankogai/Regexp-Optimizer-0.15/lib/Regexp/List.pm

biopython

2008-09-09 Thread Sebastian Bassi
On 9/9/08, Beema Shafreen [EMAIL PROTECTED] wrote: I am using Biopython to fetch pumed Id's ,The module i use is (from Bio import Entrez) But i am getting this error from Bio import Entrez Traceback (most recent call last): File stdin, line 1, in ? ImportError: cannot import name Entrez

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread Larry Bates
metaperl.com wrote: Pyparsing has a really nice feature that I want in PLY. I want to specify a list of strings and have them converted to a regular expression. A Perl module which does an aggressively optimizing job of this is Regexp::List -

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread skip
I really dont care if the expression is optimal. So the goal is something like: vowel_regexp = oneOf(a aa i ii u uu.split()) # yielding r'(aa|a|uu| u|ii|i)' Is there a public module available for this purpose? Check Ka-Ping Yee's rxb module:

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread Marc 'BlackJack' Rintsch
On Tue, 09 Sep 2008 08:19:04 -0500, Larry Bates wrote: I really dont care if the expression is optimal. So the goal is something like: vowel_regexp = oneOf(a aa i ii u uu.split()) # yielding r'(aa|a|uu| u|ii|i)' Is there a public module available for this purpose? Perhaps I'm

Orientation on MySql using python

2008-09-09 Thread João Abrantes
Hello everyone, I want to make a program in python that uses Mysql aswell.. I don't know anything about mysql can you tell me some good books/tutorials where I can read something about mysql using python? Thanks. _ Invite your mail

Re: max(), sum(), next()

2008-09-09 Thread Boris Borcic
castironpi wrote: On Sep 8, 8:54 am, Boris Borcic [EMAIL PROTECTED] wrote: David C. Ullrich wrote: (ii) If A is a subset of B then we should have max(A) = max(B). This requires that max(empty set) be something that's smaller than everything else. So we give up on that. Er, what about

noob help request - how to make a list of defined class?

2008-09-09 Thread nuffnough
I have defined two classes with one common field (called code) and several different fields. In class A there is only one instance of any given code as all items are individual. In class B, there may be none, one or many instances of each code, as there can be any number of Bs referring to a

Re: Python and M2Crypto question

2008-09-09 Thread Bojan Mihelac
Graham, thanks, I will try with that. On Sep 8, 1:02 am, Graham Dumpleton [EMAIL PROTECTED] wrote: On Sep 7, 11:07 pm, Bojan Mihelac [EMAIL PROTECTED] wrote: Hi all! I am trying to install M2Crypto to work on OSX10.5 apache (mod_python). Error I receive: Error was:

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread Nick Craig-Wood
metaperl.com [EMAIL PROTECTED] wrote: Pyparsing has a really nice feature that I want in PLY. I want to specify a list of strings and have them converted to a regular expression. A Perl module which does an aggressively optimizing job of this is Regexp::List -

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread George Sakkis
On Sep 9, 9:12 am, metaperl.com [EMAIL PROTECTED] wrote: Pyparsing has a really nice feature that I want in PLY. I want to specify a list of strings and have them converted to a regular expression. A Perl module which does an aggressively optimizing job of this is Regexp::List

Re: Orientation on MySql using python

2008-09-09 Thread Benjamin Kaplan
On Tue, Sep 9, 2008 at 9:36 AM, João Abrantes [EMAIL PROTECTED]wrote: Hello everyone, I want to make a program in python that uses Mysql aswell.. I don't know anything about mysql can you tell me some good books/tutorials where I can read something about mysql using python? Thanks.

XML-RPC filter

2008-09-09 Thread Luigi
Dear all, I'm writing an XML-RPC server which should be able to modify the incoming request before dispatching it. In particular I wand to added two fixed parameters to the method called: one is the client host address, and the other is the user name provided as for Basic Authentication

Re: XML-RPC filter

2008-09-09 Thread Diez B. Roggisch
Luigi wrote: Dear all, I'm writing an XML-RPC server which should be able to modify the incoming request before dispatching it. In particular I wand to added two fixed parameters to the method called: one is the client host address, and the other is the user name provided as for Basic

Re: max(), sum(), next()

2008-09-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: David C. Ullrich: I didn't mention what's below because it doesn't seem likely that saying max([]) = -infinity and min([]) = +infinity is going to make the OP happy... Well, it sounds cute having Neginfinite and Infinite as

Re: max(), sum(), next()

2008-09-09 Thread David C. Ullrich
In article [EMAIL PROTECTED], Steven D'Aprano [EMAIL PROTECTED] wrote: On Fri, 05 Sep 2008 10:22:22 -0500, David C. Ullrich wrote about why max and min shouldn't accept a default argument: Think about all the previously elected female or black presidents of the US. Which one was the

Re: Clearing a session and reload() problem (with repro error)

2008-09-09 Thread Gabriel Genellina
En Mon, 08 Sep 2008 05:37:24 -0300, Rafe [EMAIL PROTECTED] escribió: I've tried to use reload with a very simple algorithm. Simply run through every imported module, ignoring anything that is None or on the C: drive (all of our python is on a network drive so this hack works for me for now) and

Re: Test if list contains another list

2008-09-09 Thread J. Cliff Dyer
On Tue, 2008-09-09 at 10:49 +0200, Bruno Desthuilliers wrote: Matimus a écrit : On Sep 8, 12:32 am, Bruno Desthuilliers [EMAIL PROTECTED] wrote: (snip) set(a).issubset(set(b)) True Just to clarify, doing it using sets is not going to preserve order OR number of elements

Re: creating an (inefficent) alternating regular expression from a list of options

2008-09-09 Thread Fredrik Lundh
Larry Bates wrote: vowel_regexp = oneOf(a aa i ii u uu.split()) # yielding r'(aa|a|uu| u|ii|i)' Is there a public module available for this purpose? Perhaps I'm missing something but your function call oneOf(...) is longer than than actually specifying the result. You can certainly write

F2PY changing integers to arrays???

2008-09-09 Thread john
I have a simple module which performs basic operations on plot3d files (below). I wrapped like: f2py --fcompiler=gfortran -m plot3d -c prec.f90 plot3d.f90 That seems to work fine, but i get some unexpected results... from plot3d import plot3d as p3 dir(p3) ['imax', 'jmax', 'kmax', 'mg',

Re: how to use execfile with input parameters

2008-09-09 Thread Gabriel Genellina
En Mon, 08 Sep 2008 08:08:33 -0300, Shi, Shaozhong [EMAIL PROTECTED] escribió: I have a Python script expecting 11 or 12 input parameters. How do I use execfile to execute the Python script in my new Python script? How do I pass in the input parameters? You might use the subprocess module

MySQLdb + AMD64

2008-09-09 Thread TheIvIaxx
After searching around for a bit for a build of MySQLdb, i have found that i will probably need to build the module for AMD64 on windows. Is there a guide or something that shows what needs to be done to build a module for a certain architecture? Thanks --

Re: F2PY changing integers to arrays???

2008-09-09 Thread mwojc
john wrote: I have a simple module which performs basic operations on plot3d files (below). I wrapped like: f2py --fcompiler=gfortran -m plot3d -c prec.f90 plot3d.f90 That seems to work fine, but i get some unexpected results... from plot3d import plot3d as p3 dir(p3) ['imax',

PYTHONSITEDIR environment variable

2008-09-09 Thread ago
Dear all, These days I often find myself using working-env.py, virtual-python.py co. The main reason in most cases is to insulate my working environment so that I can use custom site-package libs together with the default stdlib. PYTHONHOME and/or PYTHONPATH (particularly with python -S) get

Re: PYTHONSITEDIR environment variable

2008-09-09 Thread Christian Heimes
ago wrote: Wouldn't it be possible to support a PYTHONSITEDIR environment variable in site.py for this purpose? I have attached a possible patch. In what follows, if PYTHONSITEDIR is defined, that dir is used as the only source of site-packages, extra paths can easily be added by creating a .pth

check if the values are prensent in a list of values

2008-09-09 Thread flit
Hello All, I will appreciate the help from the more skillfull pythonistas.. I have a small app that generates a sequence like 00341 01741 03254 This values I am putting in a list. So I have a list = [00341,01741,03254] after the programs find the sequence 03401 this sequence is new so it

Re: PYTHONSITEDIR environment variable

2008-09-09 Thread ago
On Sep 9, 6:56 pm, Christian Heimes [EMAIL PROTECTED] wrote: I had a similar idea, wrote a PEP and implemented it for 2.6 and 3.0: http://www.python.org/dev/peps/pep-0370/ Christian Christian, I like your pep :), The only thing I would add is that in my experience I often use different

Re: How to record audio from Python on Mac?

2008-09-09 Thread Kevin Walzer
[EMAIL PROTECTED] wrote: (I asked this on pythonmac-sig a couple days ago but got no response, so I'm casting a broader net.) Can I easily control audio record/playback from Python on my Mac? I know zip about audio recording or about Apple APIs via Python. Pointers to simple examples would be

Re: check if the values are prensent in a list of values

2008-09-09 Thread Emile van Sebille
flit wrote: Hello All, I will appreciate the help from the more skillfull pythonistas.. I have a small app that generates a sequence like 00341 01741 03254 Consider using a dict with sorted tuple keys, eg d = {} for seq in ['00341','01741','03254']: ky = list(seq) ky.sort()

Re: F2PY changing integers to arrays???

2008-09-09 Thread john
Hmmm... I didn't even try that... I thought this might have caused problems down the road passing this var to other classes, etc., but i guess not! Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONSITEDIR environment variable

2008-09-09 Thread Christian Heimes
ago wrote: The only thing I would add is that in my experience I often use different working-envs for different projects, so I'd prefer to have a more generic solution as opposed to a single working-env per user. The latter could still be achieved by setting the appropriate environment variable

Re: PYTHONSITEDIR environment variable

2008-09-09 Thread ago
Small variation on the above patch, using 2 environment variables: PYTHONSITEDIR allows for local site-packages (that override system site packages), and PYTHONNOSYSSITES skips system site-packages for clean-room operation (similar to virtual-python.py --no-site- packages). ---

Re: Unable to start a process with subprocess Popen()

2008-09-09 Thread Gabriel Genellina
En Mon, 08 Sep 2008 13:35:21 -0300, [EMAIL PROTECTED] escribió: cmd = subprocess.Popen([batchFilePath], \ shell = True, \ stdin = subprocess.PIPE, stdout = subprocess.PIPE, \

Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
I am writing a library that creates temporary files and calls a series of external programs to process these files. Sometimes these external programs create files in the same directory as the input files, so to make sure they are all deleted, one must create them in a temporary directory, then

Re: PYTHONSITEDIR environment variable

2008-09-09 Thread ago
On Sep 9, 7:45 pm, Christian Heimes [EMAIL PROTECTED] wrote: ago wrote: The only thing I would add is that in my experience I often use different working-envs for different projects, so I'd prefer to have a more generic solution as opposed to a single working-env per user. The latter

Re: How to record audio from Python on Mac?

2008-09-09 Thread David Thole
On Sep 9, 1:11 pm, Kevin Walzer [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: (I asked this on pythonmac-sig a couple days ago but got no response, so I'm casting a broader net.) Can I easily control audio record/playback from Python on my Mac?  I know zip about audio recording or

Re: check if the values are prensent in a list of values

2008-09-09 Thread George Sakkis
On Sep 9, 2:04 pm, flit [EMAIL PROTECTED] wrote: Hello All, I will appreciate the help from the more skillfull pythonistas.. I have a small app that generates a sequence like 00341 01741 03254 This values I am putting in a list. So I have a list = [00341,01741,03254] after the

Re: check if the values are prensent in a list of values

2008-09-09 Thread Matt Nordhoff
Emile van Sebille wrote: flit wrote: Hello All, I will appreciate the help from the more skillfull pythonistas.. I have a small app that generates a sequence like 00341 01741 03254 Consider using a dict with sorted tuple keys, eg d = {} for seq in ['00341','01741','03254']:

[OT] top-posting and quoting (was: Re: Coming from .NET and VB and C)

2008-09-09 Thread Bruno Desthuilliers
Could you please timh and belindelof learn to quote properly and stop top-posting ? TIA -- http://mail.python.org/mailman/listinfo/python-list

Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
Please accept my apologies if this message was posted several times. My newsreader claimed that a timeout error kept the message from being posted, but I think it got through. -- http://mail.python.org/mailman/listinfo/python-list

Re: check if the values are prensent in a list of values

2008-09-09 Thread Bruno Desthuilliers
Matt Nordhoff a écrit : (snip) I'm not judging whether this is a good solution or not, but that's a silly use of a dict. Yeps, but a somewhat common one in code predating the apparition of sets as builtin type. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Michael Hoffman
Michael Hoffman wrote: unlink = os.unlink Actually, I need to use shutil.rmtree instead, but you get the idea. -- http://mail.python.org/mailman/listinfo/python-list

Deflate with urllib2...

2008-09-09 Thread Sam
I'm using urllib2 and accepting gzip and deflate. It turns out that almost every site returns either normal text or gzip. But I finally found one that returns deflate. Here's how I un-gzip: compressedstream = StringIO.StringIO(data) gzipper = gzip.GzipFile(fileobj=compressedstream)

Re: F2PY changing integers to arrays???

2008-09-09 Thread Uwe Schmitt
On 9 Sep., 18:41, john [EMAIL PROTECTED] wrote: I have a simple module which performs basic operations on plot3d files (below).  I wrapped like: f2py --fcompiler=gfortran -m plot3d -c prec.f90 plot3d.f90 That seems to work fine, but i get some unexpected results... from plot3d import

Re: check if the values are prensent in a list of values

2008-09-09 Thread flit
On 9 set, 15:13, Bruno Desthuilliers [EMAIL PROTECTED] wrote: Matt Nordhoff a écrit : (snip) I'm not judging whether this is a good solution or not, but that's a silly use of a dict. Yeps, but a somewhat common one in code predating the apparition of sets as builtin type. Thanks for all

Re: Using NamedTemporaryDir instead of multiple NamedTemporaryFiles

2008-09-09 Thread Gabriel Genellina
En Tue, 09 Sep 2008 15:49:32 -0300, Michael Hoffman [EMAIL PROTECTED] escribió: I've written a NamedTemporaryDir class which is derived somewhat from tempfile.NamedTemporaryFile in the standard library. Right now I am using NamedTemporaryFile to create individual files, but since I am

Wx Python - Code Structure Event Handling

2008-09-09 Thread lee . walczak
Hi, I have just started writing a GUI using wxpython after finding a limitation using Tkinter. I have read most tutorials on wxpython and slowly becoming accustomed considering I started with the latter GUI tool first! I must quote first that I am a novice user of python so the issue(s) I have

Iowa Python Users Group - First Meeting

2008-09-09 Thread Mike Driscoll
Hi all, The first meeting date for the Iowa Python Users Group has been decided. Here are the details: Time / Date: Wednesday, Sept. 24 from 7-9 p.m. Location: Marshall County Sheriff's Office, 3rd floor 2369 Jessup Ave

Re: Deflate with urllib2...

2008-09-09 Thread Mohamed Yousef
Try this http://www.paul.sladen.org/projects/pyflate/ 2008/9/9 Sam [EMAIL PROTECTED]: I'm using urllib2 and accepting gzip and deflate. It turns out that almost every site returns either normal text or gzip. But I finally found one that returns deflate. Here's how I un-gzip:

Re: biopython

2008-09-09 Thread Gabriel Genellina
En Tue, 09 Sep 2008 05:53:19 -0300, Beema Shafreen [EMAIL PROTECTED] escribió: Hi all, I am using Biopython to fetch pumed Id's ,The module i use is (from Bio import Entrez) But i am getting this error from Bio import Entrez Traceback (most recent call last): File stdin, line 1, in ?

Re: universal unicode font for reportlab

2008-09-09 Thread Ross Ridge
Terry Reedy [EMAIL PROTECTED] wrote: Sorry, I posted the wrong name. Ariel Unicode MS is the one that seems pretty complete. ... From the MS, I would guess that is a Windows font too ;-). It's made by Microsoft, but it's not a standard Windows font. I think it comes with Microsoft Office.

wxpython ms-dos black window popping up in background

2008-09-09 Thread icarus
platform: windows xp professional, python 2.5, wxpython When I double-check on my program file test.py (for simplicity I'll be using this code below), I see the window just fine. But the ms-dos black window pops up in the background. On Linux, no issues at all. How can I get rid of that ms-dos

Re: wxpython ms-dos black window popping up in background

2008-09-09 Thread Chris Rebert
You need to have the script be run by pythonw.exe as opposed to python.exe pythonw.exe suppresses the DOS box from coming up and should be used for running GUI applications such as yours. Regards, Chris On Tue, Sep 9, 2008 at 1:33 PM, icarus [EMAIL PROTECTED] wrote: platform: windows xp

Re: noob help request - how to make a list of defined class?

2008-09-09 Thread Jon Clements
On Sep 9, 3:11 pm, [EMAIL PROTECTED] wrote: I have defined two classes with one common field (called code) and several different fields. In class A there is only one instance of any given code as all items are individual. In class B, there may be none, one or many instances of each code, as

Python-URL! - weekly Python news and links (Sep 9)

2008-09-09 Thread Gabriel Genellina
QOTW: So why am I supposed to care about SOAP again? Oh yes, the wizards I can use to generate 'web service end-points' from programming language code. My years in the SOAP trenches just makes me laugh myself half to death at that notion: I would probably have been twice as productive if every

Re: Wx Python - Code Structure Event Handling

2008-09-09 Thread Mike Driscoll
On Sep 9, 3:05 pm, [EMAIL PROTECTED] wrote: Hi, I have just started writing a GUI using wxpython after finding a limitation using Tkinter. I have read most tutorials on wxpython and slowly becoming accustomed considering I started with the latter GUI tool first! I must quote first that I am

rss feed generation

2008-09-09 Thread Blake Garner
I'm looking for suggestions on how to approach generating rss feed .xml files using python. What modules to people recommend I start with? Thanks! Blake -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython ms-dos black window popping up in background

2008-09-09 Thread icarus
Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw That did it. one more question... how do I create a pythonw standalone executable that works on w32, linux, mac, etc..? My intent is to have the process transparent to the user. He wouldn't even know the app was written in

Re: How to record audio from Python on Mac?

2008-09-09 Thread has
On 9 Sep, 19:55, David Thole [EMAIL PROTECTED] wrote: Another option you could use is calling Applescript from the command line, to open, execute, and handle audio. For example, using QuickTime Player (which is a buggy, poorly designed piece of junk, but might suffice if you only need

Re: How to record audio from Python on Mac?

2008-09-09 Thread Craig Allen
I want to do this as well, and also some other audio processing via python. I have not tried yet, but much of my research points to pyaudio, PortAudio bindings for python, which is supposed to be multi- platform including Mac OS X, but as I say, I've not tried it yet. Related to this are some

dynamic allocation file buffer

2008-09-09 Thread castironpi
I will try my idea again. I want to talk to people about a module I want to write and I will take the time to explain it. I think it's a cool idea that a lot of people, forgiving the slang, could benefit from. What are its flaws? A user has a file he is using either 1/ to persist binary data

Re: Wx Python - Code Structure Event Handling

2008-09-09 Thread Stephen D Evans
Lee, have you considered using the Model-View-Presenter pattern? There is a nice example on the wxPython wiki: http://wiki.wxpython.org/ModelViewPresenter This scales well to complex GUIs. Grasping the concept and writing the initial code is the difficult part. Code is then much easier to

Re: dynamic allocation file buffer

2008-09-09 Thread Larry Bates
castironpi wrote: I will try my idea again. I want to talk to people about a module I want to write and I will take the time to explain it. I think it's a cool idea that a lot of people, forgiving the slang, could benefit from. What are its flaws? A user has a file he is using either 1/ to

Re: wxpython ms-dos black window popping up in background

2008-09-09 Thread kaer
On 9 sep, 23:35, icarus [EMAIL PROTECTED] wrote: Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw That did it. one more question... how do I create a pythonw standalone executable that works on w32, linux, mac, etc..? My intent is to have the process transparent to

Re: wxpython ms-dos black window popping up in background

2008-09-09 Thread Larry Bates
icarus wrote: Oh ok. Thanks. In windows xp I just renamed the file extension to .pyw That did it. one more question... how do I create a pythonw standalone executable that works on w32, linux, mac, etc..? My intent is to have the process transparent to the user. He wouldn't even know the app

Re: dynamic allocation file buffer

2008-09-09 Thread Steven D'Aprano
On Tue, 09 Sep 2008 14:59:19 -0700, castironpi wrote: I will try my idea again. I want to talk to people about a module I want to write and I will take the time to explain it. I think it's a cool idea that a lot of people, forgiving the slang, could benefit from. What are its flaws? [snip

Re: Cancel instance create

2008-09-09 Thread Fuzzyman
On Sep 6, 1:23 pm, Diez B. Roggisch [EMAIL PROTECTED] wrote: Mohamed Yousef schrieb: ðWhat about no Constructor , and a custom instancing function that can return either None or the instance wanted That doesn't solve the underlying problem - the instance is created. Just because it wasn't

Pexpect echoes twice for each read

2008-09-09 Thread Sriram Rajan
For some reason, Using pexpect causes my output to echo twice when I connect from my MAC Darwin (10.4) to Linux (CentOS release 5 ): The program: - #!/usr/bin/python # Automatic scp to remote host # Input 1 : filename # Input 2 : destination folder # Input 3 : hostname import

Looking for a Duo - file comparison and a file parser

2008-09-09 Thread dudeja . rajat
HI, I'm thinking of writing a file comparison utility in python. This utility will work as: 1. Compare 2 files for the differences. Both files contain some numerical results. 2. Generate a common file containing the differences (the same way as 'diff' generate an output) 3. Now, I will parse this

Re: universal unicode font for reportlab

2008-09-09 Thread Terry Reedy
Jeroen Ruigrok van der Werven wrote: -On [20080909 05:23], Terry Reedy ([EMAIL PROTECTED]) wrote: Ariel Unicode MS is the one that seems pretty complete. Not really. It misses a lot of characters. Well, it has Latin, Greek, Cyrillic, Hebrew, Arabic, several south Asian, Tibetan, CJK

Re: [OT] top-posting and quoting

2008-09-09 Thread Ben Finney
Bruno Desthuilliers [EMAIL PROTECTED] writes: Could you please timh and belindelof learn to quote properly and stop top-posting ? In case it's not clear, by quote properly I believe Bruno means to trim quoted material irrelevant to one's reply, and use standard inline replies

Re: Looking for a Duo - file comparison and a file parser

2008-09-09 Thread Robert Kern
[EMAIL PROTECTED] wrote: HI, I'm thinking of writing a file comparison utility in python. This utility will work as: 1. Compare 2 files for the differences. Both files contain some numerical results. 2. Generate a common file containing the differences (the same way as 'diff' generate an

Re: dynamic allocation file buffer

2008-09-09 Thread castironpi
On Sep 9, 5:44 pm, Larry Bates [EMAIL PROTECTED] wrote: castironpi wrote: I will try my idea again.  I want to talk to people about a module I want to write and I will take the time to explain it.  I think it's a cool idea that a lot of people, forgiving the slang, could benefit from.  

Re: rss feed generation

2008-09-09 Thread alex23
On Sep 10, 7:30 am, Blake Garner [EMAIL PROTECTED] wrote: I'm looking for suggestions on how to approach generating rss feed .xml files using python. What modules to people recommend I start with? http://www.dalkescientific.com/Python/PyRSS2Gen.html --

Re: Read and write binary data

2008-09-09 Thread Michael Palmer
On Sep 7, 6:41 pm, Mars creature [EMAIL PROTECTED] wrote: Hi guys, I am new to Python, and thinking about migrating to it from matlab as it is a really cool language. Right now, I am trying to figure out how to control read and write binary data, like

Re: dynamic allocation file buffer

2008-09-09 Thread castironpi
On Sep 9, 5:58 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Tue, 09 Sep 2008 14:59:19 -0700, castironpi wrote: I will try my idea again.  I want to talk to people about a module I want to write and I will take the time to explain it.  I think it's a cool idea that a

Re: Coming from .NET and VB and C

2008-09-09 Thread castironpi
On Sep 8, 9:31 pm, sturlamolden [EMAIL PROTECTED] wrote: On 3 Sep, 18:52, ToPostMustJoinGroup22 [EMAIL PROTECTED] wrote: I'm coming from a .NET, VB, C background. Any suggestions for someone new to the scene like me? Welcome! Unfortunately, you probably have a lot of bad habits to

  1   2   3   >