ANN: Cheesecake Service launched and Cheesecake 0.6.1 released

2007-02-10 Thread Grig Gheorghiu
Thanks to the hard work of Michal Kwiatkowski, I'm proud to announce the launch of the Cheesecake Service (http://pypi.pycheesecake.org/ pypi/) and the release of Cheesecake 0.6.1 (http://python.org/pypi/ Cheesecake/0.6.1). Details here:

FlightFeather Social Networking Platform 0.3.3

2007-02-10 Thread George Belotsky
FlightFeather's goal is social networking for everyone. This means that *anyone* should have a chance to run a *popular* social networking site -- on minimal hardware, and without wasting bandwidth. Version 0.3.3 is the current development release. It modifies the way the FlightFeather server

NYC Python User Group Meeting

2007-02-10 Thread John Clark
Greetings! The next New York City Python Users Group meeting is this Tuesday, Feb. 13th, 6:30pm at at the Millennium Partners office at 666 Fifth Avenue (53rd St. and 5th Ave.) on the 8th Floor. We welcome all those in the NYC area who are interested in Python to attend. However, we need a list

Re: interacting with shell - another newbie question

2007-02-10 Thread Tina I
James wrote: Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it prompts me with userid, then

Re: interacting with shell - another newbie question

2007-02-10 Thread James Stroud
Tina I wrote: James wrote: Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it prompts me with userid,

Re: pycallgraph 0.1.0

2007-02-10 Thread Steve Holden
Gerald Kaszuba wrote: On 2/10/07, Stef Mientki [EMAIL PROTECTED] wrote: ... but isn't __main__. non-information ? Good point -- I'll consider removing it in the next version. Does the 404 error on http://pycallgraph.slowchop.com/files/examples/mongballs-client.png indicate you are

Re: Glob returning an empty list when passed a variable

2007-02-10 Thread Steve Holden
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 th format effector. Space is one of the flags. From the docs: The

Re: interacting with shell - another newbie question

2007-02-10 Thread Steve Holden
James Stroud wrote: Tina I wrote: James wrote: Hello, I work in this annoying company where I have to autheticate myself to the company firewall every 30-50 minutes in order to access the internet. (I think it's a checkpoint fw). I have to run telnet what.ever.ip.address 259 then it

Re: pygame and python 2.5

2007-02-10 Thread Steve Holden
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. Can you propose a means to eliminate this limitation? Yes. - Instead

Re: python linux distro

2007-02-10 Thread Steve Holden
Szabolcs Nagy wrote: Now what would be interesting (and *really* crazy) would be Linux (or BSD or whatever) distro written almost entirely *in* Python, with the goal of eliminating as much bash/sh as possible. That would be fun. actually there was(is) an os whitch is written almost

Need a cross-platform way to execute binary

2007-02-10 Thread techtonik
Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take windows platform as the most relevant in this case. os.access() doesn't handle env PATHEXT and can't detect

Re: Embedding, import site, PYTHONHOME, and an old, old issue

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 03:57:05 -0300, Jim Hill [EMAIL PROTECTED] escribió: I want to do a simple embed, so I've followed the example in the Extending and Embedding documentation: In the .c file, #include Python.h int routine() { Py_Initialize(); PyRun_SimpleString(from time import

Re: Calling J from Python

2007-02-10 Thread greg
Alexander Schmolck wrote: how would you code a program that gives the following output ('skewed' sierpinski-triangle) in python? * ** * * * * ** ** * * * * * *

Re: pycallgraph 0.1.0

2007-02-10 Thread Gerald Kaszuba
http://pycallgraph.slowchop.com/files/examples/mongballs-client.png indicate you are subject to the slashdot effect? Steve, No /. effect :) I rearranged some files around because of the new version of pycallgraph. The new preview image is:

Re: Need a cross-platform way to execute binary

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 06:03:40 -0300, techtonik [EMAIL PROTECTED] escribió: Hello, everyb. Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take windows platform as the

Re: Calling J from Python

2007-02-10 Thread Nick Craig-Wood
George Sakkis [EMAIL PROTECTED] wrote: On Feb 9, 9:20 pm, [EMAIL PROTECTED] wrote: This is a bit simpler, but probably there are simpler solutions using modular arithmetic: l = [1] for _ in range(15): print ''.join( *[x] for x in l) l = [1] + [l[i+1]^l[i] for i in

Re: python linux distro

2007-02-10 Thread Szabolcs Nagy
^was(is)^may one day be, but probably not,^ From the quoted page: The project is in an early development phase and as of January 2007, no significant progress was being made due to lack of developer time.[5] well actually i managed to boot unununium in qemu so it _is_ an os but obviously

Wait for keypress

2007-02-10 Thread TheOneRedDragon
At the moment, I have a command-line application -- http://mail.python.org/mailman/listinfo/python-list

Wait for keypress

2007-02-10 Thread TheOneRedDragon
At the moment, I have a command-line application which prints out quite a lot of text to the screen. However, when Windows users run it, the prompt disappears before they can read any of it. Is there any simple way to make a script wait for a keypress before completing? Thanks for any help. --

Re: Wait for keypress

2007-02-10 Thread TheOneRedDragon
Sorry, accidental key presses before I finished... -- http://mail.python.org/mailman/listinfo/python-list

Re: Need a cross-platform way to execute binary

2007-02-10 Thread techtonik
On Feb 10, 12:03 pm, Gabriel Genellina [EMAIL PROTECTED] wrote: Does anybody know simple cross-platform method of probing if executable binary is available and launching it. Problem no.1: test if executable file is available I'll take windows platform as the most relevant in this case.

Re: Wait for keypress

2007-02-10 Thread Steve Holden
[EMAIL PROTECTED] wrote: At the moment, I have a command-line application which prints out quite a lot of text to the screen. However, when Windows users run it, the prompt disappears before they can read any of it. Is there any simple way to make a script wait for a keypress before

Unicode is confusing me

2007-02-10 Thread Dick Moores
As per p. 188 of Python for Dummies, I've created a sitecustomize.py in my site-packages directory: # sitecustomize.py (see p.188 of Python for Dummies) import sys sys.setdefaultencoding('utf-8') === With that in place, at the

Re: pycallgraph 0.2.0

2007-02-10 Thread Stef Mientki
Gerald Kaszuba wrote: Hi I just released a new version of pycallgraph. It has many improvements over 0.1.0. Here is an example of a call graph made in pycallgraph 0.2.0: http://pycallgraph.slowchop.com/pycallgraph/wiki/RegExpExample There are more examples on the web site:

Distributing Python Applications

2007-02-10 Thread Finger . Octopus
Hello, It has been such a painful thing for me. As I made a program to encrypt files, now I want to distribute that program over other computers. I created .EXE file with py2exe but the dist folder makes around 2 mb and it restricts for the python DLL to be within the same folder. Is there any

Re: Newbie Question

2007-02-10 Thread Bjoern Schliessmann
John wrote: Visual Basic is also good. For what -- headache? 8) Regards, Björn -- BOFH excuse #62: need to wrap system in aluminum foil to fix problem -- http://mail.python.org/mailman/listinfo/python-list

Re: Create a cookie with cookielib

2007-02-10 Thread John J. Lee
I'm going to post this if it kills me (this was my first response in this thread, my normal newsfeed has gone bad so can't post reliably...) Alessandro Fachin [EMAIL PROTECTED] writes: Hi, i am trying to forge a new cookie by own with cookielib. But i don't still have success. This a simply

