Re: Little novice program written in Python

2008-04-25 Thread Max M
a feel for the language. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Little novice program written in Python

2008-04-25 Thread Max M
e c family of languages where there is a lot more algorithms due to the low level coding. Memory handling, list, dicts etc. qickly becomes more like math algorithms than in Python. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Given a string - execute a function by the same name

2008-04-28 Thread Max M
e dict of functions is a bit safer. You don't risk calling a built in method on your object . Which you risk doing with something like: getattr(obj, 'join') -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Given a string - execute a function by the same name

2008-04-29 Thread Max M
note: What you will be doing is a variation of the factory pattern. So this search might give you some new ideas: http://www.google.dk/search?hl=en&q=python+factory+pattern -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: tool to calculate color combination

2008-05-01 Thread Max M
0, 0, 0, 33, 249, 4, 1, 0, 0, 0, 0, 44, 0, 0, 0, 0, 1, 0, 1, 0, 0, 2, 2, 68, 1, 0, 59] if not transparent: template[13:16] = self.bytes() # set rgb values template[22] = 0 # remove transparency return ''.join(map(chr, template)) if __name__==&#

Re: Real Time Midi File Playback - Reading and Writing midi at the same time

2008-05-04 Thread Max M
Perhaps csound can help with this. It has a lot of midi, realtime and python stuff. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Python MIDI in 2008

2008-05-06 Thread Max M
it on Windows and I found it to be a bore to get real time midi working. It would probably be easier now that I am on Linux. Well I just thought I would mention that it is not dead. Merely middle aged. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://ma

Re: Am I missing something with Python not having interfaces?

2008-05-06 Thread Max M
ace. Just use: "easy_install zope.interface" And you have interfaces. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: Mathematics in Python are not correct

2008-05-11 Thread Max M
ut Python being broken. You will probably get better responses if you just state that there are things you do not understand, and ask why it works that way. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

locks

2008-09-17 Thread kalin m
hi all... mailman has been locking one list out. the web interface just hangs and it generates a bunch of locks. it seems that it can not write to a log but not sure which one. errors are like: ep 17 05:09:12 2008 (18481) musiclist.lock lifetime has expired, breaking Sep 17 05:09:12 2008 (1848

Re: locks

2008-09-18 Thread kalin m
yea... sorry... i just have all python stuff in the same folder and messed up... [EMAIL PROTECTED] wrote: kalin> mailman has been locking one list out. the web interface just kalin> hangs and it generates a bunch of locks. it seems that it can not kalin> write to a log but not

Re: New python.org website

2006-03-08 Thread Max M
projecktzero wrote: > I think the new site is great. I really don't understand all the nit > picking that's going on from the armchair web designers. It's a nice site. It is not ugly, and its easy to navigate. *much* better than the old site, -- hilsen/regards

Re: New python.org website

2006-03-08 Thread Max M
Comparing: http://www.python.org/ http://www.perl.org/ http://www.java.org/ http://www.ruby-lang.org/en/ http://java.sun.com/ http://www.php.net/ It is pretty easy to see that http://www.python.org/ is both prettier than the rest, and has a far better structure. -- hilsen/regards Max M

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Max M
It is hard to tell what you are trying to do here. But here is a shot at parts of the code. class Foo: def __init__(self, x): self.x = x y = [Foo(10.0), Foo(110.0), Foo(60.0)] x_values = [o.x for o in y] y_max = max(x_values) y_min = min(x_values) Otherwise you could try and describ

Re: Simple questions on use of objects (probably faq)

2006-03-08 Thread Max M
ame I think. Testing should tell you which is faster in your case. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon2006 - will the content be available for download?

2006-03-08 Thread Max M
udioVideoRecording/HomePage -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science -- http://mail.python.org/mailman/listinfo/python-list

Re: PyCon2006 - will the content be available for download?

2006-03-08 Thread Max M
lkFlags - audio-yes): http://us.pycon.org/zope/talks/talksRoster?year%3Alist=&day%3Alist=&track%3Alist=&title=&authors=&abstract=&flags%3Alist=audio-yes&order=Sequence Then most presentations with audio has several audio formats you can download. -- hilsen/regards

