Re: Noob questions about Python

2007-10-17 Thread hg
> > as the integer 72 instead of returning 00110, why does Python do that? > (and how can I get around it?) > > Grateful for any replies! li.reverse does not return a list but reverses the list itself and return Noe 0xxx tells python that you work in octal. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Guitars for 0$ !!!!!

2007-09-27 Thread hg
[EMAIL PROTECTED] wrote: > http://free-guitars.blogspot.com/ And the chicks for free ! -- http://mail.python.org/mailman/listinfo/python-list

ANN: Load binary application into a BasiCard from Python

2007-09-08 Thread hg
Hi, Based on the already released SCF, the code is there: http://snakecard.com/Source/Applications/SCF/Load_BC.zip. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: SCF released to GPL

2007-08-27 Thread hg
hg wrote: > Méta-MCI (MVP) wrote: >> Salut ! >> >> Le deuxième envoi aurait pu être en français. >> Cela aurait évité le doublon, tout en maintenant le message. >> >> @+ >> >> Michel Claveau >> > > ;-) > > No: > 1) The red

Re: SCF released to GPL

2007-08-27 Thread hg
at ... for some reason, the initial post did not show for quite some times. 2) I'm desperately searching for the French NG from my client but cannot find it ... any clue ? Maybe you can pass the message ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Alex Martelli wrote: > hg <[EMAIL PROTECTED]> wrote: >... >> I am looking for a free subversion server resource to put the code ... >> if you know of any. > > Check out code.google.com -- it has a hosting service for open source > code, too, these days (an

Re: ANN: SCF released to GPL

2007-08-26 Thread hg
hg wrote: > Dear all, > > I am releasing much of my work including SCF (Cross platform Smart Card > library & Tools written in Python) to the GPL license. > > If interested, go to http://www.SnakeCard.com/Source.html > > I am moving the doc to doxygen and cleaning

Re: ANN: SCF released GPL

2007-08-26 Thread hg
Paul Rubin wrote: > hg <[EMAIL PROTECTED]> writes: >> I am looking for a free subversion server resource to put the code >> ... if you know of any. > > Does it have to be SVN? I think Savannah and Sourceforge both still > use CVS. I'm not sure what Laun

ANN: SCF released to GPL

2007-08-26 Thread hg
not coded in Python) and the applets JavaCard and BasicCard ... I'm releasing these during the next few days. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

ANN: SCF released GPL

2007-08-26 Thread hg
. and not coded in Python) and the applets JavaCard and BasicCard ... I'm releasing these during the next few days. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Paul Rubin wrote: > hg <[EMAIL PROTECTED]> writes: >> I am releasing much of my work including SCF (Cross platform Smart >> Card library & Tools) to the GPL license. >> >> If interested, go to http://www.SnakeCard.com/Source.html > > Wow, that is great.

SCF (Python Smar Card Framework)

2007-08-26 Thread hg
Dear all, I am releasing much of my work including SCF (Cross platform Smart Card library & Tools) to the GPL license. If interested, go to http://www.SnakeCard.com/Source.html I am moving the doc to doxygen and cleaning up the code, so what you'll see there will change in the course of the ne

Re: Emacs + python

2007-08-07 Thread hg
Ben Finney wrote: > hg <[EMAIL PROTECTED]> writes: > >> how about a cscope equivalent ? > > How about reading what was posted earlier in the thread, and give us a > description of what you want instead of a name that people might not > recognise? > > -- >

Re: Eclipse/PyDev question.

2007-08-03 Thread hg
I need Windows and Linux access) and "there are bugs of course" ... but it is snappier. I still like pydev and will try it again ... once I can afford a faster PC / or have the time to re-factor my code. PS: I just got today news about a "free" version of wing dev .. .wor

Re: Emacs + python

2007-08-03 Thread hg
Greg Donald wrote: > On 8/1/07, hg <[EMAIL PROTECTED]> wrote: >> Are there any cscope & ECB equivalent for Python ? > > ECB is not language specific. It works the same for browsing Python > code as any other language. > > > -- > Greg Donald >

Re: Emacs + python

