Any wing2.0 users here?

2006-01-02 Thread Alvin A. Delagon
emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for me. Suggestions for better python IDE's are

Re: Any wing2.0 users here?

2006-01-02 Thread gene tani
Alvin A. Delagon wrote: emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for me. Suggestions for

Re: Any wing2.0 users here?

2006-01-02 Thread Claudio Grondi
Alvin A. Delagon wrote: emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for me. Suggestions for

Re: PyHtmlGUI Project is looking for developers

2006-01-02 Thread phoenixathell
Hi John, I wonder how you're dealing with client-side code (ie. JavaScript)? At the moment we don't work with javascript. But it should not be to hard to create a JavaScript Renderer similar to the css one we already have. Have you looked at crackajax or PyPy? Not really close so far. On of

What PyXml provides

2006-01-02 Thread ankit
Python itself provides parsers for xml and Dom support. So, if I install pyxml what additional advantage or features I will get in pyxml specially in minidom and parsers. Anyone, please provide a brirfing on this. -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Ilias Lazaridis
Alex Martelli wrote: Ilias Lazaridis [EMAIL PROTECTED] wrote: ... note: Anton Vredegoor wrote: only hire people with long backstabbing histories. Such as...? Guido van Rossum? Greg Stein? Vint Cerf? Ben Goodger? ... The employees you've mentioned should have most possibly the

Re: Hypergeometric distribution

2006-01-02 Thread Raven
Well, what to say? I am very happy for all the solutions you guys have posted :-) For Paul: I would prefer not to use Stirling's approximation The problem with long integers is that to calculate the hypergeometric I need to do float division and multiplication because integer division returns 0.

Running external programs: what is the best way?

2006-01-02 Thread sir_alex
If i have to execute an external program (for example, in the frontend that i created for convert, from ImageMagick) i have 2 possibilities: i can call one function between the exec* family, or i can call the system function: so, which in your opinion is the best? The only difference that i know

Re: Python or Java or maybe PHP?

2006-01-02 Thread Peter Hansen
Alex Martelli wrote: One great programming principle is Dont' Repeat Yourself: when you're having to express the same thing over and over, there IS something wrong. I believe the DYR phrasing is due to the so-called Pragmatic Programmers, who are paladins of Ruby, but I also believe it's a

Re: Running external programs: what is the best way?

2006-01-02 Thread Peter Hansen
sir_alex wrote: If i have to execute an external program (for example, in the frontend that i created for convert, from ImageMagick) i have 2 possibilities: i can call one function between the exec* family, or i can call the system function: so, which in your opinion is the best? The only

Re: Application architecture (long post - sorry)

2006-01-02 Thread limeydrink
Bump -- http://mail.python.org/mailman/listinfo/python-list

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Anton Vredegoor
Alex Martelli wrote: Anton Vredegoor [EMAIL PROTECTED] wrote: ... Google's not a nice company (yeah, I know I'm posting from a google account). If you look at their job requirements it's clear they will only hire people with long backstabbing histories. Such as...? Guido van Rossum?

Re: Any wing2.0 users here?

2006-01-02 Thread Franz GEIGER
Alvin A. Delagon wrote: emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for me. Suggestions for

pdb.py - why is this debugger different from all other debuggers?

2006-01-02 Thread R. Bernstein
Okay, a bit of an exaggeration. Recently, I've been using Python more seriously, and in using the debugger I think one of the first things I noticed was that there is no restart (R in perldb) or run (gdb) command. I was pleasantly pleased discover how easy though it was patch pdb.py and

Re: Python or Java or maybe PHP?

2006-01-02 Thread Ilias Lazaridis
[EMAIL PROTECTED] wrote: Hi everyone, I need to write a web app, that will support millions of user accounts, template-based user pages and files upload. The client is going to be written in Flash. I wondered if I coudl get your opinions - what do you think is the best language to use for

Re: PYTHONDOCS

2006-01-02 Thread Dan Sommers
On Mon, 02 Jan 2006 04:33:44 GMT, J. D. Leach [EMAIL PROTECTED] wrote: ... This is in spite of my setting the .bash profile correctly. As it stands, I am at a loss for how to fix the problem ... As a long shot, and I don't mean to insult anyone, but what is the name of your .bash profile, and

