Re: Python - Web Display Technology

2006-05-18 Thread Heiko Wundram
Am Donnerstag 18 Mai 2006 08:51 schrieb SamFeltus: > I am trying to figure out why so little web development in Python uses > Flash as a display technology. It seems most Python applications > choose HTML/CSS/JS as the display technology, yet Flash is a far more > powerful and elegant display tech

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
But you cant mix python code in there when creating the nodes. That is when it gets quite ugly an unreadable according to me. But I also relly do think that this: # build a tree structure root = ET.Element("html") *!*root: *!*head("head"): *!*title("title): *=*text

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
Actually we did start of with YAML, but realised that we need to have the power of a programming language aswell. But I wanted to come up with something that looked very clos to YAML since I find it quite readable. I have implemented the syntax, but as a preprocessor for python and it works quite

Re: Any pointers/advice to help learn CPython source?

2006-05-18 Thread [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote: > Anyone have any good advice to someone interested in learning about > innards of Python implementation? > > e.g. What is best place to start? > >Where can I get a 10,000 ft. overview of general structure? > >Anyone written docs on helping do this? > >

Re: Python - Web Display Technology

2006-05-18 Thread Sybren Stuvel
Heiko Wundram enlightened us with: > And: the web is a platform to offer _information_. Not to offer > shiny graphics/sound [...] Many would disagree... Not me, but I know a lot of people that would. Sybren -- The problem with the world is stupidity. Not saying there should be a capital punishm

Re: Python - Web Display Technology

2006-05-18 Thread Sybren Stuvel
SamFeltus enlightened us with: > I am trying to figure out why so little web development in Python > uses Flash as a display technology. There are a couple of reasons: - Flash is bad for websites that are 100% done inside the Flash movie. In such a case the back-button doesn't work anym

Job Offer (Herzelia, Israel)

2006-05-18 Thread Miki
Job Title: Python Application Expert Company: Logia (http://www.logiamobile.com) Contact: Lior Rudnik ([EMAIL PROTECTED]) Job Description: * Design & Development of our leading product's PC client application * Development in Python Job Requirements: * At least 4 years of experience

Re: Reference Counts

2006-05-18 Thread raghu
Heiko, Thanks for the explanation. I understood the idea of 1 being interned. Also I understood the globals vars having a reference in the internal dict. I ran the "leaky" version of the program and yes...it showed a progressively increasing totalrefcount as below. Before 0 : 16579 After 0 : 1658

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-18 Thread PoD
On Wed, 17 May 2006 21:37:14 +0800, Andy Sy wrote: > If tabs are easily misunderstood, then they are a MISfeature > and they need to be removed. > >>From the Zen of Python: > > "Explicit is better than implicit..." > "In the face of ambiguity, refuse the temptation to guess..." > "Special cases

Re: Reference Counts

2006-05-18 Thread Heiko Wundram
Am Donnerstag 18 Mai 2006 09:33 schrieb raghu: > However, the 'non-leaky' one showed a funny trend ...it kept increasing > the totalrefcount for five iterations (see 1 thru 5) and then dropped > down by 5 ( See Before 5 : 16584 > After 5 : 16580 ) suddenly and again increase as shown below. However

Re: getting the value of an attribute from pdb

2006-05-18 Thread Miki
Hello Gary, > (Pdb) p root.title > > > (Pdb) p root.title[Tk.wm_title] Looks like "title" is a function, try "p root.title()" HTH, Miki http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to make the program notify me explicitly

2006-05-18 Thread Miki
Hello hankssong, You can alert yourself in many methods: * Open a message dialog - Use Tkinter or other GUI toolkit (such as wxPython) * Write yourself an email - Use email + smtplib library modules * Provide an RSS feed and read it - Use HTTPServer library * Write yourself an instant message - se

Re: How to couple pyunit with GUI?

2006-05-18 Thread Miki
Hello volcano, http://pyunit.sourceforge.net/ has unittestgui.py (bit old though) HTH, Miki http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python for a CAD program

2006-05-18 Thread David Cuthbert
baalbek wrote: > CAD systems available today (Autocad, Archicad, Architectural Desktop, > etc) have one huge flaw: they don't store data to a SQL database, but to > binary files. There's a reason for this. Most CAD data is not in a form (First Normal Form) suitable for a relational database.

Re: using wxPython events inside a loop

2006-05-18 Thread Miki
Hello BigSmoke, You can process one at a time in an "OnIdle" handler, this way you'll work only when the application is doing nothing. HTH, Miki, http://pythonwise.blogspot.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Terry Reedy a écrit : > "Christophe" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > >>Is there a good reason why when you try to take an element from an >>already exausted iterator, it throws StopIteration instead of some other >>exception ? > > > Yes. > . > . > To distinguish

Re: Using python for a CAD program

2006-05-18 Thread David Cuthbert
Paddy wrote: > Unfortunately, Cadence got their first with their DFII environment for > Schematic based design and their Lisp based language SKILL Well, SKILL (a Franz Lisp derivative) is very old and has some peculiar design quirks. Interfacing with anything not written by Cadence or not writt

Re: How to tell if function was passed a list or a string?

2006-05-18 Thread Daniel Nogradi
> > >>> import types > > >>> type("") is types.ListType > > False > > >>> type("") is types.StringType > > True > > >>> type([]) is types.StringType > > False > > >>> type([]) is types.ListType > > True > > This is even worse than an 'isinstance' check; it refuses even > subclasses of the types you

Re: Tabs versus Spaces in Source Code ('semantic' vs. arbitrary indentation)

2006-05-18 Thread Christophe
Carl J. Van Arsdall a écrit : > glomde wrote: > >>> >> >> >> But If you work in a team it is kind of hard to make sure that >> everybody use tabs and not spaces. And it is not very easy to spot >> either. > > The converse can also be said, "it's difficult to make sure everyone > uses spa

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-18 Thread Duncan Booth
PoD wrote: > How many levels of indentation does 12 spaces indicate? > It could be 1,2,3,4,6 or 12. If you say it's 3 then you are > _implying_ that each level is represented by 4 spaces. By reading the code I can see how many levels of indentation it represents. > How many levels of indentatio

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread Diez B. Roggisch
glomde wrote: > There are some difference which are quite essential. > > First of all I dont se how you set attributes with that and Use dicts as childs. > then I dont see how you can mix python code with the creation. You can put any python expression in there, and in the Node class you can d

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-18 Thread Christophe
PoD a écrit : > On Wed, 17 May 2006 21:37:14 +0800, Andy Sy wrote: > > >>If tabs are easily misunderstood, then they are a MISfeature >>and they need to be removed. >> >>>From the Zen of Python: >> >>"Explicit is better than implicit..." >>"In the face of ambiguity, refuse the temptation to guess

Re: Tabs versus Spaces in Source Code ('semantic' vs. arbitrary indentation)

2006-05-18 Thread achates
Edward Elliott wrote: > What really should happen is that every time an editor reads in source code, > the code is reformatted for display according to the user's settings. The > editor becomes a parser, breaking the code down into tokens and emitting it > in a personally preferred format. I co

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread Gerard Flanagan
glomde wrote: > i I would like to extend python so that you could create hiercical [...] > # build a tree structure > root = ET.Element("html") > *!*root: > *!*head("head"): > *!*title("title): > *=*text = "Page Title" > *!*body("body"): > *=*b

Re: how to make the program notify me explicitly

2006-05-18 Thread hankssong
Ben Finney , Miki ,thanks a lot! may be message dialog is the best way to let me be informed! -- http://mail.python.org/mailman/listinfo/python-list

Re: how to make the program notify me explicitly

2006-05-18 Thread hankssong
Ben Finney , Miki ,thanks a lot! may be message dialog is the best way to let me be informed! -- http://mail.python.org/mailman/listinfo/python-list

Re: How to customize getattr(obj, prop) function ?

2006-05-18 Thread bruno at modulix
Pierre wrote: > Hi, > > Sorry in advance, english is not my main language :/ > > I'd like to customize the result obtained by getattr on an object : if > the object has the requested property then return it BUT if the object > doesn't has actually this property return something else. So implemen

Re: Python - Web Display Technology

2006-05-18 Thread bruno at modulix
SamFeltus wrote: > I am trying to figure out why so little web development in Python uses > Flash as a display technology. It seems most Python applications > choose HTML/CSS/JS as the display technology, yet Flash is a far more > powerful and elegant display technology. On the other hand, HTML/J

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread bruno at modulix
glomde wrote: > i I would like to extend python so that you could create hiercical > tree structures (XML, HTML etc) easier and that resulting code would be > more readable than how you write today with packages like elementtree > and xist. > I dont want to replace the packages but the packages cou

Re: How to customize getattr(obj, prop) function ?

2006-05-18 Thread Pierre
I don't want to use getattr(object, property, default_value) because I'm using external code and I don't want to modify or patch it. In this code, the call is getattr(object, property). On my objects, I must provide default values depending on the property that was requested, the default value is

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread Alan Kennedy
[glomde] > i I would like to extend python so that you could create hiercical > tree structures (XML, HTML etc) easier and that resulting code would be > more readable than how you write today with packages like elementtree > and xist. > Any comments? Yes: it's ugly and unnecessary. Why would yo

Re: Process forking on Windows

2006-05-18 Thread bruno at modulix
Andrew Robert wrote: > bruno at modulix wrote: > >>Andrew Robert wrote: >> >>>Hi everyone, >>> >>> >>>I have a python program that will need to interact with an MQSeries >>>trigger monitor. >>> >>>It does this fine but it hogs the trigger monitor while it executes. >>> >>>I'd like to fork the prog

Re: Process forking on Windows - or what is MQSeries

2006-05-18 Thread bruno at modulix
Andrew Robert wrote: > Gary Herron wrote: > >>Andrew Robert wrote: >> > > > >>The windows CreateProcess call has many of the same semantics as the >>Unix fork, i.e., a new process is created sharing all the resources of >>the original process. The "subprocess" modules uses CreateProcess, but >

Re: Tabs versus Spaces in Source Code

2006-05-18 Thread Alain Picard
"Bill Pursell" <[EMAIL PROTECTED]> writes: > In my experience, the people who complain about the use > of tabs for indentation are the people who don't know > how to use their editor, and those people tend to use > emacs. HA HA HA HA HA HA HA HA HA HA HA HA Tee, hee heee snif! Phew.

Re: Python - Web Display Technology

2006-05-18 Thread Ben Finney
"SamFeltus" <[EMAIL PROTECTED]> writes: > It seems most Python applications choose HTML/CSS/JS as the display > technology, These are open, freely-implementable, non-proprietary standards controlled by standards bodies. > yet Flash is a far more powerful and elegant display technology. This is

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> You can put any python expression in there, and in the Node class you can do > what you want. But the main advantage is any python code not only expressions. In addition to that you get nice flow style. Can set variables which you later use as want. > Seems that you are after a templating-syste

Re: Large Dictionaries

2006-05-18 Thread Claudio Grondi
Chris Foote wrote: > Claudio Grondi wrote: >> Chris Foote wrote: >>> Klaas wrote: >>> > 22.2s 20m25s[3] 20m to insert 1m keys? You are doing something wrong. >>> >>> I've put together some simplified test code, but the bsddb >>> module gives 11m for 1M keys: >>> >> I have run your c

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> You also repeat yourself: head("head"), title("title"), body("body") > > What about this: > > # build a tree structure > root = ET.Element("html") > !root > !head > !title > if A is True: > &text = "Page A" > else: > &text = "Page B" > !body > &bgc

Re: how to make the program notify me explicitly

2006-05-18 Thread alex23
hankssong wrote: > may be message dialog is the best way to let me be informed! EasyGui is possibly the simplest and fastest way to get message dialogue boxes in Python: http://www.ferg.org/easygui/ - alex23 -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> What about using data for nodes and '=' for attributes ? > Would look like: > > > > Page Title > > > Hello World > > > > > I think that with the added syntax you get better view of the html > > page. > > indeed !-) I dont think it is very pythonic :-). You dont use endtags

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> Here's a nice stan example, taken from Kieran Holland's tutorial > http://www.kieranholland.com/code/documentation/nevow-stan/ I took a quick look and it looks nice as long as your page is static. But I couldnt se how you could mix in python code seamlessy when creating your tree. But I might b

Re: Process forking on Windows

2006-05-18 Thread Tim N. van der Leeuw
Andrew Robert wrote: > bruno at modulix wrote: [...] > > > > > > Is this really the solution ? > > > > [...] > > > Unfortunately there is a real need for this. > > The MQSeries trigger monitor is single threaded. > > Because of this, my program would absorb it until it completes. > > The way to

Re: How to customize getattr(obj, prop) function ?

2006-05-18 Thread bruno at modulix
Pierre wrote: > I don't want to use getattr(object, property, default_value) because > I'm using external code and I don't want to modify or patch it. In this > code, the call is getattr(object, property). Seems like a perfectly valid reason !-) > On my objects, I must provide default values depe

Best active community website

2006-05-18 Thread [EMAIL PROTECTED]
Hi I have been looking for a active Python community website. Something like www.codeproject.com (contains code articles and guide, by developers, for developers) for Python users. Does something like this exist? /Martin -- http://mail.python.org/mailman/listinfo/python-list

Re: Large Dictionaries

2006-05-18 Thread Claudio Grondi
Chris Foote wrote: > Richie Hindle wrote: >> [Chris] >>> Has anyone written a fast hash module which is more optimal for >>> large datasets ? >> >> PyJudy might be what you're looking for, though I've never used it: >> >> http://www.dalkescientific.com/Python/PyJudy.html >> >> "Judy's key benefit

Re: Tabs are *MISUNDERSTOOD*, *EVIL* AND *STUPID*, end of discussion. (Re: Tabs versus Spaces in Source Code)

2006-05-18 Thread achates
Duncan Booth wrote: > No. That is precisely the problem: there is code in the wild which > contains mixed space and tab indentation... > I wouldn't have a problem with tabs if Python rejected mixed indentation by > default, because then none of the code above would execute. I think it's great

Re: How to couple pyunit with GUI?

2006-05-18 Thread volcano
Miki, toda, but it did not work for me. BTW, I have forgotten to mention - the implementation I develop should be multi-platform.If anything else comes to you mind - I'll be more than gateful to hear. Regards, Mark -- http://mail.python.org/mailman/listinfo/python-list

Europython 2006 call for proposals

2006-05-18 Thread Harald Armin Massa
Hello, I am writing this supporting the Python in Business Track. We are looking for talks proposals concerning the usage of Python in doing business. So, if you have a story to tell... Maybe you have written a webcrawler in Python and founded a search engine? Or you are using Python to organize

Re: Tabs versus Spaces in Source Code

2006-05-18 Thread Pascal Bourguignon
Edmond Dantes <[EMAIL PROTECTED]> writes: > It all depends on your editor of choice. Emacs editing of Lisp (and a few > other languages, such as Python) makes the issue more or less moot. I > personally would recommend choosing one editor to use with all your > projects, and Emacs is wonderful in t

Re: Question about exausted iterators

2006-05-18 Thread looping
Christophe wrote: > Ok, call me stupid if you want but I know perfectly well the "solution" > to that problem ! Come on, I was showing example code of an horrible > gotcha on using iterators. > OK, your are stupid ;-) Why asking questions when you don't want to listen answers ? > > > Instead of

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread bruno at modulix
glomde wrote: >>What about using data for nodes and '=' for attributes ? >>Would look like: >> >> >> >>Page Title >> >> >>Hello World >> >> >> >>>I think that with the added syntax you get better view of the html >>>page. >> >>indeed !-) > > > I dont think it is very pythonic :-).