2007-08-01 Thread hg
on.org. It seems more like other Emacs major > modes. > > > Ted > > -- > Edward O'Connor > [EMAIL PROTECTED] > > Ense petit placidam sub libertate quietem. Are there any cscope & ECB equivalent for Python ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Wing IDE for Python v. 3.0 beta1 released

2007-08-01 Thread hg
estiney.com/ > > I'll third that. I have had excellent and extended support from the > Wing guys. Definitely recommended. > > Fuzzyman > http://www.voidspace.org.uk/python/articles.shtml I sent a bug report 10 minutes ago and already have received an answer with a possible way out ! hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Can a low-level programmer learn OOP?

2007-07-17 Thread hg
ning something foundational as opposed to basically just learning > how to negotiate someone's proprietary environment and drivers. > > > Comments appreciated. > > > -- > Good day! > > > Christopher R. Carlen > Principal Laser&Electronics Technologist > Sandia National Laboratories CA USA > [EMAIL PROTECTED] > NOTE, delete texts: "RemoveThis" and > "BOGUS" from email address to reply. yes, maybe you should look at UML first. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: ctype and functions that return a pointer to a structure

2007-07-01 Thread hg
Lenard Lindstrom wrote: > hg wrote: >> Hi, >> >> I have the following code: >> ** >> from ctypes import * >> g_lib = cdll.LoadLibrary("libc.so.6") >> class Struct_Password(Structure): >>

ctype and functions that return a pointer to a structure

2007-07-01 Thread hg
long), ('flag', c_ulong) ] l_res = g_lib.getspnam('john') l_struct = cast(l_res, POINTER( Struct_Password() ) ) print l_struct ** The exception I get is "unhashable type" - apparently cast only handles simple types. Is there a way to convert l_res to Struct_Password ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python app as a Display Manager

2007-07-01 Thread hg
ne would tell me whether using Python was feasible or not for this project (ex, having tkinter or wxPython running prior t oan actual X11 session). Also I did not know about comp.windows.x. Regards, hg -- http://mail.python.org/mailman/listinfo/python-list

Python app as a Display Manager

2007-06-30 Thread hg
(instead of xdm, gdm, ...): how do I start an X11 session with the user/pw information retrieved ... + set the correct *nix environment variables. Can you direct me some info / give me a clue ? Many thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking for a wxPython GUI builder

2007-06-16 Thread hg
Dick Moores wrote: > How about SPE? > > Any others? > > And which ones do people > actually use? Commercial or Freeware. > > Thanks, > > Dick Moores I use wxDesigner: http://www.roebling.de/ hg -- http://mail.python.org/mailman/listinfo/python-list

Re: stdout/err and C extentions

2007-06-12 Thread hg
Robert Bauck Hamar wrote: > hg wrote: > >> Robert Bauck Hamar wrote: >> >>> hg wrote: >>> >>>> Hi, >>>> >>>> I have the following >>>> >>>> * C extention - redir.c >>>

Re: stdout/err and C extentions

2007-06-12 Thread hg
Robert Bauck Hamar wrote: > hg wrote: > >> Hi, >> >> I have the following >> >> * C extention - redir.c >> >> >> #include "Python.h" >> >> PyObject * test_redir_test(PyObject *self)

stdout/err and C extentions

2007-06-12 Thread hg
My_Stdout() print 'toto' import test_redir test_redir.test() **** Question: print 'toto' does go to "res.txt" while "Hello from an extention!\n" goes to the console. Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyexe "format"

2007-06-10 Thread hg
John Machin wrote: > On Jun 10, 11:25 am, John Machin <[EMAIL PROTECTED]> wrote: >> On Jun 10, 10:38 am, hg <[EMAIL PROTECTED]> wrote: >> >> > hg wrote: >> > > Hi, >> >> > > Is there a clean way to figure out that a .exe was actua

Re: pyexe "format"

2007-06-09 Thread hg
hg wrote: > Hi, > > Is there a clean way to figure out that a .exe was actually generated by > pyexe ? > > hg I should gave writtent "definite" instead of "clean" hg -- http://mail.python.org/mailman/listinfo/python-list

pyexe "format"

