Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Kevin wrote: Well, for some strange reason I have never found that to be a problem. But that is perhaps because I'm an administrator and I want full root access, install the OS as I see fit and don't want others on the same (virtual)box. So hosting doesn't work for me I need colo or dedicated.

Re: The ONLY thing that prevents me from using Python

2005-08-05 Thread Martin P. Hellwig
Magnus Lycka wrote: > Martin P. Hellwig wrote: > >> Kevin wrote: >> >> >> Well, for some strange reason I have never found that to be a problem. > > > If you develop software for an external customer, and they have > an existing web site run by some

Re: Python -- (just) a successful experiment?

2005-08-07 Thread Martin P. Hellwig
Kay Schluehr wrote: > Eric Pederson wrote: > >>Raise your hand if you think the best technology wins! > > > Who is interested in such a matter? Is this a forum dedicated to some > programming language or a popularity contest? > > If Python dies in a few years / looses attention but the Python Z

Re: What is Python?!

2005-08-12 Thread Martin P. Hellwig
Magnus Lycka wrote: > or what have you. How do you sell this without making it sound > like snake oil? (Particularly with that name! :) This *is* the languange you are looking for ... Stops the argument every time, although afterwards they look kind a funny at me. -- mph -- http://

Re: socket setdefaulttimeout

2005-08-15 Thread Michael P. Soulier
ldn't an alarm be much simpler than a whole thread just for this? Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Those who would give up esential liberty for temporary safety deserve neither liberty nor safety." --Benjamin Franklin pgp0gNXOorhuD.pgp Description: PGP signat

Re: Should I move to Amsterdam?

2005-08-24 Thread Martin P. Hellwig
Wade wrote: > http://www.slate.com/id/2124561/entry/2124562/ > > Nice little series by Seth Stevenson for Americans daydreaming about > emigration. Somewhere, anywhere ... maybe Amsterdam? > > I've never been to the Netherlands myself, but it sounds very > civilized. > > Extra Python connection,

Re: Should I move to Amsterdam?

2005-08-26 Thread Martin P. Hellwig
Sybren Stuvel wrote: > Martin P. Hellwig enlightened us with: > >>Personal transportation sucks in the Netherlands, if you live in the >>Randstad (the area of the above mentioned cities) and you have to >>travel across the Randstad, you go with the bike and/or >>bus

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Lars Gustäbel wrote: > [Fredrik Lundh] > >>han har försökt, men hans tourette tog överhanden: > > > IMHO it's more likely an Asperger's syndrome. > > http://en.wikipedia.org/wiki/Asperger_Syndrome > I disagree, in his writings I found no evidence of autisme. Actually most of it can be classif

Re: determine if os.system() is done

2005-09-07 Thread Martin P. Hellwig
Peter Hansen wrote: > Martin P. Hellwig wrote: > >> The only thing I am disappointed at his writing style, most likely he >> has a disrupted view on social acceptable behavior and communication. >> These skills might be still in development, so perhaps it is >> r

nested tuples

2005-09-09 Thread Luis P. Mendes
ue1, row2value2, row2value3),..., (rowNvalue1, rowNvalue2, rowNvalue3)] Then, I get what I want with tuple(a). Luis P. Mendes -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enig

Re: nested tuples

2005-09-10 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 | | Why? What is it about the list of tuples that you don't like? | Philosophically, it's more in line with Guido's separation of list and | tuple. I'm not saying that I don't like, I was just curious to know if there was a way to do it using exclusi

Re: Why do Pythoneers reinvent the wheel?

2005-09-10 Thread Martin P. Hellwig
Stefano Masini wrote: Although I'm not experienced enough to comment on python stuff itself I do know that in general there are 2 reasons that people reinvent the wheel: - They didn't know of the existence of the first wheel - They have different roads Those reasons can even be combined. The m

Re: Web framework

2005-03-13 Thread andre . p . meyer
Gianluca Sartori wrote: > Hi guys, > > What web framework do you suggest to develop with? I had a look both at > Nevow and Quixote. These seemes to be the most appreciated by the > community. Anyway, I had no luck looking for a complete and coherent > documentation. > > Thanks for any suggestion,