Re: Best active community website

2006-05-18 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > Hi > > I have been looking for a active Python community website. Something > like www.codeproject.com (contains code articles and guide, by > developers, for developers) for Python users. > > Does something like this exist? - this newsgroup - which is very active, fri

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread Heiko Wundram
Am Donnerstag 18 Mai 2006 13:27 schrieb bruno at modulix: > Adding ugly and unintuitive "operators" to try to turn a general purpose > programming language into a half-backed unusable HTML templating > language is of course *much* more pythonic... What about writing a mini-language that gets trans

Re: How to couple pyunit with GUI?

2006-05-18 Thread Fabio Zadrozny
Hi Mark,On 5/18/06, Mark Geyzer <[EMAIL PROTECTED]> wrote: Fabio, thank you for your response, but I'm afraid that you misunderstood me - probably, I was not too clear. I do no test GUI - on the contrary, I am testing a HW interface. What I do need is a GUI equivalent of the TextTestRunner method.

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> Adding ugly and unintuitive "operators" to try to turn a general purpose > programming language into a half-backed unusable HTML templating > language is of course *much* more pythonic... IT is not only for HTML. I do think html and xml are the biggest creators of hierarcical treestructures. But

Tkinter Dialog Management problems:

2006-05-18 Thread Michael Yanowitz
Hello: Below I have included a stripped down version of the GUI I am working on. It contains 2 dialog boxes - one main and one settings. It has the following problems, probably all related, that I am hoping someone knows what I am doing wrong: 1) Pressing the Settings.. Button multiple times,