2007-06-09 Thread hg
Hi, Is there a clean way to figure out that a .exe was actually generated by pyexe ? hg -- http://mail.python.org/mailman/listinfo/python-list

Python 2.5 and stdin

2007-06-03 Thread hg
code is here: http://snakecard.com/rtb/ Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Real Time Battle and Python

2007-05-04 Thread hg
Matimus wrote: > On May 3, 5:20 am, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I have started to work on a python-based robot, and am interested in your >> feedback: >> >> http://realtimebattle.sourceforge.net/www.snakecard.com/rtb >> >>

Real Time Battle and Python

2007-05-03 Thread hg
Hi, I have started to work on a python-based robot, and am interested in your feedback: http://realtimebattle.sourceforge.net/ www.snakecard.com/rtb hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Which are your favorite UML tools?

2007-04-26 Thread hg
gt; URL of the project/vendor). If this is not of general interest for this > list you can also reply directly to my email address. > > Thank you in advance. > > Best regards > Anastasios umbrello seems to finally have python import support hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Where did my post go?

2007-04-25 Thread hg
[EMAIL PROTECTED] wrote: > > I posted to this newsgroup earlier about my annoyances with python and > now I can't find the post. What did you do with it? they found it annoying and removed it. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial ... timeout on write

2007-04-23 Thread hg
hg wrote: > Hi, > > I notice that pyserial will hang on a write (even with timeout on) if > rts/cts are one. > > Anyway to get around that ? > > Thanks > > hg PS: on windows -- http://mail.python.org/mailman/listinfo/python-list

pyserial ... timeout on write

2007-04-23 Thread hg
Hi, I notice that pyserial will hang on a write (even with timeout on) if rts/cts are one. Anyway to get around that ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: pickled object, read and write..

2007-04-22 Thread hg
ipt a few times to see that the file does not get deleted hg import shelve class Grades: def __init__(self): self.GRADES = 'GRADES' self.m_gdb = shelve.open('MYGRADES.dat') try: self.m_grades = self.m_gdb[self.GRADES] exce

Re: Do other Python GUI toolkits require this? (OT)

2007-04-20 Thread hg
l in 1934. > > -- > If I have been able to see further, it was only because I stood > on the shoulders of giants. -- Isaac Newton > > Roel Schroeven You never know ... was it a 'steep curve' ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Syntax error

2007-04-17 Thread hg
Marc 'BlackJack' Rintsch wrote: > In <[EMAIL PROTECTED]>, hg wrote: > >> I had the customer comment out the first two lines of the file: >> >> """ >> #!/bin/env python >> # -*- coding: iso-8859-15 -*- >> "&qu

Re: Syntax error

2007-04-17 Thread hg
Diez B. Roggisch wrote: > hg wrote: > >> Hi, >> >> I've had this problem in the past and still cannot fully understand. >> >> I latelly passed my source code in Wing IDE wihch asked be to resolve >> tab/space/CRLF conflicts and I said yes (i

Syntax error

2007-04-17 Thread hg
lines of the file: """ #!/bin/env python # -*- coding: iso-8859-15 -*- """ ... and the problem disappeared. I am at a loss. Any clue ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Pyserial example program error: win32file.SetupComm reports 'Incorrect function.'

2007-04-07 Thread hg
Dennis Lee Bieber wrote: > On Sat, 07 Apr 2007 11:36:05 +0200, hg <[EMAIL PROTECTED]> declaimed the > following in comp.lang.python: > >> >> I am now facing your problem ... on a machine that used to work fine. >> >> Have you figured it out ? >> &

Re: Pyserial example program error: win32file.SetupComm reports 'Incorrect function.'

2007-04-07 Thread hg
ce > disconnected. > > I checked and both machines are running the same version of win32file, > which is site-packages\win32\win32file.pyd, 88 KB dated 9/22/2006. > > So my question is: > > Why would the statement win32file.SetupComm(self.hComPort, 4096, 4096) > > work just fine on one machine and not the other? > > win32file.pyd can't be opened like a .py file, and I don't know what the > rather cryptic error 'Incorrect function.' is trying to tell me. Does > anyone who is familiar with win32file have an idea what the problem is? > > Thanks for the help! > >-- Ron I am now facing your problem ... on a machine that used to work fine. Have you figured it out ? Could it be a conflict between pyserial and pywin32 ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem with global variables

