On Friday, February 1, 2013 12:09:04 AM UTC-5, Chris Angelico wrote:
> On Fri, Feb 1, 2013 at 4:00 PM, Steven D'Aprano
>
> wrote:
>
> > dg.google.gro...@thesamovar.net wrote:
>
> >
>
> >> If you could take one minute to make sure you
&
On Thursday, January 31, 2013 10:06:44 PM UTC-5, Terry Reedy wrote:
> On 1/31/2013 8:05 PM, dg.google.gro...@thesamovar.net wrote:
> > Here's the link to the article:
> > http://www.scholarpedia.org/article/Brian_simulator
>
> 'Brian' is obviously a play on 'brain', with two letters transposed. Bu
putational
neuroscience simulations. If you could take one minute to make sure you
are signed in to your Google+ account and click the g+1 icon near the
top right of the page, it has a chance of winning the competition.
Here's the link to the article:
http://www.scholarpedia.org/article/Brian_
On Jan 31, 11:36 am, Luis M. González wrote:
> On Jan 31, 1:50 pm, Ramon F Herrera wrote:
>
>
>
> > On Jan 31, 10:49 am, Ramon F Herrera wrote:
>
> > > (newbie alert)
>
> > > This is what I have so far:
>
> > >http://patriot.net/~ramon/upload_facility.html
>
> > > The code is shown below. It see
On Jan 31, 11:36 am, Luis M. González wrote:
> On Jan 31, 1:50 pm, Ramon F Herrera wrote:
>
>
>
> > On Jan 31, 10:49 am, Ramon F Herrera wrote:
>
> > > (newbie alert)
>
> > > This is what I have so far:
>
> > >http://patriot.net/~ramon/upload_facility.html
>
> > > The code is shown below. It see
On Jan 4, 3:09 pm, Alex Willmer wrote:
> On Jan 4, 8:20 pm, Google Poster wrote:
>
> > Can any of you nice folks post a snippet of how to perform a listing
> > of the current directory and save it in a string?
>
> > Something like this:
>
> > $ setenv FILES
On Jan 4, 2:34 pm, Dan M wrote:
> On Tue, 04 Jan 2011 12:32:28 -0800, Google Poster wrote:
> > Not to mention that it took me 9 minutes to get a reply from you...
> > Quite speedy community support.
>
> > That is a very important parameter in my technology decisions thes
On Jan 4, 2:29 pm, Dan M wrote:
> On Tue, 04 Jan 2011 12:20:42 -0800, Google Poster wrote:
> > About once a year, I have to learn yet another programming language.
> > Given all the recommendations (an outstanding accolade from Bruce Eckel,
> > author of "Thinking in J
On Jan 4, 8:19 am, SHILPA wrote:
> UNSEEN HOT SEXY PHOTOS
> http://karomasti9.blogspot.com/2011/01/never.html
> SEXY DIYA MIRZA
> http://karomasti9.blogspot.com/2010/12/diya-mirza.html
> HOT AISHWARIYA
> RAIhttp://karomasti9.blogspot.
On Jan 4, 12:24 pm, Xah Lee wrote:
> a opinion piece.
>
> 〈The Idiocy of Computer Language
> Docs〉http://xahlee.org/comp/idiocy_of_comp_lang.html
>
> --
> The Idiocy of Computer Language Docs
>
> Xah Lee, 2011-01-03
>
> Worked with Mathematica for a
About once a year, I have to learn yet another programming language.
Given all the recommendations (an outstanding accolade from Bruce
Eckel, author of "Thinking in Java") I have set my aim to Python.
Sounds kinda cool.
The indentation-as-block is unique, but that is how I always indent,
anyway.
What to do if anything bites.
Check our bites treatment at
http://108ambulance.blogspot.com/2010/03/108-ambulance-home-page.html
--
http://mail.python.org/mailman/listinfo/python-list
Buy Genuine Google Adsense Account only for Rs.200/- for indian
people.
For more details visit
http://www.buygoogleadsense.tk/
We also provide procedure for creating unlimited
google adsense account trick .
--
http://mail.python.org/mailman/listinfo/python-list
On May 8, 1:17 am, Piet van Oostrum wrote:
> > Jelle Smet (JS) wrote:
>
> One more thing:
>
> >JS> I start python interactively:
> > import xmlrpclib
> > session1=xmlrpclib.ServerProxy('http://localhost:8000')
> > session2=xmlrpclib.ServerProxy('http://localhost:8000')
> > pri
Hi all,
Has anyone managed to get any of the Python CUDA libraries working on
Windows using cygwin? Which one, and was anything special required?
Thanks in advance for any advice.
Dan
--
http://mail.python.org/mailman/listinfo/python-list
out some python package which overloads numbers and
> > calculations to include units (quick google found unum, not sure if
> > that is the only one). I guess that unless you are dealing with life-
> > critical equipment or are using extreme programming, this is overkill
>
On Aug 8, 7:18 pm, "David C. Ullrich" <[EMAIL PROTECTED]> wrote:
> The one thing that puzzles me about
> all the results is why // is so much slower than / inside
> that Psyco loop.
Just an oversight. The optimization about '/' between integers
was not copied for the case of '//' between integers
hi friends
COMMON DO YOU SEE THE DIFFERNT PICTURE AND INFORMATION
COMMON LETS GOO
http://www.airnet5.blogspot.com
http://www.airnet5.blogspot.com
http://www.airnet5.blogspot.com
http://www.airnet5.blogspot.com
http://www.airnet5.blogspot.com
http://www.airnet5.blogspot.com
http://www.airnet5.b
On Feb 14, 11:06 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> It depends on what you mean by "an interactive shell"? If you start your
> script with:
> python -i whatever.py
> is it an interactive shell or not?
>
> I tried these two criteria:
> a) See if the __main__ module has a __file__ a
Thanks for the replies, but it's not what I meant. What I want to be
able to determine is whether or not the user is running from an
interactive shell (like IPython or IDLE). Checking if
__name__=='__main__' checks if the current module is the one being
run, but suppose you have two modules A and B
Hi all,
Is there any standard way to tell if the user is running from a module
or from an interactive shell like IDLE or IPython? The best I've come
up with so far is for a function to look at
getouterframes(currentframe())[1][1] (the filename in the frame record
of the frame that called the funct
> > Does this mean that __setattr__
> > incurs the same performance penalty that overriding __getattribute__
> > would?
>
> Not quite AFAICT - there's less going on here. Also, getting an
> attribute is (usually at least) more common than setting it.
>
> > Possibly I can live with this because I th
> As a side note: the naming symetry between __getattr__ and __setattr__
> is a gotcha, since __setattr__ is mostly symetric to __getattribute__ -
> IOW, customizing __setattr__ is a bit tricky. The naive approach, ie:
Ah I see - so __setattr__ is called immediately whereas __getattr__ is
only cal
On Feb 6, 11:09 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> While this is technically possible (I tried a couple years ago), it
> requires hacking the __getattribute__ method, which is something I
> would not recommand, not only because it can be tricky, but mostly
> because this is a very
On Feb 6, 10:54 pm, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> I'd suggest a small improvement: _A as a class name isn't very nice.
> Replace the inner class statement with:
> _A = type(self.__class__.__name__ + '_autoprops', (self.__class__,), {})
Ah yes, that's much nicer.
> A problem wit
Hi all,
So I understand that properties belong to a class not an instance, but
nonetheless I want to add properties to an instance. I have a class
which when an instance is created runs some fairly complicated code
and produces a set of names which I'd like to be able to access via
properties. At
Hi all,
As I understand it, the idea behind duck typing is that you just take
an object and if it has the methods you want to use you use it
assuming it to be the right type of object. I'm interested in
extending this idea a bit, but I feel the sort of thing I have in mind
has already been thought
It's a bit cheap, but how about
>>> from inspect import getsource
>>> print getsource(getsource)
or similarly
def f(g):
import inspect
return inspect.getsource(g)
print f(f)
Dan
--
http://mail.python.org/mailman/listinfo/python-list
Well I tried the NumPy array thing that I was talking about, to
parallelise the problem, and there were some difficulties with it.
Firstly, the pruning makes a really big difference to the speed, and
you don't get that if you're trying to parallelise the problem because
what is an equivalent calcul
Arnaud and Terry,
Great solutions both of you! Much nicer than mine. I particularly like
Arnaud's latest one based on folding because it's so neat and
conceptually simple. For me, it's the closest so far to my goal of the
most elegant solution.
So anyone got an answer to which set of numbers give
Decided I may as well post my other solution while I'm at it. The neat
trick here is redefining the add, mul, etc. functions so that they
raise exceptions for example if x>y then add(x,y) raises an exception
which is handled by the search algorithm to mean don't continue that
computation - this sto
Hi all,
It's great how many different sorts of solutions (or almost solutions)
this puzzle has generated. Speedwise, for reference my solution posted
above takes about 40 seconds on my 1.8GHz laptop, and the less elegant
version (on my webpage linked to in the original post) takes about 15
seconds
Hi Marek,
That's a really nice solution (and ultrafast).
Unfortunately I realise I stated the problem imprecisely. You're only
allowed to use each number once (otherwise there's a trivial solution
for every problem, i.e. x/x + x/x + x/x + ... + x/x repeated y times
for target y given any source n
Ever since I learnt to program I've always loved writing solvers for
the Countdown numbers game problem in different languages, and so now
I'm wondering what the most elegant solution in Python is.
If you don't know the game, it's simple: you're given six randomly
chosen positive integers, and a t
Hi Rüdiger,
Thanks for your message. I liked your approach and I've been trying
something along exactly these sorts of lines, but I have a few
problems and queries.
The first problem is that the id of the frame object can be re-used,
so for example this code (where I haven't defined InstanceTrac
Thanks everyone for the comments.
I had previously thought about the possibility of the classes keeping
track of their instances. I guess this could probably be done quite
transparently with a decorator too (as we have many different types of
objects being collected together). The only issue is th
Hi all,
I'm part of a small team writing a Python package for a scientific
computing project. The idea is to make it easy to use for relatively
inexperienced programmers. As part of that aim, we're using what we're
calling 'magic functions', and I'm a little bit concerned that they
are dangerous c
>>>
>>> import os
>>>
>>> os.environ['PATH']
'C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;%C:\\WINNT%\
\system32;%C:\\WINNT%;%C:\\WINNT%\\System32\\Wbem'
>>>
>>> os.putenv('PATH', 'C:\\WINNT\\system32')
>>>
>>> os.environ['PATH']
'C:\\WINNT\\system32;C:\\WINNT;C:\\WINNT\\System32\\Wbem;
Heres the situation:
class AbstractThing():
def changeMe(self,blah):
if blah < 1:
raise MyException
self.blah = blah
class NetworkedThing(AbstractThing):
def changeMe(self,blah):
if blah > self.getUpperLimitOverTheNetworkSlowly:
raise M
> > the python equivalent of what's called in most OOP languages "static
> > classes", can you give me a hint ?
>
> Look for @staticmethod inhttp://docs.python.org/lib/built-in-funcs.html
Woops... I misread...
--
Gerald Kaszuba
http://geraldkaszuba.com
--
http://mail.python.org/mailman/listinfo
On Jun 19, 10:00 pm, Tom Gur <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm new to python, and I can't seem to find in the docs how to create
> the python equivalent of what's called in most OOP languages "static
> classes", can you give me a hint ?
Look for @staticmethod in http://docs.python.org/lib/b
On Jun 17, 12:48 pm, ed <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm interested in starting to learn python. I'm looking for any
> reccomendations or advice that I can use to get started. Looking
> forward to any help you can give!
>
> Thanks!
>
> -e
There are some great tutorials online. Try this o
where - thats why I asked for the groups
help.
Anyway, thanks to all that replied via emailed and in this group.
On Feb 18, 7:34 pm, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Sat, 17 Feb 2007 17:10:50 -0800, google wrote:
> > I just included file opening code just to show
On Feb 18, 1:14 pm, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Sat, 17 Feb 2007 15:47:20 -0800, google wrote:
> > As a test, I tried to write the buffer back to a file with this code
> > but did not work,
>
> Oooh, guessing games! I love guessing games!
Goo
I just included file opening code just to show how i read the file
into the text buffer - I have no issues with this as such. Problem is
only with the writing of the text buffer back to a file. When I try to
write the buffer to a file it gave the following,
Traceback (most recent call last):
Fi
Hi,
I'm using Python with pygtk and have this problem - I have read the
contents of a file into the text buffer with this code,
infile = open("mytextfile", "r")
if infile:
string = infile.read()
infile.close()
textbuffer.set_text(string)
As a t
On Feb 17, 1:25 pm, "Joshua J. Kugler" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Hi,
>
> > I'm going around in circles so I'm asking for help. I want to read a
> > simple text file and output the contents to a GUI window when I click
> > on a button. I have written a small python pr
Hi,
I'm going around in circles so I'm asking for help. I want to read a
simple text file and output the contents to a GUI window when I click
on a button. I have written a small python program to read the
contents of a file when a button is clicked but can only output this
to a console window. I'
Hi,
I'm going around in circles so I'm asking for help. I want to read a
simple text file and output the contents to a GUI window when I click
on a button. I have written a small python program to read the
contents of a file when a button is clicked but can only output this
to a console window. I'
This isn't a python module, but python is embedded in the environment
http://salome-platform.org/
Also check out
http://www.caelinux.com/CMS/
for a live distro that contains several FE applications.
Andy
--
http://mail.python.org/mailman/listinfo/python-list
Clodoaldo Pinto Neto wrote:
> print 'The submited name was "' + name + '"'
Bzzt! Script injection security hole. See cgi.escape and use it (or a
similar function) for *all* text -> HTML output.
> open('files/' + fileitem.filename, 'w')
BZZT. filesystem overwriting security hole, possibly es
Jon Ribbens wrote:
> I'm sorry, that's not good enough. How, precisely, would it break
> "existing code"?
('owdo Mr. Ribbens!)
It's possible there could be software that relies on ' not being
escaped, for example:
# Auto-markup links to O'Reilly, everyone's favourite
# example name with
Christopher J. Bottaro wrote:
> When I make a post, it just hangs (in self.rfile.read()).
I don't know about BaseHTTPRequestHandler in particular, but in general
you don't want to call an unlimited read() on an HTTP request - it will
try to read the entire incoming stream, up until the stream is
Sion Arrowsmith wrote:
> I've never encountred a browser getting tripped up by it. I suppose you
> might need it if you've got parameters called quot or nbsp
There are many more entities than you can comfortably remember, and
browsers can interpret anything starting with one as being an entity
re
Istvan Albert wrote:
> But these new icons are too large, too blocky and too pastel.
Hooray! Glad to see *someone* doesn't like 'em, I'll expect a few more
when b1 hits. :-)
Although I can't really see 'large', 'blocky' or 'pastel'... they're
the same size and shape as other Windows document ico
John Salerno wrote:
> I love the new 'folder' icon, but how can I access it as an icon?
I've just given these are proper home, so here:
http://doxdesk.com/software/py/pyicons.html
cheers!
--
And Clover
mailto:[EMAIL PROTECTED]
http://www.doxdesk.com/
--
http://mail.python.org/mailman/list
Sullivan WxPyQtKinter wrote:
> 1. Are there any method (in python of course) to redirect to a web page
> without causing a "Back" button trap... rather than the redirection page
> with a "Location: url" head
What's wrong with the redirection page?
If there's really a necessary reason for not usi
AB wrote:
> I tried the following with the same result:
> myName = ulImage.filename
> newFile = file (os.path.join(upload_dir, os.path.basename(myName)), 'wb')
os.path is different on your system to the uploader's system. You are
using Unix pathnames, with a '/' separator - they are using Windows
Fredrik Lundh wrote:
> could you perhaps add an SVG version ?
Yes. I'll look at converting when I've used them a bit and am happy
with them. I think some of the higher-level Xara effects may not
convert easily to SVG but I'm sure there'll be workarounds of some
sort.
--
And Clover
mailto:[EMAIL
Luis M. González wrote:
> This is strange... I've been trying to access this site since
> yesterday, but I couldn't
Might it be possible you have malware installed? Since I do a bunch of
anti-spyware work, there are a few different bits of malware that try
to block doxdesk.com, usually using a Ho
Michael Tobis wrote:
> Besides the pleasant colors what do you like about it?
I like that whilst being a solid and easily-recognisable, it isn't
clever-clever.
I had personally been idly doodling some kind of swooshy thing before,
with a snake's head forming a P and its forked tongue a Y coming
John Salerno wrote:
> So as it turns out, Unicode and UTF-8 are not the same thing?
Well yes. UTF-8 is one scheme in which the whole Unicode character
repertoire can be represented as bytes.
Confusion arises because Windows uses the name 'Unicode' in character
encoding lists, to mean UTF-16_LE,
Scott David Daniels wrote:
> Maybe you could change the ink color to better distinguish
> the pycon and pyc icons.
Yeah, might do that... I'm thinking I might flip the pycon icon so that
the Windows shortcut badge doesn't obscure the Python logo, too. Maybe.
I'll let them stew on my desktop for
Personally, I *like* the new website look, and I'm glad to see Python
having a proper logo at last!
I've taken the opportunity to knock up some icons using it, finally
banishing the poor old standard-VGA-palette snake from my desktop. If
you like, you can grab them from:
http://www.doxdesk.com/
Akihiro KAYAMA wrote:
> As the character set is wider than UTF-16(U+10), I can't use
> Python's native unicode string class.
Have you tried using Python compiled in Wide Unicode mode
(--enable-unicode=ucs4)? You get native UTF-32/UCS-4 strings then,
which should be enough for most purposes.
-
Stuart wrote:
> I see that the 'Image' class has a 'palette' attribute which returns an
> object of type 'ImagePalette'. However, the documentation is a bit
> lacking regarding how to maniuplate the ImagePalette class to retrieve
> the palette entries' RGB values.
ImagePalette.getdata() should d
gmail.com> writes:
> This is a bug in Python. See this thread:
> http://mail.python.org/pipermail/python-dev/2005-December/059046.html
OK, thanks. This doesn't strike me as the same issue (but maybe it is).
We're not getting NotImplemented returned, we're getting a TypeError;
just not a good Ty
Uche Ogbuji <[EMAIL PROTECTED]> wrote:
> Andrew Clover also suggested an overly-legalistic argument that current
> minidom behavior is not a bug.
I stick by my language-law interpretation of spec. DOM 2 Core
specifically disclaims any responsibility for namespace fixup and
advises the application
Uche <[EMAIL PROTECTED]> wrote:
> Of course. Minidom implements level 2 (thus the "NS" at the end of the
> method name), which means that its APIs should all be namespace aware.
> The bug is that writexml() and thus toxml() are not so.
Not exactly a bug - DOM Level 2 Core 1.1.8p2 explicitly leav
Ya, for some reason your non-greedy "?" doesn't seem to be taking.
This works:
re.sub('(.*)(00.*?01) target_mark', r'\2', your_string)
--
http://mail.python.org/mailman/listinfo/python-list
a bit of a late reply, sorry...
Paul Rubin schreef:
> [EMAIL PROTECTED] writes:
> > > I suspect he was trying to say that BaseHTTPServer has no mechanism for
> > > handling state. As you know, of course, this is most relevant across
> > > multiple successive connections to a server from the same
Steve Holden schreef:
> Paul Rubin wrote:
> > [EMAIL PROTECTED] writes:
> >
> >>What it doesn't do (and what Sidd seems to search as is suggested by
> >>his 'select()' remark) is handle each client in a separate thread.
> >
> >
> > I don't know what you mean by that. It launches a new thread for
Paul Rubin schreef:
> "Sidd" <[EMAIL PROTECTED]> writes:
> >I tried finding and example of multithreaded client-serve program in
> > python. Can any one please tell me how to write a multithreaded
> > client-server programn in python such that
> > 1.It can handle multiple connections
> > 2.It
Steve Horsley schreef:
> [EMAIL PROTECTED] wrote:
> > Steve Horsley schreef:
> >
> >
> >>Probably the same problem. If you didn't send a 2 byte length
> >>indicator first, then java's readUTF() will have tried to
> >>interpret the first 2 bytes that you did actually send as the
> >>string length,
Steve Horsley schreef:
> [EMAIL PROTECTED] wrote:
> > Dear newsgroup,
> >
> > I give up, I must be overseeing something terribly trivial, but I can't
> > get a simple (Java) applet to react to incoming (python) SocketServer
> > messages.
> >
> > Without boring you with the details of my code (on
Dear newsgroup,
I give up, I must be overseeing something terribly trivial, but I can't
get a simple (Java) applet to react to incoming (python) SocketServer
messages.
Without boring you with the details of my code (on request available,
though), here is what I do :
I have a TCPServer and BaseRe
[EMAIL PROTECTED] wrote:
> I looked at the PIL Image class but cannot see a posibility to retreive
> the image resolution dots per inch (or pixels per inch)
Not all formats provide a DPI value; since PIL doesn't do anything with
DPI it's not part of the main interface.
For PNG and JPEG at least
Walter Brunswick <[EMAIL PROTECTED]> wrote:
> I need to import modules with user-defined file extensions
> that differ from '.py', and also (if possible) redirect the
> bytecode output of the file to a file of a user-defined
> extension.
You shouldn't really need a PEP for that; you can take cont
Daniel Bickett wrote:
> Python using CGI, for example, was enough for him until he started
> getting 500 errors that he wasn't sure how to fix.
Every time you mention web applications on this list, there will
necessarily be a flood of My Favourite Framework Is X posts.
But you* sound like you do
Alex Gittens wrote:
> I'm getting an UnboundLocalError
> def fieldprint(widths,align,fields): [...]
> def cutbits(): [...]
> fields = fields[widths[i]:]
There's your problem. You are assigning 'fields' a completely new
value. Python doesn't allow you to rebind a variable from an oute
Florian Lindner wrote:
> sha = sha.new(f.read())
> this generates a traceback when sha.new() is called for the second time
You have reassigned the variable 'sha'.
First time around, sha is the sha module object as obtained by 'import
sha'. Second time around, sha is the SHA hashing obje
Lothat <[EMAIL PROTECTED]> wrote:
> No test with or without any " let the IIS execute python scrits as cgi.
> Http Error code is 404 (but i'm sure that the file exists in the
> requested path).
Have you checked the security restrictions? IIS6 has a new feature
whereby script mappings are disabled
Alain <[EMAIL PROTECTED]> wrote:
> I would expect a piece of XML to be read, parsed and written back
> without corruption [...]. It isn't however the case when it comes
> to CDATA handling.
This is not corruption, exactly. For most intents and purposes, CDATA
sections should behave identically to
BrianS wrote:
> File "/usr/share/printconf/util/printconf_conf.py", line 83, in ?
> from xml.utils import qp_xml
> ImportError: No module named utils
> It seems that the xml package have been changed.
Not exactly. xml.utils is part of the XML processing package PyXML -
you don't get it in
We want to thank you for your interest in joining the Google team. We received
your email inquiry and look forward to the opportunity to review your background
and experience. Unfortunately, we are unable to give a personal reply to every
applicant. However, please know that we do review all
Doug Helm wrote:
> form = cgi.FieldStorage()
> if lobjUp.Save('filename', 'SomeFile.jpg'):
> class BLOB(staticobject.StaticObject):
> def Save(self, pstrFormFieldName, pstrFilePathAndName):
> form = cgi.FieldStorage()
You are instantiating cgi.FieldStorage twice. This won't work for POST
Skip Montanaro wrote:
> I use sets a lot in my Python 2.3 code at work and have been using
> this hideous import to make the future move to 2.4's set type
> transparent:
> try:
> x = set
(Surely just 'set' on its own is sufficient? This avoids the ugly else
clause.)
> __builtin_
Xah Lee <[EMAIL PROTECTED]> wrote:
> is it possible in Python to create a function that maintains a
> variable value?
Yes. There's no concept of a 'static' function variable as such, but
there are many other ways to achieve the same thing.
> globe=0;
> def myFun():
> globe=globe+1
> return g
Xah Lee <[EMAIL PROTECTED]> wrotE:
> i have a bunch of files encoded in GB18030. Is there a way to convert
> them to utf16 with python?
You will need CJKCodecs (http://cjkpython.i18n.org/), or Python 2.4,
which has them built in. Then just use them like any other codec. eg.
f= open(path, 'rb')
Frank Abel Cancio Bello <[EMAIL PROTECTED]> wrote:
> PrettyPrint or Print return the value to the console, and i need
> keep this value in a string variable to work with it, how can i
> do this?
The second parameter to either of these functions can be a stream
object, so you can use a StringIO t
Horst Gutmann wrote:
> I currently have quite a big problem with minidom and special chars
> (for example ü) in HTML.
Yes. Ignoring the issue of the wrong doctype, minidom is a pure XML
parser and knows nothing of XHTML and its doctype's entities 'uuml' and
the like. Only the built-in entities (
Dan Perl wrote:
> how is a multipart POST request parsed by CGIHTTPServer?
It isn't; the input stream containing the multipart/form-data content
is passed to the CGI script, which can choose to parse it or not using
any code it has to hand - which could be the 'cgi' module, but not
necessarily.
> Is it not regretted?
Maybe the problem just doesn't occur to people who have used C too
long.
OT: Also, if Google doesn't stop lstrip()ing my posts I may have to get
a proper news feed. What use is that on a Python newsgroup? Grr.
--
Andrew Clover
mailto:[EMAIL PROTECTED]
http://ww
Grzegorz Adam Hankiewicz <[EMAIL PROTECTED]> wrote:
> I have looked at xml.minidom, elementtree and gnosis and haven't
> found any such features. Are there libs providing these?
pxdom (http://www.doxdesk.com/software/py/pxdom.html) has some of this,
but I think it's still way off what you're envi
Choe, Cheng-Dae wrote:
> example site is http://bbs.pythonworld.net:9080/pybbs.py
Since this seems quite happy to accept posted
Andreas Volz <[EMAIL PROTECTED]> schrieb:
> Ich hab mir schon überlegt einfach die letzten viel Stellen des
> strings "per Hand" auf die Zeichenfolge zu vergleichen und so
> regex zu umgehen. Aber ich muss es irgendwann ja doch mal nutzen
"Muss"? stimme nicht zu! Regexps sind ja fuer begrenzte Zw
96 matches
Mail list logo