Which is More Efficient?

2006-05-18 Thread Dustan
I have a program that uses up a lot of CPU and want to make it is efficient as possible with what I have to work with it. So which of the following would be more efficient, knowing that l is a list and size is a number? l=l[:size] del l[size:] If it makes a difference, everything in the list is m

Re: How to customize getattr(obj, prop) function ?

2006-05-18 Thread Ben Finney
[Please provide some context in your reply, so we know what questions or comments you're replying to.] "Pierre" <[EMAIL PROTECTED]> writes: > I don't want to use getattr(object, property, default_value) because > I'm using external code and I don't want to modify or patch it. You can subclass th

Re: Which is More Efficient?

2006-05-18 Thread dan . gass
Measure it and find out. Sounds like a little investment in your time learning how to measure performance may pay dividends for you. -- http://mail.python.org/mailman/listinfo/python-list

Re: Question about exausted iterators

2006-05-18 Thread Christophe
looping a écrit : > Christophe wrote: > >>Ok, call me stupid if you want but I know perfectly well the "solution" >>to that problem ! Come on, I was showing example code of an horrible >>gotcha on using iterators. >> > > > OK, your are stupid ;-) > Why asking questions when you don't want to lis

Re: Which is More Efficient?

2006-05-18 Thread Ben Finney
"Dustan" <[EMAIL PROTECTED]> writes: > I have a program that uses up a lot of CPU and want to make it is > efficient as possible with what I have to work with it. Profile your program and find the precise parts that are the slowest. Attempting to optimise before that is a waste of your time. > S

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread glomde
> What about writing a mini-language that gets translated to Python? Think of > Cheetah, which does exactly this (albeit not being limited to templating HTML > data). I have implemented my proposal as preprocessor. And it works fine. But my proposal in not only for HTML it can be used for all hier