Re: PyCon2006 - will the content be available for download?

2006-03-08 Thread Max M
John Salerno wrote: > Max M wrote: > >> abcd wrote: >> >>> well actually, the site looked promising...only problem is no talks >>> have audio, video or handouts available (at least right now). >>> >>> oh well. >>> >> >&

Re: Hashtables in pyhton ...

2006-03-09 Thread Max M
;key2'] = 'value 2' >>> a_hash_is_a_dict['key'] 'value' -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Cheese Shop: some history for the new-comers

2006-03-13 Thread Max M
es are bad in programming, whay are they good in general communication. "Python Packages" is too obvious perhaps? When we start using eggs will it then be renamed to "Dairy Shop" or perhaps "Daisy" to make it obscure? Or the "Chickens Nest"? Please. If it is

Re: MS word document generator

2006-03-15 Thread Max M
Raja Raman Sundararajan wrote: > I was wondering if there was any library as reportlab to generate word > documents. If you are on Windows, why dont you use word for it? You can call it from Python. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +

Re: Markov process representation

2006-03-16 Thread Max M
2003, 00:49:11) >> >>generator comprehensions are new in 2.4. Try: >> >> self._all_states |= set([key[i] for key in probabilities]) > > > And sets aren't a builtin in 2.3 > > try: > set() > except NameError: > import sets > set = set

Re: doctest, unittest, or if __name__='__main__'

2006-03-22 Thread Max M
ey combine two brilliant ideas that are hard to do in practice. "Testing" and "Literate Programming" In the process it even manages to make both a lot easier. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Good thread pool module

2006-03-22 Thread Steve M
I believe "Python in a Nutshell" has a couple of clear examples using Queue and Threading, including one with a pool of worker threads that wait for entries in one queue and place results in another. Also you should look at the Python Cookbook, which probably includes the same or similar examples

Re: Python types

2006-03-24 Thread Steve M
I think it means that names, not objects, are weakly typed. So you can have: a = 4 a = 'hello' and there is no problem. The name 'a' doesn't have any type associated with it. This contrasts with strongly typed language like C where you declare the type of the name (variable) and the compiler objec

MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Please let me state off the cuff that I'm not after a big "Python Vs Ruby" war or anything here! I'm trying to make the switch to Python for my web development work as I've been using it for quite some time for other programming work (albeit mainly hobby and personal interest projects) as I'm getti

Re: MVC in Python for web app dev

2006-03-25 Thread m . wanstall
Thanks Rune. I've already checked out Django and TG and have found both the projects to be a little misguided. I think the one great thing they have over Rails is the use of SQLObject because the implicit mapping of data models via the "plural" approach of Rails is a bit of a quirk to me, I just do

Re: Difference between 'is' and '=='

2006-03-27 Thread Max M
t;> 100+1 is 101 False They don't have the same id. (Think of id as memory adresses.) -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Plone or TurboGears for Intranet