Re: Web framework

2005-03-13 Thread andre . p . meyer
You should definitely have a look at Zope 3. There is good documentation available and it can do a lot of good stuff. -- http://mail.python.org/mailman/listinfo/python-list

Re: scalar vs array and program control

2015-07-25 Thread Sebastian P . Luque
On Sat, 25 Jul 2015 14:44:43 +0200, Laura Creighton wrote: > And because I was rushed and posted without revision I left out > something important. >> So this is, quite likely, the pattern that you are looking for: >> try: all_your_code_which_is_happy_with_non_scalars except >> WhateverErrorPyt

Re: Gmail eats Python

2015-07-26 Thread Sebastian P . Luque
On Sat, 25 Jul 2015 18:34:30 +0200, Laura Creighton wrote: > Gmail eats Python. We just saw this mail back from Sebastian Luque > which says in part: try: all_your_code_which_is_happy_with_non_scalars except WhateverErrorPythonGivesYouWhenYouTryThisWithScalars: whatever_you_want_

Re: ANN: Urwid 1.0.0 - Console UI Library

2011-09-23 Thread Michael P. Soulier
On 22/09/11 Ian Ward said: > Announcing Urwid 1.0.0 > -- Congrats. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python without a tty

2011-09-29 Thread Martin P. Hellwig
On 29/09/2011 10:21, Steven D'Aprano wrote: I have a Python script which I would like to test without a tty attached to the process. I could run it as a cron job, but is there an easier way? I am running Linux. Well you could double fork and drop the parent, that would lose the tty which is

Using Python xmlrpclib to build XMLRPC clients for a server with variable RPC names

2011-10-09 Thread John P. Crackett
I need to write prototype XMLRPC clients using xmlrpclib for a server that has variable RPC names and I'd like to use Python as the prototyping tool. I've searched but can't find any relevant advice online. Any pointers would be gratefully received; details follow. The server in question constru

Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread Martin P. Hellwig
First of all let me say that I have no authority or knowledge of language design or multi-processing except from a user point of view, having a decade or so experience. I would like your opinion and appreciate any feedback and value any hints to documentation, procedures or related ramblings :-)

Re: Language Enhancement Idea to help with multi-processing (your opinions please)

2011-10-13 Thread Martin P. Hellwig
On 13/10/2011 15:13, Stefan Behnel wrote: Martin P. Hellwig, 13.10.2011 14:35: I was wondering if there could be an advantage to add another control flow statement. Changes at that level must be very well justified, are often rejected for the reason of being not too complicated to write in

Re: webapp development in pure python

2011-10-25 Thread Martin P. Hellwig
On 10/25/11 15:13, Arnaud Delobelle wrote: On 25 October 2011 14:50, Laszlo Nagy wrote: Hi, Anyone knows a framework for webapp development? I'm not talking about javascript/html compilers and ajax frameworks. I need something that does not require javascript knowledge, just pure Python. (S

Re: Execute a command on remote machine in python

2011-11-15 Thread Martin P. Hellwig
On 11/15/11 12:04, Roark wrote: Hi, I am first time trying my hands on python scripting and would need some guidance from the experts on my problem. I want to execute a windows command within python script from a client machine on a remote target server, and would want the output of the command

Re: Both Python 2.5.2 and 2.7.2 flop the same way under Win 7

2011-11-17 Thread Martin P. Hellwig
On 17/11/2011 23:54, W. eWatson wrote: My mistake above. I was talking about the previous 2.5.2 of install in Win7. Where I'm at is 2.7.2 now. However, I still find in very odd there is no Edit with IDLE when I right-click on junk.py. That's the way it worked on 2.5.2 on my XP and earlier, 2010,

Re: Clever hack or code abomination?

2011-12-01 Thread Martin P. Hellwig
On 01/12/2011 03:15, Roy Smith wrote: Well, I have seen much worse, so the WTFs/minute(*) count won't be too bad. However, as general rule for readability; If you think you have to ask, don't bother asking, spend that time rethinking and write a more readable solution. *) http://www.osnews

