Re: pygame and python 2.5

2007-02-10 Thread Hendrik van Rooyen
"Ben Sizer" <[EMAIL PROTECTED]> wrote: > On Feb 10, 8:42 am, Steve Holden <[EMAIL PROTECTED]> wrote: > > Hendrik van Rooyen wrote: > > > <[EMAIL PROTECTED]> wrote: > > > "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > > >> Ben> Python extensions written in C require recompilation for each new >

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread Geoff Hill
Are you trying to: a) Make the PDF file open in it's default application? b) Create a PDF-reader in Python? ...because your question is somewhat unclear. Report Lab has no PDF viewer. You would need a PDF/PostScript parser to do that and that's more of a job than I think you're looking f

Re: pygame and python 2.5

2007-02-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: > On Feb 10, 4:07?pm, "Ben Sizer" <[EMAIL PROTECTED]> wrote: >> On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: >> >>> On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: Hopefully in the future, some of those convoluted steps will be fixed, >

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote: > Are you trying to do real time or post real time. > -Vishal post real time. I want to first display the report on screen by default and the user at his choice will click the print button and the report will be printed. regards. Krishnakant.

Re: pygame and python 2.5

2007-02-10 Thread Steve Holden
Ben Sizer wrote: > On Feb 10, 8:42 am, Steve Holden <[EMAIL PROTECTED]> wrote: >> Hendrik van Rooyen wrote: >>> <[EMAIL PROTECTED]> wrote: >>> "Ben Sizer" <[EMAIL PROTECTED]> wrote: Ben> Python extensions written in C require recompilation for each new Ben> version of Python, due

Re: HTML Parsing

