Just to be very very clear about this:
1. I have never worked seriously with Javascript, frameworks, django, flask
etc.
2. I can write CGI on Apache.
3. I have never worked with nginx untill 2 days ago.
4. All this started because I wanted to mess with SQL/CSS/HTML5.
5. Some frigging! *moron* on I
http://discuss.joelonsoftware.com/default.asp?joel.3.219431.12
--
https://mail.python.org/mailman/listinfo/python-list
Dumped uwsgi - the documentation is utterly ridculous!!
Switched to 'Bottle' - very nice, intutive and clean -
tutorial+documentation is excellent and i got 'hello world' up and running
in like 10-15 minutes vs the 2 days intermittent it took to scroll through
the crap that is uwsgi-server. It
I'm messing with Google-Maps. Is there a way I can create a map, embed it on
a page (CSS/HTML/Javascript for this bit), and add images, videos, markers -
using python? Any libraries available?
--
https://mail.python.org/mailman/listinfo/python-list
In article <3794b$55678d83$5419aafe$56...@news.ziggo.nl>, skybuck2000
@hotmail.com says...
>
> Hello,
>
> I was just coding and ran into a little logic problem which is as follows:
>
> There are two booleans/variables which can be either false or true.
>
> The desired thrutle table is:
>
> A =
I tried scraping a javascript website using two tools, both didn't work. The
website link is: http://xdguo.taobao.com/category-499399872.htm The relevant
text I'm trying to extract is 'GY-68...':
I'm trying to match the class="
dieter wrote:
> Once the problems to get the "final" HTML code solved,
> I would use "lxml" and its "xpath" support to locate any
> relevant HTML information.
Hello Dieter, yes - you are correct. (though I don't think there's any auth
to browse - nice that you actually tried) He's using jsonP an
I travel to 'item-name', how do i quickly travel to c-price and then print
both values of text.
I tried:
for anchor in element.xpath('//a[@class="item-name"]'): #Travel to item-name
but when i getparent and then call xpath I get a whole bunch of span
elements as a list - why? Shouldn't xpath sta
never mind fixed..
it's returning a list so whatever[0].text and relative-path for the xpath
--
https://mail.python.org/mailman/listinfo/python-list
I'm getting a Unicode error:
Traceback (most recent call last):
File "fooxxx.py", line 56, in
parent = anchor.getparent()
UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in position
8: illegal multibyte sequence
I'm doing:
s = requests.Session()
to suck data in, so.. how do
dieter wrote:
> Veek M writes:
>> UnicodeEncodeError: 'gbk' codec can't encode character u'\xa0' in
>> position 8: illegal multibyte sequence
>
> You give us very little context.
It's a longish chunk of code: basically, i'm trying t
Saran Ahluwalia wrote:
> So what did you do to resolve this? Please provide your fix. This is an
> excellent case study for others.
it's provided, what part didn't you understand? Try googling relative-path,
wth?
--
https://mail.python.org/mailman/listinfo/python-list
Mark Lawrence wrote:
>
> If it's provided why have you snipped it this time around? May I most
> humbly suggest that the next time you ask, please ensure that you tell
> us what you've googled for prior to putting your question.
>
umm.. I can't determine what you mean by 'snipped it'.
1. I post
dieter wrote:
>
> It looks strange that you can set "s.encoding" after you have
> called "s.get" - but, as you apparently get an error related to
> the "gbk" encoding, it seems to work.
Ooo! Sorry, typo - that was outside the function but before the call.
Unfortunately whilst improving my functi
dieter wrote:
> I have no experience with "SOAPpy", but with "suds" (another Python
> SAOP client). A "suds" client exposes two attributes "factory"
*miaows happily*
--
https://mail.python.org/mailman/listinfo/python-list
On Fri, 09 Sep 2011 23:03:10 +1000, Steven D'Aprano wrote:
> But think carefully before doing this. Some functions may be confused if you
> change directories while they are running. You may be better off staying in
> the same directory, and adjusting the path names to the files as you work
> with
On Sat, 10 Sep 2011 21:11:32 +1000, Steven D'Aprano wrote:
> The main one that comes to mind is os.walk, which has this to say:
>
> Caution: if you pass a relative pathname for top, don't change the
> current working directory between resumptions of walk. walk never
> changes the cur
On Thu, 15 Sep 2011 16:55:13 +0100, Fulvio Valente wrote:
> Hi, I am a research intern at the University of Strathclyde
> who has been doing a summer research internship.
I don't want to be rude, but please: could you rather first research
how to use a newsreader before you use it?
These long lin
On Thu, 15 Sep 2011 16:11:13 -0400, Prasad, Ramit wrote:
> I don't want to be rude but...
> Not rude:
> Rude:
You're right. I must have gotten a few bad habits I didn't
even realize. Thanks.
Waldek
--
http://mail.python.org/mailman/listinfo/python-list
> (First to everyone not into Django: sorry for the shameless job
> advertisement!)
>
> We are searching for a Freelance Django developer to help us out!
Well, if you're sorry then why do you go on?
There's a much better place to post the job offer:
http://www.python.org/community/jobs/
There,
On Sun, 23 Oct 2011 17:50:54 +0200, webcrowd.net wrote:
> hope it is okay to post job offers here. If not sorry for the spam and
> please let me know!
Not really. It's a newsgroup on Python *language*, not
on Python-everything.
You might want to post here instead, though:
http://www.python.org/c
On Mon, 31 Oct 2011 13:16:25 -0700, extraspecialbitter wrote:
> cmd = 'ethtool %interface'
Do you perhaps mean:
cmd = 'ethtool %s' % (interface, )
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, 7 Dec 2011 09:09:16 -0800 (PST), Massi wrote:
> def Sum(D) :
> return D['a']+D['b']+D['c']
>
> Is there a way to create three variables dynamically inside Sum in
> order to re write the function like this?
>
> def Sum(D) :
> # Here some magic to create a,b,c from D
> return a+
On Sat, 31 Dec 2011 17:40:15 -0800 (PST), Niklas Rosencrantz wrote:
> Thanks for the replies here. I will have patience but this bug
> is blocking my integration efforts. I tried logging the TCP
> packets with tcpdump and nothing special appeared.
Well, it's free software, isn't it?
You may either
How do i make something with python that will ask the user for input, and then
use the random.choice function to select a random choice from what the user
entered.
--
http://mail.python.org/mailman/listinfo/python-list
I want to make a guess the number game (Which i have), but i want to make the
computer play the game against itself. How would i do this?
--
http://mail.python.org/mailman/listinfo/python-list
On Thursday, February 14, 2013 4:09:37 PM UTC-8, Oscar Benjamin wrote:
> On 14 February 2013 23:34, eli m wrote:
>
> > I want to make a guess the number game (Which i have), but i want to make
> > the computer play the game against itself. How would i do this?
>
>
Any small program ideas? I would prefer to stick to command line ones. Thanks.
--
http://mail.python.org/mailman/listinfo/python-list
On Friday, February 15, 2013 7:52:57 PM UTC-8, Mitya Sirenef wrote:
> On 02/15/2013 10:22 PM, eli m wrote:
>
> > Any small program ideas? I would prefer to stick to command line ones.
> > Thanks.
>
>
>
> How about these two:
>
>
>
> - simulation
How long does it take for the program to import something? I am asking this
because i have like 7 imports at the beginning of my program and i am thinking
thats the reason why it is slow to start up. Thanks in advance.
--
http://mail.python.org/mailman/listinfo/python-list
On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:
> Any small program ideas? I would prefer to stick to command line ones. Thanks.
Thank you guys for the suggestions. Any more?
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, February 25, 2013 10:15:24 PM UTC-8, Dave Angel wrote:
> On 02/25/2013 10:48 PM, eli m wrote:
>
> > On Friday, February 15, 2013 7:22:41 PM UTC-8, eli m wrote:
>
> >> Any small program ideas? I would prefer to stick to command line ones.
> >> Thanks.
On Tuesday, February 26, 2013 4:22:10 PM UTC-8, Joshua Landau wrote:
> On 26 February 2013 22:47, eli m wrote:
>
>
>
>
>
> How hard would it be to change one file to another and would it be a
> small-medium sized program?
>
>
> How do you want to change
Is there a way to display video (an avi) in tkinter without having to download
other modules? If not then are there any other options?
--
http://mail.python.org/mailman/listinfo/python-list
How would you find the slope, y intercept, and slope-intercept form equation
for a line in python?
--
http://mail.python.org/mailman/listinfo/python-list
So i have a variable called funds that i want to store the value of even after
the program is exited. My funds variable holds the total value of funds i have.
I add a certain number of funds each time i run the program by entering how
much i want to add. How would i store the funds variable to k
Hi guys, i have a program like this: (A lot of code is not included)
run = 0
while run == 0:
raw_input("Type in a function:")
if function == "Example":
print ("Hello World!")
else:
print ("blah blah blah")
The problem is that whenever i type in example with a space after it th
On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote:
> Hi guys, i have a program like this: (A lot of code is not included)
>
> run = 0
>
> while run == 0:
>
>raw_input("Type in a function:")
>
>if function == "Example":
On Tuesday, March 5, 2013 3:47:31 PM UTC-8, emile wrote:
> On 03/05/2013 03:33 PM, eli m wrote:
>
> > On Tuesday, March 5, 2013 3:31:13 PM UTC-8, eli m wrote:
>
> >> Hi guys, i have a program like this: (A lot of code is not included)
>
> >>
>
>
I have a python program that accepts input and calculates the factorial of that
number, and i want to know if i can make it so commas get inserted in the
number.
For example: instead of 1000 it would say 1,000
--
http://mail.python.org/mailman/listinfo/python-list
Any other ideas?
--
http://mail.python.org/mailman/listinfo/python-list
On Monday, March 18, 2013 6:57:30 PM UTC-7, NZach wrote:
> Hello everyone,
>
>
>
> i am using the MMK.py example from a SimPy tutorial, which can be found here:
> http://heather.cs.ucdavis.edu/~matloff/156/PLN/DESimIntro.pdf
>
>
>
> I have made very little changes to the code and i have uplo
Hi everyone.
I have 3 grayscaled picture. These are Red, Green and Blue filtered.
I want to colorize it.
I'm a GNU/Linux user and I did it with imagemagick using this code:
convert r.png g.png b.png -set colorspace RGB -combine -set colorspace sRGB
rgb.gif
But I want to colorize it with using c
I made a video tutorial for making a guess the number game in python. You can
check it out here: http://www.youtube.com/watch?v=0WSQb-7wMJQ
--
http://mail.python.org/mailman/listinfo/python-list
TS, SENDER, and SENDMAIL-QID, and
get stored in subdirectories named qdir--MM-DD-hh.mm.ss-nnn, where
Y-M-D is the date received, hms is time received, and nnn is to allow for
up to 10 messages to quarantined any given second.
I know I can do this by descending into the directories I've identi
On Mon, 12 Dec 2005 13:25:14 -0800, Dan M wrote:
> I'm writing a Python replacement for a particularly ugly shell script. we
> are running mimedefang on our mail server, moving spam and virus messages
> to a quarantine directory. This little python script successfully chdir's
> Few points points:
>
> 1. Generally: I would try to minimize system calls. They make your code less
> portable.
Excellent point. In this case the app will never live anywhere other than
one specific FreeBSD machine, but I do appreciate the value of the advice
anyway. Therefore...
> 2. Look
Man, I don't even know where to start. There is no way this will work
if you don't have a web browser that can interpret Python. I don't know
of one, and I don't think anybody wants one because using a browser
that would execute arbitrary Python code provided by the server would
be an obscene secur
"""Derived from _Python Programming on Win32_ by Mark Hammond and Andy
Robinson"""
import win32com.client
import win32com.client.dynamic
class Excel:
def __init__(self, filename=None):
self.xlApp =
win32com.client.dynamic.Dispatch('Excel.Application')
if filename:
On Wed, 14 Dec 2005 15:27:58 -0800, TY wrote:
> So I guess then my next question is why does adding comma to print
> statement cause buffering, but not when you don't have comma?
Because of the line buffering. If you don't have a comma at the end, the
print statement prints the numeric value and
On Wed, 14 Dec 2005 13:56:24 -0800, lli wrote:
> I build web application. So I use CGI. I need to show select text in
> the html page. Now I can only display select value such as '001'. But I
> need to display its text 'AAA'.
>
> LLI
I'm a Python newbie, so by all means verify this answer with m
I've been Googling like a mad fiend and flipping through my hard-copy
Python books, but still haven't located the one little bit of info I need.
I've put together a simple SMTP-after-IMAP script that gets the authorized
IP info from the mail log (I know, it's not elegant but it works). All
works f
Hi,
I have the following question: How can an imported module see/find the
path to itself?
Background: From my main script I import a module which needs a file
(AppleScript) located in the same directory as the imported module.
What I do not want is to tell the module the location of the
AppleScr
)
results in:
martin% python main.py
/Volumes/CodeIsland/Projects/glashaus/glashaus0.1a/lib/being.pyc
Now I can use os.path.split() to get the parent directory and
os.path.join() to target my AppleScript file.
Thanks again!
Martin M.
--
http://mail.python.org/mailman/listinfo/python-list
>> Now how can I go about deleting that record when it's too old?
>>
> (untested)
>
> try
>
> del db[ipAddress]
Yep, that did it. Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
> here is what am trying to do, first am trying to open it in a read
> mode, and checking each row by row , if it is not found till my last
> row, i want to append it to the last row , so how should i do that.
>
> file = open ('C:\some.csv','r')
> reader = csv.reader(file)
> for row in reader:
>
On Thu, 15 Dec 2005 16:09:51 -0800, muttu2244 wrote:
> hey thanks a lot for that it worked .
Excellent! Glad to be of assistance :)
--
http://mail.python.org/mailman/listinfo/python-list
> Pretty straight forward...but what I'm finding is if the
> url is pointing to a file that is not there, the server
> returns a file that's a web page displaying a 404 error.
>
> Anyone have any recommendations for handling this?
You're right, that is NOT documented in a way that's easy to find
Try changing "def sysex_event(self, data):" in
> ...\midi\EventDispatcher.py to "def sysex_events(self, data):"
Or just do a search and replace on the whole package::
search: sysex_events(
replace: sysex_event(
Apparently I have been inconsistent in my naming.
New version at:
http://www.mxm.dk/products/public/pythonmidi/download
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
nPython would be worth trying out, though a bit premature.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
EP wrote:
> Luis M. González wrote:
>
>> Will Microsoft hurt Python?
>>
> I think it is naive to ignore the fact that Microsoft could hurt Python,
> though there may be nothing anyone can do.
>
>> How?
>
> - create a more prevalent version of "Py
On Tue, 10 Jan 2006 15:59:01 -0800, muttu2244 wrote:
> hi all
>
> could anybody please tell me how can i copy a file from windows file
> systems like FAT12, FAT16,FAT32 and NTFS to EXT2, and EXT3.
> Is their any function in python that we can do the above
>
> Thanks in advance
> Yogi
I'm sure m
In case you haven't heard Microsoft is suing SCO for stealing his
Internet concepts and letters and numbers, so you should probably just
ditch OpenServer and get Debian like all the smart people have done.
I guess the quality of SCO software has declined over the last forty or
fifty years and they
Ben Edwards (lists) wrote:
> I am using python 2.4 on Ubuntu dapper, I am working through Dive into
> Python.
>
> There are a couple of inconsictencies.
>
> Firstly sys.setdefaultencoding('iso-8859-1') does not work, I have to do
> sys.setdefaultencoding = 'iso-8859-1'
When you run a Python script
[EMAIL PROTECTED] wrote:
> I must ask, in the interest of learning, what is
>
> [file for file in files if file.endswith(extension)]
>
> actually doing? I know that 'file' is a type, but what's with the set
> up and the brackets and all?
Other people explained the list comprehension, but you m
[EMAIL PROTECTED] wrote:
> Okay. This is almost solved. I just need to know how to have each
> entry in my final list have the full path, not just the file name.
from http://docs.python.org/lib/os-file-dir.html:
walk() generates the file names in a directory tree, by walking the
tree either top
Figures. I'll try to complicate it sufficiently ;)
[edit] I was going to try to sum up what goes on, but I realized that I
was retyping what I already programmed in an effort to better
illustrate exactly what I'm doing. Pastebin it is. Don't fear, it's
only around 200 lines total.
Class file --
x27;ll try to take another
> look at your code. Print statements and debuggers are your friends,
> and John Machin's advice seems good to me.
>
> Peace,
> ~Simon
Thanks to John M's debugging code I was led to the source of my
problems, or so it seems.
I'll post a follow u
Good news. I've fixed it up and all seems to be well.
Thanks, all. I've learned a lot from this :)
John Machin wrote:
> Kevin M wrote:
> > Inline
> >
> > > 1.) Why are you removing the .pyc file?
> >
> > After I had run the script once and subseq
__name__ == "__main__":
> x = Two()
> x.methodA()
> x.methodB()
>
> When I run the Two.py file, I get the expected output but I'd like to
> eliminate the from line in two.py.
>
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mobile: +45 29 93 42 96
--
http://mail.python.org/mailman/listinfo/python-list
could reuse it again later.
From 2.5 onwards it should release most of the unused memory. However
it doesn't use less memory. The peak memory usage should be the same as
before. So for one-off programs that starts up and runs once, there
should not be much gain.
--
hilsen/re
"yes, that's what it means"
Are you an american?
Irony does mean that one says the opposite of what one really means.
If you do it for humor its irony, if you do it for mocking it is sarcasm.
So now I see... americans really *do* understand irony.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
as such
and not as sarcasm.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
--
http://mail.python.org/mailman/listinfo/python-list
i hang my head in shame.
On 10/12/06, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Thursday 12/10/2006 17:44, [EMAIL PROTECTED] wrote:
>
> > > > > fun median {
> > > > > var x = 0.
> > > > > while( *p++) {
> > > > > if( (*p) > x) x = *p.
> > > > > }
> > > > > return x.
> > > > >
Hello all.
I am desperately in need for you help guys. Here is the story:
1- I have created a small simple COM serve with python (along the lines
read in Win32 Programming with python).
2- If I start the server and call a function from VBE everything works
fine
3- I then want to modify the function
OK,
well thank you for your help (merci pour ton aide!)
M.E.
MC wrote:
> Hi!
>
> It is the normal behavior of COM.
>
> Note that, Python being dynamic, you can modify Python script, OF THE
> INTERIOR, during execution.
>
> --
> @-salutations
>
> Michel Claveau
--
http://mail.python.org/mailm
Alright.
I kind of get the idea. But how do I do that? Anyway, it is more for
development reason than anything else. It's not that big of a deal. But
still it would be nice to have a solution...
Thanx again
M.E.
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
> > Hello all.
> > I am desperate
Perhaps you should do your own work so you'll understand the concept and
learn something?
Also, widely posting your real (unaltered) email address in forums like this
is a sure way to get noticed by spammers.
Good luck.
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm doing a
y read html messages.
In my experience the kind of user that receives emails with html and
pictures often prefer it that way.
So why bother with the lecture? I cannot remember when I have last
received a relevant email that I could not read in text mode.
--
hilsen/regards Max M, Denmark
http://w
Scott David Daniels wrote:
> Max M wrote:
>
>> 90% of users are non-technical users who use standard email readers,
>> that can easily read html messages.
>>
>> In my experience the kind of user that receives emails with html and
>> pictures often prefer i
ke you should be spending time on MySpace OMG!.
I assume that the single l in alright is the courteous misspelling that
should allways be in a posting, when correcting other peoples speling?
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mo
Manoj Kumar P wrote:
> Hi,
>
> Can anyone tell me a good python editor/IDE?
> It would be great if you can provide the download link also.
pydev on top of eclipse is a nice tool.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
spelled
> in the singular (session).
>
> Is there some type of name resolution of local variables where Python
> makes assumptions?
No. You are probably running your script in an ide that keeps an old
variable hanging around.
Try it from a command promt.
--
hilsen/regards Max M,
> 1) in the code define a css
> 2) use a regex to extract the info between tabs
In place of this, you might want to look at
http://effbot.org/librarybook/csv.htm
Around the middle of that page you'll see how to use a delimiter other
than a comma
> 3) wrap the values in the appropriate tags and in
I'm a little bit confused. According to the sources I've looked at on the
net,
os.link('file1', 'file2')
should make a hard link from file1 to file2. But what I'm finding is that
it's actually making a copy. Am I forgetting a step or something?
Python 2.3.4 running on CentOS 4.3
--
http://m
o text from Python use system call.
For example:
import os
os.system("pdftotext -layout my_pdf_file.pdf")
This will create 'my_pdf_file.txt' file.
Regards,
Baiju M
--
http://mail.python.org/mailman/listinfo/python-list
ifferent in use than
current version.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mobile: +45 29 93 42 96
--
http://mail.python.org/mailman/listinfo/python-list
bruno at modulix wrote:
> Max M wrote:
>> bruno at modulix wrote:
>>
>>>> Or did you just like what you saw and decided to learn it for fun?
>>>
>>> Well, I haven't be really impressed the first time - note that it was at
>>> the very e
ill have to do it yourself.
I am not trying to be negative, but I will bet you that every competent
programmer on the list has 1+ project that she would love to do, if she
just had the time.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
M
I see you've had success with elementtree, but in case you are still
thinking about SAX, here is an approach that might interest you. The
idea is basically to turn your program inside-out by writing a
standalone function to process one myID node. This function has nothing
to do with SAX or parsing
叮叮当当 wrote:
> this is not enough.
>
> when a part is mulitpart/alternative, i must find out which sub part i
> need, not all the subparts. so i must know when the alternative is
> ended.
Have you tried the email module at all?
--
hilsen/regards Max M, Denmark
http://www.m
> [Dermot Doran]
>
> | I'm very new to using win32com! I just want to send an email
> | message via Outlook. However, I keep getting an annoying
> | message box (generated by Outlook) indicating that my program
> | could be a virus. Does anybody know how to get around this?
The users in our of
can lead you into so many traps.
Especially if you are using international characters in you messages.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mobile: +45 29 93 42 96
--
http://mail.python.org/mailman/listinfo/python-list
possible to use a unicode string as a message.
The charset passed in set_payload(pl ,charset) is the charset the the
string *is* encoded in. Not the charset it *should* be encoded in.
--
hilsen/regards Max M, Denmark
http://www.mxm.dk/
IT's Mad Science
Phone: +45 66 11 84 94
Mobile: +45 29 93 42 96
--
http://mail.python.org/mailman/listinfo/python-list
Chris Withers wrote:
> Max M wrote:
>> From the docs:
>>
>> """
>> The payload is either a string in the case of simple message objects
>> or a list of Message objects for MIME container documents (e.g.
>> multipart/* and message/rfc822)
&g
Hello all.
I know the question will seem stupid but googling it gives me only
stuff I don't care about.
So the question is the following:
When I start a python script containing a wxApp under windows XP, I
double click , my program opens and a background DOS shell also opens.
Is there any way to pr
pper and use that instead.
my_escape = lambda st: cgi.escape(st, 1)
So. Lawrence is happy, and the escape works as expected. Several man
years has been saved.
Max M
--
http://mail.python.org/mailman/listinfo/python-list
stuff.
If you cannot think of other examples for yourself where your change
would introduce breakage, you are certainly not an experienced enough
programmer to suggest changes in the standard lib!
Max M
--
http://mail.python.org/mailman/listinfo/python-list
content = f.read()
f.close()
return '"%s"' % someword in content:
You might think that it is stupid code that should be changed to take
escaped quotes into account. But that is really not your bussines to
decide if the other behaviour is documented and correct.
Wildemar Wildenburger wrote:
> Paddy wrote:
> > Rename the .py file with extension .pyw.
> > - Paddy.
> >
> To elaborate: This works because, by default, .py files are associated
> with python.exe and .pyw files are associated with pythonw.exe, the
> latter not opening a console window.
> You can
401 - 500 of 1835 matches
Mail list logo