Re: icmp and raw sockets in python

2011-12-13 Thread Martin P. Hellwig
On 13/12/2011 16:50, Sagy Drucker wrote: hello Hi i am relatively new to python, so please be considerate... As I am only responding to one of your questions, perhaps it would be best if you don't get any other more helpful replies to split your questions up and post them separately. i'm im

Re: [TIP] Anyone still using Python 2.5?

2011-12-21 Thread Gregory P. Smith
On Wed, Dec 21, 2011 at 2:57 AM, Jim Fulton wrote: > On Wed, Dec 21, 2011 at 2:15 AM, Chris Withers > wrote: > > Hi All, > > > > What's the general consensus on supporting Python 2.5 nowadays? > > > > Do people still have to use this in commercial environments or is > everyone > > on 2.6+ nowada

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-18 Thread Martin P. Hellwig
Xah Lee wrote: Nice rant, btw in most EU countries the software creator can not withdraw the responsibility of his/her/it creation, regardless of what the disclaimer says. The law is the leading authority and not some Disclaimer/EULA, that's why most US EULA's are unauthoritative in the EU. --

Re: Xah's Edu Corner: Responsible Software Licensing

2005-12-18 Thread Martin P. Hellwig
Ulrich Hobelmann wrote: > > The piece that a European programmer can never withdraw responsibility > could be a big problem to open-source software, though. I'm not sure > I'd want to freely publish anything that could result in liability for me. > Not that big of a problem, in EU a user is s

Easiest way to calculate number of character in string

2005-12-21 Thread P. Schmidt-Volkmar
Hi there, I have a string in which I want to calculate how often the character ';' occurs. If the character does not occur 42 times, the ";" should be added so the 42 are reached. My solution is slow and wrong: for Position in range (0, len(Zeile)): if Zeile[Position]==';': AnzahlS

Re: Guido at Google

2005-12-21 Thread Martin P. Hellwig
rbt wrote: > Alex Martelli wrote: >> I don't think there was any official announcement, but it's true -- he >> sits about 15 meters away from me;-). > > For Americans: 15 meters is roughly 50 feet. Well they could have used google for that ;-) http://www.google.com/search?hl=en&q=15+meter+in+feet

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

2005-12-27 Thread Martin P. Hellwig
Ilias Lazaridis wrote: So I guess you volunteer http://www.python.org/psf/volunteer.html ? -- mph -- http://mail.python.org/mailman/listinfo/python-list

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

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: > Martin P. Hellwig wrote: >> Ilias Lazaridis wrote: >> >> So I guess you volunteer http://www.python.org/psf/volunteer.html ? > > I volunteer and contribute already (with a general validity and python > specific analysis) > > A medi

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

2005-12-28 Thread Martin P. Hellwig
Ilias Lazaridis wrote: >> The only thing that holds "you" theoretically back is "acknowledged >> authority by the participating group _and_ yourself" and of course the >> resource for "restricted" information. > > what do you mean by "resource for "restricted" information"? > Well, I mean that

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

2005-12-29 Thread Martin P. Hellwig
Ilias Lazaridis wrote: I'm suspecting that we have different definitions (or at least the implications of that) of used terms. I think it's important to first define these definition in a form acceptable to both of us. In the link you gave, the title was "Efficiency Management". Now I believe t

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

2005-12-29 Thread Martin P. Hellwig
Ilias Lazaridis wrote: > Martin P. Hellwig wrote: >> Ilias Lazaridis wrote: >> >> I'm suspecting that we have different definitions (or at least the >> implications of that) of used terms. >> I think it's important to first define these definition in a

Re: Application architecture (long post - sorry)

2006-01-01 Thread Martin P. Hellwig
Mike Meyer wrote: > [EMAIL PROTECTED] writes: >> I have looked at the options for developing the client for these >> "electronic job sheets" and have decided upon Microsoft Pocket PC and >> the .net compact framework. It seems the easiest environment for >> developing and the PDA's can be obtained

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

2006-01-02 Thread Martin P. Hellwig
Anton Vredegoor wrote: > > 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 community and so on). This is the crucial