2007-02-10 Thread Ayaz Ahmed Khan
"mtuller" typed: > I have also tried Beautiful Soup, but had trouble understanding the > documentation As Gabriel has suggested, spend a little more time going through the documentation of BeautifulSoup. It is pretty easy to grasp. I'll give you an example: I want to extract the text between the

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Are you trying to do real time or post real time. -Vishal -Original Message- From: krishnakant Mane [mailto:[EMAIL PROTECTED] Sent: Saturday, February 10, 2007 10:50 PM To: Vishal Bhargava Cc: python-list@python.org Subject: Re: can't find a way to display and print pdf through python.

Re: Regular Expressions

2007-02-10 Thread Steve Holden
Geoff Hill wrote: > What's the way to go about learning Python's regular expressions? I feel > like such an idiot - being so strong in a programming language but knowing > nothing about RE. > > In fact that's a pretty smart stance. A quote attributed variously to Tim Peters and Jamie Zawinski

Re: wxPython libraries never detected

2007-02-10 Thread Steve Holden
hg wrote: > 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.4/site-packages/wx-2.8-gtk2-ansi/

Re: can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
On 11/02/07, Vishal Bhargava <[EMAIL PROTECTED]> wrote: > Use Report Lab... I mentioned in my first email that I am already using reportlab. but I can only generate pdf out of that. I want to display it on screen and I also will be giving a print button which should do the printing job. by the way

RE: can't find a way to display and print pdf through python.

2007-02-10 Thread Vishal Bhargava
Use Report Lab... Cheers, Vishal -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of krishnakant Mane Sent: Saturday, February 10, 2007 10:46 PM To: python-list@python.org Subject: can't find a way to display and print pdf through python. hello all, I am stuc

can't find a way to display and print pdf through python.

2007-02-10 Thread krishnakant Mane
hello all, I am stuck with a strange requirement. I need a library that can help me display a pdf file as a report and also want a way to print the same pdf file in a platform independent way. if that's not possible then I at least need the code for useing some library for connecting to acrobat rea

Stereo 3D photography capture stereoscopic still and motion images

2007-02-10 Thread icester
http://www.tyrell-innovations-usa.com/shack3d/productinfo/jpsBrown/jpsBrownInfo.htm http://tyrell-innovations-usa.com/shack3d/ -- http://mail.python.org/mailman/listinfo/python-list

Re: os.tmpfile() -> permission denied (Win XP)

2007-02-10 Thread John Machin
On Feb 11, 4:33 pm, "John Machin" <[EMAIL PROTECTED]> wrote: > On Feb 11, 4:15 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > > > En Sun, 11 Feb 2007 01:57:52 -0300, John Machin <[EMAIL PROTECTED]> > > escribió: > > > > | >>> os.tmpfile() > > > Traceback (most recent call last): > > > File

Re: pygame and python 2.5

2007-02-10 Thread Hendrik van Rooyen
"Steve Holden" <[EMAIL PROTECTED]> > Hendrik van Rooyen wrote: > > <[EMAIL PROTECTED]> wrote: > > "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > > > >> Ben> Python extensions written in C require recompilation for each new > >> Ben> version of Python, due to Python limitations. > >> > >> C

Re: Retry:Question about optparse/OptionParser callback.

2007-02-10 Thread Steven Bethard
Steven W. Orr wrote: > I'm writing a program that needs to process options. Due to the nature > of the program with its large number of commandline options, I would > like to write a callback to be set inside add_option. > > Something like this: > > parser.add_option("-b", action="callback", ca

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 11:03�pm, [EMAIL PROTECTED] wrote: > � � >> However, the difference between the open-source people and Microsoft > � � >> is the the open-source people aren't being paid by you for the use of > � � >> their product, so they're not obligated in any way to help you. > > � � mensanator> Thi

Re: os.tmpfile() -> permission denied (Win XP)

2007-02-10 Thread John Machin
On Feb 11, 4:15 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Sun, 11 Feb 2007 01:57:52 -0300, John Machin <[EMAIL PROTECTED]> > escribió: > > > | >>> os.tmpfile() > > Traceback (most recent call last): > > File "", line 1, in > > OSError: [Errno 13] Permission denied > > > 1. Before I

Re: os.tmpfile() -> permission denied (Win XP)

2007-02-10 Thread Gabriel Genellina
En Sun, 11 Feb 2007 01:57:52 -0300, John Machin <[EMAIL PROTECTED]> escribió: > | >>> os.tmpfile() > Traceback (most recent call last): > File "", line 1, in > OSError: [Errno 13] Permission denied > > 1. Before I start checking what permissions who has to do what to > which, what directory i

Re: Can anyone explain a part of a telnet client code to me..

2007-02-10 Thread Gabriel Genellina
En Sun, 11 Feb 2007 00:48:57 -0300, Jia Lu <[EMAIL PROTECTED]> escribió: > I have a program that can telnet to a host. > But I cannot understand from [for c in data] part, can anyone explain > it to me? data is the received string. The for statement is used to iterate over a sequence; a string

Re: pygame and python 2.5

2007-02-10 Thread skip
>> However, the difference between the open-source people and Microsoft >> is the the open-source people aren't being paid by you for the use of >> their product, so they're not obligated in any way to help you. mensanator> This argument has become tiresome. The Python community

os.tmpfile() -> permission denied (Win XP)

2007-02-10 Thread John Machin
Hi, Here's what's happening: Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. | >>> import os | >>> os.tmpfile() Traceback (most recent call last): File "", line 1, in OSError: [Errno 13] P

favourite editor

2007-02-10 Thread azrael
Since i'm new on this forum, and first time meeting a python comunity, i wanted to ask you for your python editors. Im looking for some good python editor, with integrated run function, without having to set it up manualy like komodo. I found the pyscripter, and it has all i need, but it's unsatbl

Re: pygame and python 2.5

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 4:07?pm, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > > > On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > > Hopefully in the future, some of those convoluted steps will be fixed, > > > but that requires som

Re: Best Free and Open Source Python IDE

2007-02-10 Thread Kirk Sluder
In article <[EMAIL PROTECTED]>, Stef Mientki <[EMAIL PROTECTED]> wrote: > Which brings me to some other questions on waste: > - isn't it a pitty so many people are involved in writing another editor / > IDE ? I don't know about that. Most of the new editor development appears to involve one o

Re: unique elements from list of lists

2007-02-10 Thread azrael
no heart feelings. i was just throwing ideas. no time to testing it. On Feb 9, 3:55 pm, "Tekkaman" <[EMAIL PROTECTED]> wrote: > Thanks everybody!Azrael: your suggestions involve python-level membership > testing and > dummy list construction just like my uniter3 example, so I'm afraid > they wou

Re: Regular Expressions

2007-02-10 Thread Geoff Hill
Thanks. O'Reilly is the way I learned Python, and I'm suprised that I didn't think of a book by them earlier. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions

2007-02-10 Thread Shawn Milo
On 10 Feb 2007 18:58:51 -0800, gregarican <[EMAIL PROTECTED]> wrote: > On Feb 10, 6:26 pm, "Geoff Hill" <[EMAIL PROTECTED]> wrote: > > What's the way to go about learning Python's regular expressions? I feel > > like such an idiot - being so strong in a programming language but knowing > > nothing

Can anyone explain a part of a telnet client code to me..

2007-02-10 Thread Jia Lu
Hello I have a program that can telnet to a host. But I cannot understand from [for c in data] part, can anyone explain it to me? Thank you very much. [CODE] import sys, posix, time from socket import * BUFSIZE = 1024 # Telnet protocol characters IAC = chr(255) # Interpret as command DONT

Re: Regular Expressions

2007-02-10 Thread gregarican
On Feb 10, 6:26 pm, "Geoff Hill" <[EMAIL PROTECTED]> wrote: > What's the way to go about learning Python's regular expressions? I feel > like such an idiot - being so strong in a programming language but knowing > nothing about RE. I highly recommend reading the book "Mastering Regular Expressions

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread W. Watson
Gabriel Genellina wrote: > En Sat, 10 Feb 2007 21:20:43 -0300, W. Watson <[EMAIL PROTECTED]> > escribió: > >> Gabriel Genellina wrote: >>> En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson <[EMAIL PROTECTED]> >>> escribió: >>> I was able to download the 2.5 tutorial, but think I may need the 2.4

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 21:20:43 -0300, W. Watson <[EMAIL PROTECTED]> escribió: > Gabriel Genellina wrote: >> En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson <[EMAIL PROTECTED]> >> escribió: >> >>> I was able to download the 2.5 tutorial, but think I may need the 2.4 >>> tutorial (Guido van Rossum) if

Re: Regular Expressions

2007-02-10 Thread Paul Rubin
"John Machin" <[EMAIL PROTECTED]> writes: > > What's the way to go about learning Python's regular expressions? I feel > > like such an idiot - being so strong in a programming language but knowing > > nothing about RE. > > I suggest that you work through the re HOWTO > http://www.amk.ca/python/ho

Re: Hacking in python

2007-02-10 Thread Geoff Hill
The word "hack" can be known as a "smart/quick fix" to a problem. -- http://mail.python.org/mailman/listinfo/python-list

Re: Regular Expressions

2007-02-10 Thread John Machin
On Feb 11, 10:26 am, "Geoff Hill" <[EMAIL PROTECTED]> wrote: > What's the way to go about learning Python's regular expressions? I feel > like such an idiot - being so strong in a programming language but knowing > nothing about RE. I suggest that you work through the re HOWTO http://www.amk.ca/py

Re: Regular Expressions

2007-02-10 Thread dimitri pater
Hi, a good start: http://diveintopython.org/regular_expressions/index.html On 10 Feb 2007 15:30:04 -0800, Paul Rubin <"http://phr.cx"@nospam.invalid> wrote: "Geoff Hill" <[EMAIL PROTECTED]> writes: > What's the way to go about learning Python's regular expressions? I feel > like such an idiot -

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread W. Watson
Gabriel Genellina wrote: > En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson <[EMAIL PROTECTED]> > escribió: > >> I was able to download the 2.5 tutorial, but think I may need the 2.4 >> tutorial (Guido van Rossum) if it exists. Anyone know where to find it? > > Go to http://docs.python.org/ and fol

Re: Need a cross-platform way to execute binary

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 08:48:31 -0300, techtonik <[EMAIL PROTECTED]> escribió: > On Feb 10, 12:03 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> >> > Here "executable" means file that >> > could be be launched by system() (if there are any other ways - I'd be >> > happy to know them) This is a very

Re: HTML Parsing

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 20:07:43 -0300, mtuller <[EMAIL PROTECTED]> escribió: > > > LETTER > > 33,699 > > 1.0 > > > > I want to extract the 33,699 (which is dynamic) and set the value to a > variable so that I can insert it into a database. I have tried parsing > [...] > I have also tried Beau

Re: Something like the getattr() trick.

2007-02-10 Thread Gabriel Genellina
On 2/10/07, Ayaz Ahmed Khan <[EMAIL PROTECTED]> wrote: >> class Vuln: >> >> class VulnInfo(Vuln): >> >> class VulnDiscuss(Vuln): >> >> def main(url): >> vuln_class = ['Info', 'Discuss'] >> vuln = Vuln(url) >> vuln._parse() >> for link in vuln.get_link(): >>

Re: Question about strftime

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 17:29:52 -0300, <[EMAIL PROTECTED]> escribió: > I have question about strftime. I am trying to print the current time > in this format: > > date = strftime("%Y%m%d_%H%M%S", gmtime()) > print date > > I run the script at 2:18 pm, but I get this: 20070210_201837 > > Can you plea

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.4/site-packages/wx-2.8-gtk2-ansi/ >>> >>> hg >> >> A

Re: Regular Expressions

2007-02-10 Thread Paul Rubin
"Geoff Hill" <[EMAIL PROTECTED]> writes: > What's the way to go about learning Python's regular expressions? I feel > like such an idiot - being so strong in a programming language but knowing > nothing about RE. Read the documentation? -- http://mail.python.org/mailman/listinfo/python-list

Regular Expressions

2007-02-10 Thread Geoff Hill
What's the way to go about learning Python's regular expressions? I feel like such an idiot - being so strong in a programming language but knowing nothing about RE. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python 2.4 pdf Tutorial--Available

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 16:45:08 -0300, W. Watson <[EMAIL PROTECTED]> escribió: > I was able to download the 2.5 tutorial, but think I may need the 2.4 > tutorial (Guido van Rossum) if it exists. Anyone know where to find it? Go to http://docs.python.org/ and follow the link "Locate previous vers

Re: Best Free and Open Source Python IDE

2007-02-10 Thread Geoff Hill
If you can take some time and master Vim, you'll be set for typing out any programming language for the rest of your life. I hear Emacs is good too, and the GNU project is great, so you could try that as well. It's supposed to be more geared towards programming -- http://mail.python.org/mail

HTML Parsing

2007-02-10 Thread mtuller
Alright. I have tried everything I can find, but am not getting anywhere. I have a web page that has data like this: LETTER 33,699 1.0 What is show is only a small section. I want to extract the 33,699 (which is dynamic) and set the value to a variable so that I can insert it into a databa

Parsing HTML

2007-02-10 Thread mtuller
Alright. I have tried everything I can find, but am not getting anywhere. I have a web page that has data like this: LETTER 33,699 1.0 What is show is only a small section. I want to extract the 33,699 (which is dynamic) and set the value to a variable so that I can insert it into a databa

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/ >> >> hg > > Ah, now I see. But I hav

Re: pygame and python 2.5

2007-02-10 Thread Ben Sizer
On Feb 10, 8:42 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Hendrik van Rooyen wrote: > > <[EMAIL PROTECTED]> wrote: > > "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > >> Ben> Python extensions written in C require recompilation for each new > >> Ben> version of Python, due to Python limitati

Re: Something like the getattr() trick.

2007-02-10 Thread Calvin Spealman
This is a really common question. What you really need here is to lookup some value (one of the two classes) by a key (the names of the classes). Does that sound like something familiar? You seem to need a dictionary, where you think you want lookup some global objects by name. Alternatively, if y

Re: Hacking in python

2007-02-10 Thread James Stroud
Calvin Spealman wrote: > http://en.wikipedia.org/wiki/Hacker_%28disambiguation%29 > > Educate yourself on what hacking actually is. We're all hackers, > because it just means we get the most out of code, enjoy pushing our > technology to the limit, and generally love programming. The term has > be

Re: pygame and python 2.5

2007-02-10 Thread Ben Sizer
On Feb 10, 6:31 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > On Feb 9, 11:39?am, "Ben Sizer" <[EMAIL PROTECTED]> wrote: > > > Hopefully in the future, some of those convoluted steps will be fixed, > > but that requires someone putting in the effort to do so. As is often > > the case with Py

Re: wxPython libraries never detected

2007-02-10 Thread d . lidell
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/ > > hg Ah, now I see. But I have a new problem: "ls /usr/lib/python

Re: Something like the getattr() trick.

2007-02-10 Thread faulkner
On Feb 10, 3:34 pm, Ayaz Ahmed Khan <[EMAIL PROTECTED]> wrote: > I'm working with the following class heirarchy (I've snipped out the code > from the classes): > > class Vuln: > def __init__(self, url): > pass > > def _parse(self): > pass > >

Re: A little more advanced for loop

2007-02-10 Thread Aahz
In article <[EMAIL PROTECTED]>, Larry Bates <[EMAIL PROTECTED]> wrote: > >Note: if lists are long take a look at itertools izip. zip creates >a list of lists which could take lots of memory/time if they are VERY >large. itertools izip iterates over them in place. That's half-true -- while izip

Re: Question about strftime

2007-02-10 Thread Paul Rubin
[EMAIL PROTECTED] writes: > date = strftime("%Y%m%d_%H%M%S", gmtime()) > print date > > I run the script at 2:18 pm, but I get this: 20070210_201837 > Can you please tell me why I get '20'? instead of '14' (which is 2:00 > pm)? Wrong time zone? Maybe you want localtime() instead of gmtime(). --

Something like the getattr() trick.

2007-02-10 Thread Ayaz Ahmed Khan
I'm working with the following class heirarchy (I've snipped out the code from the classes): class Vuln: def __init__(self, url): pass def _parse(self): pass def get_link(self): pass class VulnInfo(Vuln): pa