2007-04-02 Thread hg
thon def tiny():     bar = [] gobal foo     for tmp in foo:         bar.append(tmp)     foo = bar if __name__ == "__main__":     foo = ['hello', 'world']     tiny() hg -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython help

2007-03-31 Thread hg
ct that there is. > > can anyone help? > > > -- > - --- -- - > Posted with NewsLeecher v3.8 Beta 8 > Web @ http://www.newsleecher.com/?usenet > --- - -- - Maybe this: http://mail.python.org/pipermail/python-list/

Re: Islam, the Religion of Ease

2007-03-30 Thread hg
Just came to me ... if wars were always fought with fish as weapons, they'd be much less hunger in the world ... lol ... (as a non-anglo-saxon, I thought for many years that lol meant "Lord, Oh Lord !) hg (Holly Grail) -- http://mail.python.org/mailman/listinfo/python-list

Re: Islam, the Religion of Ease

2007-03-30 Thread hg
4.- Use your time for usefull matters > > Regards > > Adrian I don't know ... maybe 'M' python can bring _real_ facts to the discussion ... guiddo would not mind I gather http://video.google.com/videoplay?docid=-2002541459944162494 http://www.youtube.com/watch?v=xrShK-NVMIU http://www.mtholyoke.edu/~ebarnes/python/python.htm I swore (holly s ) I'd never follow up on any of those guys ... but then again, one can never trust an atheist. hg -- http://mail.python.org/mailman/listinfo/python-list

Re: very strange syntax errors

2007-03-28 Thread hg
Facundo Batista wrote: > hg wrote: > > >> I'v been facing some very strange errors lately: >> >> one example: > > You'll need to paste here the exact code and the traceback. > > Regards, > > -- > . Facundo > . > Blog: http://w

Re: very strange syntax errors

2007-03-28 Thread hg
hg wrote: > Hi, > > I'v been facing some very strange errors lately: > > one example: > > def __init__(self): > > import my_info > some_text = my_info.T_SOME_TEXT > ^ syntax error > > >

very strange syntax errors

2007-03-28 Thread hg
ython 2.4.1 under Windows Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: socket read timeout

2007-03-28 Thread hg
[EMAIL PROTECTED] wrote: > > hg> My issue with that is the effect on write: I only want a timeout > on > hg> read ... but anyway ... > > So set a long timeout when you want to write and short timeout when you > want to read. > > Sk

Re: socket read timeout

2007-03-27 Thread hg
Facundo Batista wrote: > hg wrote: > >> Do you mean use select ? > > No, socket's timeout: > >>>> import socket >>>> s = socket.socket() >>>> s.settimeout(5) >>>> ... > > Regards, > > -- > . Facundo &g

Re: socket read timeout

2007-03-27 Thread hg
Steve Holden wrote: > Jarek Zgoda wrote: >> hg napisa?(a): >> >>> I am looking for the most efficient / cleanest way to implement a socket >>> read with timeout (Windows mainly but would be great if the same code >>> worked under *nix) >>

socket read timeout

2007-03-27 Thread hg
Hi, I am looking for the most efficient / cleanest way to implement a socket read with timeout (Windows mainly but would be great if the same code worked under *nix) Tanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: logging and wx.Timer

2007-03-15 Thread hg
hg wrote: > Jordan wrote: > >> On Mar 14, 1:52 am, hg <[EMAIL PROTECTED]> wrote: >>> Hi, >>> >>> I read that logging was thread safe ... but can I use it under a GUI >>> timer ? >>> >>> Thanks, >>> >>> hg

Re: looking for a simple crypto library

2007-03-15 Thread hg
Paul Rubin wrote: > tlslite cool ! -- http://mail.python.org/mailman/listinfo/python-list

Re: looking for a simple crypto library