Conversion of perl unpack code to python - something odd

2006-05-18 Thread Andrew Robert
Hey everyone, Maybe you can see something I don't. I need to convert a working piece of perl code to python. The perl code is: sub ParseTrig { # unpack the ibm struct that triggers messages. my $struct = shift; my %data; @data{qw/StructID Version QName ProcessName TriggerData ApplType

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread bruno at modulix
glomde wrote: >>Adding ugly and unintuitive "operators" to try to turn a general purpose >>programming language into a half-backed unusable HTML templating >>language is of course *much* more pythonic... > > > IT is not only for HTML. I do think html and xml are the biggest > creators of > hierar

Re: Which is More Efficient?

2006-05-18 Thread Fredrik Lundh
Dustan wrote: > I have a program that uses up a lot of CPU and want to make it is > efficient as possible with what I have to work with it. So which of the > following would be more efficient, knowing that l is a list and size is > a number? > > l=l[:size] > del l[size:] since you have the progr

Re: Question about exausted iterators

2006-05-18 Thread Fredrik Lundh
Christophe wrote: > Because I'm still waiting for a valid answer to my question. The answer > "Because it has been coded like that" or is not a valid one. it's been coded like that because that's what the specification says: http://www.python.org/dev/peps/pep-0234/ -- http://mail.pytho