Re: Why it doesn't work?

2006-01-09 Thread Martin P. Hellwig
Lad wrote: > I have a list > L={} > Now I can assign the value > L['a']=1 > and I have > L={'a': 1} > > but I would like to have a dictionary like this > L={'a': {'b':2}} > > so I would expect I can do > L['a']['b']=2 > > but it does not work. Why? > > Thank you for reply > Rg, > L. > Hi, Pe

Re: How to get Windows system information?

2006-01-13 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Does anybody know how to get the: > > Free hard disk space > Amount of CPU load > and Amount of RAM used > > on windows? I am making an artificial intelligence program that has > "moods" based on how much stress the system is under, based on these > param

Re: How to get Windows system information?

2006-01-14 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > thank you! > > from what I can see from the second website you listed, there is a way > to get harddisk space information, but is there any way to get CPU load > and RAM usage? > Have a look at the snippet: #>>> import wmi #>>> t = wmi.WMI() #>>> for i in t.Win32_Perf

ctypes wrapping libpam.so on FreeBSD 6.1 - Python Bus Error

2006-07-13 Thread Martin P. Hellwig
Hey all, I'd like to wrap libpam so that I can use that for authentication and password management. I build ctypes (0.9.9.6) on my platform via ports. Now according to OpenPAM documentation all sessions start with pam_start(). According to the man page it should contain this: pam_start(const cha

Re: ctypes wrapping libpam.so on FreeBSD 6.1 - Python Bus Error

2006-07-15 Thread Martin P. Hellwig
Frederik & Ganesan, Thanks for the explanation, it did me realize that I should learn some C first before I'm going to start wrapping something :-) At least I got a reason now to do something with C, though it should take me some time. But again, thanks! Martin -- http://mail.python.org/mail

Re: sysadmin -> python programmer

2006-07-19 Thread Martin P. Hellwig
Dan Stromberg wrote: > I've been a sysadmin for about 13 years, but I'm realizing that my > favorite part of being a sysadmin are those moments where there's a reason > to write some code - preferably in python. > > What might one do to make the transition from sysadmin to python > programmer, asi

Re: python under earthlink hosting?

2006-08-02 Thread Martin P. Hellwig
mbstevens wrote: > I keep chatting with the tech support people at Earthlink, asking where > the location of the Python interpreter is. They don't seem to know where > it is. They don't know if Python is running on my server, either. I know > Perl is at /usr/local/bin/perl ...but when I use a si

Re: Send to all clients using UDP in Twisted

2006-08-20 Thread Martin P. Hellwig
Elliot Hughes wrote: > Hi Everyone, I am trying to right a server that can receive a message > and send it to all clients using UDP on twisted. I have got it so far > that it can echo to the client that sent the message but not to the > rest. I tried using multicast but that requires almost total r

Re: How can I correct an error in an old post?

2006-10-05 Thread Blair P. Houghton
Tim Roberts wrote: > Although it might be mirrored on a web site somewhere, this is a Usenet > newsgroup. It is impossible to "close" a thread. The concept simply does > not exist. Google, the new de facto website of record for Usenet, disagrees. But they do about 10 things totally wrong with

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-05 Thread Blair P. Houghton
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Blair P. Houghton <[EMAIL PROTECTED]> wrote: > > > >But they do about 10 things totally wrong with Google groups that > >I'd've fixed in my spare time in my first week if they'd hired me back >

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-06 Thread Blair P. Houghton
Aahz wrote: > In article <[EMAIL PROTECTED]>, > Bryan Olson <[EMAIL PROTECTED]> wrote: > >Blair P. Houghton wrote: > >> > >> But they do about 10 things totally wrong with Google groups that > >> I'd've fixed in my spare time in my fi

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-08 Thread Blair P. Houghton
Bryan Olson wrote: > Blair P. Houghton wrote: > > Usenet isn't just the "send this message to all leaf nodes via tree" > > behavior, > > it's the "show me the message from 1987 or 1988 written by dickie > > sexton where > > he invents the