Question about strftime

2007-02-10 Thread silverburgh . meryl
Hi, I have question about strftime. I am trying to print the current time in this format: date = strftime("%Y%m%d_%H%M%S", gmtime()) print date I run the script at 2:18 pm, but I get this: 20070210_201837 Can you please tell me why I get '20'? instead of '14' (which is 2:00 pm)? Thank you. -

AntiVirus @ AV MAILGATE BTC-NET scan results

2007-02-10 Thread AntiVirus
Tozi e-mail vi e izpraten ot AV MAILGATE BTC-NET za da vi suobshti che e-mail izpraten ot [EMAIL PROTECTED] do python-list@python.org e zarazen s virus. This e-mail is generated by the AV MAILGATE BTC-NET to warn you that the e-mail sent by [EMAIL PROTECTED] to python-list@python.org is infe

Re: wxPython libraries never detected

2007-02-10 Thread hg
[EMAIL PROTECTED] wrote: > Hi, I recently started coding with Python and I've been trying for the > past hour or so to determine why, every time I "import wx" (or compile > another piece of code that imports wx), Python can never find the > libraries. > > I'm running Ubuntu Edgy 6.10, and, as per

Python 2.4 pdf Tutorial--Available

2007-02-10 Thread W. Watson
I was able to download the 2.5 tutorial, but think I may need the 2.4 tutorial (Guido van Rossum) if it exists. Anyone know where to find it? Wayne T. Watson (Watson Adventures, Prop., Nevada City, CA) (121.015 Deg. W, 39.262 Deg. N) GMT-8 hr std. time) Obz