If you were given a mall would you take it?

2006-05-18 Thread Chuck
http://www.telebay.com/esolutions/opp.html -- http://mail.python.org/mailman/listinfo/python-list

Re: Proposal for new operators to python that add syntactic sugar for hierarcical data.

2006-05-18 Thread bruno at modulix
glomde wrote: >>What about writing a mini-language that gets translated to Python? Think of >>Cheetah, which does exactly this (albeit not being limited to templating HTML >>data). > > I have implemented my proposal as preprocessor. And it works fine. But > my > proposal in not only for HTML Nor

Re: Conversion of perl unpack code to python - something odd

2006-05-18 Thread Fredrik Lundh
Andrew Robert wrote: > # From the language declarations in manual, the following format was derived > > format='4s 4s 48s 48s 64s 4s 256s 128s 128s 48s' that's 10 specifiers. > d1,d2=struct.unpack(format,data) that's two variables. > print d1 > sys.exit(0) > > When I run it, it says there ar

Re: Conversion of perl unpack code to python - something odd

2006-05-18 Thread Peter Otten
Andrew Robert wrote: > format='4s 4s 48s 48s 64s 4s 256s 128s 128s 48s' You are trying to squeeze 10 items into just > d1,d2=struct.unpack(format,data) two variables (d1 and d2) > ValueError: too many values to unpack and Python is quite explicit that it doesn't like that once you realize tha