2006-03-27 Thread m . wanstall
Hi all, Just wondering which technology would best suit the development of custom intranets in general, things that may be industry specific would need to be included (say for an industrial design company the addition of internal memos and even extrememly business specific apps such as simple inve

Re: Plone or TurboGears for Intranet

2006-03-27 Thread m . wanstall
Forgot to mention the ease of deployment using Apache (well basically LAMP) would be a big bonus, just because I trust and am familiar with Apache. Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: tips for this exercise?

2006-03-28 Thread Steve M
You have two lines inside the loop that ought to be outside the loop - the initial assignment to fiveNumbers and the return statement. Also, the line that appends new numbers to fiveNumbers is not quite correct - the append() method modifies the list in place, rather than return a new list. Here's

Re: Difference between 'is' and '=='

2006-03-29 Thread Max M
unction: def somefunc(val=None): if val is None: val = [] do_stuff(val) Or if None is a possible parameter you can use your own object as a marker:: _marker = [] def somefunc(val=_marker): if val is marker: val = [] do_stuff(val) -- hilsen/regards M

Re: Memory limit to dict?

2006-04-11 Thread Steve M
An alternative is to use ZODB. For example, you could use the BTree class for the outermost layers of the nested dict, and a regular dict for the innermost layer. If broken up properly, you can store apparently unlimited amount of data with reasonable performance. Just remember not to iterate ove

Re: datetime: the date of the day one month ago...how?

2006-04-12 Thread Max M
lly don't want to calculate it by myself :-)) It is application specific. So how *do* you want one-month-ago(31.mar.2006) or one-month-ago(28.feb.2006) to work? No one can know but you. -- hilsen/regards Max M, Denmark http://www.mxm.dk/ IT's Mad Science Phone: +45 66 11 84 94 Mobile: +45 29 93 42 96 -- http://mail.python.org/mailman/listinfo/python-list

Re: Numpy and cPickle

2006-04-15 Thread Mr. M
Martin Manns wrote: > Robert Kern wrote: >> Martin Manns wrote: > >>> If I cPickle a numpy array under Linux and un-cPickle it under Solaris >>> 10, my arrays seem to be transposed. >> Transposed? That's odd. There was a byteorder issue with pickles going across >> differently-endianed platforms

commands module for windows

2009-12-01 Thread M Kumar
Dear all, Is there any python module for windows which is equivalent to commands module in linux? -- thanks & regards, Maneesh KB -- http://mail.python.org/mailman/listinfo/python-list

Re: commands module for windows

2009-12-01 Thread M Kumar
can I use this module to store output to a python variable? I am looking for something similar to commands.getoutput("") On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert wrote: > On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: > > Is there any python module for windows whi

Re: commands module for windows

2009-12-01 Thread M Kumar
thank you very much Chris :) On Wed, Dec 2, 2009 at 12:10 PM, Chris Rebert wrote: > > On Wed, Dec 2, 2009 at 11:42 AM, Chris Rebert wrote: > >> On Tue, Dec 1, 2009 at 10:05 PM, M Kumar wrote: > >> > Is there any python module for windows which is equivalent to comm

Introspection

2010-01-06 Thread m...@infoserv.dk
I'm looking for a way to make a list of string literals in a class. Example: class A: def method(self): print 'A','BC' >>> ExtractLiterals(A) ['A','BC'] Is this possible? Can anyone point me in the right direction? Thanks. /Martin -- http://mail.python.org/mailman/listinfo/python-l

Re: Introspection

2010-01-10 Thread m...@infoserv.dk
Thanks Miki and Jason. I knew it could be done :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: Combining python and sqlite DB into a single, "executeable".

2009-10-06 Thread Che M
On Oct 6, 5:31 pm, Robert Kern wrote: > On 2009-10-06 16:16 PM, tcumming...@gmail.com wrote: > > > Any body got any ideas how to do the following... > > > I would like to be able to write an app in python that keeps it's > > persistent data in a sqlite database file. > > > So far so good. The prob

Re: What do I do now?

2009-10-12 Thread Che M
On Oct 12, 12:19 am, Donn wrote: > On Monday 12 October 2009 00:53:42 Someone Something wrote:> 1) What should I > start programming (project that takes 1-2 months, not very > > short term)? > > 2) Whtat are some good open source projects I can start coding for? > > These kinds of questions amaze

It's a fact not lost on the opportunity to see yourself

2010-03-30 Thread a m
http://www.google.com/url?sa=D&q=http://www.google.com/url%3Fsa%3DD%26q%3Dhttp://osamah2000.jeeran.com/daauageralmuslmeen1.htm%26usg%3DAFQjCNGQhhGz-1TGv9Y7gE8zKwHHustJCg&usg=AFQjCNH5ZzXRqkh5EGL1dsjQxcjNQCmAEQ -- http://mail.python.org/mailman/listinfo/python-list

