Re: explode()

2009-07-14 Thread Dave Angel



The one thing I really dislike about Python over PHP is that
Python can usually only appear in the cgi directory (unless other
arragements are made with your hosting provider or if you reconfigure
Apache on your own server if you have your own).  With PHP, I can put
them in any folder on my Web site without any problem.  

	Regards, 





		Fred 

  
You should talk to your hosting provider.  With mine, all you need do 
differently for directories other than cgi-bin is to do a chmod on the 
file to make it executable.  Have you tried that?  Is it hosted on Unix 
or Windows?


DaveA

--
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-14 Thread Jonathan Gardner
On Jul 14, 6:56 am, Fred Atkinson  wrote:
>
> Agreed, it doesn't.  But if my hosting provider won't change it, I'm
> stuck with it.  
>

Nowadays you can find hosts that allow you to run FastCGI scripts in
any language for dirt cheap. (Hostmonster for instance.) If your host
doesn't allow it, it's time to upgrade.

Any hosting service that supports Ruby on Rails supports Python
through the exact same mechanism.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-14 Thread Piet van Oostrum
> Fred Atkinson  (FA) wrote:

>FA> On Tue, 14 Jul 2009 05:41:40 GMT, Tim Harig 
>FA> wrote:

>>> On 2009-07-14, Fred Atkinson  wrote:
 The one thing I really dislike about Python over PHP is that
 Python can usually only appear in the cgi directory (unless other
 arragements are made with your hosting provider or if you reconfigure
 Apache on your own server if you have your own).  With PHP, I can put
 them in any folder on my Web site without any problem.  
>>> 
>>> That is a server configuration and has nothing to do with Python directly.

>FA> Agreed, it doesn't.  But if my hosting provider won't change it, I'm
>FA> stuck with it.  

That's a good reason to dislike your hosting provider, not a good reason
to dislike Python.
-- 
Piet van Oostrum 
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: p...@vanoostrum.org
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-14 Thread Fred Atkinson
On Mon, 13 Jul 2009 23:54:11 -0700 (PDT), alex23 
wrote:

>Fred Atkinson  wrote:
>>         I wish the Python site was as well written as the PHP site. On
>> the PHP site, I can look up a command and they show not only the docs
>> on that command but a list of all other commands associated with it.  
>
>Hey Fred,
>
>My problem is the complete opposite, I wish I could as easily
>interrogate objects in PHP about their behaviour as I can Python :)
>
>In case you're not familiar with this, you can see what methods are
>attached to an object using the intepreter via dir() and see the
>associated docstring for them via help(). Try looking at 'dir(str)'
>for a list of methods that strings recognise, then 'help(str.join)' to
>see the help on join.
>
>This is such a handy ability to have that I miss this casual
>introspection in everything else in which I'm required to develop.
>
>Hope this helps.

I appreciate the information.  I'm halfway through a course in
PHP and Python.  We are given assignments and we have to write the
assignment in both languages.  

I'll take a look at that as I work on this week's assignment
(I've only got a month to finish the course but I can probably take
some time to look at this.  

Regards, 




Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-14 Thread Fred Atkinson
On Tue, 14 Jul 2009 05:41:40 GMT, Tim Harig 
wrote:

>On 2009-07-14, Fred Atkinson  wrote:
>>  The one thing I really dislike about Python over PHP is that
>> Python can usually only appear in the cgi directory (unless other
>> arragements are made with your hosting provider or if you reconfigure
>> Apache on your own server if you have your own).  With PHP, I can put
>> them in any folder on my Web site without any problem.  
>
>That is a server configuration and has nothing to do with Python directly.

Agreed, it doesn't.  But if my hosting provider won't change it, I'm
stuck with it.  

Regards, 



 Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-14 Thread alex23
Fred Atkinson  wrote:
>         I wish the Python site was as well written as the PHP site. On
> the PHP site, I can look up a command and they show not only the docs
> on that command but a list of all other commands associated with it.  

Hey Fred,

My problem is the complete opposite, I wish I could as easily
interrogate objects in PHP about their behaviour as I can Python :)

