Re: Python "why" questions

2010-08-19 Thread Russ P.
On Aug 19, 11:04 am, Steven D'Aprano wrote: > On Tue, 17 Aug 2010 19:15:54 -0700, Russ P. wrote: > > The convention of starting with zero may have had some slight > > performance advantage in the early days of computing, but the huge > > potential for error that it

Re: Python "why" questions

2010-08-19 Thread Russ P.
I just checked, and Mathematica uses one-based indexing. Apparently they want their notation to look mathematical. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python "why" questions

2010-08-19 Thread Russ P.
On Aug 19, 11:42 am, Steven D'Aprano wrote: > On Thu, 19 Aug 2010 11:03:53 -0700, Russ P. wrote: > > For those who insist that zero-based indexing is a good idea, why you > > suppose mathematical vector/matrix notation has never used that > > convention? I have studi

Re: Python "why" questions

2010-08-19 Thread Russ P.
Yes, apparently Basic uses one-based indexing too. As for Ada, apparently, the programmer needs to explicitly define the index range for every array. Weird. But I get the impression that one- based indexing is used much more than zero-based indexing. -- http://mail.python.org/mailman/listinfo/pyt

Re: Python "why" questions

2010-08-19 Thread Russ P.
On Aug 19, 12:13 pm, Steven D'Aprano While businesses are conservative in which languages they choose, > language designers are not conservative in the design features they come > up with. That there has been a gradual (although as yet incomplete) > convergence towards zero-based indexing in langu

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-20 Thread Standish P
On Aug 19, 8:25 am, c...@tiac.net (Richard Harter) wrote: > On Wed, 18 Aug 2010 01:39:09 -0700 (PDT), Nick Keighley > > wrote: > >On 17 Aug, 18:34, Standish P wrote: > >> How are these heaps being implemented ? Is there some illustrative > >> code or a book sho

Re: Python "why" questions

2010-08-20 Thread Russ P.
On Aug 20, 1:23 am, Martin Braun wrote: > I find this thread extremely interesting, but what surprised me that > everyone seems to agree that mathematics is 1-based, but we Pythoneers > should stick to zero-based. I disagree. To make sure I'm not going > crazy, I took the top five books lying on

Re: Python "why" questions

2010-08-20 Thread Russ P.
On Aug 20, 11:19 am, geremy condra wrote: > Not sure what you read, but for me (mostly number theory, numerical > analysis, and abstract algebra) zero-based indexing is quite common. My background is in aerospace control engineering. I am certainly not familiar with the literature in pure mathem

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-20 Thread Standish P
On Aug 18, 8:05 pm, Elizabeth D Rather wrote: > On 8/18/10 2:23 PM, Standish P wrote: > > > On Aug 17, 6:38 pm, John Passaniti  wrote: > > >> You asked if Forth "borrowed" lists from Lisp.  It did not.  In Lisp, > >> lists are constructed with pair of

Re: How far can stack [LIFO] solve do automatic garbage collection and prevent memory leak ?

2010-08-20 Thread Standish P
On Aug 20, 3:51 pm, Hugh Aguilar wrote: > On Aug 18, 6:23 pm, Standish P wrote: > > > > > > > On Aug 17, 6:38 pm, John Passaniti wrote: > > > > You asked if Forth "borrowed" lists from Lisp.  It did not.  In Lisp, > > > lists ar

Re: Python "why" questions

2010-08-22 Thread Russ P.
On Aug 21, 1:33 am, Steven D'Aprano wrote: > On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: > > Most programmers probably never use vectors and matrices, so they don't > > care about the inconsistency with standard mathematical notation. > > Perhaps you should

Re: Python "why" questions

2010-08-22 Thread Russ P.
On Aug 22, 12:47 am, Chris Rebert wrote: > On Sun, Aug 22, 2010 at 12:23 AM, Russ P. wrote: > > On Aug 21, 1:33 am, Steven D'Aprano > cybersource.com.au> wrote: > >> On Fri, 20 Aug 2010 11:01:42 -0700, Russ P. wrote: > >> > Most programmers probably neve

Re: Python "why" questions