Re: pycallgraph 0.2.0

2007-02-10 Thread Gerald Kaszuba
On Feb 11, 12:28 am, [EMAIL PROTECTED] wrote: > Looks nice. Before you get too far... Is there any chance that you can > support ASCII output mode (obviously not laid out in two dimensions, just > using indentation) so the GraphViz requirement can become optional? > GraphViz has so many dependenci

Problems - using widgets.CheckboxTable - I would like examples...

2007-02-10 Thread Bruno Nascimento
oi I'm trying to use the checkboxtable and I'm having serios problems. I would like some idea or example. Somebory could help me? Any ideas Thanks Bruno Nascimento -- http://mail.python.org/mailman/listinfo/python-list

Re: pycallgraph 0.2.0

2007-02-10 Thread Gerald Kaszuba
On Feb 10, 11:14 pm, Stef Mientki <[EMAIL PROTECTED]> wrote: > My first test was terrible: a file of 800kB was created, > Trying to view it, resulted in the following: > - Paint Shop Pro told me it was not a valid PNG file, > - Mozilla crashed after 5 minutes, > - GIMP gave me a preview after half

Re: wxPython libraries never detected

2007-02-10 Thread Paul Hummer
[EMAIL PROTECTED] wrote: > Hi, I recently started coding with Python and I've been trying for the > past hour or so to determine why, every time I "import wx" (or compile > another piece of code that imports wx), Python can never find the > libraries. > > I'm running Ubuntu Edgy 6.10, and, as per

