this has been a problem for me for some time.
I want to save the interpretters command history to a file, there is a
history file in my user directory .pyhistory but it saves only like 500
or so
how can I make it save all the commands and not delete it, any other
suggestions that people use is w
Hi
I would really appreciate if soemone can point me to the direction. how
can I use xml.sax to catch doctype entities.
there is a xml.sax.DTDHandler , but how should i use it?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I am trying to convert an override of xmllib.XMLparser , in the
handle_doctype method we are catching the entities using
load_dtd(sysid).gen_ents
how can I do the same with xml.sax, does xml.sax has anything to catch
the entties
thanks
--
http://mail.python.org/mailman/listinfo/python-list
thanks for the help
I got the response using s.send("GET / HTTP/1.0\r\n\r\n"),
but this socket is being blocked by squid server that we have installed
in our socket. do you know how can i configure the squid to stop
blocking the socket
thanks
--
http://mail.python.org/mailman/listinfo/python-l
Hi
this is really a stupid question, how can i get page rsponse from a
site e.g. google.com port 80
form socket, can i do something
import socket
s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
s.connect( ( "www.google.com", 80 ) )
s.send( "Hello" ) # GET??
response = s.recv(8048)
print
Hi
does anybody know of any credit card merchant slution with python API.
we used to use cybercash long time ago, but are willing to switch to
something good and not pricy.
we want to accept credit cards and process them.
something with python wrapper will be great , as I would not have to
build
python provides a great way of dynamically creating fuctions calls and
class names from string
a function/class name can be stored as string and called/initilzed
e.g
def foo(a,b):
return a+b
def blah(c,d):
return c*d
list = ["foo", "blah"]
for func in list:
print func(2,4)
o
Hi
I have a script e.g.
import package.module
ID = "55"
package.module.checkID()
now in package.module.checkID function, i wnat to know what is the ID
defiend in the calling scriipt
if I dot globals(), it returns only items in module. is there a way
to get the script level namesapce
th
thanks for the suggestions,
this is not happening frequently, actually this is the first time I
have seen this exception in the system, which means that some spam
message was generated with ill-formated html.
i guess the best way would be to check using regular expression and
delete the unclosed t
thanks for the reply
well probabbly I should explain more. this is part of an email . after
the mta delivers the email, it is stored in a local dir.
After that the email is being parsed by the parser inside an web based
imap client at display time.
I dont think I have the choice of rewriting the
html =
' \r\n Foo foo , blah blah
'
>>> import htmllib
>>> import formatter
>>> parser=htmllib.HTMLParser(formatter.NullFormatter())
>>> parser.feed(html)
Traceback (most recent call last):
File "", line 1, in ?
File "/usr/lib/python2.4/sgmllib.py", line 95, in feed
self.goahead(0)
File
Hi all
is execution of pyc files faster than py files? since both files are
interpreted by python , is there any speedup in using one or other?
what is difference if i type from cmd line,
python test.py vs. python test.pyc
thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi
I want to know that is .pyc files execute faster than .py files,? since
both are interpreted by python , is there any speedup in using one or
other.?
e.g.
what is the difference between runing from cmd "python test.py" and
"python test.pyc"
thanks
--
http://mail.python.org/mailman/listi
, is it ok to strip it
using regex re.complie(' [\xed|\xa0] ')?
Martin v. Löwis wrote:
> Sakcee wrote:
> > Hi
> >
> > In one of the data files that I have , I am seeing these characters
> > \xed\xa0\xa0 . They seem to break the xsl.
> [...]
>
Hi
In one of the data files that I have , I am seeing these characters
\xed\xa0\xa0 . They seem to break the xsl.
---
Extra content at the end of the document
XML/XSL Error:
hi
I am trying to parse rss2 feeds in python, should I use sax and define
handler and then functions for each tag or should I go for dom
approach.
thanks for any comments
--
http://mail.python.org/mailman/listinfo/python-list
I want to build a simple validator for rss2 feeds, that checks basic
structure and reports channels , items , and their attributes etc.
I have been reading Mark Pilgrims articles on xml.com, diveintopython
and someother stuff on sgmllib, sax.handlers and content handlers,
xml.dom.minidom
why is a
Excellent , your example is elegant and runs beautifully
so the idea is to create a testcase which runs a general function
"testRun" (which calls the function defined in file )and loads data
based on type ,
add this testcase to suite and run suite.
thanks , this is exactly what I was looking for
s with inputs and expected outputs
in a data file
and this type of script will generate similar assert functions for all
of them on fly
and run them
thanks for any input or any alternate approach to it
Kent Johnson wrote:
> Sakcee wrote:
> > Hi
> >
> > I am trying to use
Please anyone help, is this kind of dynamin thing possible? any
suggestion for creating frameworks for automated testing ,
all comments appreciated
thanks
Sakcee wrote:
> Hi
>
> I am trying to use pyUnit to create a framework for testing functions
>
> I am reading function
Hi
I am trying to use pyUnit to create a framework for testing functions
I am reading function name, expected output, from a text file.
and in python generating dynamic test functions
something like this
class getUsStatesTest( unittest.TestCase ):
self.setUp = lambda : function_call
Hi
I am using mod_python for web development, I am in need of some ide ,
can i use ddd or eclipse with pydev with mod_python.
can these ide's handle requests from mod_python and run server side
scripts
any help or pointers are greatly appreciated
thanks
clive
--
http://mail.python.org/mailm
Hi
I am a newbie to pydoc and I need some help. I would really appreciate
if some one can tell me how to add search box in a page generated by
pydoc,
e.g. I want to add serch like the one in pydoc.org
thanks
sakcee
--
http://mail.python.org/mailman/listinfo/python-list
23 matches
Mail list logo