Re: relative import broken?

2008-04-30 Thread Sam
> > I added r'C:\Users\Myname\S' to sys.path. Is this the correct usage? > > Try r'C:\Users\Myname'. Excellent, it works! Thanks, Torsten. Sam -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread illume
hi again, I should have said, the msvcr90.dll does not work on win9x machines - as well as not being supported by ms. cu, On May 1, 4:02 pm, illume <[EMAIL PROTECTED]> wrote: > Hi, > > after a little research it appears that win9x is not supported by the > msvcr90.dll run time. > > Can you co

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
Hallöchen! Sam writes: >> I didn't look it up myself, but maybe a __init__.py file is missing >> so that it can be recognised as a package. > > No, every single one (S, B, and W) has its own __init__.py > >> >> > in u.py Python gives "ImportError: No module named S". >> >> >> A silly question: is

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread illume
Hi, after a little research it appears that win9x is not supported by the msvcr90.dll run time. Can you confirm this Lenard? Has anyone tested the new python binaries that link to msvcr90.dll on win9x machines? cheers, On May 1, 3:05 pm, "L. Lindstrom" <[EMAIL PROTECTED]> wrote: > L. Lindst

Re: sed to python: replace Q

2008-04-30 Thread Kam-Hung Soh
On Wed, 30 Apr 2008 17:12:15 +1000, Kam-Hung Soh <[EMAIL PROTECTED]> wrote: On Wed, 30 Apr 2008 15:27:36 +1000, Raymond <[EMAIL PROTECTED]> wrote: For some reason I'm unable to grok Python's string.replace() function. Just trying to parse a simple IP address, wrapped in square brackets, fr

Re: relative import broken?

2008-04-30 Thread Sam
> I didn't look it up myself, but maybe a __init__.py file is missing > so that it can be recognised as a package. No, every single one (S, B, and W) has its own __init__.py > >> > in u.py Python gives "ImportError: No module named S". > > >> A silly question: is the directory that contains "S" i

Re: PIL and IPTC

2008-04-30 Thread Jumping Arne
Thanks, that is what I needed to get started. -- http://mail.python.org/mailman/listinfo/python-list

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
Hallöchen! Sam writes: > On Apr 30, 9:11 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: >> Sam <[EMAIL PROTECTED]> writes: >> > I also have a problem with relative import; I can't for the life of me >> > figure out how to use the damn thing. I think the main problem is with >> > getting Python to r

Re: tool to calculate color combination

2008-04-30 Thread Astan Chee
Dont worry about this. I've figured it out. Rather simple : red = sum of for each red (50/100) * 1 green = sum of for each green (50/100) * 0 blue = sum of for each blue(50/100) * 0 Astan Chee wrote: Hi, I was just wondering if there is a tool/script in python that allows me to do color calcula

Re: relative import broken?

2008-04-30 Thread Torsten Bronger
Hallöchen! Sam writes: > I also have a problem with relative import; I can't for the life of me > figure out how to use the damn thing. I think the main problem is with > getting Python to recognize the existence of a package. I have > > S/ > p.py > B/ > b.py > W/ > pyw/ > u.p

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread L. Lindstrom
L. Lindstrom wrote: Christian Heimes wrote: L. Lindstrom schrieb: [snip] [B]esides heap management and FILE pointers, is there any reason SDL, or any C dependency, needs to link to the same C run-time as Python? If I ensure SDL frees memory it allocates and does not directly access a file open