Re: What does "del" actually do?

2007-02-10 Thread Steve Holden
Calvin Spealman wrote [top-posting, which I have corrected]: > On 2/10/07, John Nagle <[EMAIL PROTECTED]> wrote: >> The Python "reference manual" says, for "del", "Rather that spelling it >> out >> in full details, here are some hints." That's not too helpful. >> >> In particular, when "d

Re: Hacking in python

2007-02-10 Thread Shawn Milo
On 2/10/07, Tina I <[EMAIL PROTECTED]> wrote: > zefciu wrote: > > enes naci wrote: > >> i would like to know about hacking in python too whether its illegal or > >> not is not the point and anyway it doesn't mean i'm gong to use it. > >> > > > > If you mean hacking as modyfying the code of interpre

Re: Hacking in python

2007-02-10 Thread Tina I
zefciu wrote: > enes naci wrote: >> i would like to know about hacking in python too whether its illegal or >> not is not the point and anyway it doesn't mean i'm gong to use it. >> > > If you mean hacking as modyfying the code of interpreter of libraries - > it is perfectly legal, as Python is Op

How to Speed Up Internet Searches??

2007-02-10 Thread studiescircle
How to Speed Up Internet Searches?? When you go to a web site, the first thing that happens is that. and for networking tips see at http://www.studyandjobs.com/network_tip.html or http://www.studyandjobs.com/IT_study.htm thanx -- http://mail.python.org/mailman/listinfo/python-list