Re: SQLite3 and lastrowid

2010-11-16 Thread Dan M
On Tue, 16 Nov 2010 13:08:15 -0800, fuglyducky wrote: > On Nov 16, 12:54 pm, Ian wrote: >> On Nov 16, 1:00 pm, fuglyducky wrote: >> >> > Before I added the second table I could simply run >> > 'print(cursor.lastrowid)' and it would give me the id number. >> > However, with two tables I am unable

Re: [Q] get device major/minor number

2010-11-30 Thread Dan M
On Tue, 30 Nov 2010 21:09:14 +0100, Thomas Portmann wrote: > Hello all, > > In a script I would like to extract all device infos from block or > character device. The "stat" function gives me most of the infos (mode, > timestamp, user and group id, ...), however I did not find how to get > the de

Re: [Q] get device major/minor number

2010-11-30 Thread Dan M
On Tue, 30 Nov 2010 21:35:43 +0100, Thomas Portmann wrote: > Thank you very much Dan, this is exactly what I was looking for. > > > Tom You're very welcome. -- http://mail.python.org/mailman/listinfo/python-list

RE: Python's equivalent to Main calling program and subprograms

2010-12-01 Thread m b
> > > > if __name__ == "__main__": > > main() What does this mean? /Mikael -- http://mail.python.org/mailman/listinfo/python-list

Newbie needs regex help