Re: How to tell if function was passed a list or a string?

2006-05-18 Thread Sion Arrowsmith
rh0dium <[EMAIL PROTECTED]> wrote: > [ ... ] Since you have lots of answers to your real question: >an.append(re.sub(",","", str(a))) an.append(str(a).replace(",", "")) -- \S -- [EMAIL PROTECTED] -- http://www.chaos.org.uk/~sion/ ___ | "Frankly I have no feelings toward

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Fredrik Lundh a écrit : > Christophe wrote: > >> Because I'm still waiting for a valid answer to my question. The >> answer "Because it has been coded like that" or is not a valid one. > > > it's been coded like that because that's what the specification says: > > http://www.python.org/dev

Re: creating a new database with mysqldb

2006-05-18 Thread John Salerno
BartlebyScrivener wrote: > I was hoping you'd find this earlier when I suggested that you type: > > creating a new database with MySQL > > into google. > > It's the number one hit: > > http://coronet.iicm.edu/mysql/create.html > > If you send the commands listed there via the commandline or th

Re: Python - Web Display Technology

2006-05-18 Thread SamFeltus
I guess there isn't much to understand. If you are satisfied with a text based, static image web, that is light on artistic possabilities, all that HTML stuff is acceptable. Perhaps the HTML/JS group will even get off their rear ends and bring some decent cross platform graphics capabilities to t

Re: Python - Web Display Technology

2006-05-18 Thread SamFeltus
I guess there isn't much to understand. If you are satisfied with a text based, static image web, that is light on artistic possabilities, all that HTML stuff is acceptable. Perhaps the HTML/JS group will even get off their rear ends and bring some decent cross platform graphics capabilities to t

module webbrowser - open link in same window - osx

2006-05-18 Thread robin
hi, i'm using the webbrowser module to open url's in safari or firefox. specifically i'm using the webbrowser.open('http://...', new=0) command. however, even though i say new=0 my url is always opened in a new browser window. what can i do, so my link is opened in an already open browser window?

Strange error

