/my..com/intranet.html* is down*
http://#.main..com/psso/pssignsso.asp?dbname=FSPRD90
* is down*
http://sharepoint..com/regions/west/PHX_NSC/default.aspx
* is down*
Cc: [email protected]
Date: Mon, 16 Dec 2013 06:54:48 -0500
Subject: Re: Question RE urllib
On Mon, Dec 16, 2013
Sorry to be a pain here, guys, as I'm also a newbie at this as well.
Where, exactly in the script would I place the " print str(e) " ?
Thanks
Original message :
I'm not really receiving an "exception" other than those three sites, out
> of the 30 or so I have listed, are the only sites which s
This worked perfectly. Thank You
Where, exactly in the script would I place the " print str(e) " ?
The line after the print site + " is down" line.
Original Post :
I'm not really receiving an "exception" other than those three sites, out
of the 30 or so I have listed, are the only sites
So I'm using the following script to check our sites to make sure they are
all up and some of them are reporting they are "down" when, in fact, they
are actually up. These sites do not require a logon in order for the home
page to come up. Could this be due to some port being blocked internally
Folks, I promise I'll get to the point where my questions aren't so basic,
but I'm just now starting to get into Python. So I'm using the urllib
script to check to make sure our company sites are up. As stated earlier,
I have three sites which require some form of authentication in order to
repo
I have some simple code I would like to share with someone that can assist
me in integrating authentication script into. I'm sure it's an easy answer
for any of you. I am still researching, but on this particular project,
time is of the essence and this is the only missing piece of the puzzle for
Python is definitely suitable for that sort of task.
Django is good for this sort of thing, but I’d also like to mention using Flask
(http://flask.pocoo.org), especially if you are a beginner. I use it for some
of my work, and you could potentially get your project up and running that much
quic
I'm trying to use Python Editor v5 for Chromebooks. It works fine, except it
won't read data files. I'm just wondering if anyone else is using this editor
and has found a solution to this problem.
--
https://mail.python.org/mailman/listinfo/python-list
c features.
IronPython 2.7.5 is also available for embedding via NuGet. The main
package is IronPython, and the standard library is in
IronPython.StdLib.
- Jeff
[1] http://ironpython.codeplex.com/releases/view/169382
[2] http://bit.ly/ipy275fixed
[3] https://github.com/IronLanguages/main/compare
Thank you. This is extremely helpful. The key that I was missing is that
it's running them outside of the ipy context. I also discovered that if you
call the script .ipy instead of .py, it actually does more or less what I
was expecting -- that is, it allows magic commands, and I got the thing
work
and the like.
Thanks for your help!
Jeff
--
https://mail.python.org/mailman/listinfo/python-list
r (in part) didn't know if the
whole thing would be useful. Thinking about this I'm not sure if this a
compiler issue or a situation where lxml isn't supported in 3.5 yet.
Might someone be able to shed some insight?
Thanks,
Jeff
...
C:\Program Files (x86)\Microsoft Visual Studi
I am trying to build Python on windows. I have gotten the source in
compressed form, Python-3.5.0.tgz. Attempting to follow PCBuild\readme.txt
Ran the get_externals.bat in the PCBuild folder. No apparent errors.
Trying to build and getting errors:
1> abort: there is no Mercurial repository he
On Sun, Oct 18, 2015 at 5:15 AM, Tim Golden wrote:
> On 17/10/2015 17:25, Jeff Archer wrote:
>
>> I am trying to build Python on windows. I have gotten the source in
>> compressed form, Python-3.5.0.tgz. Attempting to follow
>> PCBuild\readme.txt
>>
>> Ran
x27;t remember the specific issues off-hand but since I was
successful using the batch files, I didn't worry about it.
With this build of Python I have gotten rudimentary extensions working with
Boost.Python and straight C code. Had to build Boost against this build of
Python to make that work.
j
ettle to a
steady state.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
cribing a successive parameter.
I'm hoping this reflects the implementation of omniORBpy. Assuming
that it does, are there well-defined routines for interrogating/
manipulating these interface class objects?
Thanks,
Jeff
[note: this was originally posted at stackoverflow
http://stackoverf
be a proprietary license that states you
purchased this program
and don't have the right to pass it on to others, similar to ActiveState
or somesuch.
The real hook would seem to be the social one that you provide support
and improvements
so they need to keep you in business.
-Jeff
--
http://mail.python.org/mailman/listinfo/python-list
rver
class ServerHandler(CGIHTTPServer.CGIHTTPRequestHandler):
cgi_directories=[ '/cgi-bin' ]
httpserver = BaseHTTPServer.HTTPServer(("", 80), ServerHandler)
httpserver.serve_forever()
Many thanks,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
This sounds like a homework problem. You might try splitting the name
at the e's, check the length of the resulting list and do that many
nested loops.
On 1/10/06, Nico Grubert <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I have a string 'Michèle' that represents the firstname of a person.
>
> What
://pythonpaste.org/archives/message/20051128.204519.6c759047.en.html
http://trac.turbogears.org/turbogears/wiki/SqlobjectCaching
Cheers,
Jeff
[EMAIL PROTECTED] wrote:
> Hello. Does SQLObject provide connection pooling? If so, is it
> automatic or do I have to do something to manage it? If not,
thanks - that's the trick.
On 8/17/06, Tim Chase <[EMAIL PROTECTED]> wrote:
> Looks like you need to be using "raw" strings for your
> replacements as well:
>
> s = re.sub(r'([A-Z]+)([A-Z][a-z])', r"\1_\2", s)
> s = re.sub(r'([a-z\d])([A-Z])', r"\1_\2", s)
>
> This should allow the backslashes to
u, even if you check out
VB. I just didn't want to see incorrect information on VB get spread
like that. There are enough real problems with it. :)
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain information that is privileged,
iki page of topic idea at:
http://us.pycon.org/TX2007/TalkIdeas
so add a link and create a subpage that contains the outline of your dream
talk, and then shop it around to find a speaker to give it. ;-)
Jeff Rush
PyCon 2007 Co-Chair
---
Python: Produce impressive results and have fun too!
--
http:
press release.
There is a wiki page at the following on which to collect ideas on where to
submit a press release:
http://us.pycon.org/TX2007/PublicityIdeas
That's it! It really shouldn't take a lot of time; a bit of surfing, perhaps
a few email queries.
-Jeff
--
http://mail.pyt
ect files under CVS/subversion
control - how does that work?
* Also eggs have support for units tests - how?
* Where do the egg experts hang out?
An Old Talk of mine about Eggs (from which to borrow slides/ideas):
* Attach:2006-03-25-AboutPythonEggs.odt
* Attach:2006-03-25-About
access control security at the
object level?
* What flavor and degree of transaction support is
offered? Per thread, per context, autocommit?
-Jeff
Co-Chair PyCon 2007
--
http://mail.python.org/mailman/listinfo/python-list
t "z"
> time.sleep(0.1)
> #end while
>
> print "...done"
> #raise smtp.SMTPDeliveryError(code=550, resp="Unable to deliver
> email, please try again later", isFatal=True, retry=False)
> print ""
> #endif
>
> #end ProcessEmail
For semaphores, check out the mutex module
(http://docs.python.org/lib/module-mutex.html). For timeouts, look at
the alarm signal in the signal module
(http://docs.python.org/lib/module-signal.html).
--Jeff
--
http://mail.python.org/mailman/listinfo/python-list
clarity standpoint. A
string.reverse() method would be a decent thing to have.
Just my $.02.
-Jeff
P.S. How about a string.shuffle() method that splits the string in half
into two new strings str1 and str2, and then recompiles the string by
alternating one character from each str1 and str2 as it
rity standpoint. A
string.reverse() method would be a decent thing to have.
Just my $.02.
-Jeff
P.S. How about a string.shuffle() method that splits the string in half
into two new strings str1 and str2, and then recompiles the string by
alternating one character from each str1 and str2 as it goe
mming" classes nail me again! Is this why
the applicants I see that are fresh out of college with their shiny new
computer science degrees can't seem to code their way out of a wet paper
bag?
-Jeff
This email is intended only for the individual or entity to which it is
addressed. T
rase), it's quite possible it's not 100% clear what I was
saying. It was just meant to demonstrate a silly method, one as
essentially useless as a reverse() method.
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain informatio
Paul wrote:
>"".join(sum(map(list,zip(s,s[len(s)/2:])),[]))
>
>perhaps?
Not quite as elegant as a "string.shuffle" would be, am I right?
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain information tha
>Demel, Jeff wrote:
>> I've been programming professionally for over 10 years, and have
never
>> once needed to reverse a string. Maybe it's a lack of imagination on
>> my part, but I can't think of a single instance this might be
necessary.
Carl wrote:
fully name-qualify all imports?
http://us.pycon.org/TX2007/PyPgmStyle
I've included links to the wiki pages holding the outlines in hopes that
people will suggest additional topics to cover.
To give a talk, before Oct 31 visit the conference page at:
http://us.pycon.org/TX2007/CallFo
We have a GCC in /usr/rcf that was not built with --disable-shared.
As such, there is a /usr/rcf/lib/libgcc_s.so.
We also have a (preferred) GCC in /afs/rcf/lang/gcc/current that
was built with --disable-shared. As such, there is no
/afs/rcf/lang/gcc/current/lib/libgcc_s.so and binaries built
wit
It's been a year or so since I written Python code, so maybe
I am just doing something really dumb, but...
Documentation
=
class DictReader(csvfile[,fieldnames=None,
[,restkey=None[, restval=None[, dialect='excel'
[, *args, **kwds])
Cr
I see what's wrong. Me. Wow am I ever rusty.
Jeff Blaine wrote:
> It's been a year or so since I written Python code, so maybe
> I am just doing something really dumb, but...
>
> Documentation
> =
>
> class DictReader(csvfile[,fieldnames=None
and near-term To-Do's for
myself at:
http://wiki.python.org/moin/PythonAdvocacyCoordinator
Jeff Rush
Python Advocacy Coordinator
--
http://mail.python.org/mailman/listinfo/python-list
Perfect. Thanks a million.
.strftime was the method I was looking for.
-Jeff
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Kevin Kelley
Sent: Tuesday, November 14, 2006 9:34 AM
To: [email protected]
Subject: Re: Noob | datetime question
module is brand new to me, and
I'm not sure how to do this. Can someone help me out here?
TIA
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain information that is privileged, confidential
or otherwise protected from disclosure
rices and they know Python. I think
they used to be python-hosting.com or something.
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain information that is privileged, confidential
or otherwise protected from disclosure. Dissemin
It sounds like you need a stripchart like:
http://jstripchart.sourceforge.net/
written in Python of course.
On Nov 16, 12:02 am, "luca72" <[EMAIL PROTECTED]> wrote:
...
>
> with this i have the grap on the screen but i have to update every time
> that i receive others data coming from two instrume
Walterbyrd wrote:
>Okay, where can I get Python and Apache 2.X for $10 a year?
Webfaction.com
This email is intended only for the individual or entity to which it is
addressed. This email may contain information that is privileged, confidential
or otherwise protected from disclosure. Disseminat
eems like an absurd
price requirement to me. I was stoked to find
Python/Apache2.0/Django/IMAP Email/2GB storage for about 10 or so bucks
a *month*.
-Jeff
This email is intended only for the individual or entity to which it is
addressed. This email may contain information that is privileged, conf
eed be I can probably provide the code to the
class, though it's about 1000 lines, most of which is PyParsing code.
I appreciate any help you guys can provide.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
Oh, and I suppose I should provide some version information:
$ python
Python 2.4.3 (#1, May 18 2006, 07:40:45)
[GCC 3.3.3 (cygwin special)] on cygwin
Jeff Poole wrote:
> This is going to be a pretty vague message because it involves a large
> block of code I'd rather avoid posting.
with explicit self
File "/usr/lib/python2.4/pickle.py", line 663, in save_dict
self._batch_setitems(obj.iteritems())
File "/usr/lib/python2.4/pickle.py", line 677, in _batch_setitems
save(v)
File "/usr/lib/python2.4/pickle.py", line 313, in save
rv = r
tate__
cannot be pickled
I think I need to talk to the author of PyParsing about this one...
Thanks for your help!
Jeff
> Someway, self.__getstate__ is a string, not a method...
> Since it fails inside a python module, you could print some debug
> information to see what happens, l
Cowmix wrote:
> For my day job I am forced to run RHEL3 (and Centos3 on my desktop). I
> want to be able to use a few applications that require Python 2.4.X but
> RHEL3 ships with Python 2.2.3. I have tried to install and upgrade
> Python 2.4.X many ways like using PyVault and doing a source based
I do... but then I'm a grad student so I'm not sure what extent you
would call it "a living"
I know that Python is used __extensively__ in academia for running
experiments where speed is not important.
-Jeff
Magnus Lycka wrote:
> walterbyrd wrote:
>> If so, I
eginning programmers,
advanced users, core Python developers, etc.)
* (Recommended) At least one previous presentation/teaching
engagement reference
So get cranking and let us see your best.
Jeff Rush
PyCon 2007 Co-Chair
--
http://mail.python.org/mailman/listinfo/python-list
z ("r0ml") (speaking Sunday AM)
Topic: "The Importance of Programming Literacy"
-Jeff
Co-Chair PyCon 2007
--
http://mail.python.org/mailman/listinfo/python-list
e've tried to keep it short, to
respect your time.
http://us.pycon.org/swagpoll
Thanks!
Jeff Rush
Co-Chair PyCon 2007
--
http://mail.python.org/mailman/listinfo/python-list
to the extent possible by the
delivery media. Make your mark.
Jeff Rush <[EMAIL PROTECTED]>
Python Advocacy Coordinator
--
http://mail.python.org/mailman/listinfo/python-list
to the extent possible by the
delivery media. Make your mark.
Jeff Rush <[EMAIL PROTECTED]>
Python Advocacy Coordinator
--
http://mail.python.org/mailman/listinfo/python-list
then you'd need to
manually review the rest for creatively solving it another way. ;-)
But I think Crunchy is the most classroom-friendly way to quickly solve this.
A weekend's work at most.
-Jeff
--
http://mail.python.org/mailman/listinfo/python-list
onnection, even when i have removed all connectivity from the FTP
server mid upload.
Has anyone ever seen this? or have any ideas how i could code around
it.
Thanks
Jeff
--- debug log
*resp* '227 Entering Passive Mode (##.##.##.##,173,244).'
*cmd* 'NLST *filematch*.xml'
nk of a project that includes several of the key
fundamentals of programming that we do every day, like reading and
writing files, reading and writing to a database, GUI development, and
things like that.
HTH
-Jeff
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
B
site is at http://us.pycon.org. Drop me a line if you have
questions to get your finished application installed on the conference server.
(offer includes fame only, no fortune).
-Jeff
P.S. Can't make it to PyCon this year? Hey, you too can write the app and
let'm know what th
uthor in attendance who would like to promote your book,
drop an email to "jeff at taupro.com" or come forward when we call the book
signing to order in the store.
So that the bookstore can have copies on-hand, we'd like to collect a list
of titles you'd consider having
lease consider signing up by visiting:
http://mail.python.org/mailman/listinfo/pycon-tech
-Jeff
--
http://mail.python.org/mailman/listinfo/python-list
announcement.
So that the bookstore can have copies on-hand, we'd like to collect a list
of titles you'd consider having signed. Please edit the following wiki page
and add your choices. Authors, you can add your books too.
http://us.pycon.org/TX2006/BookSigning
-Jeff
--
http://mail.
You should check out Spyce:
http://spyce.sourceforge.net/
It will work under CGI as well as Fast CGI, ModPython, or its own built
in server.
It also has an ASP/JSP like syntax:
http://spyce.sourceforge.net/docs/doc-lang_asp.html
If you plan on getting a new hosting company you might also want to
I am not
currently doing so. I could never get the footprint down sufficiently to
make it usable, unfortunately. But I would like to see the Python
developers maintain an awareness of memory consumption and not assume that
Python is always run on modern fully-loaded desktops. We are seein
):
self.CloseLog()
self.OpenLog()
time.sleep( 5 )
return bOk
#
# snip...
# manipulate event records here
#
#
# main
#
OpenLog
Ok = 1
while Ok:
Ok = ReadLog()
CloseLog()
Jeff
--
http://m
Title: Long running Script stops responding, CPU usage increases
This is running Python 2.3 on windows 2003/windows xp.
I have written a script to display and filter the Win32 event log in a scrolling list to the command line (it also does some summary tasks). It uses the win32evtlog.ReadE
>
Another option is to use Jython, which allows you access to Java as well. So, you can can write the procedural aspects in Python and add GUI support from Java. You're probably looking for Tkinter, but I thought I'd throw the Jython option out there.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
libm.so.6 => /lib/tls/libm.so.6 (0x00fcf000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x00656000)
If you know what shared modules your program uses, you can "ldd" them all and
find out the set of libraries they are linked to.
Jeff
pgpeC5PdZ34hJ.pgp
Description: PGP signature
--
ad_id,
__init__, and a way to clean up items from self.files when a thread
passes away.
Jeff
pgpfNtl83qNgI.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
As your 'for' loop shows, the number of items in the slice [2:5] is only
3, not 4.
Maybe you want the slice [2:6] instead.
>>> x = "xx\xb6/\0\0"
>>> struct.unpack('i', x[2:6])
(12214,)
Jeff
pgprzSG2OzoK4.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
quot;[" + ",".join(result) + "]", s
def make_nesting_function(l):
return eval("lambda l: %s" % make_nesting_expression(l, 0)[0])
t = [['a1','a2'],['b1'],['c1'],['d1']]
l = [1, 2, 3, 4, 5]
f = make_nesting_
se id() is being calculated on the
right-hand-side could turn out to be the same, since the two objects
have disjoint lifetimes.
Here are some more cases of the same thing:
>>> id([]) == id([])
1
>>> id([]) == id([1])
1
Jeff
pgp0amP007OuW.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
nts
[3, 4, 5]
>>> args = [3, 6]
>>> range(*args)# call with arguments unpacked from a list
[3, 4, 5]
Jeff
pgpaezewLDmEG.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
it your own
style. Or maybe just as an excuse to write offensive things like "[a]
fucking toy whose max use is as a simplest calculator"
I can't see anything to make me recommend this documentation over the
existing documentation.
Jeff
pgp5Y4v6p63xE.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
Tk, the library that Tkinter wraps, does not offer a way to "minimize to
the taskbar".
Jeff
pgp3ATXnxg0dO.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
27;m sure this is obvious, but this newbie's stuck!
Thanks,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
On Saturday 07 May 2005 01:24 pm, jeff elkins wrote:
> Howdy,
>
> I've written a program that calls an imported dialog to gather some needed
> input. What's the common method for passing that data back to the caller?
> I've tried a 'return data' prior to sel
On Saturday 07 May 2005 02:34 pm, Jeremy Bowers wrote:
> On Sat, 07 May 2005 13:24:34 +0000, jeff elkins wrote:
> > Howdy,
> >
> > I've written a program that calls an imported dialog to gather some
> > needed input. What's the common method for passing that da
er entered; this comes after the try: finally: (i.e.,
> on the same indentation as "dlg = vents.vents(self)").
Thanks! That did the trick.
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
x27;ScrolledGrid', 'FileEntry', 'ScrolledHList', 'DirTree',
'OptionMenu', 'ScrolledText', 'LabelFrame', 'FileSelectBox',
'ScrolledListBox', 'InputOnly', 'PanedWindow', 'StdButtonBo
r startup files? Right now, I'm hard coding the path, which
won't work.
Thanks,
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
.argv[0]))
Works perfectly, thanks much!
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
e directory containing the executable is not where
> configuration files are supposed to be stored under
> Unix/Linux.
Thanks Grant,
I live and develop in Linux, but unfortunately, 99.99% of the users of this
particular application (analysis of medical laboratory data) will be wor
On Wednesday 11 May 2005 10:18 pm, Robert Kern wrote:
> jeff elkins wrote:
> > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote:
> >>On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >>>The following script demonstrates a method that shoul
On Thursday 12 May 2005 05:24 am, Mike Meyer wrote:
> jeff elkins <[EMAIL PROTECTED]> writes:
> > On Wednesday 11 May 2005 04:44 pm, Grant Edwards wrote:
> >> On 2005-05-11, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> >> > The following script demonst
r range of graphics formats, though
> postscript is preferred.
>
> --
> Mike Meyer <[EMAIL PROTECTED]>
> http://www.mired.org/home/mwm/
> Independent WWW/Perforce/FreeBSD/Unix consultant, email for more
> information.
I've been using:
p=os.popen('lp','w')
p.write("some text')
p.Close()
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
;>> f() # because the result of the expression is 'None'
Your example
>>> int a
is not Python, but if it was it would probably be a non-expression
statement, and thus never print a result in the interpreter.
Jeff
pgpYRHXaq9ZxI.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
t;>> from decimal import Decimal as D
>>> D("1.0") + D("3.0") + D("4.6")
Decimal("8.6")
>>>
when you write '4.6', you get a binary floating-point number which is
not equal to the decimal number 4.6.
>>> 4.6
4.5999
Kenneth Miller wrote:
> Has anyone acheived this?
There is no reason why Tkinter couldn't load BLT (from the Tcl
side). You could wrap it up into a Tkinter-style widget, or
just drive it through lower level evals.
--
Jeff Hobbs, The Tcl Guy
http://www.ActiveState.com/, a div
as the "previous release series". I'd steer clear of this version.
I recommend using the default compiler of your distribution, unless you
know of a specific reason to use a different one.
Jeff
pgpIOvlvJwm7i.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
it may or may
not work without modification.
Jeff
# This code is in the public domain
from Tkinter import *
def makevar(master, name, klass, *default):
self = newinstance(klass)
self._master = master
self._tk = master.tk
self._name = name
if default:
self.set(default[0]
thai user of Windows
might see THAI CHARACTER THO THAN, for instance, and I would see a
question mark because I use utf-8 and this is an invalid byte sequence).
By using
x = u'%c' % (0xb0)
you get a unicode string, and there is no confusion about the meaning of
the symbol---you always
In Python, "chr" gives a 1-byte string from a small integer, "ord" does
the reverse. Strings are concatenated with "+" and substrings are taken
with the slice operator, s[pos1:pos2].
I'm not a visual basic expert, but it looks like these are the
operat
dered as an escape sequence like "\u220e".
This is falliable because there's no guarantee that the symbol would not be as
wide as 000, but also it's possible for some escape code (say \u) to be
narrower than 000. Neither of these seem very likely in practice.
Jeff
pgpCovRiRsUh0.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
he low-level font handling in
Tk; The information in the above paragraph was gleaned by reading the
source code (tkUnixFont.c and tkWinFont.c).
Jeff
pgpEsZ31qI4Yx.pgp
Description: PGP signature
--
http://mail.python.org/mailman/listinfo/python-list
# If the file is so large that it can't be read at once, do a loop which
# reads and writes smaller chunks
#while 1:
#block = f.read(4096000)
#if not block: break
#g.write(block)
f.close()
g.close()
Jeff
pgp72dlRWI08A.pgp
Description: PGP signature
--
h
On Friday 20 May 2005 06:46 pm, James Stroud wrote:
> import sys
>
> try:
> arg1 = sys.argv[1]
> except IndexError:
> print "This script takes an argument, you boob!"
> sys.exit(1)
>
> OR, way better: See the optparse module.
>
> On Friday 20 Ma
ot;"" % (arg1,),
> (arg2,))
>
> See how I didn't just use arg1 to paste it in the query string, but checked
> it before trying the query to consist only of characters. You'd have to
> adjust this accordingly for field-names you use (maybe you use underscores,
> etc.). But, be sure that arg1 contains no ";"!
>
> HTH!
Hey, I could barely spell SQL yesterday...:)
I really appreciate the pointers!
Jeff
--
http://mail.python.org/mailman/listinfo/python-list
On Saturday 21 May 2005 01:32 pm, Dennis Lee Bieber wrote:
> On Fri, 20 May 2005 23:57:01 -0400, Jeff Elkins
> You have to remember that .execute(), using the (template,
> (arg...)) format, is designed to apply suitable quoting to the
> arguments. It does not parse the SQL to
501 - 600 of 1056 matches
Mail list logo