2010-08-23 Thread Russ P.
On Aug 23, 7:46 pm, alex23 wrote: > "Russ P." wrote: > > However, I've switched from Python to > > Scala, so I really don't care. > > Really? Your endless whining in this thread would seem to indicate > otherwise. Yes, I guess I care some, but not muc

Re: CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria Lauterbach and KILL THEM - CIA/Mossad/Jew did 911 - Wikileaks for ever CRIMES of YANQUI Bustards

2010-08-25 Thread Standish P
On Aug 25, 7:12 am, nanothermite911fbibustards wrote: > CRIMINAL YanQui MARINES Cesar Laurean Regularly RAPE GIRLS Maria > Lauterbach and KILL THEM > > Is he a Jew or a white Anglo Saxon race ? or a Southern Baptist > Bustard who > > The girl was a German like the one Roman Polansky raped, Semanth

Re: I need a dict that inherits its mappings

2009-06-25 Thread Rachel P
On Jun 25, 5:31 am, samwyse wrote: > I need a dict-like object that, if it doesn't contain a key, will > return the value from a "parent" object.   See: http://code.activestate.com/recipes/305268/ Also try subclassing dict and implementing a __missing__() method. Raymond -- http://mail.pytho

Re: Fast Dictionary Access

2009-06-27 Thread Rachel P
[Thomas Lehmann] > In C++, programming STL you will use the insert method which always > provides a position and a flag which indicates whether the position > results from a new insertion or an exisiting element. Idea is to have > one search only. > > > if  data.has_key(key): >    value = data[key

Is Psyco good for Python 2.6.1?

2009-07-02 Thread Russ P.
I need to speed up some Python code, and I discovered Psyco. However, the Psyco web page has not been updated since December 2007. Before I go to the trouble of installing it, does anyone know if it is still good for Python 2.6.1? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

CPU usage while reading a named pipe

2009-09-12 Thread Miguel P
Hey everyone, I've been working on parsing (tailing) a named pipe which is the syslog output of the traffic for a rather busy haproxy instance. It's a fair bit of traffic (upto 3k hits/s per server), but I am finding that simply tailing the file in python, without any processing, is taking up 15%

Re: CPU usage while reading a named pipe

2009-09-12 Thread Miguel P
On Sep 12, 2:54 pm, Ned Deily wrote: > In article > , >  Miguel P wrote: > > > > > I've been working on parsing (tailing) a named pipe which is the > > syslog output of the traffic for a rather busy haproxy instance. It's > > a fair bit of traffic

xml.etree - why no HTMLTreeBuilder included?

2010-09-26 Thread Jon P.
It is great that Fredrik Lundh's ElementTree is now a part of the Python Standard Library. However, Is it correct that if you want to use xml.etree.ElementTree to parse an HTML Document that you will have to install a separate HTMLTreeBuilder (e.g. TidyHTMLTreeBuilder) and that the only TreeBuilde

Re: Getting HTTP responses - a python linkchecking script.

2006-05-08 Thread p-d-p=pas-de-spam
[EMAIL PROTECTED] a écrit : > Hi Folks, > > I'm thinking about writing a script that can be run over a whole site > and produce a report about broken links etc... > > I've been playing with the urllib2 and httplib modules as a starting > point and have found that with urllib2 it doesn't seem poss

Re: code review

2012-06-29 Thread Martin P. Hellwig
12:57 pm, "Littlefield, Tyler" wrote: > >>>> I was curious if someone wouldn't mind poking at some code. The > >>>> project page is at:http://code.google.com/p/pymud Any information is > >>>> greatly appreciated. > >>> I couldn

Re: code review

2012-06-30 Thread Martin P. Hellwig
On Saturday, 30 June 2012 21:30:45 UTC+1, Alister wrote: > On Sat, 30 Jun 2012 21:38:58 +0200, Thomas Jollans wrote: > > > On 06/30/2012 08:39 PM, Thomas 'PointedEars' Lahn wrote: > >> Peter Otten wrote: > >> > >>> If you spell it > >>> > >>> def is_valid_password(password): > >>> return mud

Re: Writing a wrapper - any tips?

2012-07-13 Thread Martin P. Hellwig
On Friday, 13 July 2012 05:03:23 UTC+1, Temia Eszteri wrote: > I'm going to be looking into writing a wrapper for the Allegro 5 game > development libraries, either with ctypes or Cython. They technically > have a basic 1:1 ctypes wrapper currently, but I wanted to make > something more pythonic,

Re: simple client data base

2012-09-03 Thread Martin P. Hellwig
On Monday, 3 September 2012 15:12:21 UTC+1, Manatee wrote: > Hello all, I am learning to program in python. I have a need to make a > > program that can store, retrieve, add, and delete client data such as > > name, address, social, telephone number and similar information. This > > would be a

Re: Article on the future of Python

2012-09-25 Thread Martin P. Hellwig
On Tuesday, 25 September 2012 09:14:27 UTC+1, Mark Lawrence wrote: > Hi all, > > I though this might be of interest. > http://www.ironfroggy.com/software/i-am-worried-about-the-future-of-python > -- > > Cheers. > Mark Lawrence. I glanced over the article but it seems to me another 'I am afraid

Re: debugging in eclipse

2012-11-15 Thread Martin P. Hellwig
On Thursday, 15 November 2012 12:29:04 UTC, chip...@gmail.com wrote: > Hi all! > > > > I have a stupid problem, for which I cannot find a solution... > > > > I have a python module, lets call it debugTest.py. > > > > and it contains: > > def test(): > > a=1 > > b=2 > > c=a

Python-UK Community on google+

2012-12-07 Thread Martin P. Hellwig
of. You can find it here: https://plus.google.com/u/0/communities/109155400666012015869 Hope to see you soon :-) Martin P. Hellwig -- http://mail.python.org/mailman/listinfo/python-list

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Martin P. Hellwig
On 24/01/2012 05:57, Rick Johnson wrote: I would wish that pedantic citizens of the British colony in America stopped calling whatever misinterpreted waffle they produce, English. -- mph -- http://mail.python.org/mailman/listinfo/python-list

Re: The devolution of English language and slothful c.l.p behaviors exposed!

2012-01-24 Thread Martin P. Hellwig
On 24/01/2012 14:51, J wrote: On Tue, Jan 24, 2012 at 09:05, Martin P. Hellwig wrote: On 24/01/2012 05:57, Rick Johnson wrote: I would wish that pedantic citizens of the British colony in America stopped calling whatever misinterpreted waffle they produce, English. I, sir, as a citizen of

Re: Where to put data

2012-01-26 Thread Martin P. Hellwig
On 25/01/2012 17:26, bvdp wrote: Well once you think about distributing, here is the guide line I use: - If it is meant as a library that can be 'imported' in python: > site-packages is the place to be, some linux distros are rather creative with them so be careful. - If it is a 'stand-alon

Re: speaking at PyCon

2012-01-31 Thread Martin P. Hellwig
On 29/01/2012 03:32, Eric Snow wrote: This is my first year speaking at PyCon, so I solicited speaking/preparation advice from a bunch of folks, particularly focusing on the PyCon speaking experience. I've compiled the results and put them online: http://ref.rtfd.org/speakers This is still rou

pyserial for GPS data

2012-03-15 Thread Arun p das
I have a USB GPS dongle using this for getting position information. I installed gpsd daemon so that any clients can read data from that. It is working fine used xgps, cgps as clients. *gpsd -n -N -D2 /dev/ttyUSB0 * import gps, os, time g = gps.gps(mode=gps.WATCH_NEWSTYLE) while 1: os.system('cl

Re: Eclipse, C, and Python

2012-03-20 Thread Martin P. Hellwig
On 20/03/2012 06:00, Richard Medina Calderon wrote: Hello Forum. I have installed Python comnpiler in Eclipse Classic for Windows. After a while I have installed the C compiler. However, somehow now when I try to run my code in Python it shows me for default Ant Run -->Ant Build I switched my

Re: f python?

2012-04-08 Thread Martin P. Hellwig
On 08/04/2012 12:11, Xah Lee wrote: Hi Xah, You clearly didn't want help on this subject, as you really now how to do it anyway. But having read your posts over the years, I'd like to give you an observation on your persona, free of charge! :-) You are actually a talented writer, some may fi

Re: Python randomly exits with Linux OS error -9 or -15

2012-04-09 Thread Martin P. Hellwig
On 09/04/2012 11:01, Janis wrote: My experience is that these kind of behaviors are observed when (from most to least likeliness): - Your kernel barfs on a limit, e.g. space/inodes/processes/memory/etc. - You have a linked library mismatch - You have bit rot on your system - You have a faulty l

Re: Open Source: you're doing it wrong - the Pyjamas hijack

2012-05-09 Thread Martin P. Hellwig
uably they are not mistakes at all, are not easy forgotten and can end up haunting you. I hope you will take these comments with you as a lesson learned, I do wish you all the best and look forward to the improvements you are going to contribute. -- Martin P. Hellwig (mph) -- http://mail.pytho

[ANN] RuPy 11 Conference : Call for Proposals

2011-06-08 Thread J. P. Nowak
:: Call for Proposals 2011 RuPy 11 :: Strongly Dynamic Conference http://rupy.eu/ Poznan, Poland October 14th-16th, 2011 RuPy is a conference about dynamically typed programming languages. Held for the first time in April 2007 it gathered enthusiasts from Poland and other countries. The idea

Re: Rant on web browsers

2011-06-14 Thread Martin P. Hellwig
On 14/06/2011 07:31, Chris Angelico wrote: But if anyone feels like writing an incompatible browser, please can you add Python scripting? You might find that Pyjamas already fill your needs python/javascript wise. It is truly great to just write python, translate it, and then have it work in

parse date string having "EDT"

2011-06-20 Thread Junaid P V
I was trying to parse a date string containing "EDT" time zone eg: 'Mon Jun 20 14:00:57 EDT 2011' I tried: datetime.strptime('Mon Jun 20 14:00:57 EDT 2011', '%a %b %d %H:%M:%S %Z %Y') But I get error -- http://mail.python.org/mailman/listinfo/python-list

Re: parse date string having "EDT"

2011-06-21 Thread Junaid P V
Thanks, My script should be platform independent, so I think filtering out time zone info is better. -- http://mail.python.org/mailman/listinfo/python-list

Re: Ten rules to becoming a Python community member.

2011-08-16 Thread Martin P. Hellwig
On 16/08/2011 18:51, Prasad, Ramit wrote: Incorrect past tense usage of "used to": """ I "used to" wear wooden shoes """ Incorrect description using "used to": """ I have become "used to" wearing wooden shoes """ Correct usage of "used to": """ Wooden shoes can be "used to" torture someone

Re: Syntactic sugar for assignment statements: one value to multiple targets?

2011-08-16 Thread Martin P. Hellwig
On 03/08/2011 02:45, gc wrote: a,b,c,d,e = *dict() where * in this context means something like "assign separately to all. Any thoughts? Thanks! Well got a thought but I am afraid it is the opposite of helpful in the direct sense. So if you don't want to hear it skip it :-) Although I c

Re: How to daemonize a HTTPServer

2011-09-01 Thread Martin P. Hellwig
On 01/09/2011 04:16, babbu Pehlwan wrote: I have written a http server using BaseHTTPServer module. Now I want to instantiate it through another python script. The issue here is after instantiate the control doesn't come back till the server is running. Please suggest. Sounds like something you

Re: Newbie...

2011-02-24 Thread Martin P. Hellwig
On 02/24/11 19:22, wisecrac...@tesco.net wrote: Hi all... I am new to this list so treat me gently... ;o) I for one welcome you :-) I use Python almost totally differently to the vast majority of people. I like "banging the metal". Well I can assure you that although you might be indeed i

Re: my computer is allergic to pickles

2011-03-07 Thread Martin P. Hellwig
On 05/03/2011 01:56, Bob Fnord wrote: Any comments, suggestions? No but I have a bunch of pseudo-questions :-) What version of python are you using? How about your OS and bitspace (32/64)? Have you also tried using the non-c pickle module? If the data is very simple in structure, perhaps s

Re: Development tools and practices for Pythonistas

2011-04-26 Thread Martin P. Hellwig
On 26/04/2011 14:39, snorble wrote: I would strongly advice to get familiar with: - Lint tools (like PyLint) - Refactoring - Source Control Systems (like Mercurial Hg) - Unit Testing with Code Coverage Followed by either writing your own toolset that integrates all of the above or start learnin

Re: py3k buffered IO - flush() required between read/write?

2011-05-11 Thread Martin P. Hellwig
On 11/05/2011 19:08, Genstein wrote: On 11/05/2011 19:24, Terry Reedy wrote: writing and reading. If you want others to look at this more, you should 1) produce a minimal* example that demonstrates the questionable behavior, and 2) show the comparative outputs that raise your question. Thanks

Re: English Idiom in Unix: Directory Recursively

2011-05-18 Thread Martin P. Hellwig
On 17/05/2011 23:20, Ian Kelly wrote: On Tue, May 17, 2011 at 4:26 PM, Xah Lee wrote: Though, if you think about it, it's not exactly a correct description. “Recursive”, or “recursion”, refers to a particular type of algorithm, or a implementation using that algorithm. Only when used as progr

Problem Installing Pipenv

2021-12-17 Thread Stephen P. Molnar
core.py", line 763, in invoke return __callback(*args, **kwargs) File "C:\Python39\lib\site-packages\pipenv\cli\command.py", line 419, in shell do_shell( File "C:\Python39\lib\site-packages\pipenv\core.py", line 2309, in do_shell shell = choose_shell

what is the best qr package

2018-03-07 Thread Subramanian P V
what is the best qr package -- https://mail.python.org/mailman/listinfo/python-list

in multiprocessing pool map how to stop one process from executing ahead

2018-03-20 Thread Subramanian P V
I am excecting custom commands like shell on multiple linux hosts. and if in one host one of the commands fail. I want that process not to proceed. If the remote command throws an error i am logging it .. but the process goes to next command . but if i terminate the command, the process will t

how to convert this psuedo code to python

2018-09-14 Thread Noel P. CUA
compose your own octave script to calculate the machine epsilon. Analyze the code. epsilon = 1 DO IF (epsilon+1<=1) EXIT epsilon = epsilon/2 END DO epsilon = 2 x epsilon -- *This email and any files transmitted with it are confidential and intended solely for the use of the individual or enti

help me in python plssss!!!!

2018-09-14 Thread Noel P. CUA
Calculate the true, relative and approximate errors, and Relate the absolute relative approximate error to the number of significant digits. epsilon = 1 while epsilon + 1 > 1: epsilon = epsilon / 2.0 epsilon = 2 * epsilon help me! -- *This email and any files transmitted with it are c

Re: Daisy Daisy, give me your answer do

2005-10-09 Thread Martin P. Hellwig
Michael Goettsche wrote: > You're asking "tech geekers" and "morons" to do this job? Isn't that a task > for somebody more professional like you? I think he's doing a shot to the position of open-source leader, judging on the replies he has got till so far, that shot was not really effective.

Re: Microsoft Hatred FAQ

2005-10-15 Thread Martin P. Hellwig
Jeroen Wenting wrote: > > Without Microsoft 90% of us would never have seen a computer more powerful > than a ZX-81 and 90% of the rest of us would never have used only dumb > mainframe terminals. At the time you "PC" guys where hacking around monochrome green and a bit lighter green screens

Re: Microsoft Hatred FAQ

2005-10-15 Thread Martin P. Hellwig
John Bokma wrote: > You mean like the lamp that keeps burning forever, like Philips has? > No more like all the hydrogen technologies that shell has in their possession for the last decades and only recently has begun to restart those projects. >> Although Commodore where never serious compet

pyHook example.py brakes windows dead keys mechanisme

2005-10-22 Thread Martin P. Hellwig
Hi all, I noticed that the "dead keys"* mechanism (XPSP2 NL, keyboard map US, input language Dutch) doesn't work when running the pyHooks (python 241) example. Instead of ö ("o) I immediately get ""o. If I close the pyHooks example the expected behavior returns. Is there a way how I can get bot

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
Not Bill Gates wrote: > [EMAIL PROTECTED] wrote... >> On Tue, 25 Oct 2005 15:35:47 +, Not Bill Gates wrote: >> >>> Heck, I dunno. Like you, I don't even really care all that much. >> You don't care that innovation in desktop software has been crippled by >> the actions of the monopoly player

Re: Microsoft Hatred FAQ

2005-10-25 Thread Martin P. Hellwig
David Schwartz wrote: > It's easy to point to things you think are mistakes and claim that if > you had been in charge of the world, those mistakes would not have been > made. If you are trying to balance completely different possible paths the > universe might have taken, you need to make

Re: Python Linked list?

2005-10-31 Thread Michael P. Soulier
simply make one via references in a class? class MyNode(object): next = None Should do it, no? Mike -- Michael P. Soulier <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: I need Motivation

2005-11-03 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I m not a python Expert or anythin > i need help, i m losin my motivation to continue with python > can anyone inspire me again.??? Ooh that is easy, start learning other programming languages, you'll go back continuing with python very soon after that! ;-) -- mph --

Re: I need Motivation

2005-11-04 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > Martin P. Hellwig wrote: >> [EMAIL PROTECTED] wrote: >>> I m not a python Expert or anythin >>> i need help, i m losin my motivation to continue with python >>> can anyone inspire me again.??? >> Ooh that is easy, start learn

Re: Can't instantiate class

2005-11-06 Thread Michael P. Soulier
Util, and by calling DataUtil(), you're trying to call the module, hence the error. I think you want db = DataUtil.DataUtil() Or, from DataUtil import DataUtil And then your code will work. Mike -- Michael P. Soulier <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

Re: web interface

2005-11-07 Thread Charl P. Botha
rvers and web frameworks is that it's natively multi-processing vs. multi-threading. [1] http://www.skunkweb.org/ [2] http://wiki.skunkweb.org/sw/ExampleOfMonitoringLongRunningProcess -- charl p. botha - http://cpbotha.net/ -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Steven D'Aprano wrote: > I'm FREE to use the software, FREE to redistribute it, FREE to give it > away, FREE to make derivative works, FREE to transfer the licence, *and* > I got it FREE of cost as well, but that doesn't make it free. > Indeed, when I explain GPL to non-techies and what their (

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > "Martin P. Hellwig" <[EMAIL PROTECTED]> writes: >> If the non-techie is still interested, I'll rave on about that I >> understand why GPL is a good way to ensure availability of IP >> especially if the software is a collaborated

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Is that software really unavailable, or just unavailable for free? If > the latter, then it's not unavailabe. If the former, the it didn't > become unavailable, as it was never available in the first place. > In the latter case, you could also use those examples to similarly

Re: wxPython Licence vs GPL

2005-11-24 Thread Martin P. Hellwig
Mike Meyer wrote: > > Well, they chose to make it available to others for reuse. But > software "unavailable to those who can't afford it" is better than "no > software at all" That I do not agree with, I think it depends on which your side of the fence you are. For instance I have a specific

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 23:26:38 +0100, Martin P. Hellwig wrote: > >> BSD/MIT style license is a >> good substitute of no license at all. > > But that's not true: "no licence at all" means that nobody has the right > to u

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Thu, 24 Nov 2005 17:43:22 +0100, Martin P. Hellwig wrote: > >> if I owned a company >> making profit on software sales (sale =! support) you sign a death wish >> for using GPL > > Apart from Microsoft, and possibly Quark (makers o

Re: wxPython Licence vs GPL

2005-11-26 Thread Martin P. Hellwig
Steven D'Aprano wrote: > > > I think you are over-estimating both the numbers and profitability of such > niche software distributors, and misunderstanding the business models of > them. Coincidently, I worked at a software company making a "standard" administration software for primary school

Re: wxPython Licence vs GPL

2005-11-27 Thread Martin P. Hellwig
Steven D'Aprano wrote: > On Sat, 26 Nov 2005 21:39:13 +0100, Martin P. Hellwig wrote: > >> The software was sold in 3 separates modules requiring a yearly renewal, > > The software is hardly sold if you have to renew that "sale" every year. > That's mo

need reading file in binary mode

2005-12-01 Thread Sergey P. Vazulia
this part of my code: f = file(work_dir + filename,'r') n = int(totalSize/recordLenth) i = 0 while i < n: buf = f.read(recordLenth); sometime (when find something like \0A\00\00 in data) returm less bytes then file have. Q: how-to read all data from bi

Re: need reading file in binary mode

2005-12-01 Thread Sergey P. Vazulia
Problem solved. "Sergey P. Vazulia" <[EMAIL PROTECTED]> ÓÏÏÂÝÉÌ/ÓÏÏÂÝÉÌÁ × ÎÏ×ÏÓÔÑÈ ÓÌÅÄÕÀÝÅÅ: news:[EMAIL PROTECTED] > this part of my code: > > f = file(work_dir + filename,'rb') ^ >

Re: Detect character encoding

2005-12-04 Thread Martin P. Hellwig
Mike Meyer wrote: > "Diez B. Roggisch" <[EMAIL PROTECTED]> writes: >> Michal wrote: >>> is there any way how to detect string encoding in Python? >>> I need to proccess several files. Each of them could be encoded in >>> different charset (iso-8859-2, cp1250, etc). I want to detect it, >>> and enco

xml parsing escape characters

2005-01-19 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi, I only know a little bit of xml and I'm trying to parse a xml document in order to save its elements in a file (dictionaries inside a list). When I access a url from python 2.3.3 running in Linux with the following lines: resposta = urllib.u

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 this is the xml document: http://www..";> ~ ~ 439 (... others ...) ~ When I do: print xmldoc.toxml() it prints: http://www...";> ~ ~439

Re: xml parsing escape characters

2005-01-20 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to thank everyone for your answers, but I'm not seeing the light yet! When I access the url via the Firefox browser and look into the source code, I also get: ~ ~439 ~ should

Re: xml parsing escape characters

2005-01-21 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ~From your experience, do you think that if this wrong XML code could be meant to be read only by somekind of Microsoft parser, the error will not occur? I'll try to explain: xml producer writes the code in Windows platform and 'thinks' that every clie

Re: xml parsing escape characters

2005-01-21 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 ~From your experience, do you think that if this wrong XML code could be meant to be read only by somekind of Microsoft parser, the error will not occur? I'll try to explain: xml producer writes the code in Windows platform and 'thinks' that every clie

An interesting python problem using Zope 2.7.3

2005-02-05 Thread ranjith g p
Greetings!!! I ran the following simple string commands in Linux + Python and the results are: [EMAIL PROTECTED] root]# python Python 2.2.2 (#1, Feb 24 2003, 19:13:11) [GCC 3.2.2 20030222 (Red Hat Linux 3.2.2-4)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>

oddness in super()

2005-06-18 Thread Michael P. Soulier
nit__ super(RemGuiFrame, self).__init__(*args, **kwds) TypeError: super() argument 1 must be type, not classobj Why the difference? Is Python portability overrated? Is this a bug? I'm confused. Mike -- Michael P. Soulier <[EMAIL PROTECTED]> http://www.digitaltorque.ca http://opag

Re: oddness in super()

2005-06-18 Thread Michael P. Soulier
the 2.3 cruft seems to have fixed something. Thanks, Mike -- Michael P. Soulier <[EMAIL PROTECTED]> http://www.digitaltorque.ca http://opag.ca python -c 'import this' Jabber: [EMAIL PROTECTED] pgpoH6WnRonmw.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

oddness in shelve module

2005-06-21 Thread Michael P. Soulier
self.partitions = doc.children elif doc.type == 'siloShowMaxFree': self.free = doc.scalar else: raise AssertionError, "Unknown document type: %s" % doc.type -- Michael P. Soulier <[EMAIL PROTECTED]> http://www.digitaltorque.ca http://opag.ca python -c 'import this' Jabber: [EMAIL PROTECTED] pgpscuURQeKCo.pgp Description: PGP signature -- http://mail.python.org/mailman/listinfo/python-list

Re: os.system(cmd) isn't working

2005-06-23 Thread Michael P. Soulier
On 23/06/05 Tim Golden said: > This is only half an answer, but I personally find faffing > about with the double-quote / double-backslash stuff between > Python and Windows a pain in the neck, so where I can I avoid it. Indeed. I believe this is why Python has os.sep. Mike --

getting tracebacks from traceback objects

2005-06-23 Thread Michael P. Soulier
; assert(False) None Pretty sure this worked in 1.5.2. Am I doing something wrong here? I want format_exe especially, since I don't want to print to stdout, I want to provide the traceback in a popup dialog. Thanks, Mike -- Michael P. Soulier <[EMAIL PROTECTED]> http://www.digi

PostgreSQL & Python vs PHP

2005-07-23 Thread Luis P. Mendes
Hi, I don't know anything about PHP and I'm initiating right now with PostgreSQL. Could someone tell me the pros and cons of assessing the PostgreSQL databases with Python vs. PHP? I will need to build a database that has to be assessed by a dozen clients via a web page in an intranet (possibly

Re: PostgreSQL & Python vs PHP

2005-07-23 Thread Luis P. Mendes
gene tani wrote: > To be honest, this is a pretty open-ended question. Are there specific > issues (SQL injection/security, minimizing db connections, simplest > code, etc, your'e concerned with?) Simplest code with be an important factor, since the db will be used far from max capabilities. Eas

Re: PostgreSQL & Python vs PHP

2005-07-23 Thread Luis P. Mendes
gene tani wrote: > ok, to make this less open-ended, you should mention what O/S and web > server you have in mind, whether the web and DB servers will be under > your admin (big diff betw python and PHP, as far as finding shared > server accounts at web hosts), what kinds of queries, concurrent >

Re: Friend wants to learn python

2005-07-23 Thread Martin P. Hellwig
EnderLocke wrote: > I have a friend who wants to learn python programming. I learned off > the internet and have never used a book to learn it. What books do you > recommend? > > Any suggestions would be appreciated. > I recommend "Learning Python 2nd Edition" by Mark Lutz & David Ascher (O'Rei

FAQ?

2005-07-24 Thread Keith P. Boruff
Hello, Is there an FAQ available specific to this NG as I'm sure some of the list slicing questions I have have been asked before. Thanks, KPB -- http://mail.python.org/mailman/listinfo/python-list

Re: FAQ?

2005-07-24 Thread Keith P. Boruff
Michael Hoffman wrote: > Keith P. Boruff wrote: > >> Is there an FAQ available specific to this NG as I'm sure some of the >> list slicing questions I have have been asked before. > > > Try Google for . I tried and didn't find one. That's why I aske

Re: FAQ?

2005-07-24 Thread Keith P. Boruff
gene tani wrote: > Here's my trove of FAQ/Gotcha lists > > http://www.ferg.org/projects/python_gotchas.html > http://zephyrfalcon.org/labs/python_pitfalls.html > http://zephyrfalcon.org/labs/beginners_mistakes.html > > > http://www.onlamp.com/pub/a/python/2004/02/05/learn_python.html > http://ww

Re: PostgreSQL & Python vs PHP

2005-07-25 Thread Luis P. Mendes
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 I would like to thank all of you. For what I've read, I'll be using python instead of Php. Luis -BEGIN PGP SIGNATURE- Version: GnuPG v1.2.4 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFC5RQ5Hn4UHCY8r

Re: Why Tcl/Tk?

2005-08-01 Thread Michael P. Soulier
d get all of the versions right. Java does this better. Mike -- Michael P. Soulier <[EMAIL PROTECTED]> "Those who would give up esential liberty for temporary safety deserve neither liberty nor safety." --Benjamin Franklin pgph4uE4YTLTz.pgp Description: PGP signature -- http://

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
[EMAIL PROTECTED] wrote: > I need to write a .cgi that will take the content of an https GET or > POST and send it securely as email to an Outlook client. > > I think that OpenSSL is somewhere in this, but I'm not even sure how to > create the right certificate, how to use it to encrypt mail and

Re: pain

2005-08-04 Thread Martin P. Hellwig
Mage wrote: >> > Thank you, I will check this out. My company will switch to a jsp site. Well I don't know your company and how many developers there are but I know this; a manager telling me what tools to use to do my job is a bad manager by definition because he should realize that the peopl

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
Michael Ströder wrote: > Martin P. Hellwig wrote: > >>I think you want this more common approach for mail encryption: >> >>server: >>https CGI form --> mail wrapper --> PGP encryption/signing --> send >> >>client: >>recieve mail --> pgp

Re: Secure email

2005-08-04 Thread Martin P. Hellwig
Michael Ströder wrote: >>>This would require an additional PGP-plugin for Outlook. Outlook can >>>decrypt S/MIME messages out-of-the-box. >> >>Yes indeed, although I personaly find pgp a bit more elegant your >>solution would be the best for the OP. > Whether S/MIME or PGP is used depends very mu

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