2007-03-15 Thread hg
P?nar Yanarda? wrote: > Hi all, > > I'm looking for a crypto library which can simply: > > - extracts a public key from a (X.509) certificate, > > - supports public-key algorithms. > > Any suggestions? > > With love, > -- > P?nar "PINguAR" Yanarda? > http://pinguar.org pyopenssl ? -- http:

Re: logging and wx.Timer

2007-03-14 Thread hg
Jordan wrote: > On Mar 14, 1:52 am, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I read that logging was thread safe ... but can I use it under a GUI >> timer ? >> >> Thanks, >> >> hg > > That was barely enough information to be worth

logging and wx.Timer

2007-03-14 Thread hg
Hi, I read that logging was thread safe ... but can I use it under a GUI timer ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Problem I have with a while loop/boolean/or

2007-03-13 Thread hg
hg wrote: > [EMAIL PROTECTED] wrote: > >> Hi all. >> >> I have a problem with some code :( >> >> --- >> >> hint = raw_input("\nAre you stuck? y/n: ") >> hint = hint.lower() >> >> while (hint != &

Re: Problem I have with a while loop/boolean/or

2007-03-13 Thread hg
when I enter n, I can leave the while loop. > > Anyway I can't put my finger on this, so I'd be real grateful if > someone could tell me what I've done wrong. Thanks. > (I have a guy feeling it's something really silly I'm overlooking...) Hi, Whatever hint is: (hint != 'n') or (hint != 'y') is always going to be true as it cannot really be both at the same time use "and" instead of "or" hg -- http://mail.python.org/mailman/listinfo/python-list

Re: unsigned integer?

2007-03-10 Thread hg
Dan Bishop wrote: > On Mar 10, 11:32 am, "Jack" <[EMAIL PROTECTED]> wrote: >> This is a naive question: >> >> "%u" % -3 >> >> I expect it to print 3. But it still print -3. >> >> Also, if I have an int, I can convert it to unsigned int in C: >>int i = -3; >>int ui = (unsigned int)i; >> >>

Re: C++ and Python

2007-03-09 Thread hg
Gabriel Genellina wrote: > En Fri, 09 Mar 2007 05:28:54 -0300, hg <[EMAIL PROTECTED]> escribió: > >> Mandus wrote: >>> 8 Mar 2007 22:04:48 -0800 skrev [EMAIL PROTECTED]: >>>> I'm considering about generating some Python Bindings for C++ >>&g

Re: floating point rounding

2007-03-09 Thread hg
John Henry wrote: > On Mar 9, 5:45 am, hg <[EMAIL PROTECTED]> wrote: >> hg wrote: >> > Hi, >> >> > Here is my issue: >> >> > f = 1.5 * 0.01 >> > f >> >>> 0.014999 >> > '%f' % f >>

Re: floating point rounding

2007-03-09 Thread hg
hg wrote: > Hi, > > Here is my issue: > > f = 1.5 * 0.01 > f >>> 0.014999 > '%f' % f >>>'0.015000' > > > But I really want to get 0.02 as a result ... is there a way out ? > > Thanks, > > hg round -- http://mail.python.org/mailman/listinfo/python-list

floating point rounding

2007-03-09 Thread hg
Hi, Here is my issue: f = 1.5 * 0.01 f >> 0.014999 '%f' % f >>'0.015000' But I really want to get 0.02 as a result ... is there a way out ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: C++ and Python

2007-03-09 Thread hg
e SWIG, SIP, Boost.Python, and GCC_XML. > > We are doing this quite extensively at work, and have found that in the > long run SWIG is the best solution. OMMV, but if you ask me, the answer > is SWIG. > > mvh, > -- > Mandus - the only mandus around. Hi, Why do you think it is

Re: Is there a technic to avoid this bug

2007-02-27 Thread hg
Michele Simionato wrote: > pychecker Thanks all ... pydev extension does not however ... will have to install pychecker also. hg -- http://mail.python.org/mailman/listinfo/python-list

Is there a technic to avoid this bug

2007-02-27 Thread hg
value = self.Get_Value() if value == WHATEVER: do this Is there a way to avoid such a bug with some type of construct ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python+Windows specific questions

2007-02-26 Thread hg
hg wrote: > Hi, > > Do I need the pywin32 extentions to: > > 1) change the pc system date ? > 2) launch a ppp connection ? > > Thanks, > > hg Yes to both I guess. hg -- http://mail.python.org/mailman/listinfo/python-list