2010-12-06 Thread Dan M
out trying : d...@dan:~/personal/usenet$ python Python 2.7 (r27:82500, Nov 15 2010, 12:10:23) [GCC 4.3.2] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import re >>> r = re.compile('x(

Re: Newbie needs regex help

2010-12-06 Thread Dan M
s '\xaa' and so on. You > might do better with > > p1 = r'([\x80-\xff])' > r1 = re.compile (p1) > m = r1.search (a) > > I get at least an <_sre.SRE_Match object at 0xb749a6e0> when I try this. > > Mel. That's what I had initially

Re: Newbie needs regex help

2010-12-06 Thread Dan M
On Mon, 06 Dec 2010 16:34:56 +0100, Alain Ketterlin wrote: > Dan M writes: > >> I took at look at http://docs.python.org/howto/regex.html, especially >> the section titled "The Backslash Plague". I started out trying : > >>>>> import re >>&

Re: Newbie needs regex help

2010-12-06 Thread Dan M
On Mon, 06 Dec 2010 09:44:39 -0600, Dan M wrote: > That's what I had initially assumed was the case, but looking at the > data files with a hex editor showed me that I do indeed have > four-character sequences. That's what makes this such as interesting > task! Sorry, I m

Re: Newbie needs regex help

2010-12-06 Thread Dan M
On Mon, 06 Dec 2010 18:12:33 +0100, Peter Otten wrote: > By the way: > print quopri.decodestring("=E4=F6=FC").decode("iso-8859-1") > äöü print r"\xe4\xf6\xfc".decode("string-escape").decode("iso-8859-1") > äöü Ah - better than a regex. Thanks! -- http://mail.python.org/mailman/listin

Re: Hosting a Python based TCP server

2010-12-23 Thread Dan M
On Thu, 23 Dec 2010 04:01:03 -0800, Oltmans wrote: > Hi all, > > I'm writing a very small TCP server(written in Python) and now I want to > host it on some ISP so that it can be accessed anywhere from the > Internet. I've never done that before so I thought I should ask for some > advice. Do you

Re: Trying to decide between PHP and Python

2011-01-04 Thread Dan M
On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote: > About once a year, I have to learn yet another programming language. > Given all the recommendations (an outstanding accolade from Bruce Eckel, > author of "Thinking in Java") I have set my aim to Python. Sounds kinda > cool. > > The inde

Re: Trying to decide between PHP and Python

2011-01-04 Thread Dan M
On Tue, 04 Jan 2011 12:32:28 -0800, Google Poster wrote: > Not to mention that it took me 9 minutes to get a reply from you... > Quite speedy community support. > > That is a very important parameter in my technology decisions these > days. > > Thanks! > > -Ramon This Usenet group is a truly a

Re: list from FTP server to a text file

2011-01-06 Thread Dan M
On Thu, 06 Jan 2011 10:51:42 -0500, Ahmed, Shakir wrote: > Hi, > > I am trying to create a list in a txt file from an ftp server. The > following code is retrieving the list of the files but could not able to > write in a text file. Any help is highly appreciated. > > Thanks > > > > *

Re: find in smartpdf files

2011-01-06 Thread Dan M
On Thu, 06 Jan 2011 08:11:34 -0800, Wanderer wrote: > We generate PCB assembly files in pdf format using SmartPDF. This allows > us to search for a component in the assembly using the find feature. We > would like to be able to generate a list of components sorted by part > type and then use that

Why these don't work??

2010-04-08 Thread M. Hamed
I'm trying the following statements that I found here and there on Google, but none of them works on my Python 2.5, are they too old? or newer? "abc".reverse() import numpy -- http://mail.python.org/mailman/listinfo/python-list

Re: Why these don't work??

2010-04-08 Thread M. Hamed
e the numpy.zeros()? I know I can do it with list comprehension (like [0 for i in range(0,20)] but these are too many keystrokes for python :) I was wondering if there is a simpler way. I had another question about arrays but I should probably start another thread. Regards, On Apr 8, 11:43 am, MRAB wrote

Dynamically growing an array to implement a stack

2010-04-08 Thread M. Hamed
I have trouble with some Python concept. The fact that you can not assign to a non-existent index in an array. For example: a = [0,1] a[2] => Generates an error I can use a.append(2) but that always appends to the end. Sometimes I want to use this array as a stack and hence my indexing lo

Re: Dynamically growing an array to implement a stack

2010-04-08 Thread M. Hamed
Thanks Patrick, that is what I was exactly looking for. Paul, thanks for your example. wasn't familiar with the stack class. I feel Patrick's method is a lot simpler for my purpose. Regards. On Apr 8, 1:29 pm, Patrick Maupin wrote: > On Apr 8, 3:21 pm, "M. Hamed"

Re: Why these don't work??

2010-04-08 Thread M. Hamed
eally need them. Plus it gives me more justification for the time I invested learning a new language (and glad I did), and more reasons to dump Perl forever! Thanks for all the suggestions. On Apr 8, 1:37 pm, Joaquin Abian wrote: > On Apr 8, 10:08 pm, "M. Hamed" > wrote: > >

It's a fact not lost on the opportunity to see yourself

2010-04-11 Thread a m
http://www.google.com/url?sa=D&q=http://osamah2000.jeeran.com/daauageralmuslmeen1.htm&usg=AFQjCNGQhhGz-1TGv9Y7gE8zKwHHustJCg -- http://mail.python.org/mailman/listinfo/python-list

It's a fact not lost on the opportunity to see yourself

2010-04-12 Thread a m
http://www.google.com/url?sa=D&q=http://osamah2000.jeeran.com/daauageralmuslmeen1.htm&usg=AFQjCNGQhhGz-1TGv9Y7gE8zKwHHustJCg -- http://mail.python.org/mailman/listinfo/python-list

How to check what is holding reference to object

2010-04-27 Thread Michal M
cause it is pretty complicated, but I am able to invoke this situation again. Regards Michal M. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to check what is holding reference to object

2010-04-27 Thread Michal M
On 27 Kwi, 23:21, Duncan Booth wrote: > Michal M wrote: > > Hi > > > I've just found out that one of objects is not destroyed when it > > should be. This means that something was holding reference to this > > object or part of it (i.e. method). Is there a

Re: How to check what is holding reference to object

2010-04-28 Thread Michal M
On Apr 28, 12:02 am, Chris Rebert wrote: > On Tue, Apr 27, 2010 at 2:58 PM, Chris Rebert wrote: > > On Tue, Apr 27, 2010 at 2:42 PM, Michal M > > wrote: > >> On 27 Kwi, 23:21, Duncan Booth wrote: > >>> Michal M wrote: > >>> > I've jus

msg_footer

2010-05-03 Thread kalin m
is there a variable for the member's email address in the msg_footer? the one the message is being sent to? thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: msg_footer

2010-05-03 Thread kalin m
nevermind...i found it... kalin m wrote: is there a variable for the member's email address in the msg_footer? the one the message is being sent to? thanks -- http://mail.python.org/mailman/listinfo/python-list

passing external data to web forms

2010-05-31 Thread M L
(Note: If you just skim this and can tell me how to pass data from an external program to a web form, that's all I need, and the rest is just what I'd like to have.) This is probably extremely simple when you know what you're doing. I figured I'd see if I could find a kind soul who could give me s

VoIP

2010-07-15 Thread M Eid
Dears, My blog about Voice over Internet protocol networks..Let's improve our general knowledg http://voib-net.blogspot.com/ Thanks&BR -- http://mail.python.org/mailman/listinfo/python-list

scope of variable

2010-08-20 Thread M B
Hi, I try to learn python. I don't understand this: (running in idle) >>> dept=0 >>> def mud(): print dept >>> mud() 0 >>> def mud(): dept+=1 print dept >>> mud() Traceback (most recent call last): File "", line 1, in mud() File "", line 2, in

Re: scope of variable

2010-08-20 Thread M B
fre 2010-08-20 klockan 13:19 -0600 skrev Burton Samograd: > M B writes: > > > Hi, > >>>> dept=0 > >>>> def mud(): > > print dept > > > > > >>>> mud() > > 0 > >>>> def mud(): > > d

Re: multi-core software

2009-06-06 Thread Jeff M.
ht the definition of green threads was that multiplexing them > doesn't require context switches. There's always a context switch. It's just whether or not you are switching in/out a virtual stack and registers for the context or the hardware stack/registers. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-core software

2009-06-07 Thread Jeff M.
On Jun 7, 1:56 am, Paul Rubin <http://phr...@nospam.invalid> wrote: > "Jeff M." writes: > > > > Even the lightest weight > > > > user space ("green") threads need a few hundred instructions, minimum, > > > > to amortize the cost o

Re: multi-core software

2009-06-07 Thread Jeff M.
g an obvious example... there are many more. Unshared state has its place. Immutable state has its place. Shared immutable state has its place. Shared mutable place has its place. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-core software

2009-06-10 Thread Jeff M.
would be wasted every day around the world - ignoring the fact that Google wouldn't exist if that were the case ;-). Obviously Google engineers work incredibly hard every day to ensure correct results, but performance better be right up there at the top of the list as well. Jeff M. -- http://mail.python.org/mailman/listinfo/python-list

Re: multi-core software

2009-06-10 Thread Jeff M.
On Jun 10, 12:49 pm, Seamus MacRae wrote: > Jeff M. wrote: > > On Jun 9, 9:08 pm, Arved Sandstrom wrote: > >> Jon Harrop wrote: > >>> Arved Sandstrom wrote: > >>>> Jon, I do concurrent programming all the time, as do most of my peers. > >>&g

Re: launch a .py file from a batch file

2009-06-22 Thread C M
On Mon, Jun 22, 2009 at 8:04 PM, Dave Angel wrote: > CM wrote: > >> I'd like to launch a number of programs, one of which is a Python GUI >> app, from a batch file launcher. I'd like to click the .bat file and >> have it open all the stuff and then not show the "DOS" console. >> >> I can launch

Re: launch a .py file from a batch file

2009-06-23 Thread Che M
On Jun 23, 5:30 am, Paul Moore wrote: > 2009/6/23 C M : > > >> Assuming you're running on Windows XP, try the following line in your > >> batch file: > >> @start path\MyPythonApp.pyw > > >> That's of course after you rename your script t

Re: dynamically associate radio buttons with droplists

2009-06-24 Thread Che M
On Jun 24, 10:37 am, a...@pythoncraft.com (Aahz) wrote: > In article > <16b382ee-a3ae-46ee-88fd-d87fc40d2...@g20g2000vba.googlegroups.com>, > > > > Shoryuken   wrote: > >On Jun 21, 8:43=A0pm, a...@pythoncraft.com (Aahz) wrote: > >> In article >.com>,LeoBrugud=A0 wrote: > > >>>Not being very famil

Re: Beginning with Python; the right choice?

2009-06-26 Thread Che M
On Jun 26, 10:22 pm, "sato.ph...@gmail.com" wrote: > Hi, > > As you can imagine, I am new, both to this group and to Python.  I > have read various posts on the best book to buy or online tutorial to > read and have started to go through them.  I was wondering, as someone > with virtually no progr

Re: Ubigraph vs Matplotlib (dynamic plotting, event handling)

2009-07-01 Thread Che M
On Jun 30, 6:20 pm, Ala wrote: > Hello everyone, > > I intend to use python for some network graph plotting, with event > handling (clicking on network nodes, zooming in/out etc..) and so far I > have come across two good candidates which are Matplotlib and Ubigraph. > > Did anyone have any experi

Re: why did you choose the programming language(s)you currently use?

2009-07-14 Thread Che M
On Jul 14, 11:55 am, Deep_Feelings wrote: > So you have chosen programming language "x" so shall you tell us why > you did so , and  what negatives or positives it has ? As a hobbyist--and not a real programmer*--I think I chose Python (I don't really recall now) because of things like: - There

Re: any suggestions to synchronize typed text and speech ?

2009-07-20 Thread Che M
On Jul 19, 4:15 pm, Stef Mientki wrote: > hello, > > I'm using Scintilla as a wxPython widget with great pleasure. > I now have an application where I want to make notes during a conversation, > but also want to record the speech during that conversation. > I'm using Scintilla as a wxPython widget

Re: sqlite3 performance problems only in python

2009-07-23 Thread Che M
On Jul 23, 3:58 pm, Stef Mientki wrote: > Piet van Oostrum wrote: > >> Stef Mientki (SM) wrote: > > >> SM> btw, I don't know if it's of any importance, the SQL-statement I > >> perform is > >> SM> select OPNAMEN.*, NAME, NAME_, SCORES.SCORE, PATIENT.* > >> SM>  from OPNAMEN > >> SM>    inner

Re: Converting DD MM YYYY into YYYY-MM-DD?

2009-08-17 Thread Che M
On Aug 17, 6:26 pm, Gilles Ganault wrote: > Hello, > >         I need to convert DD MM dates into the MySQL-friendly > -MM-DD, and translate the month name from literal French to its > numeric equivalent (eg. "Janvier" into "01"). > > Here's an example: > > SELECT dateinscription, datecon

Re: GUI interface builder for python

2009-08-17 Thread Che M
On Aug 17, 2:26 pm, axl456 wrote: > On Aug 17, 1:59 am, "l...@d@n" wrote: > > > Which is the best GUI interface builder with drag and drop > > capabilities. > > I am using Ubuntu GNU/Linux. > > Please help me. > > Thank you. > > boa is really nice.. Boa (Boa Constructor) is really nice for wxPyt

Re: GUI interface builder for python

2009-08-18 Thread Che M
On Aug 18, 10:54 am, sturlamolden wrote: > On 17 Aug, 17:19, Che M wrote: > > > Boa (Boa Constructor) is really nice for wxPython GUI > > work, but it has some bugs when using Linux that might > > be dealbreakers for the user.  At least I have had > > problems on U

Three-Phase-Diagrams with matplotlib

2009-08-21 Thread M. Hecht
Hello, does anyone know whether it is possible to draw three-phase-diagrams with matplotlib? A three-phase-diagram is a triangular diagram applied in chemistry e.g. for slags where one has three main components of a chemical substance at the corners and points or lines within the triangle marki

Re: Python for professsional Windows GUI apps?

2009-08-24 Thread Che M
> I'm especially concerned about the lack of controls, the lack of > updates (lots of controls in wxWidgets are 1.0 deadware), I use wxPython. No lack of controls there, and most are up to date. Which "lots" in wxWidgets are you thinking of? > I need controls for business apps like access to d

Re: Python for professsional Windows GUI apps?

2009-08-26 Thread Che M
> Combined with the comment above about issues with printing, it looks > like Python for GUI apps isn't a very good idea :-/ I don't have that feeling at all. I don't have that much of a basis of comparison, but my experience with wxPython for making GUI apps has been pretty good. Does anyone kn

Re: Python for professsional Windows GUI apps?

2009-08-26 Thread Che M
On Aug 26, 4:47 pm, David C Ullrich wrote: > On Mon, 24 Aug 2009 22:22:20 -0700, sturlamolden wrote: > > On 25 Aug, 05:56, Peter Decker wrote: > > >> I use the Dabo Class Designer to visually design my forms. So what's > >> you're point?  :) > > > Nothing, except lobbying for wxFormBuilder for an

Re: IDE for python similar to visual basic

2009-08-29 Thread Che M
On Aug 28, 6:19 pm, qwe rty wrote: > i have been searching for am IDE for python that is similar to Visual > Basic but had no luck.shall you help me please? Boa Constructor. IDE/visual GUI-builder/sizer support, lots of other goodies. Not actively maintained, though, and some issues on Linux, i

Re: What python can NOT do?

2009-08-29 Thread Che M
On Aug 28, 6:37 pm, qwe rty wrote: > i know that an interpreted language like python can't be used to make > an operating system or system drivers. > > what else can NOT be done in python? what are the limitations of the > language? Now that you have some good answers, may I ask what what your re

Re: Python Noob - gui module, book, annoying questions

2009-08-29 Thread Che M
On Aug 29, 3:20 am, Pherdnut wrote: > I want to write cross-platform stuff. Any opinions on the best GUI > module for that? > > I like a good juicy, but concise book for reading on my commute > downtown. I was thinking of checking Python in a Nutshell. Good? Bad? > Better? > > Is 3.0+ more object

Re: IDE for Python

2009-08-31 Thread Che M
On Aug 31, 10:53 am, Mike Driscoll wrote: > On Aug 29, 1:08špm, ivanko@gmail.com wrote: > > > 29.08.2009 4:14 ÐÏÌØÚÏ×ÁÔÅÌØ "Thangappan.M" š > > ÎÁÐÉÓÁÌ: > > > > Dear all, > > > Please suggest some good IDE for python.I am working in linux platform. > > > -- > > > Regards, > > > Thangappan.M >

Re: Video?

2009-09-03 Thread Che M
On Sep 3, 4:11 pm, David C Ullrich wrote: > Not at all important, just for fun (at least for me): > > It seems to me, looking at various docs, that wxWidgets > includes a "media control" that can play video files, but > it's not included in wxPython. (There's something in > wxPython with a promisi

Re: Evil trend report

2009-09-06 Thread Che M
On Sep 6, 8:50 am, Grant Edwards wrote: > On 2009-09-06, John Nagle wrote: > > > > > Bing > >    A     3    2.4%  () > >    A     1    0.8%  (non_commercial) > >    Q    50   40.0%  () > >    Q    15   12.0%  (no_location) > >    U     5    4.0%  (no_website) > >    U    33   26.4%  (non_commerci

Re: How do I post to the wxPython mailing list?

2009-09-07 Thread Che M
On Sep 7, 12:50 pm, mma...@gmx.net wrote: > Hi > > Since I have been told in this group to post wxPython related topics in > the wxPython-users mailing list instead of here, I just tried doing > that. > > However, I always get an error message back when using gmane. > Mailing directly, there is no

<    2   3   4   5   6   7   8   9   10   11   >