Re: Google breaks Usenet (was Re: How can I correct an error in an old post?)

2006-10-08 Thread Blair P. Houghton
Bryan Olson wrote: > Aahz wrote: > > The problem is the network effect. In this case, what Google has that > > can't be replicated is the history of posts. > > There's no magic there. Get them the same way Google and > Dejanews got them, plus you might scrape Google, from some > locality with fav

Re: hundreds of seconds?

2006-10-11 Thread Blair P. Houghton
Tim Peters wrote: > On Windows 98, time.time() typically updates only once per 0.055 > seconds (18.2 Hz), but time.clock() typically updates more than a > million times per second. You do /not/ want to use time.time() for > sub-second time measurement on Windows. Use time.clock() for this > purp

psycopg2 faster way to retrieve last x records

2006-11-07 Thread Luis P. Mendes
s. And it brings some 'heavy' work on disk. The table 'seconds' has 54+ lines right now. Can I do something different in order to have a lighter load on the system and a quicker response? Luis P. Mendes -- http://mail.python.org/mailman/listinfo/python-list

Re: psycopg2 faster way to retrieve last x records

2006-11-08 Thread Luis P. Mendes
tever > ORDER BY tempounix; Thank you Stuart, I'll try it. Luis P. Mendes -- http://mail.python.org/mailman/listinfo/python-list

Best Python Editor

2006-05-31 Thread Manoj Kumar P
Hi, Can anyone tell me a good python editor/IDE? It would be great if you can provide the download link also. Thank You, -Manoj- "SASKEN RATED Among THE Top 3 BEST COMPANIES TO WORK FOR IN INDIA - SURVEY 2005 conducted by the BUSINESS TODAY - Mercer - TNS India" SA

Re: is a wiki engine based on a cvs/svn a good idea?

2006-06-01 Thread R. P. Dillon
TWiki, written in perl, makes extensive use of versioning/diff functionality you mention through the use of RCS, which, IIRC, is the basis for CVS. This method eliminates the need for the repository as such, and merely requires the presence of the RCS files (and RCS). Unless you _want_ to host

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: Have a look at: http://trevp.net/tlslite/ -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > Martin P. Hellwig wrote: >> Laszlo Nagy wrote: >> >> Have a look at: >> http://trevp.net/tlslite/ >> > C:\temp\ccc>python setup.py install > running install > running build > running build_py > running build_ext > erro

Re: secure xmlrpc server?

2006-06-07 Thread Martin P. Hellwig
Laszlo Nagy wrote: > http://trevp.net/tlslite/ - no exe installers. > http://sourceforge.net/projects/tlslite/ - no file packages to download > > :-( Download the zip and unpack it: http://trevp.net/tlslite/tlslite-0.3.8.zip Then there is an installers directory >> SimpleXMLRPCServer uses Simpl

Is there a python wrapper for OpenPAM?

2006-06-08 Thread Martin P. Hellwig
Hi all, I'm busy with a personal project that does password synchronization between NT and BSD. By using a password hook/filter/notifier when password is changed (on NT PasswdHk and on BSD a modified version of pam_exec*) I can retrieve a changed password, however when I want to check the valid

Test tool - Design advise needed

2006-06-14 Thread P-O Bengtsson
move the cursor. And it should be possible to send key and mousebutton event from windll as well I guess(?)   Is there any approach to catch user events from wxpyton? Am I on the right track here? Is it a good ide to access windll for my replay, or is there any better approach?   Thanks in advance /P

Re: Tiddlywiki type project in Python?

2006-06-15 Thread R. P. Dillon
I've been doing some work on a didiwiki-like program written in Python. Since Python is embedded in browsers, the didwiki approach make sense: write the server in your language of choice (didwiki uses C), and lay the necessary (simple) wiki code on top of the server. Roll the entire thing in

Re: Tiddlywiki type project in Python?

2006-06-15 Thread R. P. Dillon
That should have said "Since Python _isn't_ embedded in browsers"! Rick R. P. Dillon wrote: > I've been doing some work on a didiwiki-like program written in Python. > Since Python is embedded in browsers, the didwiki approach make sense: > write the server in you