Re: How can Python write BBcode modules?

2006-01-02 Thread [EMAIL PROTECTED]
if you don't need really goof perfomances, you ca use regular expression... but in fact, string processing would be really better ! -- http://mail.python.org/mailman/listinfo/python-list

Re.'Compressing folders in Windows using Python'

2006-01-02 Thread sri2097
Hi all,This is in reply to the 'Compressing folders in Windows using Python' query I raised y'day. I figured out that windows does not allow command line zipping so I started looking for alternatives. I found some modules in Perl which does zipping. I guess it goes by the name 'gzip'. I plan to

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Peter Hansen
sri2097 wrote: Hi all,This is in reply to the 'Compressing folders in Windows using Python' query I raised y'day. I figured out that windows does not allow command line zipping so I started looking for alternatives. I found some modules in Perl which does zipping. I guess it goes by the

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Ravi Teja
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/299412 -- http://mail.python.org/mailman/listinfo/python-list

Re: how to scrape url out of href

2006-01-02 Thread Kent Johnson
[EMAIL PROTECTED] wrote: mike's code worked like a charm. i have one more question. i have an href which looks like this: td class=all a class=btn name=D1 href=http://www.cnn.com; /a i thought i would use this code to get the href out but it fails, gives me a keyerror:

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Tim N. van der Leeuw
Isn't it much easier to figure out how python built-in module 'zipfile' works? Pseudo-code would be something like: #UNTESTED import zipfile import os import os.path zf = zipfile.ZipFile('myzipfilename.zip', 'w', zipfile.ZIP_DEFLATED) for root, dirs, files in os.walk('compressthisdir'): for

Re: Re.'Compressing folders in Windows using Python'

2006-01-02 Thread Tim N. van der Leeuw
Using gzip means you can compress only 1 file per gzip; so you'll have to invent something like tar to put all your files in your directories together into 1 file and then apply gzip on that file to get it compressed... Using the zipfile module should allow you to create a standard

Productivity and Quality of IDE

2006-01-02 Thread Claudio Grondi
In todays posting Any wing2.0 users here? I found in the sentence What can you say about this IDE? He say's 'if I think it could improve my productivity he's willing to buy it for me. the indirect question: Can a better Python IDE increase programmers productivity? From my experience

Re: Any wing2.0 users here?

2006-01-02 Thread RunLevelZero
I think it's one of the best myself. I littel laggy on windows but you get use to it. Just my .02 -- http://mail.python.org/mailman/listinfo/python-list

HELP! on wxPython Error

2006-01-02 Thread Suranga Sarukkali
Hello, I'm Sam and I've been under som trouble with using wxPython that when I try to execute code containing wxPython gui programs provided with wxPython geting started sample progams it's giving a error but when I type the code to the shell prompt it works fine. Is it beacus I'm on windows or

Sort dictionary