Re: multithreading concept

2007-02-10 Thread Bjoern Schliessmann
Carl J. Van Arsdall wrote: Not necessarily, if he's on a full duplex ethernet connection, then there is some parallelity he can take advantage of. He has upstream and downstream. Partly agreed. There is one bus to the network device, and CPU should be very much faster than the network device

Re: urllib2 hangs forever where there is no network interface

2007-02-10 Thread John J. Lee
[EMAIL PROTECTED] (John J. Lee) writes: (I'm having news trouble, sorry if anybody sees a similar reply three times...) dumbkiwi [EMAIL PROTECTED] writes: On Feb 2, 5:02 am, [EMAIL PROTECTED] (John J. Lee) wrote: dumbkiwi [EMAIL PROTECTED] writes: [...] If there is no network

Re: Distributing Python Applications

2007-02-10 Thread James Stroud
[EMAIL PROTECTED] wrote: Hello, It has been such a painful thing for me. As I made a program to encrypt files, now I want to distribute that program over other computers. I created .EXE file with py2exe but the dist folder makes around 2 mb and it restricts for the python DLL to be within

Re: Distributing Python Applications

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 09:21:29 -0300, [EMAIL PROTECTED] escribió: It has been such a painful thing for me. Ouch... why was that? Programming in Python, or using py2exe? As I made a program to encrypt files, now I want to distribute that program over other computers. I created .EXE file with

[off-topic] Maximum TCP Server Connections

2007-02-10 Thread Steve Holden
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 restrictions imposed by the operating environment rather than the

Re: [off-topic] Maximum TCP Server Connections

2007-02-10 Thread Paul Rubin
Steve Holden [EMAIL PROTECTED] writes: 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 restrictions imposed by the

Re: pygame and python 2.5

2007-02-10 Thread skip
Python used to work that way. You'd then silently get errors if the API changed between version A and version B and you neglected to recompile the extensions you compiled against version A. bearophile Can't the compiled module have one or more test functions bearophile

Re: pycallgraph 0.2.0

2007-02-10 Thread skip
Gerald I just released a new version of pycallgraph. It has many Gerald improvements over 0.1.0. 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

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

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

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' --

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 that

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 one

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: 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: 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 to find a

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, Thank you for your help. It works

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 does not work

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 occurrence

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 problem. If I

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: 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 (http://pypi.pycheesecake.org/ pypi/) and the release of Cheesecake 0.6.1 (http://python.org/pypi/Cheesecake/0.6.1). It appears to be

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

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: [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 restrictions

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:

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! --

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: 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 find out

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

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 th format

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 mean

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: 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 restrictions

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 been

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 limit, and

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 for

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

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: 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 Open

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 interpreter of libraries

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 del is applied to a

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: 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 an

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 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 dependencies

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: 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

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

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. --

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):

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(). --

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 is

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 def

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

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 Python, and

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 been

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

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 limitations. Can you

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 have a new

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: tr td headers=col1_1 style=width:21% span class=hpPageText LETTER/span/td td headers=col2_1 style=width:13%; text-align:right span class=hpPageText 33,699/span/td td

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: tr td headers=col1_1 style=width:21% span class=hpPageText LETTER/span/td td headers=col2_1 style=width:13%; text-align:right span class=hpPageText 33,699/span/td td

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 --

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 versions

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: 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

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 Ah, now I see. But I have

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 please tell me

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(): i =

Re: HTML Parsing

2007-02-10 Thread Gabriel Genellina
En Sat, 10 Feb 2007 20:07:43 -0300, mtuller [EMAIL PROTECTED] escribió: tr td headers=col1_1 style=width:21% span class=hpPageText LETTER/span/td td headers=col2_1 style=width:13%; text-align:right span class=hpPageText 33,699/span/td td headers=col3_1 style=width:13%;

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 specific

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 follow the

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 - being so

  1   2   >