download file from intranet linux server to windows clients

2006-06-16 Thread Luis P. Mendes
work space. I use pyExcelerator to create the Excel files. How can I do it? Do I need another excel generator? Client's information about its working directory should be read, but how? I could only find the way to read the server environment variables, where data is processed. Luis

Simple script to make .png thumbnails from .zip archive...

2006-06-18 Thread K P S
Hi. I'm looking for a small script that will take a .zip archive and pull the first .jpg from the archive and convert it to a .png. The reason for this is I want to have tuhmbnails for these archives in nautilus under gnome. I would like something similar to the following code, which will pull

Re: Simple script to make .png thumbnails from .zip archive...

2006-06-19 Thread K P S
.ANTIALIAS) > image.save (file + '.thumb.png') > except: > print 'Skipping file', file > > Links: > http://docs.python.org/lib/lib.html - Python Library Reference > http://www.pythonware.com/library/pil/handbook/image.htm - The Image > Mod

Re: Simple script to make .png thumbnails from .zip archive...

2006-06-19 Thread K P S
Thanks everyone. One last thing (I hope). How can I get the name of just the first file in a zipfile? I see routines to list all the files in a zip archive, but I don't see any to list only the first, or only the second, etc. It doesn't look like zipfile is storing info in a useful array that I

Re: Simple script to make .png thumbnails from .zip archive...