Re: ]ANN[ Vellum 0.16: Lots Of Documentation and Watching

2008-04-30 Thread Michele Simionato
On Apr 29, 9:51 am, "Zed A. Shaw" <[EMAIL PROTECTED]> wrote: > However, I'm curious to get other people's thoughts. For what concerns the license, I would say that GPL3 is fine: for a tool basically any kind of license is fine, since the tool is external to the code, so this is a minor point. I a

Re: relative import broken?

2008-04-30 Thread Sam
On Apr 30, 9:11 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> writes: > > I also have a problem with relative import; I can't for the life of me > > figure out how to use the damn thing. I think the main problem is with > > getting Python to recognize the existence of a pac

Re: relative import broken?

2008-04-30 Thread Sam
On Apr 30, 9:11 pm, Hrvoje Niksic <[EMAIL PROTECTED]> wrote: > Sam <[EMAIL PROTECTED]> writes: > > I also have a problem with relative import; I can't for the life of me > > figure out how to use the damn thing. I think the main problem is with > > getting Python to recognize the existence of a pac

tool to calculate color combination

2008-04-30 Thread Astan Chee
Hi, I was just wondering if there is a tool/script in python that allows me to do color calculations; specifically, when I add them. Also I was thinking that for this to work other than a simple way, some form of measure is included. e.g 50% red(1,0,0) + 50% yellow(1,1,0) = 100% orange(1,0.7,0

Re: We have string.isdigit(), why not string.isNumber()?

2008-04-30 Thread Ben Finney
MooMaster <[EMAIL PROTECTED]> writes: > I know how to write a regexp or method or whatever to do this, my main > question is *why* something like an isNumber() method is not baked > into the class. Because that name wouldn't conform to PEP 8. (Also, and more importantly, because it's more correc

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread L. Lindstrom
sturlamolden wrote: On Apr 30, 8:06 pm, "L. Lindstrom" <[EMAIL PROTECTED]> wrote: I have read that Python extension modules must link to the same C run-time as the Python interpreter. This I can appreciate. But does this requirement extend to the C libraries an extension module wraps. This so

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread L. Lindstrom
Christian Heimes wrote: L. Lindstrom schrieb: I have read that Python extension modules must link to the same C run-time as the Python interpreter. This I can appreciate. But does this requirement extend to the C libraries an extension module wraps. The case in point is Pygame and SDL. The Pygam

Re: relative import broken?

2008-04-30 Thread Hrvoje Niksic
Sam <[EMAIL PROTECTED]> writes: > I also have a problem with relative import; I can't for the life of me > figure out how to use the damn thing. I think the main problem is with > getting Python to recognize the existence of a package. I have > > S/ > p.py > B/ > b.py > W/ > pyw/ >

Re: We have string.isdigit(), why not string.isNumber()?

2008-04-30 Thread Dan Bishop
On Apr 30, 7:56 pm, MooMaster <[EMAIL PROTECTED]> wrote: > N00b question alert! I did a search for isdigit() in the group > discussion, and it didn't look like the question had been asked in the > first 2 pages, so sorry if it was... > > The manual documentation says: > "isdigit( ) > > Return true

Re: We have string.isdigit(), why not string.isNumber()?

2008-04-30 Thread Roy Smith
In article <[EMAIL PROTECTED]>, MooMaster <[EMAIL PROTECTED]> wrote: > So it makes sense that something like 5.6 would return false. But what > if we want to make sure that our string is a valid number, ie decimals > included? Just call int(x) or float(x) inside a try block and see if if it rai

We have string.isdigit(), why not string.isNumber()?

2008-04-30 Thread MooMaster
N00b question alert! I did a search for isdigit() in the group discussion, and it didn't look like the question had been asked in the first 2 pages, so sorry if it was... The manual documentation says: "isdigit( ) Return true if all characters in the string are digits and there is at least one ch

Re: pop langs website ranking

2008-04-30 Thread [EMAIL PROTECTED]
I have updated the computing sites popularity ranking, based on both alexa.com and quantcast.com. The whole report nicely formatted in HTML is here: http://xahlee.org/lang_traf/lang_sites.html The following is a summary of some highlights. the relative popularity of the following sites is rough

Re: best way to host a membership site

2008-04-30 Thread JYA
Hi On 2008-04-30 10:11:46 +1000, Magdoll <[EMAIL PROTECTED]> said: is the best thing to use. A friend recommended Ruby on Rails - not to instigate war here, but I'd welcome comments on that (I don't know You should have a look at Pylons then. It is similar in essence to Ruby on Rails, but usin

Re: relative import broken?

2008-04-30 Thread Sam
I also have a problem with relative import; I can't for the life of me figure out how to use the damn thing. I think the main problem is with getting Python to recognize the existence of a package. I have S/ p.py B/ b.py W/ pyw/ u.py ws.py and I'd like to get u.py to imp

Re: computing with characters

2008-04-30 Thread George Sakkis
On Apr 30, 3:53 pm, Mel <[EMAIL PROTECTED]> wrote: > George Sakkis wrote: > > def join(iterable, sep=' ', encode=str): > > return sep.join(encode(x) for x in iterable) > > Actually > > return encode(sep).join(encode(x) for x in iterable) > > lest you get TypeErrors for non-string separa

Re: ssh

2008-04-30 Thread Karthik Gurusamy
On Apr 29, 6:29 pm, gert <[EMAIL PROTECTED]> wrote: > Is this the best way to use ssh ? > How can i use ssh keys instead of passwords ? > I dont understand what happens when pid does not equal 0 , where does > the cmd get executed when pid is not 0 ? > How do you close the connection ? > > #http://

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread sturlamolden
On Apr 30, 8:06 pm, "L. Lindstrom" <[EMAIL PROTECTED]> wrote: > I have read that Python extension modules must link to the same C > run-time as the Python interpreter. This I can appreciate. But does this > requirement extend to the C libraries an extension module wraps. This somewhat of a miscon

Re: computing with characters

2008-04-30 Thread Terry Reedy
"Marco Mariani" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] | Torsten Bronger wrote: | | > However, join() is really bizarre. The list rather than the | > separator should be the leading actor. | | No, because join must work with _any sequence_, and there is no | "sequence" type

Re: Tremendous slowdown due to garbage collection

2008-04-30 Thread Aaron Watters
> I do not argue that Python's default GC parameters must change -- only > that applications with lots of objects may want to consider a > reconfiguration. I would argue that changing the GC to some sort of adaptive strategy should at least be investigated. Having an app which doesn't need gc spe

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Bjoern Schliessmann
blaine wrote: > I didn't mean anything by it, I promise. This group is just > amazing - there are always very active topics and I get responses > in no time. The wxPython group I noticed only has had recent > discussions a few times in the past month, and their subscribers > aren't as high as the

Re: computing with characters

2008-04-30 Thread Mel
George Sakkis wrote: > def join(iterable, sep=' ', encode=str): > return sep.join(encode(x) for x in iterable) Actually return encode(sep).join(encode(x) for x in iterable) lest you get TypeErrors for non-string separators. Mel. -- http://mail.python.org/mailman/listinfo/p

Re: Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread Christian Heimes
L. Lindstrom schrieb: > I have read that Python extension modules must link to the same C > run-time as the Python interpreter. This I can appreciate. But does this > requirement extend to the C libraries an extension module wraps. The > case in point is Pygame and SDL. The Pygame extension modules

Re: calling variable function name ?

2008-04-30 Thread thinkofwhy
Try a dictionary: def funcA(blah, blah) def funcB(blah, blah) def funcC(blah, blah) functions = {'A': funcA, 'B': funcB, 'C': funcC} user_func = 'A' functions[user_func] #execute function "Arnaud Delobelle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] TkNeo

Re: Issue with regular expressions

2008-04-30 Thread Shawn Milochik
My stab at it: My stab at it: #!/usr/bin/env python import re query = ' " some words" with and "withoutquotes " ' query = re.sub("\s+", " ", query) words = [] while query.__len__(): query = query.strip() print("Current query value: '%s'" % query) print words pri

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Mike Driscoll
On Apr 30, 1:09 pm, blaine <[EMAIL PROTECTED]> wrote: > On Apr 30, 1:14 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > > > blaine wrote: > > > The wxPython group is a bit stale compared to this group, so I'll give > > > it a shot :) > > > What does that mean? The wxPython group is almost always ver

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread blaine
On Apr 30, 10:41 am, Peter Otten <[EMAIL PROTECTED]> wrote: > blaine wrote: > > Still doesn't work. I'm looking into using wx instead... > > > This is the full code - does it work for anyone else? Just do a echo > > 'line 0 0 10 10' > dev.file > > Haven't tried it, but I think that the problem is

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread blaine
On Apr 30, 10:41 am, Peter Otten <[EMAIL PROTECTED]> wrote: > blaine wrote: > > Still doesn't work. I'm looking into using wx instead... > > > This is the full code - does it work for anyone else? Just do a echo > > 'line 0 0 10 10' > dev.file > > Haven't tried it, but I think that the problem is

Re: Python -v import behavior

2008-04-30 Thread David
On Wed, Apr 30, 2008 at 6:42 PM, Sean Ryan <[EMAIL PROTECTED]> wrote: > Hi all, > (A similar question was posted by a colleague, but did not appear to reach > comp.lang.python or this list). > > I am wondering if the -v option causes the python application to be more > tolerant to module import wa

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread blaine
On Apr 30, 1:14 pm, Mike Driscoll <[EMAIL PROTECTED]> wrote: > blaine wrote: > > The wxPython group is a bit stale compared to this group, so I'll give > > it a shot :) > > What does that mean? The wxPython group is almost always very quick to > respond with relevant answers. > > As to your questio

Python 2.6 and wrapping C libraries on Windows

2008-04-30 Thread L. Lindstrom
I have read that Python extension modules must link to the same C run-time as the Python interpreter. This I can appreciate. But does this requirement extend to the C libraries an extension module wraps. The case in point is Pygame and SDL. The Pygame extension modules are built with distutils,

Re: Sending Cntrl-C ??

2008-04-30 Thread gamename
> win32api.GenerateConsoleCtrlEvent(win32con.CTRL_C_EVENT, pgid) How do you determine the value of 'pgid'? -- http://mail.python.org/mailman/listinfo/python-list

Re: computing with characters

2008-04-30 Thread Carl Banks
On Apr 30, 6:47 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Torsten Bronger <[EMAIL PROTECTED]> wrote: > > The biggest ugliness though is ",".join(). No idea why this should > > be better than join(list, separator=" "). Besides, ",".join(u"x") > > yields an unicode object. This is confusing (b

Re: PIL and IPTC

2008-04-30 Thread supercooper
On Apr 30, 9:15 am, Jumping Arne <[EMAIL PROTECTED]> wrote: > I'm completely new to PIL and I'm trying to read IPTC info, I understand that > it's possible but I can't find out how (and for once Google doesn't seem to > be able to help). Does anyone have an example of how it's done? I use the IPTC

Re: Custom Classes?

2008-04-30 Thread J. Cliff Dyer
On Wed, 2008-04-30 at 11:02 -0500, Victor Subervi wrote: > Hi; > I have the following code which produces a file every time I need to > display an image from MySQL. What garbage! Surely, python is capable > of better than this, but the last time I asked for help on it, I got > no responses. Is th

Re: Finally had to plonk google gorups.

2008-04-30 Thread Shawn Milochik
How does one "plonk" stuff from Google Groups? Specifically, how can this be done in Gmail? Thanks, Shawn -- http://mail.python.org/mailman/listinfo/python-list

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Mike Driscoll
blaine wrote: > The wxPython group is a bit stale compared to this group, so I'll give > it a shot :) > What does that mean? The wxPython group is almost always very quick to respond with relevant answers. As to your question, I think Peter is correct. Your wx.py and wx.pyc files are masking th

Re: PIL and IPTC

2008-04-30 Thread Scott SA
On 4/30/08, Jumping Arne ([EMAIL PROTECTED]) wrote: >I'm completely new to PIL and I'm trying to read IPTC info, I understand that >it's possible but I can't find out how (and for once Google doesn't seem to >be able to help). Does anyone have an example of how it's done? Some basic PIL info: <

Re: computing with characters

2008-04-30 Thread George Sakkis
On Apr 30, 5:06 am, Torsten Bronger <[EMAIL PROTECTED]> wrote: > Hallöchen! > > SL writes: > > "Gabriel Genellina" <[EMAIL PROTECTED]> schreef in bericht > >news:[EMAIL PROTECTED] > > >> En Wed, 30 Apr 2008 04:19:22 -0300, SL <[EMAIL PROTECTED]> escribió: And > >> that's a very reasonable place to

Python -v import behavior

2008-04-30 Thread Sean Ryan
Hi all, (A similar question was posted by a colleague, but did not appear to reach comp.lang.python or this list). I am wondering if the -v option causes the python application to be more tolerant to module import warnings and / or errors. The reason is that a module is failing to import correct

Re: Sending Cntrl-C ??

2008-04-30 Thread gamename
> > > No, Windows doesn't support the same, rich set of signal as Unix OSes. > > True but irrelevant to the question. > To the OP: you can download the pywin32 package from sourceforge, and use > win32api.GenerateConsoleCtrlEvent(win32con.CTRL_C_EVENT, pgid) > or call the same function using ctypes

Re: printing inside and outside of main() module

2008-04-30 Thread Peter Otten
Bruno Desthuilliers wrote: > Peter Otten a écrit : >> korean_dave wrote: >> >>> This allows me to see output: >>> >>> ---begin of try.py >>> print "Hello World" >>> --end of try.py >>> >>> This DOESN'T though... >>> >>> --begin of try2.py >>> def main(): >>> return "Hello" >> main() # add this >

Re: printing inside and outside of main() module

2008-04-30 Thread Bruno Desthuilliers
Peter Otten a écrit : korean_dave wrote: This allows me to see output: ---begin of try.py print "Hello World" --end of try.py This DOESN'T though... --begin of try2.py def main(): return "Hello" main() # add this --end of try2.py Can someone explain why??? Python doesn't call the main(

Re: Colors for Rows

2008-04-30 Thread D'Arcy J.M. Cain
On Wed, 30 Apr 2008 11:03:34 -0500 "Victor Subervi" <[EMAIL PROTECTED]> wrote: > The problem was that z was not incrementing. It kept getting reset to 3, > then incremented to 4 immediately, and reset back to 3. Stupid :/ Not in the code you actually posted. As I said earlier, create the script t

Re: calling variable function name ?

2008-04-30 Thread Arnaud Delobelle
TkNeo <[EMAIL PROTECTED]> writes: > > George - Thanks for your reply but what you suggested is not working: > > def FA(param1,param2): > print "FA" + param1 + " " + param2 > def FA(param1,param2): > print "FB" + param1 + " " + param2 > def FA(param1,param2): > print "FC" + param1 + " "

Re: Colors for Rows

2008-04-30 Thread Victor Subervi
The problem was that z was not incrementing. It kept getting reset to 3, then incremented to 4 immediately, and reset back to 3. Stupid :/ On Wed, Apr 30, 2008 at 11:01 AM, D'Arcy J.M. Cain <[EMAIL PROTECTED]> wrote: > On Wed, 30 Apr 2008 10:57:44 -0500 > "Victor Subervi" <[EMAIL PROTECTED]> wrot

Custom Classes?

2008-04-30 Thread Victor Subervi
Hi; I have the following code which produces a file every time I need to display an image from MySQL. What garbage! Surely, python is capable of better than this, but the last time I asked for help on it, I got no responses. Is this only possible with custom classes? Please, give me some guidance

Re: Colors for Rows

2008-04-30 Thread D'Arcy J.M. Cain
On Wed, 30 Apr 2008 10:57:44 -0500 "Victor Subervi" <[EMAIL PROTECTED]> wrote: > Thank you all. You helped clean up my code. The stupid mistake was in where > I set the initial value of the variable z. Really? I thought that it was odd to start in the middle of your colour list but it didn't seem

Re: calling variable function name ?

2008-04-30 Thread TkNeo
On Apr 8, 7:51 pm, George Sakkis <[EMAIL PROTECTED]> wrote: > On Apr 8, 3:52 pm,TkNeo<[EMAIL PROTECTED]> wrote: > > > I don't know the exact terminology in python, but this is something i > > am trying to do > > > i have 3 functions lets say > > FA(param1,param2) > > FB(param1,param2) > > FC(param1

Re: Colors for Rows

2008-04-30 Thread Victor Subervi
Thank you all. You helped clean up my code. The stupid mistake was in where I set the initial value of the variable z. Victor On Tue, Apr 29, 2008 at 3:20 PM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote: > On Tue, 2008-04-29 at 15:39 -0400, D'Arcy J.M. Cain wrote: > > On Tue, 29 Apr 2008 15:03:23 -04

Re: best way to host a membership site

2008-04-30 Thread Aaron Watters
On Apr 30, 10:43 am, Jeroen Ruigrok van der Werven <[EMAIL PROTECTED] nomine.org> wrote: > > Werkzeug -http://werkzeug.pocoo.org/ Wow. An initial glance looks great! I need help with pronunciation, though :(. (also, I'm a little disappointed because I made some notes that looked a littl

Re: computing with characters

2008-04-30 Thread Torsten Bronger
Hallöchen! Diez B. Roggisch writes: >> However, join() is really bizarre. The list rather than the >> separator should be the leading actor. > > Certainly *not*! This would be the way ruby does it, and IMHO it > does not make sense to add join as a string-processing related > method/functionalit

Re: simple chemistry in python

2008-04-30 Thread Brian Blais
baoilleach wrote: If you are familiar with parsing XML, much of the data you need is stored in the following file: http://bodr.svn.sourceforge.net/viewvc/*checkout*/bodr/trunk/bodr/ elements/elements.xml?revision=34&content-type=text%2Fplain Here's a quick BeautifulSoup script to read it

Re: printing inside and outside of main() module

2008-04-30 Thread Peter Otten
korean_dave wrote: > This allows me to see output: > > ---begin of try.py > print "Hello World" > --end of try.py > > This DOESN'T though... > > --begin of try2.py > def main(): > return "Hello" main() # add this > --end of try2.py > > Can someone explain why??? Python doesn't call the main(

printing inside and outside of main() module

2008-04-30 Thread korean_dave
This allows me to see output: ---begin of try.py print "Hello World" --end of try.py This DOESN'T though... --begin of try2.py def main(): return "Hello" --end of try2.py Can someone explain why??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Issue with regular expressions

2008-04-30 Thread Gerard Flanagan
On Apr 29, 3:46 pm, Julien <[EMAIL PROTECTED]> wrote: > Hi, > > I'm fairly new in Python and I haven't used the regular expressions > enough to be able to achieve what I want. > I'd like to select terms in a string, so I can then do a search in my > database. > > query = ' " some words" with an

Re: Code/test ratio wrt static vs dynamic typing [was: Re: Python Success stories]

2008-04-30 Thread MRAB
On Apr 30, 10:47 am, [EMAIL PROTECTED] wrote: > > A rather off-topic and perhaps naive question, but isn't a 1:4 > > production/test ratio a bit too much ? Is there a guesstimate of what > > percentage of this test code tests for things that you would get for > > free in a statically typed language

Re: I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread Peter Otten
blaine wrote: > The wxPython group is a bit stale compared to this group, so I'll give > it a shot :) > > (READ: Originally when I started htis post, Python 2.5 at the shell > did not work (identical behavior to eclipse). I'm not sure why, but > it has since worked fine with no problems. Not su

Re: computing with characters

2008-04-30 Thread Diez B. Roggisch
However, join() is really bizarre. The list rather than the separator should be the leading actor. Certainly *not*! This would be the way ruby does it, and IMHO it does not make sense to add join as a string-processing related method/functionality to a general purpose sequence type. And as ot

new free fiction

2008-04-30 Thread mickey333
http://www.authspot.com/Short-Stories/Gossip.110935 -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread Peter Otten
blaine wrote: > Still doesn't work. I'm looking into using wx instead... > > This is the full code - does it work for anyone else? Just do a echo > 'line 0 0 10 10' > dev.file Haven't tried it, but I think that the problem is that you are updating the UI from the "readthread". A good example to

Re: best way to host a membership site

2008-04-30 Thread Jeroen Ruigrok van der Werven
-On [20080430 02:16], Magdoll ([EMAIL PROTECTED]) wrote: >Also I want an infrastructure that's not too rigid so if in the future I >want to add more apps it's not to hard. Not to belittle Django, but for what I wanted to do with it, it was too restraining. I instead went with

Re: List all files using FTP

2008-04-30 Thread Giampaolo Rodola'
On 6 Mar, 18:46, Anders Eriksson <[EMAIL PROTECTED]> wrote: > Hello, > > I need to list all the files on myFTPaccount (multiple subdirectories). I > don't have shell access to the account. > > anyone that has a program that will do this? > > // Anders > -- > English is not my first, or second, lang

Re: best way to host a membership site

2008-04-30 Thread Aaron Watters
> We're about to start a couple somewhat similar projects here, and while > our chief engineer is a definitive Ruby/Rails addict, we finally settled > on Django. While it's not my own personal favorite Python MVC framework, > it's still a very good one, and probably the more mature and stable so >

Re: how to convert a multiline string to an anonymous function?

2008-04-30 Thread Danny Shevitz
Thanks All! you've solved my problem. D -- http://mail.python.org/mailman/listinfo/python-list

Re: list.reverse()

2008-04-30 Thread blaine
On Apr 29, 8:51 pm, Roy Smith <[EMAIL PROTECTED]> wrote: > In article > <[EMAIL PROTECTED]>, > > blaine <[EMAIL PROTECTED]> wrote: > > Check out this cool little trick I recently learned: > > >>> x=range(5) > > >>> x.reverse() or x > > [4, 3, 2, 1, 0] > > > Useful for returning lists that you need

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread blaine
Still doesn't work. I'm looking into using wx instead... This is the full code - does it work for anyone else? Just do a echo 'line 0 0 10 10' > dev.file import sys, os, time, Tkinter, threading class nokia_fkscrn(Tkinter.Toplevel): fp=None def __init__(self, file): self.fname

PIL and IPTC

2008-04-30 Thread Jumping Arne
I'm completely new to PIL and I'm trying to read IPTC info, I understand that it's possible but I can't find out how (and for once Google doesn't seem to be able to help). Does anyone have an example of how it's done? -- http://mail.python.org/mailman/listinfo/python-list

Python Search Engine powered by Google

2008-04-30 Thread Giovanni Giorgi
Hi all, I am working on a customized python search engine: http://blog.objectsroot.com/python/ It is done using a special feature of Google, and it is focused on python I'd like to have the contribution of other guys out of there to fine tuning it. Feel free to use it and give me your feedback. You

Re: relative import broken?

2008-04-30 Thread Peter Otten
test wrote: > basic noob question here. > > i am trying to reference a package, i have the structure: > > mypack/ > __init__.py > test.py > subdir1/ > __init__.py > mod1.py > subdir2/ > __init__.py > mod2.py > > can someone please tell me why the

Re: Tremendous slowdown due to garbage collection

2008-04-30 Thread s0suk3
On Apr 12, 11:11 am, [EMAIL PROTECTED] wrote: > I should have been more specific about possible fixes. > > > > python2.5 -m timeit 'gc.disable();l=[(i,) for i in range(200)]' > > > 10 loops, best of 3: 662 msec per loop > > > > python2.5 -m timeit 'gc.enable();l=[(i,) for i in range(200)]'

I messed up my wxPython install (Eclipse Configuration Issue)

2008-04-30 Thread blaine
The wxPython group is a bit stale compared to this group, so I'll give it a shot :) (READ: Originally when I started htis post, Python 2.5 at the shell did not work (identical behavior to eclipse). I'm not sure why, but it has since worked fine with no problems. Not sure whats going on there...

Stream I/O to a java applet (os.popen?)

2008-04-30 Thread Cody Woolaver
Hello, I have designed a script (in java) that allows me to input a command like "Move 325 642" and the mouse cursor will move to that x,y position. The way that the java program works is when it initializes it runs in a constant loop reading the input each time something is sent to it... Here i

Re: Simple TK Question - refreshing the canvas when not in focus

2008-04-30 Thread Eric Brunel
On Wed, 30 Apr 2008 10:58:06 +0200, Robert.Spilleboudt <[EMAIL PROTECTED]> wrote: blaine wrote: Hey everyone! I'm not very good with Tk, and I am using a very simple canvas to draw some pictures (this relates to that nokia screen emulator I had a post about a few days ago). Anyway, all is

Re: Python(2.5) reads an input file FASTER than pure C(Mingw)

2008-04-30 Thread n00m
>>> a = ['zzz', 'aaa'] >>> id(a[0]), id(a[1]) (12258848, 12259296) >>> a.sort() >>> id(a[0]), id(a[1]) (12259296, 12258848) >>> -- http://mail.python.org/mailman/listinfo/python-list

relative import broken?

2008-04-30 Thread test
basic noob question here. i am trying to reference a package, i have the structure: mypack/ __init__.py test.py subdir1/ __init__.py mod1.py subdir2/ __init__.py mod2.py can someone please tell me why the statement: from mypack.subdir1.mod1 import * doe

Re: xml.dom.minidom weirdness: bug?

2008-04-30 Thread Marc Christiansen
JYA <[EMAIL PROTECTED]> wrote: >for y in x.getElementsByTagName('display-name'): >elem.appendChild(y) Like Gabriel wrote, nodes can only have one parent. Use elem.appendChild(y.cloneNode(True)) instead. Or y.cloneNode(False), if you want a shallow copy (i

Re: how to convert a multiline string to an anonymous function?

2008-04-30 Thread Scott David Daniels
Matimus wrote: On Apr 29, 3:39 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote: Danny Shevitz schrieb: Simple question here: ... str = ''' def f(state): print state return True ''' but return an anonmyous version of it, a la 'return f' so I can assign it independently. The body is multilin

Re: computing with characters

2008-04-30 Thread Duncan Booth
Torsten Bronger <[EMAIL PROTECTED]> wrote: > However, join() is really bizarre. The list rather than the > separator should be the leading actor. Do you mean the list, or do you mean the list/the tuple/the dict/the generator/the file and anything else which just happens to be an iterable seque

Re: computing with characters

2008-04-30 Thread Torsten Bronger
Hallöchen! Marco Mariani writes: > Torsten Bronger wrote: > >> However, join() is really bizarre. The list rather than the >> separator should be the leading actor. > > No, because join must work with _any sequence_, and there is no > "sequence" type to put the join method on. No, but for the s

Re: computing with characters

2008-04-30 Thread Marc 'BlackJack' Rintsch
On Wed, 30 Apr 2008 13:12:05 +0200, Torsten Bronger wrote: > However, join() is really bizarre. The list rather than the > separator should be the leading actor. You mean any iterable should be the leading actor, bacause `str.join()` works with any iterable. And that's why it is implemented *on

Re: computing with characters

2008-04-30 Thread Marco Mariani
Torsten Bronger wrote: However, join() is really bizarre. The list rather than the separator should be the leading actor. No, because join must work with _any sequence_, and there is no "sequence" type to put the join method on. This semantic certainly sets python apart from many other lang

age of empires 3 crack serial

2008-04-30 Thread soray6034rao
age of empires 3 crack serial http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

microsoft office word 2007 keygen download

2008-04-30 Thread soray6034rao
microsoft office word 2007 keygen download http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

ulead video studio 8 serial crack

2008-04-30 Thread soray6034rao
ulead video studio 8 serial crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

daylight savings time patch

2008-04-30 Thread soray6034rao
daylight savings time patch http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

the sims 2 crack

2008-04-30 Thread soray6034rao
the sims 2 crack http://crack.cracksofts.com -- http://mail.python.org/mailman/listinfo/python-list

Re: computing with characters

2008-04-30 Thread Torsten Bronger
Hallöchen! Duncan Booth writes: > Torsten Bronger <[EMAIL PROTECTED]> wrote: > >> The biggest ugliness though is ",".join(). No idea why this should >> be better than join(list, separator=" "). Besides, ",".join(u"x") >> yields an unicode object. This is confusing (but will probably go >> away

Essentio CS5110 the first produced desktop from asus

2008-04-30 Thread speedman2010
When I search web as every day I was surprised when I readied that ASUA company announced about it is new Essentio CS5110 desktop and I Saied " cool ASUS enter to the world of desktop manufactories " because ASUS produced good product and have a good Reputation On computer market and I waited fo

Re: best way to host a membership site

2008-04-30 Thread Bruno Desthuilliers
Magdoll a écrit : Hi, I know this is potentially off-topic, but because python is the language I'm most comfortable with and I've previously had experiences with plone, I'd as much advice as possible on this. I want to host a site where people can register to become a user. They should be

  1   2   >