Re: What does "del" actually do?

2007-02-10 Thread Calvin Spealman
del simply removes the name in the current scope. if that happens to be the last non-cyclic reference to the object it was bound to, then it will remove the objec to, but thats a seperate matter. if you remove the class and there are instances out there, they can only exist if there are some other

What does "del" actually do?

2007-02-10 Thread John Nagle
The Python "reference manual" says, for "del", "Rather that spelling it out in full details, here are some hints." That's not too helpful. In particular, when "del" is applied to a class object, what happens? Are all the instance attributes deleted from the object? Is behavior the same

Re: Hacking in python

2007-02-10 Thread Shawn Milo
On 2/10/07, hg <[EMAIL PROTECTED]> wrote: > Calvin Spealman wrote: > > > http://en.wikipedia.org/wiki/Hacker_%28disambiguation%29 > > > > Educate yourself on what hacking actually is. We're all hackers, > > because it just means we get the most out of code, enjoy pushing our > > technology to the l

Re: Hacking in python

2007-02-10 Thread hg
Calvin Spealman wrote: > http://en.wikipedia.org/wiki/Hacker_%28disambiguation%29 > > Educate yourself on what hacking actually is. We're all hackers, > because it just means we get the most out of code, enjoy pushing our > technology to the limit, and generally love programming. The term has > b

Re: Maximum TCP Server Connections

2007-02-10 Thread fumanchu
On Feb 10, 4:52 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Sorry this question isn't strictly Python-related. Does any one know how > many simultaneous TCP connections it's practical to expect a TCP-based > server application to support (on the OS of your choice)? I'm looking > for the restricti

pyTTS question ...

2007-02-10 Thread Analog Kid
hi all: i need to know how other voices besides MSMary, MSSam and MSMike can be installed and used along with pyTTS. i tried downloading voices (PeterUK to be precise) but looks like it has not been registered, since pyTTS doesn't recognize it. Do I have to manually register the voice in Windows?

Re: Hacking in python

2007-02-10 Thread zefciu
enes naci wrote: > > i would like to know about hacking in python too whether its illegal or > not is not the point and anyway it doesn't mean i'm gong to use it. > If you mean hacking as modyfying the code of interpreter of libraries - it is perfectly legal, as Python is Open Source. If you me

Re: Glob returning an empty list when passed a variable