2006-05-18 Thread WSobczuk
I have encountered a very strange error and I'm hoping that some Python hackers here could give me insight on this. searchview.py file contains two functions: def mysearch(indexname, request, c, page = 0, searchdburl = INDEX_URL, query_add = {}, queries = [], form = True, limit = DEFAULT_LIMIT, ta

Re: Question about exausted iterators

2006-05-18 Thread Fredrik Lundh
Christophe wrote: >>> Because I'm still waiting for a valid answer to my question. The >>> answer "Because it has been coded like that" or is not a valid one. >> >> it's been coded like that because that's what the specification says: >> >> http://www.python.org/dev/peps/pep-0234/ > > I didn

Re: Strange error

2006-05-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > I have encountered a very strange error and I'm hoping that some Python > hackers here could give me insight on this. > > searchview.py file contains two functions: > def mysearch(indexname, request, c, page = 0, searchdburl = INDEX_URL, > query_add = {}, queries = [],

Python Install

2006-05-18 Thread D
I'm sure this is an easy question for most here, but it's throwing me for a loop at the moment - I need to upgrade RHEL 3 with the latest version of Python. I downloaded the source and installed, but we're still having problems (i.e. some Python apps don't work, Add/Remove Applications console err

Re: Question about exausted iterators

2006-05-18 Thread Diez B. Roggisch
Christophe wrote: > Fredrik Lundh a écrit : >> Christophe wrote: >> >>> Because I'm still waiting for a valid answer to my question. The >>> answer "Because it has been coded like that" or is not a valid one. >> >> >> it's been coded like that because that's what the specification says: >> >>

Re: Strange error

2006-05-18 Thread WSobczuk
Evaluation of default values seems to have nothing to do with the case I described. The default values are both tags = {}, and still inside mysearch() I sometimes get some value from previous call inside tags, when the tags keyword argument is not specified. -- http://mail.python.org/mailman/list

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Fredrik Lundh a écrit : > Christophe wrote: > Because I'm still waiting for a valid answer to my question. The answer "Because it has been coded like that" or is not a valid one. >>> >>> >>> it's been coded like that because that's what the specification says: >>> >>> http://www.pyt

Re: Question about exausted iterators

2006-05-18 Thread Roel Schroeven
Fredrik Lundh schreef: > Christophe wrote: > Because I'm still waiting for a valid answer to my question. The answer "Because it has been coded like that" or is not a valid one. >>> it's been coded like that because that's what the specification >>> says: >>> >>> http://www.python.

Re: Using python for a CAD program