2006-06-20 Thread K P S
Thanks a lot! This is what I ended up with. (I would like to get rar archive support, but browsing the web it looks like rar support isn't in any python library (yet)) :-( Anyway, I was able to use the below code unchanged to create thumbnails in nautilus based on the first .jpg file in a .zip ar

Re: Python 2.4 tutorial

2006-06-29 Thread Martin P. Hellwig
subramanian2003 wrote: > Hello All, > >From where I can get the detailed python 2.4 tutorial(other than > python.org). > > Thanks, > Subramanian. > > If you're willing to pay for it you can read many python books online at: http://safari.oreilly.com Although I like a paper version more (a

Re: RegEx conditional search and replace

2006-07-06 Thread Blair P. Houghton
mbstevens wrote: > In such a case you may need to make the page > into one string to search if you don't want to use some complex > method of tracking state with variables as you move from > string to string. In general it's a very hard problem to do stateful regexes. I recall something from las

pyXLWriter - grid lines and if formula

2006-07-07 Thread Luis P. Mendes
2- I tried to build a simple 'if' formula but couldn't. Is it my problem or pyXLWriter's problem? If the former, is it possible to post an example? TIA Luis P. Mendes -- http://mail.python.org/mailman/listinfo/python-list

Re: pyXLWriter - grid lines and if formula

2006-07-09 Thread Luis P. Mendes
Gregory Piñero escreveu: > On 7/7/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I know that pyExelerator is the supported project now, but I can't use >> it because I'd need it to generate files from a web platform. Since I >> can not

Re: pyXLWriter - grid lines and if formula

2006-07-10 Thread Luis P. Mendes
Waldemar Osuch escreveu: > Luis P. Mendes wrote: >> Gregory Piñero escreveu: >>> On 7/7/06, Luis P. Mendes <[EMAIL PROTECTED]> wrote: >>>> Hi, >>>> >>>> I know that pyExelerator is the supported project now, but I can't use >>&

Re: EVIDENCE: 911 was CONTROLLED DEMOLITION to make muslims 2nd class

2006-09-05 Thread Blair P. Houghton
>thermate So the guy found burned aluminum on iron. That doesn't mean there were military-grade incendiary devices anywhere near the WTC. You idiot. --Blair -- http://mail.python.org/mailman/listinfo/python-list

Re: best small database?

2006-09-11 Thread Blair P. Houghton
Larry Bates wrote: > The filesystem is almost always the > most efficient place to store files, not as blobs in a > database. I could get all theoretical about why that's not so in most cases, but there are plenty of cases where it is so (especially when the person doing the DB doesn't get the id

Re: best small database?

2006-09-12 Thread Blair P. Houghton
Larry Bates wrote: > As far as "rational extension" is concerned, I think I can relate. > As a developer of imaging systems that store multiple-millions of > scanned pieces of paper online for customers, I can promise you > the file system is quite efficient at storing files (and that is > what th

Re: best small database?

2006-09-13 Thread Blair P. Houghton
Fredrik Lundh wrote: > Blair P. Houghton wrote: > > > Can't be any harder than switching between incompatible filesystems, > > unless you assume it should "just work...". > > so what file systems are you using that don't support file names and >

Re: best small database?

2006-09-14 Thread Blair P. Houghton
Fredrik Lundh wrote: > Blair P. Houghton wrote: > > I'm saying that the change from Oracle 9 to Oracle 10 is like changing > > from ffs to fat32. > > well, I'm quite sure that the people I know who's spending a lot of > their time moving stuff from Oracle N

ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Luis P. Mendes
Hi, I have the following problem: I instantiate class Sistema from another class. The result is the same if I import it to interactive shell. s = Sistema("par") class Sistema: def __init__(self, par): cruza_ema = CruzaEmas(par) class CruzaEmas(Ema, Cotacoes): def __init__(self

Re: ancestor class' __init__ doesn't call other methods

2006-09-15 Thread Luis P. Mendes
Rob De Almeida escreveu: > Luis P. Mendes wrote: >> Method a() is not called. Why is this? What is the best option to >> solve this? Have Cotacoes returning values and not to be an ancestor >> class of CruzaEmas? > > It works for me, after rearranging your code a l

Re: Timeline for Python?

2006-09-23 Thread Blair P. Houghton
wesley chun wrote: > > 1. never write against older versions of Python... you will only > obsolete your book even faster (well, "sooner") I believe there is some market for documentation of older versions of software. Many installations are constrained by the cost of upgrading and can not mi

Re: Timeline for Python?

2006-09-24 Thread Blair P. Houghton
Lawrence D'Oliveiro wrote: > In message <[EMAIL PROTECTED]>, Blair P. > Houghton wrote: > > > wesley chun wrote: > >> > >> 1. never write against older versions of Python... you will only > >> obsolete your book even faster (well,

Re: Timeline for Python?

2006-09-25 Thread Blair P. Houghton
Aahz wrote: > You did see my advice, seconded by Wes, that any book should cover the > version differences? How is that sufficiently inadequate that new books > should specifically target older versions? I think it's a good idea, but I also think that it may cause authors to rely on the old docu

Re: does anybody earn a living programming in python?

2006-09-27 Thread Blair P. Houghton
walterbyrd wrote: > If so, I doubt there are many. > > I wonder why that is? Because Java has Sun's crazy-money behind it, and that pisses Microsoft off, so C# has MS's crazy-money behind it. And long before that, C was /the/ language because it was the only one that would allow you to actually

Re: How can I correct an error in an old post?

2006-10-01 Thread Blair P. Houghton
[EMAIL PROTECTED] wrote: > Hi. > I was searching for some information regarding a problem and found an > interesting post that includes an answer to the problem; thought the > post is very helpful it is based on a wrong assumption and thus the > solution it suggests is incorrect. It took me some t

Re: How can I correct an error in an old post?

2006-10-02 Thread Blair P. Houghton
Steve Holden wrote: > Since this message was never on topic, I'd appreciate it if all > concerned would close this thread now. I already did. How did you get in here? --Blair -- http://mail.python.org/mailman/listinfo/python-list

Re: why would anyone use python when java is there?

2006-11-28 Thread Martin P. Hellwig
Aahz wrote: > In article <[EMAIL PROTECTED]>, > gavino <[EMAIL PROTECTED]> wrote: >> wtf > > Because programming in Python makes me feel happy and contented, while > programming in Java just makes me want to scream in agony. Or in my case, Python made me code, Java made me brew java. ymmv -- mp

Re: merits of Lisp vs Python

2006-12-09 Thread Blair P. Houghton
Python doesn't annoyingly rip you out of the real world to code in it. Anyone looking at a python script can get a sense of where it's going. --Blair -- http://mail.python.org/mailman/listinfo/python-list

your opinion about psycopg vs pygresql

2006-12-20 Thread Martin P. Hellwig
Hi all, I'm playing a bit with PostgreSQL, in which I've set me the target to create a python script which with user input creates a new user role and a database with that owner (connecting to template1 since I know that at least that db exists). Ok so I installed PostGreSQL and pygresql since

Re: perl better than python for users with disabilities?

2006-12-20 Thread Martin P. Hellwig
Dan Jacobson wrote: > Can I feel even better about using perl vs. python, as apparently > python's dependence of formatting, indentation, etc. vs. perl's > "(){};" etc. makes writing python programs perhaps very device > dependent. Whereas perl can be written on a tiny tiny screen, and can > withst

Re: db access

2006-12-28 Thread Martin P. Hellwig
king kikapu wrote: > Hi to all, > > is there a way to use an RDBMS (in my case, SQL Server) from Python by > using some built-in module of the language (v. 2.5) and through ODBC ?? > I saw some samples that use statements like "import dbi" or "import > odbc" but neither modules (dbi, odbc) are pre

Re: db access

2006-12-28 Thread Martin P. Hellwig
king kikapu wrote: > Hey Martin, > > thanks for the fast reply! > > I have already seen that link and i just downloaded the pyodbc module > but isn't Python already containing a "built-in" odbc module so to > allow for db communication ?? > Not that I'm aware of, but it is possible to do odbc w

Re: find login name of user?

2006-12-30 Thread Martin P. Hellwig
Uwe Hoffmann wrote: > [EMAIL PROTECTED] schrieb: >> Is there a function/module to find the login name of the user under >> UNIX environment? > > > http://docs.python.org/lib/os-procinfo.html > > http://docs.python.org/lib/module-pwd.html Speaking of that, is there any reason why there isn't any

Re: Adding a directory to the Python System Path - Edit the registry?

2007-01-05 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I have been trying to find a way to add a directory to Python's sytem > path on my MS Windows XP computer. I did some searching online, but the > only solution I found involved editing the MS Windows Registry. That > seemed a little to hard core. Is there another easier w

webbrowser module + urls ending in .py = a security hole?

2006-01-29 Thread Blair P. Houghton
I'm just learning Python, so bear with. I was messing around with the webbrowser module and decided it was pretty cool to have the browser open a URL from within a python script, so I wrote a short script to open a local file the same way, using the script file as an example target: # browser-tes

Re: webbrowser module + urls ending in .py = a security hole?

2006-01-29 Thread Blair P. Houghton
Oh, uh, Python version 2.4.2, in case you're wondering. --Blair -- http://mail.python.org/mailman/listinfo/python-list

Re: webbrowser module + urls ending in .py = a security hole?

2006-01-30 Thread Blair P. Houghton
I'm going to try it out on a remote server later today. I did use this script to fetch remote HTML (url='http://www.python.org') before I tired the remote file, and it opened the webpage in Firefox. I may also try to poke around in webbrowser.py, if possible, to see if I can see whether it's sele

Re: Find directory name of file?

2006-01-30 Thread Blair P. Houghton
Grant Edwards wrote: > Try something like this at the beginning of your program and > see if it does what you want: > > print os.path.abspath(sys.argv[0]) Wanna see something freaky? In IDLE, I type the following: >>> import sys >>> import os.path >>> os.path.abspath(sys.argv[0])

Re: webbrowser module + urls ending in .py = a security hole?

2006-01-30 Thread Blair P. Houghton
Sorry...should read: "I did use the script to fetch remote HTML (url='http://www.python.org') before I tried the local file, and it opened the webpage in Firefox." Too many chars, too few fingers. --Blair -- http://mail.python.org/mailman/listinfo/python-list

Re: webbrowser module + urls ending in .py = a security hole?

2006-02-01 Thread Blair P. Houghton
>Would it be sufficient in your case merely to allow only .html files to >be loaded? Or URLs without .extensions? Or even just permit only the >http: protocol? Personally, I'm just noodling around with this right now. So "my case" is the abstract case. I think the solution if one was needed wou

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