2007-02-10 Thread MRAB
On Feb 10, 8:32 am, Steve Holden <[EMAIL PROTECTED]> wrote: > Steven D'Aprano wrote: > > On Fri, 09 Feb 2007 14:15:51 +, Steve Holden wrote: > > >> area_name_string = '*% s*' % (Area_name) > > >> Interesting, I never realised until now that you can have spaces between > >> the percent sign and

wxPython libraries never detected

2007-02-10 Thread d . lidell
Hi, I recently started coding with Python and I've been trying for the past hour or so to determine why, every time I "import wx" (or compile another piece of code that imports wx), Python can never find the libraries. I'm running Ubuntu Edgy 6.10, and, as per http://www.wxpython.org/download.php

Re: LoadLibrary(pythondll) failed

2007-02-10 Thread Thomas Heller
acncgc schrieb: > I get an following error as I turn on my laptop; > > LoadLibrary(pythondll) failed > > After this error internet browser ( IE or mozilla) doesn't connect. I > can't browse any site. > > Any idea?? > This looks like a message from a broken py2exe'd application. You have to fi

Re: Unicode is confusing me

2007-02-10 Thread Dick Moores
I'm the OP, and answering my own question. I received excellent advice from the developer of Ulipad, Limodou. On 2/10/07, Dick Moores <[EMAIL PROTECTED]> wrote: > > a = [u'\u91cd', u'\u8981', u'\u6027'] > for x in range(3): > print a[x] > =

Re: Hacking in python

2007-02-10 Thread Paul Hummer
enes naci wrote: > i would like to know about hacking in python too whether its illegal > or not is not the point and anyway it doesn't mean i'm gong to use it. > > Does your mom know you're using her computer to take down the government? I'm gonna tell on you! -- http://mail.python.org/mail

Re: Please recommend library for multithread download

2007-02-10 Thread Michele Simionato
On Feb 10, 4:26 pm, "David Xiao" <[EMAIL PROTECTED]> wrote: > Hello there, > > I am looking for library (small better) that can fetch URL and > download to local file in multi-threads. > > urllib2 is not thread safe as I tested. What will be? You may want to look at this recent thread: http://gro

Re: [off-topic] Maximum TCP Server Connections

2007-02-10 Thread Grant Edwards
On 2007-02-10, Steve Holden <[EMAIL PROTECTED]> wrote: > Sorry this question isn't strictly Python-related. Does any one know how > many simultaneous TCP connections it's practical to expect a TCP-based > server application to support (on the OS of your choice)? I'm looking > for the restrictio

Please recommend library for multithread download

2007-02-10 Thread David Xiao
Hello there, I am looking for library (small better) that can fetch URL and download to local file in multi-threads. urllib2 is not thread safe as I tested. What will be? -- http://mail.python.org/mailman/listinfo/python-list

Re: Hacking in python

2007-02-10 Thread Calvin Spealman
http://en.wikipedia.org/wiki/Hacker_%28disambiguation%29 Educate yourself on what hacking actually is. We're all hackers, because it just means we get the most out of code, enjoy pushing our technology to the limit, and generally love programming. The term has been abused by the media and you don'

Re: ANN: Cheesecake Service launched and Cheesecake 0.6.1 released

2007-02-10 Thread John Machin
On 10/02/2007 10:34 AM, Grig Gheorghiu wrote: > Thanks to the hard work of Michal Kwiatkowski, I'm proud to announce > the launch of the Cheesecake Service ( pypi/>) and the release of Cheesecake 0.6.1 (). It appears to be

Hacking in python

2007-02-10 Thread enes naci
i would like to know about hacking in python too whether its illegal or not is not the point and anyway it doesn't mean i'm gong to use it. -- http://mail.python.org/mailman/listinfo/python-list

Re: Can't import Stackless in Pythonwin

2007-02-10 Thread archaegeo
On Feb 9, 2:06 pm, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Fri, 09 Feb 2007 13:50:56 -0300, <[EMAIL PROTECTED]> escribió: > > > I am getting started in Python, and I have looked on both the > > stackless page and python.org and cannot find the answer to what I > > think is a simple prob

Re: How to find all the same words in a text?

