hat I am logging into says, use
> Carriage Return after each command. Nothing seems to get back the
> data. I am not sure if the Python telnet is looking for more of true
> command line like telnet>.
Have you tried: tn.set_debuglevel(1) ?
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
;s own private version of python, which would not help me.
Check this:
http://opendocumentfellowship.com/development/projects/odfpy
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
een Fredrik Lundh's introduction to tkinter (and others) and
>> it appears to be for an earlier version of Python. I am working with
>> Python 2.5 and most doc I am finding are for Python 2.2 or earlier.
>>
>> Many thanks
>
> One of my favorites is http://effbot.
le.add_command(label="Save", command=hello)
menubar.add_cascade(label='File', menu=mfile)
root.config(menu=menubar)
root.mainloop()
But I think that you should read this:
http://effbot.org/zone/vroom.htm
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
use a global CookieJar
> object. Is there anyway that could handle all this INSIDE the class?
>
> I am totally new to OOP & python programming, so could anyone give me
> some suggestions? Thanks in advance
Google for urllib2.HTTPCookieProcessor.
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
m uuid import *
u = UUID( bytes = '\xe3N`\xee\xb0J\xe7N\xafM\x01\x81$9<\xd7')
print u
u = UUID( bytes_le = '\xe3N`\xee\xb0J\xe7N\xafM\x01\x81$9<\xd7')
print u
The "bytes_le" version prints: ee604ee3-4ab0-4ee7-af4d-018124393cd7
so I guess, this is what my
mails()
Because python is dynamic alerter.DoStuffAndSendEmails will call
the sendEmails in the alerter module that has been replaced with
mock_sendEmails from the test script.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
wrote in news:a9ed10ff-d907-46f0-8c6a-
c3d95579a...@k1g2000prb.googlegroups.com in comp.lang.python:
> To answer to Rob: yeah, sure that would work, but I always thought
Just to note: you're answering a question about testing, but I
answered how to alter the alerter module *for* testin
t sure what other details to provide! Thanks a lot,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
. I forgot all about dictionary hashing for some
reason...
-Rob
--
http://mail.python.org/mailman/listinfo/python-list
%r" % ( ( a, b, c, d ), ) )
if c is SENTINEL:
print( "c is missing" )
if d is SENTINEL:
print( "d is missing" )
f( *( 1, 2, SENTINEL, SENTINEL ) )
f( **dict( a = 1 , b = 2, d = 4 ) )
f( **dict( a = 1 , b = 2, d = 4, c = SENTINEL ) )
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
3: exec arg 1"
Python 3.0 (r30:67507, Dec 3 2008, 19:44:23) [MSC v.1500 64 bit (AMD64)]
on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> open( "hello.py" )
>>> exec "a = 1"
Aaron Brady wrote in
news:582ef883-0176-4984-9521-6c1894636...@a26g2000prf.googlegroups.com
in comp.lang.python:
> On Jan 18, 10:44 am, Rob Williscroft wrote:
>> Aaron Brady wrote
>> innews:6a10378f-addb-4d56-bc1b-0c382b3cb...@t26g2000prh
> .googlegroups.com
>> in comp.
rg/issue1762972 (*)
IIRC, exec(open(fname).read()) is the Py 3.0 replacement.
*) For reference, 2 clicks away from http://www.google.co.uk/search?
hl=en&q=TextIOWrapper+exec+site%3Abugs.python.org&meta=>
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
operations.)
In this case something like this:
a = [0 , 1, 3.14, 20, 8, 8, 3.14]
count = sum( 1 for x in a if 3.13 < x and x < 3.15 )
http://docs.python.org/library/functions.html#sum
http://docs.python.org/reference/expressions.html#generator-expressions
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
nt side manipulation.
Then have your remote webserver render a form that posts via javavscript
to the localhost webserver. The localhost server would post back in
the same way.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
ocalhost server would
>> post back in the same way.
>
> AFAIK the JS security model prevents that.
>
Are you thinking of frames?, or the way IE 7 complains about
runnning javavscript (though it bizzarly calls it an "running
an ActiveX control" )?.
Anyway it works fine.
m not
> used to windows programming.
Then don't do any (windows programming), do Python:
http://docs.python.org/3.0/library/wsgiref.html#module-
wsgiref.simple_server
http://docs.python.org/3.0/library/cgi.html#functions
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
Diez B. Roggisch wrote in news:6ts0dnfc9s0...@mid.uni-berlin.de in
comp.lang.python:
> Rob Williscroft schrieb:
>> Diez B. Roggisch wrote in news:6tpo16fbacf...@mid.uni-berlin.de in
>> comp.lang.python:
>>
>>>> 2) create a localhost web server, for the client
c.
You shoulf be able to verify it is on your path by typing:
gcc --help
or
gcc --version
and see some output.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
Kottiyath wrote in news:d86a0c1d-e158-4aa1-a47f-e2149948bdc3
@p2g2000prf.googlegroups.com in comp.lang.python:
> On Jan 29, 1:51 am, Rob Williscroft wrote:
>> Kottiyath wrote in news:6a594643-f6a2-4d8d-aab3-27eb16cb2fb8
>> @b38g2000prf.googlegroups.com in comp.lang.python:
read it now as by next week microsoft will
have moved the content elsewhere (I'd add a smiley here, but it
really isn't funny).
> <%
> Response.Write ("test")
> %>
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
tr)
>
> class MyNewClass(Test):
> pass
>
> a = MyNewClass()
>
> print a.foo, a.buz, a.fiz, type(a)
print( ( a.foo, a.buz, a.fiz, type(a) ) )
py 3.0:
('bar', 'brr', 'An attribute', )
py 2.4
('bar', 'brr', 'An attribute', )
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
it is another kind of object, it will be printed and the system
exit status will be one (i.e., failure).
>>>
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
a function:
http://docs.python.org/3.0/library/functions.html#exec
print is also a function in python 3.x, so:
>>> print(1, 2)
1 2
>>>
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote in news:016abfa1$0$6988$c3e8...@news.astraweb.com in
comp.lang.python:
> On Tue, 30 Dec 2008 15:35:28 -0600, Rob Williscroft wrote:
>
>> Stef Mientki wrote in news:mailman.6399.1230668197.3487.python-
>> l...@python.org in comp.lang.python:
>>
glut.html
and put the glut32.dll where python can find it, the readme says
\system which worked, but sticking it in the same directory
as python.exe (c:\python25 in your case) worked too.
http://pyopengl.sourceforge.net/
http://pyopengl.sourceforge.net/documentation/installation.html
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
p://www.python.org/dev/peps/pep-3104/
A shorthand form is also permitted, in which nonlocal is prepended to an
assignment or augmented assignment:
nonlocal x = 3
The above has exactly the same meaning as nonlocal x; x = 3. (Guido
supports a similar form of the global statement [24].)
Search
corated
class Example( object ):
@mydecorator
def foo(self, a, b, ):
yield 1
print( help( Example ) )
But realise that when the decorator ("mydecorator" above) is
run neither the class ("Example") or the instance (self) is
available. Which limits somewhat the debugging
i in e.foo( 2, 3 ):
print( i )
Output of the above is:
DEBUG:root:Created Example
6
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote in news:mailman.2448.1223974725.3487.python-
[EMAIL PROTECTED] in comp.lang.python:
> Hi!
>
> I wanna write a file processor in python (Windows XP).
> I wanna use pipe, and not parameters.
>
> When I write this:
>
> ...
> l = []
> while 1:
> t = sys.stdin.read(1)
>
ng to OOP practices, etc.
Take a look at design patterns in Python:
http://www.aleax.it/goo_pydp.pdf
http://video.google.com/videoplay?docid=-3035093035748181693
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
@setproperty
> def title(self, value):
> self.__title = value
>
> properties_to_set = ['title']
> f = Film('aaa')
Ther is a builtin `setattr` to do this:
#http://www.python.org/doc/2.5.2/lib/built-in-funcs.html
setattr( f, "title
mode-name "Python"
local-abbrev-table python-mode-abbrev-table
- font-lock-defaults '(python-font-lock-keywords)
+font-lock-defaults'(python-font-lock-keywords nil nil nil nil
+(font-lock-syntactic-keywords
+ . python-font-lock-syntactic-keywords))
+
paragraph-separate "^[ \t]*$"
paragraph-start "^[ \t]*$"
require-final-newline t
--
Regards,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
mode-name "Python"
local-abbrev-table python-mode-abbrev-table
- font-lock-defaults '(python-font-lock-keywords)
+font-lock-defaults'(python-font-lock-keywords nil nil nil nil
+(font-lock-syntactic-keywords
+ . python-font-lock-syntactic-keywords))
+
paragraph-separate "^[ \t]*$"
paragraph-start "^[ \t]*$"
require-final-newline t
--
Regards,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
maintain your 2.x code base adding another test where the
code (and tests) is run through 2to3.py and then python 3.x runs
the test suite.
Presumably you only need to start maintining a 3.x code base when
you start adding 3.x specific features or abandon support for
2.x python.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
ression matches the whole of
the input sequence. If you want to search for an expression somewhere
within the sequence then use regex_search. If you want to match a prefix of
the character string then use regex_search with the flag match_continuous
set.
So yes it does.
Rob.
--
http://www.vi
27;aabb'
> Instead it matches the first part:
>
>>>> m = p.match('aabb')
>>>> m.group()
> 'aab'
Read (and bookmark) this:
http://www.python.org/doc/2.5.2/lib/re-syntax.html
You want the 3rd item down about the "$" special c
Lawrence D'Oliveiro wrote in news:[EMAIL PROTECTED] in
comp.lang.python:
> In message <[EMAIL PROTECTED]>, Rob
> Williscroft wrote:
>
>> Read (and bookmark) this:
>>
>> http://www.python.org/doc/2.5.2/lib/re-syntax.html
>
> Funny how you never
quot;count"
from table_1
count
---
64
(1 row(s) affected)
Like it should.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
You get None b/c that's what's being returned from your join strings
function. Your function already prints out the result and doesn't
return the joined strings a your usage case expects.
So either return the joined strings from your function and don't print
them inside the function, or vice versa
PyDSTool (pydstool.sourceforge.net) is a multi-platform, open-source
environment offering a range of library tools and utilities for
research in dynamical systems modeling for scientists and engineers.
Please contact Dr. Rob Clewley (rclewley) at (@) the Department of
Mathematics, Georgia State Universit
basis as a
>> technical consultant (i.e., no fringe benefits offered)
FYI I also discovered that the funds will in fact be available until
**early June** which I will correct in the posting to that jobs site.
Thanks,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
nderstanding? I assumed it would be possible to do this
compilation even if a 64 bit version of python has been installed on
this linux box.
I'm somewhat out of my depth talking about these internal gubbins so
please go easy on me.
Thanks in advance,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
sts/dopri853_temp
-I/data/home/nwagner/local/include/python2.5 -E -dD
/data/home/nwagner/svn/PyDSTool/PyDSTool/tests/dopri853_temp/dop853_HHnet_vf_wrap.c
-w -m32 -D__DOPRI__
Maybe Nils can pick up the thread from here.
Thanks,
Rob
On Sun, Mar 22, 2009 at 2:36 AM, "Martin v. Löwis" wrote:
&
''',
(s.SID, v['uid'])
)
# Finally commit the transaction
connection.commit()
> # only do this if there is no primary key conflict in the above
> if db.ERROR == None: db.execute('UPDATE groups SET uid=? WHERE uid=?',
> (v['uid'],s.UID))
Python reports errors by throwing exceptions, so if you needed somthing
like this it would more likely be:
try:
... # somthing that errors up ...
catch sqlite3.DatabaseError:
connection.rollback()
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
Aahz wrote in news:guao50$1j...@panix3.panix.com in comp.lang.python:
> In article ,
> Rob Williscroft wrote:
>>
>>db.execute( '''
>> update "sessions" set "uid" = ?
>> where "uid" = ?
John Machin wrote in news:b722bd36-c8f1-4cdf-8625-2550cee21511
@i28g2000prd.googlegroups.com in comp.lang.python:
> On May 13, 11:46 am, a...@pythoncraft.com (Aahz) wrote:
>> In article ,
>> Rob Williscroft wrote:
>>
>>
>>
>> >Aahz wrote innews:guao50
On Thu, May 21, 2009 at 8:19 PM, Gary Herron wrote:
> MRAB wrote:
>>
>> Grant Edwards wrote:
>>>
>>> On 2009-05-21, Christian Heimes wrote:
seanm...@gmail.com schrieb:
>
> The explaination in my introductory Python book is not very
> satisfying, and I am hoping someone can e
y/re.html
The grouping operators, '(' and ')', appear to be unnessasery,
so altogether this 1 line should probably be:
text = re.sub( r']+>', '', text )
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
ent ):
self.sound = wx.SoundFromData( sample )
self.sound.Play( wx.SOUND_ASYNC )
frame = Frame( None )
frame.Show()
app.MainLoop()
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
s the path part
with the other 2 its the location (domain) part.
Although it may not be immediately obvious that the result
is correct, consider the follwing html fragment:
http://anothersite.com/bbb.gif";>
If you were to use urlparse to parse the src attributes
you would want:
(
', 'a', '80', '5')
so it would look like this:
args=('/logs/application.log', 'a', 80, 5)
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
;>> logging.root.warning('error message')
Note only one warning message.
> P.S. I tried researching this further by myself, but the logging
> module doesn't come with source (apparently it's written in C?) and I
> don't have the time to find and downl
of very interesting and clean design:
docutils: http://docutils.sourceforge.net/docs/dev/hacking.html
trac: http://trac.edgewall.org/wiki/TracDev/ComponentArchitecture
In both of them code is not just clean, it is a work of art. ;)
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
he rule
is the same.
> As far as the book is concerned, I guess I'd purchase the only copy ;-).
"The Art of Logging" - four volumes. ;-)
Regards,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
f digest:
proxy_support = urllib2.ProxyDigestAuthHandler(passwd_mgr)
else:
proxy_support = urllib2.ProxyBasicAuthHandler(passwd_mgr)
opener.add_handler(proxy_support)
return opener
def fetchurl(url, opener):
f = opener.open(url)
data = f.read()
thunks on the caller's
dynamic stack frame [or at least call instructions *to* the thunks
which could pass the current lexical contours as sub-arguments].
Knuth's nasty "man or boy test" stressed this to the limit:
http://en.wikipedia.org/wiki/Man_or_boy_test
-Rob
p.s.
sses
IronPython 1.1 (1.1) on .NET 2.0.50727.1433
Copyright (c) Microsoft Corporation. All rights reserved.
>>>
I don't know what happens if you have both 32 bit and 64 bit versions
of the framwork installed (presumably with slightly different minor
version numbers) as I uninstalled the 32 bit version before I installed the
AMD64 version.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
results, however interestingly there is no 64 bit
build for the 3.5 framework (or at least I was unable to find one).
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
password and submit-button are the name of the
controls on the form you would normally login from.
If the form has an enctype='multipart/form-data' then things
get a little more complex, possibly start here:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306
Rob.
--
http://w
he same file handle
as for stdout.
So import STDOUT and make stderr=STDOUT in the Popen call, you will then
have one file/pipe to deal with p1.stdout.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
ing on with timeit.Timer ?
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
e call *is* repeated, not
just called once like you intended.
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
lled.
The source code is released under the BSD license, but I am amenable
to other licensing ideas if there is interest in adapting the code for
some other purpose. Full details of the functionality and known issues
are in the module's docstring, and many examples of usage are in the
accompa
sub-class of my ContextClass.
Thanks for pointing out that page, anyway. I didn't know the smaller
formats had been given their own name.
-Rob
--
http://mail.python.org/mailman/listinfo/python-list
start - just need to change the table to something like::
_abbrevs = [
(2 ** 30L - 1, 'G'),
(2 ** 20L - 1, 'M'),
(2 ** 10L - 1, 'K'),
(1, '')
]
(and add a 'B').
--
-rob
--
http://mail.python.org/mailman/listinfo/python-list
On 13 Aug 2008, Cyprian Kumwaka wrote:
> I am a beginner in Python. Please tell me how to go about in
> downloading and installing the module gasp.I am using Python 2.5.2.
What OS are you using? Do you have PyGame installed already?
--
-rob
--
http://mail.python.org/mailman/listinfo/
On 13 Aug 2008, Virgil Stokes wrote:
> Is it possible to change the time stamp of a file (Win2K platform)? If
> yes, how?
os.utime, http://docs.python.org/lib/os-file-dir.html.
--
-rob
--
http://mail.python.org/mailman/listinfo/python-list
ion. Or
http://www.gossamer-threads.com/lists/python/python/652793?page=last.
--
-rob
--
http://mail.python.org/mailman/listinfo/python-list
calculating the nulls of a function (for instance) as
numerical approximations, provided you are able to write small scripts
to use those tools.
-Rob
On Mon, Apr 7, 2008 at 12:05 PM, mc <[EMAIL PROTECTED]> wrote:
> I'm looking for a library which can do mathematical stuff like
> solvi
his perl
> script does:
Curl maybe, http://pycurl.sourceforge.net/
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
passwd='mypass')
> opener=urllib2.build_opener(aut, urllib2.HTTPHandler(debuglevel=1))
Add here:
opener.add_handler(aut))
> print opener.open(fullurl).read()
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
Rob Wolfe <[EMAIL PROTECTED]> writes:
>> ---script:
>> import urllib2
>>
>> protocolo='http://'
>> servidor='10.28.1.239/'
>> pagina='manage'
>> fullurl=protocolo+servidor+pagina
>>
>> aut=urlli
George Neuner wrote:
+---
| Common Lisp doesn't have "filter".
+---
Of course it does! It just spells it REMOVE-IF-NOT!! ;-} ;-}
> (remove-if-not #'oddp (iota 10))
(1 3 5 7 9)
> (remove-if-not (lambda (x) (> x 4)) (iota 10))
On 18 Aug 2008, Beema Shafreen wrote:
> Hi ALL,
>
> In my script i have to print a series of string , so
>
> print "%s\t%s\t%s\t%s\t%s\t%s\t" %("a","v","t","R","s","f")
print "\t".join(("a&q
On 19 Aug 2008, [EMAIL PROTECTED] wrote:
> Hi Folks,
>
> I am using cherrypy and python. I am trying to get a user profile
> image to resize on the client side before uploading to the server. PHP
> has a gd library that does it it seems.
PIL? http://www.pythonware.com/products/
haracter were named 1, 2, 4, 8, A, B,
and W (wordmark). Oh, and C, but that was character parity -- the
programmer couldn't set that separately.]
What was the corresponding 1401 boot sequence?
Oh, for the record, IMHO the DEC PDP-8 had a *much* simpler machine
language and assembler than the IBM 1
nibble values... "but that would have been wrong".]
-Rob
[1] The LGP-30 character code was defined before the industry had
yet standardized on a common "hex" character set, so instead of
"0123456789abcdef" they used "0123456789fgjkqw". [The &
[EMAIL PROTECTED]> wrote:
+---
| [EMAIL PROTECTED] (Rob Warnock) wrote:
| >In the LGP-30, they used hex addresses, sort of[1], but the opcodes
| >(all 16 of them) had single-letter mnemonics chosen so that the
| >low 4 bits of the character codes *were* the correct nibbl
ver printed'
> ...
[...]
You need to subclass your handler and redefine `handleError` method.
See: http://docs.python.org/lib/node409.html
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
you are doing very technical
calculations at high precision. If you need decimals to be represented
"perfectly" in python (e.g. you are writing scripts for financial
applications), try importing the decimal package (look it up in the
python docs).
-Rob
--
http://mail.python.org/mailman/listinfo/python-list
:
http://guppy-pe.sourceforge.net/heapy-thesis.pdf
.. [1] http://guppy-pe.sourceforge.net/
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
ptions:
ei = sys.exc_info()
traceback.print_exception(ei[0], ei[1], ei[2], None,
sys.stderr)
del ei
>
> To cause logging to *not* raise exceptions, set
> logging.raiseExceptions to 0 (default is 1). The raiseExceptions
> variable would normally be set t
an anyone point me in the right direction.
Check this:
http://svn.collab.net/repos/svn/trunk/subversion/bindings/swig/python/
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
Robert Maas, <[EMAIL PROTECTED]> wrote:
+---
| > From: [EMAIL PROTECTED] (Rob Warnock)
| > In the LGP-30, they used hex addresses, sort of[1], but the
| > opcodes (all 16 of them) had single-letter mnemonics chosen so that
| > the low 4 bits of the character codes
ass
>
> self.client = Client("connection string")
> self.client.callback_login = get_login
>
> ... but obviously, the Client class, when it calls the callback,
> doesn't pass a reference to the "self" object. How do I do this?
use:
se
in__":
^
= is used for assignment in Python, you want ==.
--
-rob
--
http://mail.python.org/mailman/listinfo/python-list
x-i686-2.5/test_cython.o -o
pyx_test.so
$ python2.5 test_cython.py
0
100
HTH,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
special...
I'm assuming this has been discussed before, but I'm lacking any
Google keywords that bring up the appropriate discussion.
Cheers,
Rob
--
http://mail.python.org/mailman/listinfo/python-list
On Sep 23, 4:58 pm, Christian Heimes <[EMAIL PROTECTED]> wrote:
> Rob Kirkpatrick wrote:
> > I'm assuming this has been discussed before, but I'm lacking any
> > Google keywords that bring up the appropriate discussion.
>
> You are looking for "mro
x' )
typ, data = imap.search( None, 'SINCE', today )
for num in data[0].split():
typ, data = imap.fetch(num, '(RFC822)')
msg = email.message_from_string(data[0][1])
print ( "%s, %s\n" % ( num, msg['subject'] ) )
for part in msg.walk():
ent-Type: text/csv"
print 'Content-Disposition: attachment; filename=whatever.csv'
print
...
http://search.yahoo.com/search?p=Content-Disposition
http://www.python.org/doc/2.5.2/lib/cgi-intro.html
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
the python interpreter fails. Likewise any attempt to utilise
pysqlite2 in a python script fails.
Has anyone here successfully installed it?
If you have, do you have any pearls of wisdom that might help me out?
Cheers,
Rob C
--
http://mail.python.org/mailman/listinfo/python-list
Fredrik Lundh wrote:
> Rob Cowie wrote:
>
> > There are some notes on the pysqlite wiki regarding modification of the
> > setup.py script and I've followed them to no avail.
> >
> > Build and install appear to go smoothly but attempting to run the tests
&g
Gerhard Häring wrote:
> Rob Cowie wrote:
> > [...]
> > However, if I do "from pysqlite2 import test" as suggested after
> > installation, I get the following traceback...
> >
> > Traceback (most recent call last):
> > File "", line 1
Cheers. I should have read the installation notes more carefully :)
Rob C
--
http://mail.python.org/mailman/listinfo/python-list
ndows clients, but IIRC its win2K, XP only, or you
could use cygwin (which the above is taken from).
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
ow/when/why it is generated.
>
> (I know that Python code itself is best at communication design ideas,
> but there are some people which prefer to talk UML.)
>
> (Have not found anything relevant with google)
>
> Thanks!
>
> Regards,
> Roman Suzi
Rob C
--
http://mail.python.org/mailman/listinfo/python-list
t;
I don't know wether this has been suggested or not, but
what about def:
def namespace ns:
x = 1
def type blah(object):
pass
def property x:
def get():
return ns.x
Rob.
--
http://www.victim-prime.dsl.pipex.com/
--
http://mail.python.org/mailman/listinfo/python-list
701 - 800 of 1008 matches
Mail list logo