"Allan" <[EMAIL PROTECTED]> wrote:
>If you used PayPal and are not satisifed with their service there is a
>new and better service opening. They will be starting up during the
>early summer this year. The best of all - signup is FREE.
>
>Check out their benefits:
>
>www.greenzap.com/benefits
That
Hi all,
Well this doesnt explain new style classes. let me be more clear. is there any
online tutorial/ recommended book which deals explicitly with object oriented
programming in python?
regards,
KM
---
> Try this online b
Dan Bishop wrote:
> Martijn Pieters wrote:
>
>>Martijn Pieters wrote:
>>
>>>I haven't figured this one out yet either. Rather frustrating
>
> really.
>
>>>All the hints I've been given so far is to remember the solution
>
> for
>
>>>level 12.
>>
>>A, that was devious! I found it finally, h
Martijn Pieters wrote:
> Martijn Pieters wrote:
> > I haven't figured this one out yet either. Rather frustrating
really.
> > All the hints I've been given so far is to remember the solution
for
> > level 12.
>
> A, that was devious! I found it finally, how evil that was! I
really
> fell for i
What's wrong with:
def blah():
def _ (a, b, c):
a = a + 2
print "stmt 2"
return a+b/c
return doSomethingWith(_)
It's basically "anonymous", it just uses a name that you don't care
about. AFAIK, it can be immediately clobbered later if need be.
Otherwise, the function shouldn't be
John Machin wrote:
> On Thu, 5 May 2005 13:00:32 +1200, Thomas Thomas <[EMAIL PROTECTED]>
> wrote:
>
>
>>Hi all,
>>
>>Forgot to mention I am using python 2.3 on windows.
>>
>>
>
>
> This message (sent to python_list) would seem to be referencing a
> previous posting/message -- but it's not show
On Thu, 5 May 2005 13:00:32 +1200, Thomas Thomas <[EMAIL PROTECTED]>
wrote:
>Hi all,
>
>Forgot to mention I am using python 2.3 on windows.
>
>
This message (sent to python_list) would seem to be referencing a
previous posting/message -- but it's not showing up in the newsgroup.
I've noticed a fe
Thanks for that. My version of python does'nt find "groupby". I am
using python 2.3.2. Is there a way I could do it with out using groupby
--
http://mail.python.org/mailman/listinfo/python-list
Sorry to Jeremy, I send my email derectly to your mailbox just now.
Group is very useful.
On 5/5/05, Jeremy Bowers <[EMAIL PROTECTED]> wrote:
> On Thu, 05 May 2005 09:30:21 +0800, could ildg wrote:
> > Jeremy Bowers wrote:
> >> Python 2.3.5 (#1, Mar 3 2005, 17:32:12) [GCC 3.4.3 (Gentoo Linux
> >
On Thu, 05 May 2005 09:30:21 +0800, could ildg wrote:
> Jeremy Bowers wrote:
>> Python 2.3.5 (#1, Mar 3 2005, 17:32:12) [GCC 3.4.3 (Gentoo Linux
>> 3.4.3, ssp-3.4.3-0, pie-8.7.6.6)] on linux2 Type "help", "copyright",
>> "credits" or "license" for more information.
>> >>> import re
>> >>> m = re.
On 5/5/05, Jeremy Bowers <[EMAIL PROTECTED]> wrote:
> On Wed, 04 May 2005 20:24:51 +0800, could ildg wrote:
>
> > Thank you.
> >
> > I just learned how to use re, so I want to find a way to settle it by
> > using re. I know that split it into pieces will do it quickly.
>
> I'll say this; you have
List:
I'm playing with some image algorithms and one of the examples discusses
fingerprint comparison.
The NIST has fingerprint sample files for download, in NIST IHead
format. Has anyone built a reader for that format?
Thanks
Charles
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> If this is the list.
>
> values = [ 0, 72, 0, 4, 9, 2, 0, 0, 42, 26, 0, 282,
> 23, 0, 101, 0, 0, 0, 0, 0]
>
> as we can see there are peaks in the list.that is 0,72,0 is a
> group(triangle) with peak 72.then 0, 4, 9, 2, 0, 0 with pe
Lonnie Princehouse wrote:
> Right, but suppose it's expensive to generate each part of the key -
> e.g. a database query or some kind of hash, so it doesn't make sense to
> compute the whole key in advance if the first part is sufficient to
> establish an ordering most of the time. This is what I
Hi all,
Forgot to mention I am using python 2.3 on windows.
I got the same error in mac panther .
if I remove the line
filename=unicode(filename);
it works fine sometimes
and if I encode the filename to ascii it works fine
Thanks
Thomas
--
http://mail.python.org/mailman/listinfo/python-list
Can anyone give an example of proper usage of wxFontEnumerator?
Thanks,
Weston
--
http://mail.python.org/mailman/listinfo/python-list
Hi all
import httplib, mimetypesimport
os;
def
get_content_type(filename): return
mimetypes.guess_type(filename)[0] or 'application/octet-stream'
filepath= 'c:/Documents and
Settings/Administrator/Desktop/tmp/test.pdf';f = open(filepath,
"rb")data = "">f.close()
(filedir,
Timothy Smith wrote:
> hi there, this one is in relation to my py2exe saga.
>
> when i compile a package using py2exe i get the error msg below, if i
> just run the py files it doesn't error, so i assume pysvn is trying to
> use something thats not being included in the build. only i have no ide
Thanks for the reply. I found that before I posted, but that doesn't
look thread safe and I haven't found anything that says it is or isn't.
--
http://mail.python.org/mailman/listinfo/python-list
Mike Meyer wrote:
> A quick check of the Python site turns up no discussion on submitting
> new FAQ entries. There are patch submission guidelines, and lots of
> things related to the mailman FAQ, but nothing on how to submit new
> entries for the FAQ.
E-mail [EMAIL PROTECTED] and [EMAIL PROTECTE
Keep in mind what i said, even you encrypt it the source (and decode at
run time), even if compiled via c++,c, etc., it can still be decrypted
if your using http as the protocol, all the person has to do is sniff
the packets. So if your going to encrypt your information make sure you
use a secure p
Martijn Pieters wrote:
> Roel Schroeven wrote:
>
>> Unless Martijn Pieters here and mjpieters in the Python Challenge forum
>> are two differen persons, you've found it in the meantime, haven't you?
>
>
> Yup, I found it. How evil and devious. I found the hint without
> Googling, BTW, but can se
Peter Otten wrote:
> Use
>
> eval(s)
>
> to evaluate an expression and
>
> exec s
>
> to execute a statement.
I never thought of using compile() to get around this before. Now I can
finally use print in my lambda functions! Just think of the horrible
code I could write:
f = lambda x: ev
On Wed, 04 May 2005 23:08:16 +0200, Peter Otten <[EMAIL PROTECTED]> wrote:
>Mayer wrote:
>
>> I would like to define a very large annonymous function, one with
>> several statements in sequence. I know how to define annonymous
>> functions, but I don't know how to define a sequence of statements i
Glauco Silva wrote:
> I´m sorry, I feel I didn't comunicate very well .
> The program I am writing is a part of a big project, so it would be
> no use to post it here as it involves many other things and concepts.
We wouldn't want the whole thing - that would be useless. What you need to do
is t
hi there, this one is in relation to my py2exe saga.
when i compile a package using py2exe i get the error msg below, if i
just run the py files it doesn't error, so i assume pysvn is trying to
use something thats not being included in the build. only i have no idea
where to start looking.
Tra
Mage wrote:
> create or replace function trigger_keywords_maintain() returns
trigger as $$
> return 'MODIFY'
> $$ language plpythonu;
>
> update table set id = id where id = 7;
>
> ERROR: invalid input syntax for type timestamp: "2005-05-03
> 14:07:33,279213"
>
> I see that Python's timestamp
Roel Schroeven wrote:
Unless Martijn Pieters here and mjpieters in the Python Challenge forum
are two differen persons, you've found it in the meantime, haven't you?
Yup, I found it. How evil and devious. I found the hint without
Googling, BTW, but can see how Google would have led you to the
solut
Martijn Pieters wrote:
> Roel Schroeven wrote:
>
>>You don't really need the remember the solution; it's more the process
>>that led you to find the solution.
>
>
> Yup, I do remember the process, and it hasn't been any help so far.. no
> adjustable URLs leading to interesting files, no 'dealab
Martijn Pieters wrote:
I haven't figured this one out yet either. Rather frustrating really.
All the hints I've been given so far is to remember the solution for
level 12.
A, that was devious! I found it finally, how evil that was! I really
fell for it too, until I paid more attention to that e
Roel Schroeven wrote:
You don't really need the remember the solution; it's more the process
that led you to find the solution.
Yup, I do remember the process, and it hasn't been any help so far.. no
adjustable URLs leading to interesting files, no 'dealable' images, no nada.
Martijn Pieters
sign
If this is the list.
values = [ 0, 72, 0, 4, 9, 2, 0, 0, 42, 26, 0, 282,
23, 0, 101, 0, 0, 0, 0, 0]
as we can see there are peaks in the list.that is 0,72,0 is a
group(triangle) with peak 72.then 0, 4, 9, 2, 0, 0 with peak
9 and 0, 42, 26, 0 with 42 and s
On 4 May 2005 08:17:07 -0700, "Chris Curvey" <[EMAIL PROTECTED]> wrote:
>Here is the solution. Incidentally, the client is Cold Fusion.
>
I suspect your solution may be not be general, though it would seem to
satisfy your use case. It seems to be true for python's latin-1 that
all the first 256 c
Michael Spencer wrote:
> Martijn Pieters wrote:
>
>>Dan Christensen wrote:
>>
>>
>>>Any hints for level 13? I know how to make a call, but don't know "who"
>>>to call.
>>
>>
>>I haven't figured this one out yet either. Rather frustrating really.
>>All the hints I've been given so far is to rmemb
Michael Spencer wrote:
Same here. BTW I was unable to open one of the objects created in level 12. It
didn't stop me guessing the answer based on the others, but now I wonder whether
I might need the missing piece for level 13. Anyone else encounter this?
Nope, that piece is just a truncated ver
Adriano Monteiro a écrit :
> Hey folks,
>
> I wanna know more about encapsulation in python. Is it fully suported?
> How can I define the encapsulation statements for methods and attributes?
If you're thinking of things like private/protected/public:
class Foo(object):
def __init__(self):
Martijn Pieters wrote:
> Dan Christensen wrote:
>
>> Any hints for level 13? I know how to make a call, but don't know "who"
>> to call.
>
>
> I haven't figured this one out yet either. Rather frustrating really.
> All the hints I've been given so far is to rmember the solution for
> level 12.
Martijn Pieters wrote:
> Dan Christensen wrote:
>
>>Any hints for level 13? I know how to make a call, but don't know "who"
>>to call.
>
>
> I haven't figured this one out yet either. Rather frustrating really.
> All the hints I've been given so far is to rmember the solution for
> level 12.
> If you want to compare partial keys, often the simplest approach is
to
> use tuples as keys, with the elements of the tuple being the "parts"
of
> the key. Python's standard tuple comparison mechanism takes care of
the
> rest.
Right, but suppose it's expensive to generate each part of the key -
[EMAIL PROTECTED] wrote:
> Your code will identify sequences in a list, but how to index them? I
> have an idea, which seems ridiculously long-winded, but should work.
> First, put the groups from the âmake_diffsâ function into a list
> and do a search for the sequence identified from the
> âcompa
On 4 May 2005 10:48:41 -0700, flamesrock <[EMAIL PROTECTED]> wrote:
>Just curious - is there an easy way to shape bandwith in python. If I
>wanted to have a max download speed for instance
>
Twisted includes an HTB implementation.
http://twistedmatrix.com/documents/current/api/twisted.protoco
Dan Christensen wrote:
Any hints for level 13? I know how to make a call, but don't know "who"
to call.
I haven't figured this one out yet either. Rather frustrating really.
All the hints I've been given so far is to rmember the solution for
level 12.
Banging-my-head-against-it-didn't-help-either-
Does wxPython (actually, the wx toolkit) support setting up ListCtrls or
similar to allow custom element drawing?
Something like generating an 'OnPaint()' event in which I could paint
whatever I like in a listbox element. (example from some other toolkits)
--
http://mail.python.org/mailman/list
Mayer wrote:
> I would like to define a very large annonymous function, one with
> several statements in sequence. I know how to define annonymous
> functions, but I don't know how to define a sequence of statements in
> their body. Can this be done in Python? If so, how?
No, it can't. Why do you
Matthew Thorley wrote:
> Ok you're right. tarfile.open expects a string; the path to the file
> open. I thought that I had tried it with open file objects but I guess I
> was mistaken.
tarfile.open()? That would have been important information in your initial
post.
It would have been even bette
On Wed, 04 May 2005 20:33:31 +, Leif K-Brooks wrote:
> With the EmptyGeneratorDetector class as you defined it, lists will fail:
>
> >>> EmptyGeneratorDetector([])
> Traceback (most recent call last):
>File "", line 1, in ?
>File "", line 15, in __init__
> AttributeError: 'list' objec
Matthew Thorley wrote:
> I've been using tarfile like this
>
> import tarfile
> tar = tarfile.open('path_to_tar_archive', 'r:gz')
>
>
> But I need to use it like this:
>
> archive = open('path_to_tar_archive', 'r')
> tar = tarfile.open(archive.readlines())
>
> or something similar. In essence
Hello:
I would like to define a very large annonymous function, one with
several statements in sequence. I know how to define annonymous
functions, but I don't know how to define a sequence of statements in
their body. Can this be done in Python? If so, how?
Thanks,
Mayer
--
http://mail.python
I've been using tarfile like this
import tarfile
tar = tarfile.open('path_to_tar_archive', 'r:gz')
But I need to use it like this:
archive = open('path_to_tar_archive', 'r')
tar = tarfile.open(archive.readlines())
or something similar. In essence I need to use tarfile to manipulate an
already
Hi,
I'm trying to get libgmail to run on my iPAQ running Familiar
Linux. I've installed the arm-linux Python distribution from
http://www.vanille.de/projects/python.spy
As it doesn't appear to have been compiled with OpenSSL, I have copied
_ssl.so from the Debian ARM repository, but now I'm enco
Peter Otten wrote:
> Matthew Thorley wrote:
>
>
>>Esben Pedersen wrote:
>>
>>>Matthew Thorley wrote:
>>>
>>>
I'm writing a web app whereby a user uploads a tar acrhive which is then
opened and processed. My web form reads the file like this:
while 1:
data = value.file.rea
Jeremy Bowers wrote:
> On Wed, 04 May 2005 13:45:00 +, Leif K-Brooks wrote:
>
>
>>Jeremy Bowers wrote:
>>
>>>def __init__(self, generator):
>>>self.generator = generator
>>
>>You'll want to use iter(generator) there in order to handle reiterables.
>
>
> Can you expand that expla
See if you can run `glxgears`, and read the output of `glxinfo`. If
neither of those work, you will probably have better luck on a debian
or XFree86/xorg forum than on c.l.py
--
http://mail.python.org/mailman/listinfo/python-list
Matthew Thorley wrote:
> Esben Pedersen wrote:
>> Matthew Thorley wrote:
>>
>>> I'm writing a web app whereby a user uploads a tar acrhive which is then
>>> opened and processed. My web form reads the file like this:
>>>
>>> while 1:
>>> data = value.file.read(1024 * 8) # Read blocks of 8KB a
I've spent the last couple of hours trying to figure out how to set
breakpoints in Python C extensions under gdb 6.2 using Gentoo Linux,
and finally figured it out. So for posterity (aka Google), here's the
trick:
If GDB is giving you the message "Unable to find dynamic linker
breakpoint funct
Bob Rogers wrote:
> Given this class:
>
> class C(object):
> def set_x(self, x):
> self._x = x
>
> def get_x(self):
> return self._x
>
> x = property(get_x, set_x)
>
>
> This use of compile() and eval() works as I expected it to:
>
> c = C()
> c.x = 5000
Iâve had chance to look at your code. I had an idea that I the answer
to my problem some how involved breaking down the list into groups and
that the notes would be easier to work with as numbers. However, I
think your âmake_diffsâ function is really a very cunning way to
go about things ï I would
Given this class:
class C(object):
def set_x(self, x):
self._x = x
def get_x(self):
return self._x
x = property(get_x, set_x)
This use of compile() and eval() works as I expected it to:
c = C()
c.x = 5000
n = '\'five thousand\''
code = compile('c.x
Esben Pedersen wrote:
> Matthew Thorley wrote:
>
>> I'm writing a web app whereby a user uploads a tar acrhive which is then
>> opened and processed. My web form reads the file like this:
>>
>> while 1:
>> data = value.file.read(1024 * 8) # Read blocks of 8KB at a time
>> if not data: brea
Am Mittwoch, 4. Mai 2005 20:11 schrieb phil:
> But those packets ( I assume TCP ) are going to stack up somewhere,
> the sender is gonna keep trying and retrying. In other words
> you are increasing overall load to someone's router and the
> network.
This is not true, as TCP tries to adjust its s
Hello out there!
I am new to python and so far I like it a lot. Now I want to create
some IMAP mailboxes on my cyrus imapd, with quotas and each user should
be subscribed to her/his own spam folder. This is what I've attempted:
> >>> import imaplib, getpass
> >>> cyrus = imaplib.IMAP4()
> >>>
"scrimp" <[EMAIL PROTECTED]> writes:
> Wow, thanks very much Ive been searching on google for a few days now
> and have never seen this yet. Thanks ill take a look at what I can do
> with this
Also look at m2crypto.
--
http://mail.python.org/mailman/listinfo/python-list
praba kar <[EMAIL PROTECTED]> writes:
>I have a project that is conversion of Php Web applications
> into Python cgi applications. In my mind compare python-cgi php is
> better.
If performance is an issue you don't want to use any type of cgi.
Consider using mod_python instead.
--
http:/
I know how to capture window close event, but what i want to do is to
close window using commands. now i am simply using "sys.exit()" to
close the whole program. but it seems that window close events will are
be generated in this case. is there any function in wxpython that i can
use to close appli
Harlin Seritt wrote:
> >From what I've seen I'm afraid this is the way it is. If you call an
> instance of tkMessageBox and you don't have a 'master' Tk instance
> running, it will create its own.
>
> Still, I'm sure with a bit of voodoo you can hide the self created tk
> window while showing the
On Wed, 04 May 2005 20:24:51 +0800, could ildg wrote:
> Thank you.
>
> I just learned how to use re, so I want to find a way to settle it by
> using re. I know that split it into pieces will do it quickly.
I'll say this; you have two problems, splitting out the numbers and
verifying their confor
[EMAIL PROTECTED] wrote:
> Caro Michele:
>
> Non parlo italiano, ma parlo espagnol. I can read your website, and
> your library looks interesting. Would you like me to provide an
> english translation of your webpage so that you can provide a version
> for english speakers?
>
> I am a WordPress
I understand you wish to reroute stdout to some object than can write to a
window - correct ?
If so, this is what I do with tkinter
class SC_Log_Stdout:
#***
def __init__(self, p_log_text):
self.__m_log_text
On Wed, 04 May 2005 13:45:00 +, Leif K-Brooks wrote:
> Jeremy Bowers wrote:
>> def __init__(self, generator):
>> self.generator = generator
>
> You'll want to use iter(generator) there in order to handle reiterables.
Can you expand that explanation a bit? I'm not certain what you
"max(01)*" <[EMAIL PROTECTED]> writes:
> $ python GLE.py
> freeglut (GLE.py): OpenGL GLX extension not supported by display ':0.0'
>
> what's up? what's missing?
The GLX extension to your X server.
> i use a standard debian installation.
I don't know which X debian uses, and it may have changed
Being one who types first and thinks later, I have to give this correction:
>>> r =
>>> re.compile(r"^_((\d)|([1-2]\d)|[3][0-1])(_(([4-9]\d+)|([3][1-9])|([1-9](\d){2,}))){,2}$")
>>> test(r)
_5
_10
_31
_1_50
_21_50_100
_500
_21_10
_21_50_40
_21_50_400
_21_50_1000
_5_40_100_50
_3_5
_43
On Wed, 04 May 2005 16:01:07 GMT, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>On Tue, 03 May 2005 16:28:34 GMT, Dennis Lee Bieber
><[EMAIL PROTECTED]> declaimed the following in comp.lang.python:
>
>
>> It's not going to be easy, though...
>
> Yes, talking to myself... I crawled thro
flamesrock wrote:
> Just curious - is there an easy way to shape bandwith in python. If I
> wanted to have a max download speed for instance
>
> -thanks
>
Interesting normally bandwidth shaping is an IP stack function
in the Kernel.
You are receiving a download within a python program?
And wan
In article <[EMAIL PROTECTED]>,
Jaime Wyant <[EMAIL PROTECTED]> wrote:
>
>Can anyone recommend one? Google isn't giving me much.
http://twistedmatrix.com/projects/words/
--
Aahz ([EMAIL PROTECTED]) <*> http://www.pythoncraft.com/
"It's 106 miles to Chicago. We have a full ta
Matthew Thorley wrote:
> I'm writing a web app whereby a user uploads a tar acrhive which is then
> opened and processed. My web form reads the file like this:
>
> while 1:
> data = value.file.read(1024 * 8) # Read blocks of 8KB at a time
> if not data: break
>
> which leaves me with data
hmm... I guess its not possible as I feared :(
thanks anyways
--
http://mail.python.org/mailman/listinfo/python-list
xeron wrote:
> Hi ya fellas
>
> I am planning to learn Python, and because i have a networking
> background so would like to direct my learning in a way that is
> beneficial to my tasks in the mentioned field, please suggest a couple
> of projects which i can implement so as to accelerate th
Just curious - is there an easy way to shape bandwith in python. If I
wanted to have a max download speed for instance
-thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi ya fellas
I am planning to learn Python, and because i have a networking
background so would like to direct my learning in a way that is
beneficial to my tasks in the mentioned field, please suggest a couple
of projects which i can implement so as to accelerate the learning
process.
On Wednesday 04 May 2005 02:34 am, so sayeth could ildg:
> I saw someone complained that a question is too lengthy,
> and I saw some questions were complained to be unclear,
> but I never saw someone waste his time to judge if a question is a
> homework. If this is natural, I'll pay attention from
"Gabriele *Darkbard* Farina" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have a zip file structured like this:
>
> mymodule.zip\
> module1.py
> submodule\
>submodule1.py
>
> I tried to load submodule.submodule1 using this pice of code:
>
> import zipimport
>
>
hi there.
i installed python2.3-opengl, then i tried one of those demos:
#!/usr/bin/python2.3
# This is statement is required by the build system to query build info
if __name__ == '__build__':
raise Exception
import sys
from OpenGL.GL import *
from OpenGL.GLE import *
from OpenG
Lonnie Princehouse wrote:
> Non-trivial:
> Any time the user decides to (1) cache intermediary results for a cmp
> function or (2) define a __cmp__ function for the key return value.
> These arise when comparison of partial keys is often sufficient to
> establish order between two objects.
If yo
Wow, thanks very much Ive been searching on google for a few days now
and have never seen this yet. Thanks ill take a look at what I can do
with this
--Barry
--
http://mail.python.org/mailman/listinfo/python-list
I don't have direct experience by Google turned this up:
http://trevp.net/tlslite/
Larry Bates
scrimp wrote:
> Hello,
>I was wondering if there is any other way to securly connect to an
> FTP site using SSL or TLS? I dont have the option of purchasing
> M2Crypto from the site. Any help/sugg
Jeff Epler wrote:
> > >>> id(c.f) == id(C.__dict__['f'].__get__(c,C))
> > True
>
> Here, c.f is discarded by the time the right-hand-side of == is
> executed. So the object whose id() is being calculated on the
> right-hand-side could turn out to be the same, since the two objects
> have disjoint
Hello,
I was wondering if there is any other way to securly connect to an
FTP site using SSL or TLS? I dont have the option of purchasing
M2Crypto from the site. Any help/suggestions would help. Thanks!
--Barry
--
http://mail.python.org/mailman/listinfo/python-list
John Abel wrote:
> Matthew Thorley wrote:
>
>> I'm writing a web app whereby a user uploads a tar acrhive which is then
>> opened and processed. My web form reads the file like this:
>>
>> while 1:
>>data = value.file.read(1024 * 8) # Read blocks of 8KB at a time
>>if not data: break
>>
>>
Hi,
I have a zip file structured like this:
mymodule.zip\
module1.py
submodule\
submodule1.py
I tried to load submodule.submodule1 using this pice of code:
import zipimport
z = zipimport.zipimporter("mymodule.zip")
z.load_module("submodule.submodule1")
but it does not work (load_mod
john wrote:
> Why do c.f and C.__dict__['f'].__get__(c,C) compare as equal under ==
> but not under *is* ?
These variations are equivalent. Every attribute access gives you a new
bound method:
>>> class C(object):
... def f(self): pass
...
>>> c = C()
>>> c.f is c.f
False
>>> c.f == c.f
Tr
Matthew Thorley wrote:
>I'm writing a web app whereby a user uploads a tar acrhive which is then
>opened and processed. My web form reads the file like this:
>
>while 1:
>data = value.file.read(1024 * 8) # Read blocks of 8KB at a time
>if not data: break
>
>which leaves me with data as a s
Jeff Epler wrote:
> Are there only a few, unchanging templates? If so, (dynamiclly)
create
> a function for each template. This will be nearly the fastest you
can
> go in Python, excluding the time to create and byte-compile the
nesting
> function.
>
> # This code is in the public domain
> def m
I'm writing a web app whereby a user uploads a tar acrhive which is then
opened and processed. My web form reads the file like this:
while 1:
data = value.file.read(1024 * 8) # Read blocks of 8KB at a time
if not data: break
which leaves me with data as a string obj. The problem that I ha
On Wed, May 04, 2005 at 09:14:18AM -0700, Sébastien Boisgérault wrote:
>
> Yup ?!? Weird ... especially as:
>
> >>> id(c.f) == id(C.__dict__['f'].__get__(c,C))
> True
Here, c.f is discarded by the time the right-hand-side of == is
executed. So the object whose id() is being calculated on the
ri
Yup ?!? Weird ... especially as:
>>> id(c.f) == id(C.__dict__['f'].__get__(c,C))
True
I was pretty sure that 'id(a) == id(b)' iff 'a is b' ...
I thought initially that you had two *copies* of the
same method bot obviously it's not true ...
SB
--
http://mail.python.org/mailman/listinfo/python
Hello!
create or replace function trigger_keywords_maintain() returns trigger as $$
return 'MODIFY'
$$ language plpythonu;
update table set id = id where id = 7;
ERROR: invalid input syntax for type timestamp: "2005-05-03
14:07:33,279213"
I see that Python's timestamp format is n
On 3 May 2005 08:07:06 -0700, "Chris Curvey" <[EMAIL PROTECTED]> wrote:
>I'm writing an XMLRPC server, which is receiving a request (from a
>non-Python client) that looks like this (formatted for legibility):
>
>
>
>echo
>
>
>
>Le Martyre de Saint André
avec inscription
>'Le Dominiquain.' et
>>
>>So what if the client sends 4 bytes, and then sends 8000 bytes? WIll I
>>get the first 4 bytes as a separate msg so to speak? Basically i want
>>to catch each message from the client as a whole.
>>
IF YOU WANT SEPARATE MESSAGES:
Modify the client to send an end of record, then:
On Server:
François Pinard <[EMAIL PROTECTED]> writes:
> Hi, people. I hope someone would like to enlighten me.
>
> For any application handling Unicode internally, I'm usually careful
> at properly converting those Unicode strings into 8-bit strings before
> writing them out.
>
> However, this morning, I m
phil wrote:
>>
>> By the way, what is 'rb' and 'wb' ?
>>
>
> Read Binary, Write Binary
> In Win32 the default is text mode which
> will screw up binary files
>
In fact, this is not just for Windows. Linux / Unix is unusual
using the originally non-standards-conforming line feed ('\n')
character
1 - 100 of 182 matches
Mail list logo