Hello,
I have a long list of memory-heavy objects that I would like to access
in differently sorted order. Let's say I'd like to have lists called
by_date or by_size that I can use to access the objects in the
specified order.
Of course I can just build those lists naively by creating copies of
t
On Jul 31, 11:29 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> until yesterday I was a happy user of pylint. Then I upgraded to ubuntu
> hardy heron - and the trouble began.
>
> The packaged version of pylint (0.13.2
Greetings,
I'm trying to wrap a function in a C library as a compiled C Python
module. Everything is going great, but I've hit a snag. There's a
function in the form of this:
First the typedef:
typedef void(*FPtr_DeviceMessageHandler) (const DeviceMessage, const
char*);
Then the actual function
Hello Diez.
> May I suggest you move to ctypes for wrapping? It's easier, pure python and
> callbacks are already built-in.
I'm pretty new to extending Python in C, I don't understand what
you're saying. Are there any examples or a brief explanation/URL you
could point me to?
--
http://mail.pyth
On Jul 31, 2:39 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> > Which version of python-logilab-common and python-logilab-astng are
> > installed on your machine ?
>
> By now, pylint 0.14 with logilab.common 0.27 and astng 0.17.2
>
> I was able to trac
> Ctypes is a since python2.5 built-in module that allows to declare
> interfaces to C-libraries in pure python. You declare datatypes and
> function prototypes, load a DLL/SO and then happily work with it. No C, no
> compiler, no refcounts, no nothing.
>
> And you can pass python-functions as call
On Jul 14, 8:22 am, Kinokunya <[EMAIL PROTECTED]> wrote:
> Hi guys,
>
> My group and I will be working on our final year project, the scope to
> do a program/web-based application similar areas of functionalities
> like thePyLintand PyChecker; a Python syntax checker
> How much more liberal can it get than MIT-licensed?
Again, the licensing issue is everything to do with the original
library distributor, NOT ctypes.
> But then, if you insist, go down the hard road.
Irrelevant and unnecessary. If you don't want to help, don't please
don't reply.
--
http://mai
On Jul 31, 10:47 am, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> I take the freedom to do so as I see fit - this is usenet...
Fine, then keep beating a dead horse by replying to this thread with
things that do nobody any good. It seems like there are a lot better
way to
On Aug 1, 11:22 am, [EMAIL PROTECTED] wrote:
> The following bit of code will allow an instance member to
> be called by reference. How can I map a string (e.g.
> "hello1" or "Foo.hello1" to a the instance member?
>
> class Foo:
> def hello1(self, p):
Beginner, so please bare with me. I'm not sure what to call what it
is I'm looking for.
If I have an object class, let's call it "Creature":
class Creature:
def __init__(self, status):
self.status = "happy"
def change_status(self, new_status):
self.status = new_status
On Aug 2, 12:58 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Beginner, so please bare with me. I'm not sure what to call what it
> > is I'm looking for.
>
> > If I have an object class, let's call it "Creature":
On Aug 2, 1:05 pm, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] schrieb:
>
>
>
> > Beginner, so please bare with me. I'm not sure what to call what it
> > is I'm looking for.
>
> > If I have an object class, let'
On Jul 22, 2:00 pm, AMD <[EMAIL PROTECTED]> wrote:
> Hello Fredrik,
>
> I didn't think my comment would offend anyone [...]
I doubt that it offended anyone else. Having been the recipient of a
few F-bombs :-) myself, I'd just let it go by...
Mike
--
http://mail.py
I'm a novice developer at best and often work with the R statistical
programming language. I use an editor called TINN-R which allows me to
write a script, then highlight a few lines and send them to the
interpreter. I am using pythonwin and it lacks this funtionality (that
I can tell) and when I c
On Aug 3, 1:26 am, castironpi <[EMAIL PROTECTED]> wrote:
> On Aug 2, 2:02 pm, Tim Roberts <[EMAIL PROTECTED]> wrote:
>
> > castironpi <[EMAIL PROTECTED]> wrote:
>
> > >And furthermore, I think I'm getting
> > >confused about what exactly c
I have a csv file containing product information that is 700+ MB in
size. I'm trying to go through and pull out unique product ID's only
as there are a lot of multiples. My problem is that I am appending the
ProductID to an array and then searching through that array each time
to see if I've seen t
Regarding exploring processor instructions.
Lets say you compile a C program targeting x86 architecture, with
optimizations
turned on for speed, and let the compiler automatic select MMX and SSE
instructions
for numeric code.
I have now a program that executes very fast, and does what I want
very
matplotlib is a 2D plotting library for python for use in scripts,
applications, interactive shell work or web application servers.
matplotlib 0.98.3 is a major but stable release which brings
many new features detailed below.
Homepage: http://matplotlib.sourceforge.net/
Downloads:
http://sou
On 6 août, 15:52, Bruno Desthuilliers wrote:
> Heiko Wundram a écrit :
>
> > Am Mittwoch, den 06.08.2008, 08:44 -0400 schrieb Neal Becker:
> >> Sounds simple, but how, given an instance, do I find the class?
>
> > .__class__
>
> Works for new-style classes only. The "generic" way to go is to use
>
On Aug 6, 8:33 pm, Nikolaus Rath <[EMAIL PROTECTED]> wrote:
> Tobiah <[EMAIL PROTECTED]> writes:
> > On Mon, 04 Aug 2008 15:30:51 +0200, Nikolaus Rath wrote:
> > Do you think you could use an SQL database on the network to
> > handle the locking?
>
> Yea
FLJ.
--
http://mail.python.org/mailman/listinfo/python-list
On Aug 10, 11:14 pm, ssecorp <[EMAIL PROTECTED]> wrote:
> On Aug 11, 6:40 am, Mensanator <[EMAIL PROTECTED]> wrote:
>
>
>
> > On Aug 10, 11:18 pm, ssecorp <[EMAIL PROTECTED]> wrote:
>
> > > Is there a syntax for looping through 2 iterables at the
is there any library / function that prints number of bytes in human
readable format?
for example
a=XX(1048576)
print a
should output
1 MB
thanks!
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, Aug 12, 2008 at 7:31 PM, Rob Weir <[EMAIL PROTECTED]> wrote:
> On 13 Aug 2008, rkmr wrote:
> > is there any library / function that prints number of bytes in human
> > readable format?
> > for example
> >
> > a=XX(1048576)
> > pr
Hi!
My problem is that:
The "test.py" is working in every machine that I use except in my home
machine.
Formerly it worked but now not. I don't know what happened, I searching
for some solution.
The errormessage is this (after I tried to start test.py under cmd.exe):
Microsoft Windows XP
On Aug 13, 3:31 pm, Scott <[EMAIL PROTECTED]> wrote:
> What I would like is the full stack trace of what went wrong on the
> server (i.e. the junk python usually dumps to the console when an
> exception occurs). I don't care which side I see the dump on (client
> or server)
hi
i want to play alarm sound when i press a particular key in
keyboard.so someone help me in doing it.
Thanks and Regards
Sasil.G
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
it's me again with tons of questions. I hava an input file structured
like this:
X XYData-1
1. 3.08333
2. 9.05526
3. 3.13581
...
Hello,
I am having trouble writing the code to read a binary string. I would
like to extract the values for use in a calculation.
Any help would be great.
Here is my function that takes in a string.
def parseSequence(data, start):
group_num = data[start:start+2]
element_num = data[sta
I was impressed and humbled by all the unpaid volunteers at Pycon.
I was wondering what motivated so many people to give so much to the
Python community.
(I have my guesses but I'd rather listen than assume I know.)
Any ideas?
Chris
--
http://mail.python.org/mailman/listinfo/python-list
On 31 mar, 20:09, Duncan Booth <[EMAIL PROTECTED]> wrote:
> xkenneth <[EMAIL PROTECTED]> wrote:
> > Now obviously, if I test an instance of either class equal to each
> > other, an attribute error will be thrown, how do I handle this? I
> > could rewrite every __
On 31 mar, 18:32, "Steven W. Orr" <[EMAIL PROTECTED]> wrote:
> Here's what I want to do:
>
> if ( ( v == 1 )
>or ( v == 2 )
>or ( v == 3 ) ):
> pass
Why the parens ?
if a == 1 \
or b == 2 \
or c == 3:
pass
--
http://mail.python.org/mailman/listinfo/python-list
On 31 mar, 11:05, <[EMAIL PROTECTED]> wrote:
> Hello everyone
>
> I have defined some sort of 'interface class' and a factory function that
> creates instance objects of specific classes, which implement that interfa
In my application I am trying to access(read) a DB thru a thread while
my main thread is adding data to it and it gives following error(s)
bsddb._db.DBRunRecoveryError: (-30974, 'DB_RUNRECOVERY: Fatal error,
run database recovery -- PANIC: Permission denied')
and sometimes
bsddb._db.DBRunRecovery
On Mar 31, 7:35 pm, [EMAIL PROTECTED] (Aahz) wrote:
> There really isn't any simple answer. Most people seem to be motivated
> to help out their communities,
I still think all this unselfishness is noteworthy
and curious.
Chris
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 1, 11:45 am, Ed Leafe <[EMAIL PROTECTED]> wrote:
Assuming that people get nothing back by participating in a
> community, yes, it would be curious. My experience, though, is that I
> get a lot more out of it than I could ever contribute. IOW, it's a
> great example of s
> Using threads with bsddb3. I spent weeks trying to get it to behave
> when threading. I gave up in the end and changed to sqlite :-(
>
So does it mean that I will have to use threading locks around access
methods? or that will also fail mysteriously :)
--
http://mail.python.org/mailman/listin
On Apr 1, 9:02 pm, Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> It's my understanding that the connection is NOT thread-safe. Your
> thread should be using an entirely separate connection.- Hide quoted text -
>
Can you please explain that, which connection you are talking abo
On 2 avr, 19:23, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> Aaron Watters <[EMAIL PROTECTED]> writes:
> > Grapevine says that an architect/bigot at a java/spring shop sent
> > out an April Fools email saying they had decided to port everything
> > to Django AS
On 2 avr, 18:03, Brian Munroe <[EMAIL PROTECTED]> wrote:
> I'm struggling with an architectural problem and could use some
> advice.
>
> I'm writing an application that will gather statuses from disparate
> systems. Because new systems show up all the time,
On 2 avr, 16:52, sam <[EMAIL PROTECTED]> wrote:
> Bruno Desthuilliers napisał(a):
>
> > Don't misunderstand me : I'm not saying that class-based is better (or
> > worse) than prototype, I'm not saying that Python is perfect, I'm not
> > saying tha
On 2 avr, 21:07, Brian Munroe <[EMAIL PROTECTED]> wrote:
> On Apr 2, 11:04 am, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
>
> > More seriously: the answer is in the
> > doc.http://www.python.org/doc/2.3.5/lib/built-in-funcs.html
>
> >
On 2 avr, 21:03, "Primoz Skale" <[EMAIL PROTECTED]> wrote:
> Hello!
>
> I am fairly new to Python, so I apologise if this is a 'newbie' question.
>
> First define a simple function:
>
> def f(a=0):
> print a
>
> >> f(1)
> 1
>
On 2 avr, 20:46, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > Here the problem is more philosophical than anything else. Python's
> > philosophy is that most programmers are responsible and normally
On 2 avr, 22:23, Paul Rubin <http://[EMAIL PROTECTED]> wrote:
> "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> > Fine. But totally irrelevant here - this is comp.lang.python, not
> > comp.lang.c, and we *do not* (I repeat : we *do not*) face the same
>
On 2 avr, 22:04, Brian Munroe <[EMAIL PROTECTED]> wrote:
> On Apr 2, 12:33 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
>
> > Why not do the import here, so you store a real module instead of a
> > name ?
>
> Right now I'm st
On 2 avr, 22:32, "Primoz Skale" <[EMAIL PROTECTED]> wrote:
> >> I also understand (fairly) how to collect arguments. For example, let's
> >> define another function:
>
> >> def f(*a):
> >>print a
>
> > This means that f
On 2 avr, 15:22, [EMAIL PROTECTED] wrote:
> On 2 Apr, 15:15, [EMAIL PROTECTED] wrote:
>
>
>
> > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote:
>
> > > On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote:
>
> > > > Hi,
>
> > > > I found the following
On 2 avr, 15:12, [EMAIL PROTECTED] wrote:
> On Apr 2, 3:06 pm, [EMAIL PROTECTED] wrote:
>
>
>
> > Hi,
>
> > I found the following code on the net -
>
> > http://mail-archives.apache.org/mod_mbox/httpd-python-cvs/200509.mbox/[EMAIL
> > PROTECTED]
On 2 avr, 18:25, Nanjundi <[EMAIL PROTECTED]> wrote:
> On Apr 2, 9:22 am, [EMAIL PROTECTED] wrote:
>
>
>
> > On 2 Apr, 15:15, [EMAIL PROTECTED] wrote:
>
> > > On 2 Apr, 15:12, [EMAIL PROTECTED] wrote:
>
> > > > On Apr 2, 3:06 pm, [EMAIL PROTEC
On Apr 3, 1:37 pm, [EMAIL PROTECTED] wrote:
> What's the neatest and/or most efficient way of testing if one of a
> set of strings (contained in a dictionary, list or similar) is a
> sub-string of a given string?
> [...]
You could use the Aho-Corasick algorithm <http://en.wik
I'm trying to use shlex.split to simulate what would happen in the
shell. The docs say that it should be as close as possible to the
posix shell parsing rules.
If you type the following into a posix compliant shell
echo '\?foo'
you get back:
\?foo
(I've tested this in dash, bash and zsh---all
Gabriel...
I feel foolish...(and wish I had the two hours back I spent on
this). :)
Thank you so much!
> The result is a list containing a single string. The string contains 5
> characters: a single backslash, a question mark, three letters. The
> backslash is the escape character, as in '\n'
page, not
just being buried in an svn repository. I spent a lot of time looking
for a tool like this that was written in python. I imagine others
have as well, and have simply given up.
On Mar 18, 7:16 pm, Robert Kern <[EMAIL PROTECTED]> wrote:
> I have agrep-like utility I call &quo
Traceback (most recent call last):
File "F:\Programming\python and database\access_db8.2.py", line 129,
in ?
Tkwindow()
File "F:\Programming\python and database\access_db8.2.py", line 88,
in Tkwindow
title = stringVar()
NameError: global name 'stringVar' is not defined
Here is the TKw
On Apr 5, 12:55 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > Traceback (most recent call last):
> > File "F:\Programming\python and database\access_db8.2.py", line 129,
> > in ?
> > Tkwindow()
> > File &q
Anyone know of a Python implementation of this:
http://www.crockford.com/wrmg/base32.html
Google shows a Perl library. I'm sure someone must have a Python
library somewhere? :)
Thanks
[And yes...I know it won't be that hard to do...
I will do it if it doesn't already exist, but I'd much rath
On 6 avr, 15:41, [EMAIL PROTECTED] wrote:
> I'm trying to minimise the overheads of a small Python utility, I'm
> not really too fussed about how fast it is but I would like to
> minimise its loading effect on the system as it could be called lots
> of times (and, no, I don
is different. :)
On Apr 6, 7:15 am, "Gabriel Genellina" <[EMAIL PROTECTED]> wrote:
> En Sun, 06 Apr 2008 06:07:18 -0300, Petite Abeille
> <[EMAIL PROTECTED]> escribió:
>
> > On Apr 6, 2008, at 9:20 AM, [EMAIL PROTECTED] wrote:
>
> >> Anyone know
Sorry to reply to myself. By reading the whole document I see he does
give a few different ways one can hadle the lack of padding (including
adding it back in.) Both the specs. seem to fudge a bit on
this...I'll have to think more about it.
On Apr 6, 5:40 pm, "[EMAIL PROTECTED
On 6 avr, 01:53, [EMAIL PROTECTED] wrote:
> it seems to me from my results that when i use a while-loop it will
> execute once after the condition is met.
>
> ie the conditions is met the code executes one time more and then
> quits.
The problem is obviously in your code, but sinc
On 7 avr, 10:03, Paul Scott <[EMAIL PROTECTED]> wrote:
> I have started, and made some progress (OK it works, but needs some
> love) on my first real Python application.
>
> http://cvs2.uwc.ac.za/trac/python_tools/browser/podder
>
> I would love some feedback on what I have
On 7 avr, 07:34, CM <[EMAIL PROTECTED]> wrote:
> On Apr 5, 11:50 am, Jetus <[EMAIL PROTECTED]> wrote:
>
> > I have a need for a database program. I downloaded the db2 from ibm,
> > and reviewed some of the documentation.
>
> > My question is, what is the ea
On 5 avr, 17:50, Jetus <[EMAIL PROTECTED]> wrote:
> I have a need for a database program. I downloaded the db2 from ibm,
> and reviewed some of the documentation.
>
> My question is, what is the easiest program for me to try to learn. I
> will be creating a database of abo
On 8 avr, 11:39, méchoui <[EMAIL PROTECTED]> wrote:
> On Apr 4, 5:25 pm, John Nagle <[EMAIL PROTECTED]> wrote:
>
>
>
> > Bruno Desthuilliers wrote:
> > > Paul Rubin a écrit :
> > >> Brian Vanderburg II <[EMAIL PROTECTED]> writes:
> >
On 8 avr, 19:55, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> jmDesktop schrieb:
>
> > Thank you. It looks like it is, but I wanted to make sure I
> > understood. Also, I didn't see a "regular" for loop construct either
> > (i=0;i<=10;
On Apr 7, 7:30 am, "甜瓜" <[EMAIL PROTECTED]> wrote:
> Howdy,
> I wonder whether python compiler does basic optimizations to .py.
> Eg:
> t = self.a.b
> t.c = ...
> t.d = ...
> .vs.
> self.a.b.c = ...
> self.a.b.d = ...
> which one is more effecti
On Apr 10, 2:35 pm, [EMAIL PROTECTED] wrote:
> using python And tkinter.
>
> i have a GUI that outputs a text among other things. after input form
> user i want this text to be *)cleared and/or
> *)overwritten.
>
> what is the best way to achieve that?
> [...]
Which
On Apr 10, 3:47 pm, [EMAIL PROTECTED] wrote:
> [...]
> i use the Label-widget.
Then you should be able to connect a variable to your widget like I
wrote in my previous post.
Just try out the example from the Python documentation. Of course in
your case entrythingy would be the
Label-widget
On Apr 10, 4:37 pm, [EMAIL PROTECTED] wrote:
> [...]
> i know how to do this already. the problem is i want the text to stay
> in the windowa nd not start overwriting "Answer:".
> i have solved this by using an Entry for the answer as well but id
> prefer using a Label.
I have an array, and I would like to get the indice value.
a = array([13,14,15,16])
I would like something like a.getindice(15)
If I want 15 it would return 2
--
http://mail.python.org/mailman/listinfo/python-list
Am I the only one that thinks this would be useful? :)
I'd really like to be able to use python 3.0's print statement in
2.x. Is this at least being considered as an option for 2.6? It
seems like it would be helpful with transitioning.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 10, 3:06 pm, "Andrii V. Mishkovskyi" <[EMAIL PROTECTED]>
wrote:
> 2008/4/10, [EMAIL PROTECTED] <[EMAIL PROTECTED]>:
>
> > Am I the only one that thinks this would be useful? :)
>
> > I'd really like to be able to use python 3.0'
楼主,为何不用中英又语呢?这里也有其它中国人的.
--
http://mail.python.org/mailman/listinfo/python-list
Python这种语言有前途吗?在下想学他一学.
--
http://mail.python.org/mailman/listinfo/python-list
I want to use json with py2exe but when I execute the program
I have this errors : "Runtime Error : maximun recursion depth
exceeded"
Here is my code :
import json
jsonstr='{"toto":"toto"}'
print json.read(jsonstr)
and my setup
#!/usr/bin/env python
# -*- coding: latin-1 -*-
import sys, os,
On Apr 11, 4:14 am, bdsatish <[EMAIL PROTECTED]> wrote:
> I'm interested in rounding numbers of the form "x.5" depending upon
> whether x is odd or even. Any idea about how to implement it ?
Side note: A specialized use for this is in the US Field Artillery,
w
the memory usage of a python app keeps growing in a x86 64 linux
continuously, whereas in 32 bit linux this is not the case. Python
version in both 32 bit and 64 bit linux - 2.6.24.4-64.fc8
Python 2.5.1 (r251:54863, Oct 30 2007, 13:45:26)
i isolated the memory leak problem to a function that uses
This is the code that is causing memory leak in 64 bit python [but not
in 32 bit python].. is something wrong in the code?
now = datetime.datetime.now()
oneday = datetime.timedelta(days=1)
def birthdaycompare(a, b):
if a is None and b:
return 1
if a and b is None:
return -1
On Apr 16, 2:52 pm, Aaron Watters <[EMAIL PROTECTED]> wrote:
> I disagree. You can add lots of cool
> stuff without breaking the existing code base, mostly.
> For example the minor changes to the way ints will work will
> effect almost no programs.
Wow, I'd venture th
Hi there,
I'm new to Python and I've been writing a rudimentary exercise in
Deitel's Python: How to Program, and I found that this code exhibits a
weird behavior. When I run the script, the for...range(1,11) structure
always starts with zero--and I've tried plugging other values as well!
>From the
On 17 avr, 04:27, andrew cooke <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Thanks for the help a couple of days ago. I completed what I was
> doing and wrote a summary which I've posted
> athttp://acooke.org/cute/PythonMeta0.html
> (it's kind of long to post he
On 17 avr, 14:25, andrew cooke <[EMAIL PROTECTED]> wrote:
> On Apr 17, 7:12 am, "[EMAIL PROTECTED]"<[EMAIL PROTECTED]> wrote:
>
> [...]
>
> Thanks very much!
>
> These are useful pointers. I'll update my code accordingly.
>
> At one point you
On 17 avr, 16:06, AlFire <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I am seeking an explanation for following:
>
> Python 2.5.2 (r252:60911, Apr 8 2008, 21:49:41)
> [GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7)] on linux2
> Type "help", "copyright", "cred
> My guess is that you want to initialize total to 1, not 0.
>
D'oh! Yes, you are right, thank you.
--
http://mail.python.org/mailman/listinfo/python-list
On 17 avr, 20:04, lg <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm pretty new to usenet and totally new to python, so.. hopefully i
> won't offend anyone with my naivete. I work at a non-profit
> organization where we use mailman for our email lists, and i'v
tp://xahlee.org/Periodic_dosage_dir/lacru/manara2.html"; "Mozilla/
5.0 (Windows; U; Windows NT 5.1; es-ES; rv:1.8.1.13) Gecko/20080311
Firefox/2.0.0.13" "-"
I want the part: "Mozilla/5.0 (Windows; U; Windows NT 5.1; es-ES; rv:
1.8.1.13) Gecko/20080311 Firefox/2.0.0.13".
Than
On Apr 18, 8:46 am, "Dotan Cohen" <[EMAIL PROTECTED]> wrote:
> I had once heard something about python running on a Series 40 Nokia,
> but I am unable to google anything concrete. Might it have been
> Jython? Is there a known implementation of Python for the series 40
&g
On Apr 17, 10:30 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> On 17 Apr, 15:21, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
>
> > If not, what is the advantage above already present solutions?
>
> Well... I like the processing module. Except that Wint
On 19 avr, 16:34, andrew cooke <[EMAIL PROTECTED]> wrote:
> On Apr 18, 4:48 am, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote:
>
> [...]
>
> > Practically, this means that (amongst other niceties) :
> > - you can define functions outside classes and use t
On 19 avr, 19:39, sturlamolden <[EMAIL PROTECTED]> wrote:
> On Apr 17, 4:06 pm, AlFire <[EMAIL PROTECTED]> wrote:
>
> > Q: why function got dictionary? What it is used for?
>
> As previously mentioned, a function has a __dict__ like (most) other
> objects.
>
&g
On Apr 18, 9:29 pm, sturlamolden <[EMAIL PROTECTED]> wrote:
> On 18 Apr, 21:28, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> > Passing a NULL SectionHandle to NTCreateProcess/CreateProcessEx
> > results in a fork-style copy-on-write duplicate
On 20 avr, 17:35, Eric Wertman <[EMAIL PROTECTED]> wrote:
> I was considering putting together a proposal for an alternate block
> syntax for python, and I figured I'd post it here and see what the
> general reactions are. I did some searching, and while I found a lot
> of
Hi
I have a function data['function'], that I need to import from a file
data['module'], in the directory data['cwd']
If I do this from python interactive shell (linux fedora core 8) from
dir /home/mark it works fine:
cwd = data['cwd']
os.chdir(cwd)
print os.ge
quot;, line 5, in
> import abcde
> ImportError: No module named abcde
On Mon, Apr 21, 2008 at 2:46 PM, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hi
> I have a function data['function'], that I need to import from a file
> data['module'], in t
Hi...
Here's a weird problem...I'm trying to escape a bunch of data to put
into a database.
Here's what I have:
def escape(string):
"""
Escape both single quotes and blackslashes
>>> x = r"fun\fun"
>>> escape(x)
'funfun'
"""
string = string.replace('\\', '')
On Mon, Apr 21, 2008 at 3:39 PM, John Machin <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > data['module'], in the directory data['cwd']
> OT: Any good reason for using a dictionary instead of a class instance
> (data.functiom, data.module, et
HTH --
Thank you for the response. I'm not sure I understand the last
sentence, although I think I get the idea. How do I create a proper
doctest?
Thanks
On Apr 21, 9:08 pm, MRAB <[EMAIL PROTECTED]> wrote:
> On Apr 21, 11:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTEC
Dear All,
I have some functions written in C++, which I try to approach from
python using swig. In the C++ functions I use std::cout to print stuff
to output. Everything works fine, but the only problem that I have is
that when I start IDLE and use the functions what std::cout should
print to the
4501 - 4600 of 4917 matches
Mail list logo