I have 4 text files each approx 50mb.
I need to join these into one large text file.
I only need to do this very occasionally, as the problem has occurred
because of upload limitations.
Bearing in mind filesize and memory useage, would I be better reading
every line in every file and writing eac
On 22 Aug, 00:05, Ian Clark <[EMAIL PROTECTED]> wrote:
> Hyuga wrote:
> > On Aug 19, 4:29 pm,mosscliffe<[EMAIL PROTECTED]> wrote:
> >> The source file is in an area which python can see, but not the
> >> browser. I am trying to make a link in a browse
On 19 Aug, 13:54, samwyse <[EMAIL PROTECTED]> wrote:
> mosscliffewrote:
> > I am trying to create a back link, equivalent to the browser back
> > action and I can not use java script. The target user does not allow
> > java script.
>
> > I am using HTTP_REFERER.
>
> > I need to add the original Que
On 19 Aug, 13:16, samwyse <[EMAIL PROTECTED]> wrote:
> mosscliffewrote:
> > I am trying to create a link to a file, which I can then use in an
> > HTML page.
>
> > The system is Linux on a hosted web service, running python 2.3.
> > Other than that I have no knowledge of the system.
>
> > The link
I am trying to create a back link, equivalent to the browser back
action and I can not use java script. The target user does not allow
java script.
I am using HTTP_REFERER.
I need to add the original Query String values.
Is there a way to get the QueryString element other than by using
cgi.Field
On 18 Aug, 23:49, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> mosscliffe schrieb:
>
>
>
> > I am trying to create a link to a file, which I can then use in an
> > HTML page.
>
> > The system is Linux on a hosted web service, running python 2.
I am trying to create a link to a file, which I can then use in an
HTML page.
The system is Linux on a hosted web service, running python 2.3.
Other than that I have no knowledge of the system.
The link is created OK, but when I try to use it as filename for the
IMG TAG, it does not get displayed
On 8 Jun, 16:39, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote:
> In <[EMAIL PROTECTED]>, mosscliffe
> wrote:
>
> > I have tried the following, for a one dimensional list and it works,
> > but I can not get my head around this lambda. How w
On 8 Jun, 14:18, "Simon Brunning" <[EMAIL PROTECTED]> wrote:
> On 6/7/07, Joe <[EMAIL PROTECTED]> wrote:
>
>
>
> > I have a list of lists that I would like to sort utilizing a certain index
> > of the nested list. I am able to successfully use:
>
> > Import operator
> > list = [["Apple", 1], ["air
On 2 Jun, 11:50, David Wahler <[EMAIL PROTECTED]> wrote:
> On Jun 2, 9:32 am, mosscliffe <[EMAIL PROTECTED]> wrote:
>
> > David,
>
> > Thanks for your help.
>
> > I spent all last night trying to get it to work, but I can not work
> > out how to f
On 2 Jun, 01:13, David Wahler <[EMAIL PROTECTED]> wrote:
> On Jun 1, 3:49 pm, mosscliffe <[EMAIL PROTECTED]> wrote:> I have the
> following code, which I thought would create a cookie, if
> > one did not exist and on the html form being sent to the server, i
On 1 Jun, 15:49, mosscliffe <[EMAIL PROTECTED]> wrote:
> I have the following code, which I thought would create a cookie, if
> one did not exist and on the html form being sent to the server, it
> would be availabe for interrogation, when the script is run a second
> time.
I have the following code, which I thought would create a cookie, if
one did not exist and on the html form being sent to the server, it
would be availabe for interrogation, when the script is run a second
time.
It seems to me there is something basic missing in that I should need
to tell the serv
On May 31, 5:19 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> mosscliffe wrote:
> > Excellent - thanks for all your help. I now have a form created by a
> > python script executing an HTML page, doing everything I need, except
> > for Session Data (probably use hidde
g of
field values.
I accept I am quite niave about FORM/HTML logic.
Richard
On 31 May, 15:30, Bruno Desthuilliers wrote:
> mosscliffe a écrit :
>
>
>
> > I am struggling to find a python example of the scenario - I have.
>
> > I have a python script, which generates a page
I am struggling to find a python example of the scenario - I have.
I have a python script, which generates a page with a search button
(actually an input field).
The data from the above submissions is interrogated and the same
script produces a new search option and the a page of results from the
t;[EMAIL PROTECTED]>
wrote:
> mosscliffe schreef:
>
> > for x,y in map("N/A", lista, listb): ## Fails - Can not call a
> > 'str'
> > print "MAP:", x, "<>", y
>
> > def fillwith(fillchars):
> > return fi
I thought I had the difference between 'zip' and 'map' sorted but when
I try to fill missing entries with something other than 'None'. I do
not seem to be able to get it to work - any pointers appreciated.
Richard
lista = ['a1', 'a2']
listb = ['b10', 'b11','b12' ,'b13']
for x,y in zip(lista, lis
On 21 May, 15:02, [EMAIL PROTECTED] wrote:
> mosscliffe:
>
> > if key in xrange (60,69) or key == 3:
>
> I keep seeing again and again code like this, mostly from people not
> much expert of Python, but the PEP 260 shows the fast in was removed,
> so it's O(n). Maybe r
On 21 May, 14:13, Larry Bates <[EMAIL PROTECTED]> wrote:
> mosscliffe wrote:
> > I keep seeing examples of statements where it seems conditionals are
> > appended to a for statement, but I do not understand them.
>
> > I would like to use one in the following scenario
I keep seeing examples of statements where it seems conditionals are
appended to a for statement, but I do not understand them.
I would like to use one in the following scenario.
I have a dictionary of
mydict = { 1: 500, 2:700, 3: 800, 60: 456, 62: 543, 58: 6789}
for key in mydict:
if key
I have been playing with GLOB and OS.PATH and it all works, but is
there a better way of getting GLOB to recognise, multiple patterns at
one call (ONE).
Also is it possible to join lists, without the horrid concatenation
code I have (TWO).
I tried list.append(glob.glob(pattern)) but it error'd
---
Thank you very much for all for your replies.
I am now much wiser to using regex and CSV.
As I am quite a newbie, I have had my 'class' education improved as
well.
Many thanks again
Richard
On May 16, 12:48 pm, Duncan Booth <[EMAIL PROTECTED]>
wrote:
> mosscliffe <[E
I am looking for a simple split function to create a list of entries
from a string which contains quoted elements. Like in 'google'
search.
eg string = 'bob john "johnny cash" 234 june'
and I want to have a list of ['bob', 'john, 'johnny cash', '234',
'june']
I wondered about using the csv rou
on call in another function:
>
> On May 10, 9:27 am, mosscliffe <[EMAIL PROTECTED]> wrote:
> ...> def timeloop(dofunction,iters=10):
> ...
>
> > def lookup(recs,patterns):
>
> ...
>
> > myrecs = ...
>
> def test1():
> lookup(myrecs, ['one
I am trying to time a function's execution, but I get 'TypeError:
'bool' object is not callable' when I try to run it.
I suspect it is my calling of 'timeloop' with the function name
'lookup' and its associated variables or it could just be some stupid
error on my part.
function 'lookups' was wor
Alex,
Thanks for the help.
Richard
On May 5, 3:42 am, [EMAIL PROTECTED] (Alex Martelli) wrote:
> Miki <[EMAIL PROTECTED]> wrote:
>
>...
>
> > > Is there a lightweight Https Server I could run locally (WINXP), which
> > > would run .py scripts, without lots of installation modifications ?
> >
Miki,
Thank you very much for your helpful reply. A simple example is the
best way of getting started, I have found.
I have no excuses now - to not get it working. I recently tried
Visual Studio with Visual Basic. Nice for five minutes, but then all
the helping bits got in the way, so then you
could run locally (WINXP), which
would run .py scripts, without lots of installation modifications ?
Thanks
Richard
On 4 May, 18:00, Bruno Desthuilliers wrote:
> mosscliffe a écrit :
>
> > I am very new to this python world, but I do like the look of the
> > language / syntax,
I am very new to this python world, but I do like the look of the
language / syntax, though I have had some problems with indenting
using a text editor.
I have managed to get my ISP to execute .py files on their server.
I have created a .py file and it does in fact do the various little
tasks I h
30 matches
Mail list logo