Python+Windows specific questions

2007-02-26 Thread hg
Hi, Do I need the pywin32 extentions to: 1) change the pc system date ? 2) launch a ppp connection ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Help on object scope?

2007-02-25 Thread hg
de of main() which are valid in all sub-modules? > > Thanks very much for your help! Might be wrong, but globals can only be global to the module they're declared in. I suggest you find another way such as passing your object as a parameter hg -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best queue implemetation in Python?

2007-02-22 Thread hg
hg wrote: > f u "f o" of course -- http://mail.python.org/mailman/listinfo/python-list

Re: What is the best queue implemetation in Python?

2007-02-22 Thread hg
people do not have your wonderful brain and still have to make it through 60+ years of life of learning ? hg -- http://mail.python.org/mailman/listinfo/python-list

Re: How to covert ASCII to integer in Python?

2007-02-22 Thread hg
Some people spend many buck bying guessing games ... be nice ! hg -- http://mail.python.org/mailman/listinfo/python-list

Re: How to covert ASCII to integer in Python?

2007-02-22 Thread hg
John wrote: > Is there any built in function that converts ASCII to integer or vice > versa in Python? > > Thanks! >>> int('10') 10 >>> str(10) '10' >>> -- http://mail.python.org/mailman/listinfo/python-list

Re: PyDev on Mac

2007-02-18 Thread hg
rg/~esr/faqs/smart-questions.html >> >> Diez > > > The main problem seems to be locating Python. > > Even though I installed the official python for mac, it says the > interpreter is invalid. > So I tried jPython, no succes on that either. It always tells me I am

Re: f---ing typechecking

2007-02-14 Thread hg
> Its ugly and boring. It's rude, unnecessary _and_ boring -- http://mail.python.org/mailman/listinfo/python-list

Re: float print formatting

2007-02-13 Thread hg
Grant Edwards wrote: > On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 > ^^ > That's the specifierfor how

Re: float print formatting

2007-02-13 Thread hg
Neil Cerutti wrote: > The eighth-graders will be presenting Shakespeare's Hamlet in the church > basement on Friday at 7 p.m. The congregation is invited to attend this > tragedy. --Church Bulletin Blooper ;-) I like that ! hg -- http://mail.python.org/mailman/listinfo/python-list

Re: float print formatting

2007-02-13 Thread hg
Peter Otten wrote: > hg wrote: > >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? > > The first integer specifies the total width: > >>>

Re: Mulig SPAM: float print formatting

2007-02-13 Thread hg
NOSPAM plz wrote: > hg skrev: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? >> >> Thanks, >> >> hg >> >> > T

Re: float print formatting

2007-02-13 Thread hg
Neil Cerutti wrote: > On 2007-02-13, hg <[EMAIL PROTECTED]> wrote: >> Hi, >> >> Considering the float 0.0, I would like to print 00.00. >> >> I tried '%02.02f' % 0.0 ... but I get 0.00 >> >> Any clue ? > > Yes. How wide (total) i

float print formatting

2007-02-13 Thread hg
Hi, Considering the float 0.0, I would like to print 00.00. I tried '%02.02f' % 0.0 ... but I get 0.00 Any clue ? Thanks, hg -- http://mail.python.org/mailman/listinfo/python-list

Re: help please!!

2007-02-11 Thread hg
darren112 wrote: > Hi Im new to python and I desperately need help with this task > This is everything of what I need to do... > > The program to be written in Python obviously.. > > The program should support brute-forcing of the authentication process > for a Telnet server via a di

Re: wxPython libraries never detected

2007-02-10 Thread hg
hg wrote: > [EMAIL PROTECTED] wrote: > >> On Feb 10, 1:07 pm, hg <[EMAIL PROTECTED]> wrote: >>> By default, you need to have wx installed in the python site-package >>> path / under Mandriva, I have wx 2.8 installed >>> here: /usr/lib/python2

Re: wxPython libraries never detected