2006-01-02 Thread Markus Franz
Hi! I have: x = {'a':3, 'b':2, 'c':4} How can I sort x by value? (I tried using sorted() with x.items() - but I didn't get a dictionary as response.) My second question: How can I reduce the dictionary to 2 items (so delete everything after the first two items) Thanks in advance. Best

Re: Sort dictionary

2006-01-02 Thread Claudio Grondi
Markus Franz wrote: Hi! I have: x = {'a':3, 'b':2, 'c':4} How can I sort x by value? (I tried using sorted() with x.items() - but I didn't get a dictionary as response.) My second question: How can I reduce the dictionary to 2 items (so delete everything after the first two items)

ActiveX parameters

2006-01-02 Thread g.franzkowiak
Hello everybody, my little problem resurfaced together with COM. The generated .py file contains the following function: def showApplication(self, show=defaultNameNotOptArg): return self._oleobj_.InvokeTypes(...,show) The value for show (defaultNameNotOptArg) must be True|False. I

Re: Productivity and Quality of IDE

2006-01-02 Thread Daniel J. Rubin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I say it entirely depends on what your programming. For instance, if creating a GUI, there is no question that a well developed high quality IDE is a huge help -- from the point of view of stub generation and code completion, as well as the GUI

Re: Hypergeometric distribution

2006-01-02 Thread Scott David Daniels
Raven wrote: ... def main(): t = time.time() for i in range(1000): r = hypergeometric(6,6,30,6) print time.time() - t t = time.time() for i in range(1000): r = hypergeometric_gamma(6,6,30,6) print time.time() - t and the result is: 0.0386447906494

Re: PYTHONDOCS

2006-01-02 Thread Peter Hansen
J. D. Leach wrote: I'm lost. Surely I've missed something simple. Maybe you can look in the source. help is an object defined by site.py to be a Helper object from pydoc.py. Look in your Python lib folder for pydoc.py and you should be able to trace through and find the source of the

important for me!!

2006-01-02 Thread aysun ergin
Question: write a word jumble game. the program will read a word from a file of words, scramble the order of letters of the word, print the scrambled word, ask the user to make a guess, congratulate the user if she/he was able to correctly figure out the word, and repeat this process until the

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Alex Martelli
Ilias Lazaridis [EMAIL PROTECTED] wrote: ... ... or equivalent (I do believe all I named have at least a Bachelor degree, but with the undisputable results they've shown afterwards, I think they'd all meet the or equivalent clause anyway). * BS or MS in Computer Science or

Re: PYTHONDOCS

2006-01-02 Thread Peter Otten
J. D. Leach wrote: found online. However, neither of my Python installations (2.4 in /usr/bin/, and 2.4.2 in /usr/local/bin/) recognize the existence of the html docs. The following error from within the Python shell yields the same result: Then when I enter the os.environ.get('PYTHONDOCS')

Groupkit and python

2006-01-02 Thread [EMAIL PROTECTED]
Hi, I've built an app using this great software called groupkit (http://www.groupkit.org/) based on tcl/tk language, now I'd like to test python possibilities for groupware. Anyone knows about this, I have made a google search; crossing groupkit and python, but I haven´t found any project except

Re: important for me!!

2006-01-02 Thread Gary Herron
aysun ergin wrote: Question: write a word jumble game. the program will read a word from a file of words, scramble the order of letters of the word, print the scrambled word, ask the user to make a guess, congratulate the user if she/he was able to correctly figure out the word, and repeat

Re: important for me!!

2006-01-02 Thread Bas
Read this first: http://www.catb.org/~esr/faqs/smart-questions.html and then try again. -- http://mail.python.org/mailman/listinfo/python-list

application and web app technologies

2006-01-02 Thread cartercc
January, 2006. I do not intend to start any kind of flame war, but only to seek advice about different technologies concerning which I am mostly ignorant. I am the database manager for a unit of a major state university. A part of my job includes building database access and web enabled

Re: generators in Java?

2006-01-02 Thread Dave Benjamin
On Fri, 30 Dec 2005, Tom Sheffler wrote: Does Java have generators? I am aware of the Iterator interface, but it seems much more restrictive. Python generators are useful for many more things than simply list enumeration, but the Java Iterator seems limited. What makes you think that

Re: Productivity and Quality of IDE

2006-01-02 Thread [EMAIL PROTECTED]
Daniel J. Rubin wrote: I say it entirely depends on what your programming. For instance, if creating a GUI, there is no question that a well developed high quality IDE is a huge help -- from the point of view of stub generation and code completion, as well as the GUI designer. Most non-IDE

About zipfile on WinXP

2006-01-02 Thread rzed
I create a zip file on my WinXP system, using this function: fn import zipfile import os import os.path def zipdir(dirname, zfname): zf = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED) for root, dirs, files in os.walk(dirname): for f in files: fullname =

multidimensional array of objects in scipy core

2006-01-02 Thread Stormslayer
Folks: How do you create a multidimesional array of objects w/ the size of the array entered at runtime? So basically, for an arbitrary class, create an array and then *.resize it to be of size NXM, and then populate the elements of the objects. thanks for any help. Scott --

Re: application and web app technologies

2006-01-02 Thread Reinder Verlinde
In article [EMAIL PROTECTED], [EMAIL PROTECTED] wrote: January, 2006. I do not intend to start any kind of flame war, but only to seek advice about different technologies concerning which I am mostly ignorant. [...] I have been tasked by me IT department with investigating different

Why is 'None' not assignable but 'True'/'False' are?

2006-01-02 Thread Rodney Maxwell
In Python 2.4.1: None = 99 SyntaxError: assignment to None True = 99 False = 99 True == False True --- So why is 'None' special? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Java or maybe PHP?

2006-01-02 Thread Alex Martelli
Peter Hansen [EMAIL PROTECTED] wrote: Alex Martelli wrote: One great programming principle is Dont' Repeat Yourself: when you're having to express the same thing over and over, there IS something wrong. I believe the DYR phrasing is due to the so-called Pragmatic Programmers, who are

Re: Why is 'None' not assignable but 'True'/'False' are?

2006-01-02 Thread Alex Martelli
Rodney Maxwell [EMAIL PROTECTED] wrote: In Python 2.4.1: None = 99 SyntaxError: assignment to None True = 99 False = 99 True == False True --- So why is 'None' special? A legacy/backwards compatibility issue: None has been there 'forever', so that no sensible

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Jaap Spies
Alex Martelli wrote: Anton Vredegoor [EMAIL PROTECTED] wrote: ... only hire people with long backstabbing histories. Such as...? Guido van Rossum? Greg Stein? Vint Cerf? Ben Goodger? ... No insider information is necessary, the job requirements make it absolutely clear (at least

Re: Humane programmer interfaces

2006-01-02 Thread Alex Martelli
Andrew Durdin [EMAIL PROTECTED] wrote: On 29 Dec 2005 09:50:57 -0800, colinwb [EMAIL PROTECTED] wrote: puts ck.first, ck[0], '*', ck.last, ck[-1] One of the points at issue (minimalism/monotony) relates to TOOWTDI, which has implications for language/module design and for code

Re: application and web app technologies

2006-01-02 Thread Matt Garrish
[EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] January, 2006. * OO Perl/Perl6 -- Perl has worked real well for us, but we have doubts that it is the best technology, and we want to make a serious attempt to look at other things. It might help if you elaborated on what these

Re: HELP! on wxPython Error

2006-01-02 Thread stelki
Hello, you smell. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Java or maybe PHP?

2006-01-02 Thread Cameron Laird
In article [EMAIL PROTECTED], Alex Martelli [EMAIL PROTECTED] wrote: . [much valuable and correct detail that somehow managed to avoid mentioning Forth or Smalltalk] .

Tkinter Scrollbar not working

2006-01-02 Thread Dustan
I'm trying to get a scrollbar bound with a Frame, and I keep on getting a scrollbar, but it doesn't actually scroll. Some help, please? -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONDOCS

2006-01-02 Thread J. D. Leach
Peter Otten wrote: What do you get if you do import pydoc pydoc.help.docdir '/should/be/path/to/docs' The response is: import pydoc print pydoc.help.docdir None Obviously not there. I believe there is a bug in the documentation-finding code. With the current logic PYTHONDOCS will

Re: Tkinter Scrollbar not working

2006-01-02 Thread Dustan
BTW, experience tells me it is necessary for me to explicitly state that I'm a newbie (otherwise I get rude people saying I should already know such-and-such). -- http://mail.python.org/mailman/listinfo/python-list

OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Consider the following: #!/usr/bin/python #- class Grand_parent( object ): def speak( self ): print 'Grand_parent.speak()' self.advise() def advise( self ): print 'Grand_parent.advise()'

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread Dustan
Parent.critique() is calling self.critique(), which has been overriden by Child.critique() instead of Parent.critique. It makes perfect sense to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread Dustan
Oh, I see what you mean. From my experience, the methods are passed down, not referred to from the parent. That is, Parent does have its own critique method, not a reference to Grand_parent.critique(). So when Child calls self.advise, it is calling its inherrited copy. Then, since the inherited

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread André
John M. Gabriele wrote: Consider the following: [snip] #- class Parent( Grand_parent ): def speak( self ): print '\tParent.speak()' self.advise() def advise( self ): print

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread Dustan
it calls it's own overriden critique method (overriden meaning the one that did the overriding) -- http://mail.python.org/mailman/listinfo/python-list

Re: Python or Java or maybe PHP?

2006-01-02 Thread Alex Martelli
Cameron Laird [EMAIL PROTECTED] wrote: ... c = d unless ...: it's possible to distinguish Python from Ruby in another way. Python is arguably better for group work, or at least more standard for team projects, because it more consistently exposes one correct solution, while Ruby both

Re: Any wing2.0 users here?

2006-01-02 Thread Jarek Zgoda
Alvin A. Delagon napisał(a): emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for me. Suggestions

Re: important for me!!

2006-01-02 Thread superfun
Aysun, out of curiousity: where do you go to school? is your teacher/professor making use of Python? what class is this for? I agree with previous posters, and I'm not trying to get you in trouble. I'm just curious. -Mark -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHONDOCS

2006-01-02 Thread Peter Otten
J. D. Leach wrote: The response is: import pydoc print pydoc.help.docdir None Obviously not there. You are getting no match rather than the wrong one. Have you verified that a subdirectory /usr/share/doc/python-2.4/html/lib exists on your system? If not, the documentation may not be

Work with Windows workgroups under Python?

2006-01-02 Thread Karlo Lozovina
I'm running Python 2.4 under WinXP Pro, and I would like to do some basis operations on my LAN - get list of workgroups, list the computers in each workgroup and possibly connect to specific computer and get share/directory list? Is there some Pythonic way of doing this? Or any other less

Re: About zipfile on WinXP

2006-01-02 Thread Scott David Daniels
rzed wrote: I create a zip file on my WinXP system, using this function: ... However, WinXP has a feature (if that's what it is): if you click on a zip file in explorer, an explorer window opens that shows the contents of the zip file. If I use WinZip or UltimateZip to create the files,

Re: how to scrape url out of href

2006-01-02 Thread [EMAIL PROTECTED]
hey ken thanks for writing. when i try that i get told KeyError: 'href' -- http://mail.python.org/mailman/listinfo/python-list

Xah's Edu Corner: the bug-reporting attitude

2006-01-02 Thread Xah Lee
The Bug-Reporting Attitude Xah Lee, 2005-02, 2006-01 People, There is a common behavior among people in software geek forums, that whenever a software is crashing or behaving badly, they respond by “go file a bug report” as if it is the duty of software consumers. When a software is ostensibly

Re: how to scrape url out of href

2006-01-02 Thread [EMAIL PROTECTED]
actuall the full error is this: File /home/felafela/BeautifulSoup.py, line 301, in __getitem__ return self._getAttrMap()[key] KeyError: 'href' -- http://mail.python.org/mailman/listinfo/python-list

Re: Hypergeometric distribution

2006-01-02 Thread Bengt Richter
On 2 Jan 2006 03:35:33 -0800, Raven [EMAIL PROTECTED] wrote: [...] The problem with long integers is that to calculate the hypergeometric I need to do float division and multiplication because integer division returns 0. A solution could be to calculate log(Long_Factorial_Integer) ISTM you

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread Scott David Daniels
Dustan wrote: From my experience, the methods are passed down, not referred to from the parent. That is, Parent does have its own critique method, not a reference to Grand_parent.critique(). This is typical of static binding as (for example) seen in C++. If you think of dynamically bound

Spiritual Programming (OT, but Python-inspired)

2006-01-02 Thread UrsusMaximus
While preparing a Python411 podcast about classes and OOP, my mind wondered far afield. I found myself constructing an extended metaphor or analogy between the way programs are organized and certain philosophical ideas. So, going where my better angels dare not, here is the forbidden fruit of my

Re: Sort dictionary

2006-01-02 Thread Luis M. González
This function return a tuple of value-key pairs, sorted by value: x = {'a':3, 'b':2, 'c':4} def sortByValue(myDict): return sorted( [(v,k) for k,v in myDict.items()] ) If you want to get the first two value-key pairs: sortByValue(x)[:2] [(2, 'b'), (3, 'a')] Hope this helps... Luis

Re: Sort dictionary

2006-01-02 Thread Luis M. González
This function returns a tuple of value-key pairs, sorted by value: x = {'a':3, 'b':2, 'c':4} def sortByValue(myDict): return sorted( [(v,k) for k,v in myDict.items()] ) If you want to get the first two value-key pairs: sortByValue(x)[:2] [(2, 'b'), (3, 'a')] Hope this helps... Luis

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-02 Thread Claudio Grondi
There are many ways of going crazy, but the most valuable of them is this one which makes a genius out of an ordinary man. Claudio [EMAIL PROTECTED] wrote: While preparing a Python411 podcast about classes and OOP, my mind wondered far afield. I found myself constructing an extended metaphor

Re: Any wing2.0 users here?

2006-01-02 Thread Claudio Grondi
Jarek Zgoda wrote: Alvin A. Delagon napisał(a): emacs has been my long time companion for php, perl, and python. My boss recommended to me Wing2.0, I find it hard to adjust though. What can you say about this IDE? He say's if I think it could improve my productivity he's willing to buy it for

Re: - E04 - Leadership! Google, Guido van Rossum, PSF

2006-01-02 Thread Martin P. Hellwig
Anton Vredegoor wrote: cut description of modern western society Most people can survive (without damaging their souls so to speak) when working for corruption themselves in this way, but sooner or later one is asked to corrupt others (defending one's title during a promotion, leading a

indentation preservation/restoration

2006-01-02 Thread smichr
I have (inadvertently) wiped out the functionality of my personal python snippets by eliminating leading space. I have also just visited http://www.python.org/tim_one/000419.html and saw a piece of code with the indentation gone. Python code is fragile in this regard. One solution that occurs to

Re: Any wing2.0 users here?

2006-01-02 Thread Jarek Zgoda
Claudio Grondi napisał(a): To be honest, the more experience I have, the less I can understand what a debugger is for. Can't even remember when used one last time. This is valid also for programming in C/C++ or Java, so in my eyes the Debugger? No, Thanks! is not limited only to Python or

Re: Application architecture (long post - sorry)

2006-01-02 Thread Mike Meyer
[EMAIL PROTECTED] writes: In response to Mike's post... I know exactly where you're coming from and you are right a web based solution is the simplest and would be the fastest to develop and rollout etc. but.. The cost is in the data, in the uk you get charged for the amount of data you

Re: Work with Windows workgroups under Python?

2006-01-02 Thread Jarek Zgoda
Karlo Lozovina napisał(a): I'm running Python 2.4 under WinXP Pro, and I would like to do some basis operations on my LAN - get list of workgroups, list the computers in each workgroup and possibly connect to specific computer and get share/directory list? Is there some Pythonic way of

Re: indentation preservation/restoration

2006-01-02 Thread Claudio Grondi
[EMAIL PROTECTED] wrote: I have (inadvertently) wiped out the functionality of my personal python snippets by eliminating leading space. I have also just visited http://www.python.org/tim_one/000419.html and saw a piece of code with the indentation gone. Python code is fragile in this regard.

Re: PyHtmlGUI Project is looking for developers

2006-01-02 Thread John J. Lee
Sybren Stuvel [EMAIL PROTECTED] writes: [EMAIL PROTECTED] enlightened us with: At the moment we don't work with javascript. But it should not be to hard to create a JavaScript Renderer similar to the css one we already have. Isn't CSS for rendering, and JavaScript for client-side

Re: PYTHONDOCS

2006-01-02 Thread J. D. Leach
Peter Otten wrote: You are getting no match rather than the wrong one. Have you verified that a subdirectory /usr/share/doc/python-2.4/html/lib exists on your system? If not, the documentation may not be properly installed. Peter I checked it Peter and rearranged the files in the

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Scott David Daniels wrote: Dustan wrote: From my experience, the methods are passed down, not referred to from the parent. That is, Parent does have its own critique method, not a reference to Grand_parent.critique(). This is typical of static binding as (for example) seen in C++.

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
Dustan wrote: [snip] That is, Parent does have its own critique method, not a reference to Grand_parent.critique(). Interesting. It has its own critique method? Hm. Not quite sure what that means exactly... Anyhow, I wasn't suggesting that Parent had a reference to Grand_parent.critique(),

Re: OOP: method overriding works in mysterious ways?

2006-01-02 Thread John M. Gabriele
André wrote: John M. Gabriele wrote: Since Child has no advice() method, it inherits the one for Parent. Thus, Child can be thought of as being defined as follows: . class Child( Parent ): . . def speak( self ): . print '\t\tChild.speak()' . self.advise() . .

Re: Hypergeometric distribution

2006-01-02 Thread Raven
Scott David Daniels ha scritto: You should really look into the timeit module -- you'll get nice solid timings slightly easier to tweak. This seems a very interesting module, I will give it a try as soon as possible. Thanks Scott. Ale -- http://mail.python.org/mailman/listinfo/python-list

Bug ??

2006-01-02 Thread Eddy Ilg
Hi, I have a class and I am trying to set the instance varirable 'variables' (also tried different names). The variable gets initialized by default-value parameter of the constructor. When I change the variable and call the constructor again, the default value changes !!! Is this supposed to

Re: About zipfile on WinXP

2006-01-02 Thread Kent Johnson
rzed wrote: I create a zip file on my WinXP system, using this function: fn import zipfile import os import os.path def zipdir(dirname, zfname): zf = zipfile.ZipFile(zfname, 'w', zipfile.ZIP_DEFLATED) for root, dirs, files in os.walk(dirname): for f in files:

Re: Problem overriding sys.excepthook

2006-01-02 Thread Patrick Maupin
Lunchtimemama wrote: What is the superior method of exception handling: ... For a start, note that the exception hook does not _really_ have to be in the main module, just imported before any protected code is to be executed. Having said that, what I personally typically do for exception

Re: Xah's Edu Corner: the bug-reporting attitude

2006-01-02 Thread robic0
On 2 Jan 2006 13:16:26 -0800, Xah Lee [EMAIL PROTECTED] wrote: The Bug-Reporting Attitude Xah Lee, 2005-02, 2006-01 People, There is a common behavior among people in software geek forums, that whenever a software is crashing or behaving badly, they respond by “go file a bug report” as if it

Re: Hypergeometric distribution

2006-01-02 Thread Raven
Bengt Richter wrote: ISTM you wouldn't get zero if you scaled by 10**significant_digits (however many you require) before dividing. E.g., expected hits per trillion (or septillion or whatever) expresses probability too. Perhaps that could work in your calculation? Regards, Bengt

Re: Hypergeometric distribution

2006-01-02 Thread Raven
Bengt Richter wrote: ISTM you wouldn't get zero if you scaled by 10**significant_digits (however many you require) before dividing. E.g., expected hits per trillion (or septillion or whatever) expresses probability too. Perhaps that could work in your calculation? Regards, Bengt

Re: Application architecture (long post - sorry)

2006-01-02 Thread Frithiof Andreas Jensen
[EMAIL PROTECTED] skrev i en meddelelse news:[EMAIL PROTECTED] It would give me great satisfaction though to roll my own solution to this Ahh - a bright young employee ready to meet the realities of corporate life, much like a bike rider meets the concrete he drives on ;-) and then at

Re: Spiritual Programming (OT, but Python-inspired)

2006-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2006 13:38:47 -0800, UrsusMaximus wrote: It seems to me that, if anything of a person survives death in any way, it must do so in some way very different from that way in which we exist now. [snip] I don't dare ask where your evidence for this hypothesis is, but I will ask what

Re: PYTHONDOCS

2006-01-02 Thread Mike Meyer
J. D. Leach [EMAIL PROTECTED] writes: Mike Meyer wrote: Chris Smith [EMAIL PROTECTED] writes: J == J D Leach [EMAIL PROTECTED] writes: I'm stupider; I can't ATFQ for you. But last night I stayed at a Holiday Inn Express, and can recommend http://projects.edgewall.com/python-sidebar/

Re: Bug ??

2006-01-02 Thread Brian van den Broek
Eddy Ilg said unto the world upon 02/01/06 05:43 PM: Hi, I have a class and I am trying to set the instance varirable 'variables' (also tried different names). The variable gets initialized by default-value parameter of the constructor. When I change the variable and call the constructor

Re: indentation preservation/restoration

2006-01-02 Thread Steven D'Aprano
On Mon, 02 Jan 2006 14:19:15 -0800, smichr wrote: I have (inadvertently) wiped out the functionality of my personal python snippets by eliminating leading space. I have also just visited http://www.python.org/tim_one/000419.html and saw a piece of code with the indentation gone. Python code

Re: application and web app technologies

2006-01-02 Thread Roedy Green
On 2 Jan 2006 10:24:54 -0800, [EMAIL PROTECTED] wrote, quoted or indirectly quoted someone who said : * Java/JSP -- We have already made the decision to go with Java, but we haven't started with it, and have not committed to Java. * Python -- Some of us have had limited experience with Python.

  1   2   >