In case you're not familiar with this, you can see what methods are
attached to an object using the intepreter via dir() and see the
associated docstring for them via help(). Try looking at 'dir(str)'
for a list of methods that strings recognise, then 'help(str.join)' to
see the help on join.

This is such a handy ability to have that I miss this casual
introspection in everything else in which I'm required to develop.

Hope this helps.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-13 Thread Tim Harig
On 2009-07-14, Fred Atkinson  wrote:
>   The one thing I really dislike about Python over PHP is that
> Python can usually only appear in the cgi directory (unless other
> arragements are made with your hosting provider or if you reconfigure
> Apache on your own server if you have your own).  With PHP, I can put
> them in any folder on my Web site without any problem.  

That is a server configuration and has nothing to do with Python directly.
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-13 Thread Fred Atkinson
On Mon, 13 Jul 2009 22:32:55 -0700, Chris Rebert 
wrote:

>On Mon, Jul 13, 2009 at 11:28 PM, Fred Atkinson wrote:
>> On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert 
>> wrote:
>>
>>>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>>>>        What is the Python equivalent of the PHP explode() function?
>>>
>>>some_string.split("separator")
>>>
>>>Cheers,
>>>Chris
>>
>>     What would the equivalent of the PHP function implode be?
>
>"separator".join(a_list_of_strings)
>
>I would recommend you read the Python manual's section on string methods:
>http://docs.python.org/library/stdtypes.html#string-methods
>
>Cheers,
>Chris

Chris, 

You always seem to be waiting when I post a question.  Do you
ever sleep?  

I wish the Python site was as well written as the PHP site. On
the PHP site, I can look up a command and they show not only the docs
on that command but a list of all other commands associated with it.  

Thanks.  Python is a whole new animal to me.  I'm taking a
course in PHP and Python online right now.  I've done PHP scripting
before though I don't claim to be a whiz on it.  But I'd barely heard
of Python before I took this course.  

The one thing I really dislike about Python over PHP is that
Python can usually only appear in the cgi directory (unless other
arragements are made with your hosting provider or if you reconfigure
Apache on your own server if you have your own).  With PHP, I can put
them in any folder on my Web site without any problem.  

Regards, 




Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-13 Thread Chris Rebert
On Mon, Jul 13, 2009 at 11:28 PM, Fred Atkinson wrote:
> On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert 
> wrote:
>
>>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>>>        What is the Python equivalent of the PHP explode() function?
>>
>>some_string.split("separator")
>>
>>Cheers,
>>Chris
>
>     What would the equivalent of the PHP function implode be?

"separator".join(a_list_of_strings)

I would recommend you read the Python manual's section on string methods:
http://docs.python.org/library/stdtypes.html#string-methods

Cheers,
Chris
-- 
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-13 Thread Fred Atkinson
On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert 
wrote:

>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>>        What is the Python equivalent of the PHP explode() function?
>
>some_string.split("separator")
>
>Cheers,
>Chris

 What would the equivalent of the PHP function implode be?  

Thanks, 




Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-11 Thread Fred Atkinson
On Sat, 11 Jul 2009 18:50:28 -0700, Chris Rebert 
wrote:

>On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>>        What is the Python equivalent of the PHP explode() function?
>
>some_string.split("separator")
>
>Cheers,
>Chris

Thanks, 



Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


Re: explode()

2009-07-11 Thread Chris Rebert
On Sat, Jul 11, 2009 at 7:41 PM, Fred Atkinson wrote:
>        What is the Python equivalent of the PHP explode() function?

some_string.split("separator")

Cheers,
Chris
-- 
http://blog.rebertia.com
-- 
http://mail.python.org/mailman/listinfo/python-list


explode()

2009-07-11 Thread Fred Atkinson
What is the Python equivalent of the PHP explode() function?  





Fred 
-- 
http://mail.python.org/mailman/listinfo/python-list


^% Britney Spears Tits Explode!!!!!

2007-05-17 Thread Goofy . throat6
http://scargo.in/ - Download britneys pics and videos for free!

-- 
http://mail.python.org/mailman/listinfo/python-list