2006-05-18 Thread Terry Hancock
David Cuthbert wrote: >baalbek wrote: > > >>CAD systems available today (Autocad, Archicad, Architectural Desktop, >>etc) have one huge flaw: they don't store data to a SQL database, but to >>binary files. >> >> > >There's a reason for this. Most CAD data is not in a form (First Normal >

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Diez B. Roggisch a écrit : > Christophe wrote: > > >>Fredrik Lundh a écrit : >> >>>Christophe wrote: >>> >>> Because I'm still waiting for a valid answer to my question. The answer "Because it has been coded like that" or is not a valid one. >>> >>> >>>it's been coded like that because th

Re: Python - Web Display Technology

2006-05-18 Thread bruno at modulix
SamFeltus wrote: > I guess there isn't much to understand. If you are satisfied with a > text based, static image web, that is light on artistic possabilities, > all that HTML stuff is acceptable. 1. artistic != animated. 2. the web has mostly been designed for text-based content. > Perhaps the

Re: Strange error

2006-05-18 Thread Fredrik Lundh
[EMAIL PROTECTED] wrote: > The default values are both tags = {}, and still inside mysearch() I > sometimes get some value from previous call inside tags, when the tags > keyword argument is not specified. which is exactly what happens if you *update* the default argument. did you even bother t

Re: Tkinter Dialog Management problems:

2006-05-18 Thread Eric Brunel
On Thu, 18 May 2006 08:41:20 -0400, Michael Yanowitz <[EMAIL PROTECTED]> wrote: > Hello: > >Below I have included a stripped down version of the GUI I am working > on. > It contains 2 dialog boxes - one main and one settings. It has the > following > problems, probably all related, that

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Roel Schroeven a écrit : > Fredrik Lundh schreef: >> so what is a valid answer? > > > I think he wants to know why the spec has been written that way. > > The rationale mentions exhausted iterators: > > "Once a particular iterator object has raised StopIteration, will > it also raise StopIterat

Re: Question about exausted iterators

2006-05-18 Thread Fredrik Lundh
Christophe wrote: > Maybe I've used more iterables than most of you. Maybe I've been doing > that wrong. your problem is that you're confusing iterables with sequences. they're two different things. -- http://mail.python.org/mailman/listinfo/python-list

Windows Registry Dump

2006-05-18 Thread Dirk Hagemann
Hi! Does someone know how I can make a Text-Dump-File of a remote Windows-Computer's Registry (not the whole registry - only a part of it)? Thanks a lot for some code or a helpful link! regards Dirk -- http://mail.python.org/mailman/listinfo/python-list

Re: [silly] Does the python mascot have a name ?

2006-05-18 Thread John D Salt
John Bokma <[EMAIL PROTECTED]> wrote in news:Xns97C6ADE23FCAcastleamber@ 130.133.1.4: > John D Salt wrote: > >> Andy Sy <[EMAIL PROTECTED]> wrote in >> news:[EMAIL PROTECTED]: >> >>> http://mail.python.org/pipermail/python-list/2003-September/185612.html >> >> "Odi" must be the Dutch for "Mon

Re: Strange error

2006-05-18 Thread bruno at modulix
[EMAIL PROTECTED] wrote: > Evaluation of default values seems to have nothing to do with the case > I described. It does. Please *read* the faq: http://pyfaq.infogami.com/why-are-default-values-shared-between-objects > The default values are both tags = {}, and still inside mysearch() I > sometim

Re: how to make the program notify me explicitly

2006-05-18 Thread Cameron Laird
In article <[EMAIL PROTECTED]>, alex23 <[EMAIL PROTECTED]> wrote: >hankssong wrote: >> may be message dialog is the best way to let me be informed! > >EasyGui is possibly the simplest and fastest way to get message >dialogue boxes in Python: > >http://www.ferg.org/easygui/ > >- alex23 > No. Tha

Re: Python Install

2006-05-18 Thread Paul Osman
On 18-May-06, at 10:30 AM, D wrote: > I'm sure this is an easy question for most here, but it's throwing me > for a loop at the moment - I need to upgrade RHEL 3 with the latest > version of Python. I downloaded the source and installed, but we're > still having problems (i.e. some Python apps do

Re: Question about exausted iterators

2006-05-18 Thread Christophe
Fredrik Lundh a écrit : > Christophe wrote: > >> Maybe I've used more iterables than most of you. Maybe I've been doing >> that wrong. > > > your problem is that you're confusing iterables with sequences. they're > two different things. Yes, I know perfectly well that the bugs were my fault.

RE: Windows Registry Dump

2006-05-18 Thread Tim Golden
[Dirk Hagemann] | Does someone know how I can make a Text-Dump-File of a remote | Windows-Computer's Registry (not the whole registry - only a part of | it)? Well, your question doesn't seem to rule out this option so I thought I'd offer it: Use regedit to connect to the remote registry, then do

Re: Windows Registry Dump

2006-05-18 Thread Diez B. Roggisch
Dirk Hagemann wrote: > Hi! > > Does someone know how I can make a Text-Dump-File of a remote > Windows-Computer's Registry (not the whole registry - only a part of > it)? > > Thanks a lot for some code or a helpful link! I suggest you try asking the darker side of the internet - after all, acce

Re: Python - Web Display Technology

2006-05-18 Thread Sybren Stuvel
SamFeltus enlightened us with: > I guess there isn't much to understand. If you are satisfied with a > text based, static image web, that is light on artistic > possabilities, all that HTML stuff is acceptable. You don't need Flash to be artistic. > Perhaps the HTML/JS group will even get off th

  1   2   3   >