2007-02-10 Thread hg
[EMAIL PROTECTED] wrote: > On Feb 10, 1:07 pm, hg <[EMAIL PROTECTED]> wrote: >> By default, you need to have wx installed in the python site-package path >> / under Mandriva, I have wx 2.8 installed >> here: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/ >>

Re: wxPython libraries never detected

2007-02-10 Thread hg
/usr/include/ > wx". What could be wrong here? I can't figure out why wx isn't being > detected. > > Many thanks. By default, you need to have wx installed in the python site-package path / under Mandriva, I have wx 2.8 installed here: /usr/lib/python2.4/site-packages/wx-2.8-gtk2-ansi/ hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Hacking in python

2007-02-10 Thread hg
ur acceptance of my opinion! I am interesting! > http://ironfroggy-code.blogspot.com/ So that was that weird feeling I felt ... insulted hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Can somebody give me a python code for this?

2007-02-07 Thread hg
John wrote: > Given an array of elements, look at it as a binary tree. Start at the last > interior node, and downheap it. Then downheap the previous interior node, > and continue in this fashion, up to the root. Your teacher ? -- http://mail.python.org/mailman/listinfo/python-list

Re: Python compiled on Windows

2007-02-05 Thread hg
ent for > the platform. Still, if one considers the many threads of people trying to get it to work with the "free" version + other people that had to invest in VS mostly for that (I did) / it might eventually be fair to reconsider. + a dll is a dll hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Will Python Run On Microsoft Vista?

2007-02-05 Thread hg
slogging_away wrote: > I know, I know - flame away but its not clear to me if Python will run > on a system running Microsoft Vista. Is anyone successfully running > Python on Vista? If so, is it what version of Python are you > running? I'm ordering a new system and if Python won't work on Vis

Re: Calling J from Python

2007-02-05 Thread hg
Bjoern Schliessmann wrote: > Gosi wrote: > >> J is in many ways similar to Python. > > The only one I see at the moment is that they're both some kind of > programming languages. > >> J has very many advanced operations. > > Sure. > > Mh, just looking at some "advanced" J source taken from >

Re: "Subscribing" to topics?

2007-02-04 Thread hg
nd leave the mailing list hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Where Does One Begin?

2007-02-02 Thread hg
Mister Newbie wrote: > I have no programming experience. I want to learn Python so I can make > simple, 2D games. Where should I start? Can you recommend a good book? > > Thank you. http://www.diveintopython.org/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert raw data to XML

2007-01-30 Thread hg
[EMAIL PROTECTED] wrote: > On Jan 30, 12:05 pm, John Nagle <[EMAIL PROTECTED]> wrote: >> [EMAIL PROTECTED] wrote: >> > On Jan 29, 8:54 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: >> >> >>En Mon, 29 Jan 2007 23:42:07 -0300, <[EMAIL PROTECTED]> escribió: >> > the reason I wanted to write it a

looking for ppp dialing tutorial / resources

2007-01-27 Thread hg
Hi, I need to implement ppp client connection in my program ... found chestnut dialer so far ... any other resource in mind ? Thanks hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Right-Justifying Numeric Output

2007-01-25 Thread hg
| Accelerator(TM) > <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax: > 503-667-8863 assuming max size = 10 #with spaces >> '% 10d' % 11 '11' #with zeros >>'%010d' % 11 '11' hg -- http://mail.python.org/mailman/listinfo/python-list

Re: Python does not play well with others

2007-01-24 Thread hg
egbert wrote: > On Wed, Jan 24, 2007 at 06:24:37AM +, Harry George wrote: >> >> Perl - excellent modules and bindings for just about everything ... >> Java - a world of its own. They reinvent the wheel instead of ... >> PHP - are we talking web scripts or serious programs? Are you ... >> C

Re: My python programs need a GUI, wxPython or PyQt4?

2007-01-24 Thread hg
ablelist: > > http://www.nemethi.privat.t-online.de/tablelist/screenshots.html > > > -- > Kevin Walzer > Code by Kevin > http://www.codebykevin.com Just for info - one of the reasons I stopped using Tkinter a few years ago was for the lack of print support (preview ...) -

  1   2   3   >