2007-02-10 Thread Thorsten Kampe
* Johny (10 Feb 2007 05:29:23 -0800) > I need to find all the same words in a text . > What would be the best idea to do that? > I used string.find but it does not work properly for the words. > Let suppose I want to find a number 324 in the text > > '45 324 45324' > > there is only one occurr

Re: How to find all the same words in a text?

2007-02-10 Thread Marco Giusti
On Sat, Feb 10, 2007 at 06:00:05AM -0800, Johny wrote: >On Feb 10, 2:42 pm, Marco Giusti <[EMAIL PROTECTED]> wrote: >> On Sat, Feb 10, 2007 at 05:29:23AM -0800, Johny wrote: >> >I need to find all the same words in a text . >> >What would be the best idea to do that? >> >I used string.find but it

Re: How to find all the same words in a text?

2007-02-10 Thread ZeD
Johny wrote: >> >Let suppose I want to find a number 324 in the text >> >> >'45 324 45324' >> >> >there is only one occurrence of 324 word but string.find() finds 2 >> >occurrences ( in 45324 too) >> >> >>> '45 324 45324'.split().count('324') >> 1 >> >>> >> >> ciao > Marco, > Th

Re: How to find all the same words in a text?

2007-02-10 Thread Johny
On Feb 10, 2:42 pm, Marco Giusti <[EMAIL PROTECTED]> wrote: > On Sat, Feb 10, 2007 at 05:29:23AM -0800, Johny wrote: > >I need to find all the same words in a text . > >What would be the best idea to do that? > >I used string.find but it does not work properly for the words. > >Let suppose I want

Re: Glob returning an empty list when passed a variable

2007-02-10 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > With some number: > > In [2]: "% 3s" % 'a' > Out[2]: ' a' The space still doesn't have any effect here: In [66]: "%3s" % 'a' Out[66]: ' a' Ciao, Marc 'BlackJack' Rintsch -- http://mail.python.org/mailman/listinfo/python-list

Re: huge amounts of pure Python code broken by Python 2.5?

2007-02-10 Thread Brian Blais
Klaas wrote: > I have converted our 100 kloc from 2.4 to 2.5. It was relatively > painless, and 2.5 has features we couldn't live without. > Just out of curiosity, what features in 2.5 can you not live without? I just migrated to 2.5, but haven't had much time to check out the cool new features

Re: How to find all the same words in a text?

2007-02-10 Thread Marco Giusti
On Sat, Feb 10, 2007 at 05:29:23AM -0800, Johny wrote: >I need to find all the same words in a text . >What would be the best idea to do that? >I used string.find but it does not work properly for the words. >Let suppose I want to find a number 324 in the text > >'45 324 45324' > >there is only

Re: A little more advanced for loop

2007-02-10 Thread Duncan Booth
Larry Bates <[EMAIL PROTECTED]> wrote: > Note: if lists are long take a look at itertools izip. zip creates > a list of lists which could take lots of memory/time if they are VERY > large. itertools izip iterates over them in place. That's interesting. I was going to quibble with the assertion

Re: pygame and python 2.5: switch to linux?

2007-02-10 Thread skip
Siggi> ... I conclude now that I will be better off to drop Windows and Siggi> install Linux on my next PC, to be able to reap the full benefits Siggi> of Python. Darn tootin'... (*) Skip (*) http://en.wikipedia.org/wiki/You're_Darn_Tootin' -- http://mail.python.org/mailman/listin

How to find all the same words in a text?

2007-02-10 Thread Johny
I need to find all the same words in a text . What would be the best idea to do that? I used string.find but it does not work properly for the words. Let suppose I want to find a number 324 in the text '45 324 45324' there is only one occurrence of 324 word but string.find() finds 2 occurre

Re: Glob returning an empty list when passed a variable

2007-02-10 Thread [EMAIL PROTECTED]
On Feb 10, 3:32 pm, Steve Holden <[EMAIL PROTECTED]> wrote: > > >>> "% s" % 'banana' > 'banana' > >>> "% s" % 1 > '1' > >>> "% s" % -1 > '-1' > >>> > With some number: In [2]: "% 3s" % 'a' Out[2]: ' a' Hieu -- http://mail.python.org/mailman/listinfo/python-list

  1   2   >