Well, the issue is not how to input text in the database from Python
(it is enough to use literal unicode strings);
in my case the database has been generated from a text file containing
accented chars, using .import,
and it seems I cannot read it from Python because of the unicode error
:-(
Mic
Ron Garret wrote:
>>Because eval() takes an expression as an argument, and assignment is a
>>statement.
>
> And if you find this distinction annoying, try Lisp.
that's were I come from :-)
--
rafi
"Imagination is more important than knowledge."
(A
Op 2005-08-25, Steve Holden schreef <[EMAIL PROTECTED]>:
> Antoon Pardon wrote:
>> Op 2005-08-24, Magnus Lycka schreef <[EMAIL PROTECTED]>:
>>
>>>Antoon Pardon wrote:
>>>
I think he did, because both expression are not equivallent
unless some implicite constraints make them so. Values wher
Michele Simionato wrote:
> An easy question, but I don't find the answer in the docs :-(
> I have a sqlite3 database containing accented characters (latin-1).
> How do I set the right encoding? For instance if I do this:
I think you should ask on the pysqlite-devel list.
Reinhold
--
http://mail.
>True. Unless you have two proper locks. In that case your bike will
>last a very long time.
Nope. You will probably retrieve your two locks from the fencing you
attached them to (if you did!), with your bike gone.
Wouter van Ooijen
--
http://www.voti.nl
Web
I have a tool in Python to which I want to add a small GUI. The tools
currently runs everywhere PySerial is supported. I need a file-access
dialog. What is the preffered way to to this? Is there a
platform-independent file-access dialog available, or should I use the
windows native version when run
Op 2005-08-25, Bryan Olson schreef <[EMAIL PROTECTED]>:
> Steve Holden asked:
> > Do you just go round looking for trouble?
>
> In the course of programming, yes, absolutly.
>
> > As far as position reporting goes, it seems pretty clear that find()
> > will always report positive index values. In a
Well, I only know how to do it with Qt:
Dialog = QFileDialog(self.filedir, 'Python files (*.py)', self, 'open
file dialog')
self.filename = str( Dialog.getOpenFileName())
I don't think PyQt is available for Qt4 on windows yet.
You might be ablt to use this:
http://www.quadgames.c
I have a program that currently displays all of its messages and instructions
in only
English. My boss wants me to change it all to Korean. Is there a python
module that will
automatically translate my English to Korean?
-Jon
--
http://mail.python.org/mailman/listinfo/python-list
I was responding to rafi's suggestion, I had not received the "exec 'a%s = %s'
% (count,count)" response yet at that time. The "exec 'a%s = %s' %
(count,value)" works fine.
>Not in my Python.
>
>---snip---
>
>why using the eval?
>
>exec ('a%s=%s' % (count, value))
>
>should be fine
>
>--
John Bokma wrote:
> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>
>> On the information side (in contrast to the discussion side) RSS is
>> replacing Usenet,
>
> LOL, how? I can't post to RSS feeds. Or do you mean for lurkers?
I said "information side", meaning stuff like RSS is used for.
>> T
Adriaan Renting wrote:
> Not in my Python.
>
>
for count in range(0, 10):
>
> ... value = count
> ... exec("'a%s=%s' % (count, value)")
> ...
>
dir()
>
> ['__builtins__', '__doc__', '__name__', 'count', 'value']
You did not copy the suggestion properly:
>>> for count in rang
Michele Simionato wrote:
> Well, the issue is not how to input text in the database from Python
> (it is enough to use literal unicode strings);
> in my case the database has been generated from a text file containing
> accented chars, using .import,
> and it seems I cannot read it from Python beca
In comp.lang.perl.misc Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
> >>> the argument that usenet should never change seems a little
> >>> heavy-handed and anachronistic.
> >> No, simple since there *are* al
In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
> >>
> >> > the argument that usenet should never change seems a little
> >> > heavy-handed and anachronistic.
> >>
> >> No, simple since the
Mike Meyer wrote:
> "Mike Schilling" <[EMAIL PROTECTED]> writes:
>> Another advantage is that evewry internet-enabled computer today already
>> comes with an HTML renderer (AKA browser)
>
> No, they don't. Minimalist Unix distributions don't include a browser
> by default. I know the BSD's don't,
On Thu, Aug 25, 2005 at 01:15:55AM -0700, Michele Simionato wrote:
> An easy question, but I don't find the answer in the docs :-(
> I have a sqlite3 database containing accented characters (latin-1).
> How do I set the right encoding? For instance if I do this: [...]
You cannot set the encoding d
Chris Head <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>>>Additionally, a user interface operating inside an HTML
>>>renderer can NEVER be as fast as a native-code user interface with
>>>only the e-mail message itself passed through the renderer.
>>
>> Nowadays, more then futile.
>
> Sorry,
[EMAIL PROTECTED] writes:
>> The problem is that when the sax handler raises an exception,
> I can't see how to find out why. What I want to do is for
> DodgyErrorHandler to do something different depending on
> where we are in the course of parsing. Is there anyway
> to get that information back
Nice. Note that the Sourceforge bug for this issue indicates that
something is already being done about it. It just happens to have
been updated a day or so ago:
https://sourceforge.net/tracker/?func=detail&atid=355470&aid=1123660&group_id=5470
Note to skeptics: the attacks are pretty seriou
Bryan Olson <[EMAIL PROTECTED]> writes:
> The module provides classes and functions. The functions are:
>
> string_to_hex(str): Return a string with two hex digits for
> each byte of str, representing the ord() of the byte. The
> case of the hex digits A-F/a-f is up to Python's buil
Hi!
I have a problem in a program. And I don't understand what is going on.
I can code something, that the "error" doesn't occur anymore. But I
still don't know the reason and this is unsatisfactory: Did I understood
something wrong or is there a bug? To make it short, I boiled down the
program to
Antoon Pardon wrote:
> Bryan Olson schreef:
>
>>Steve Holden asked:
>>>And what are you proposing that
>>>find() should return if the substring isn't found at all? please don't
>>>suggest it should raise an exception, as index() exists to provide that
>>>functionality.
>>
>>There are a num
No, the default paramter LL is only ever created once, not
reinitialised every time the constructor is called - this is quite a
common gotcha! You want to do something like:
class cClass:
""" Base class to handle playlists, i.e. the files, the name, etc. """
def __init__(self, LL=None):
Mike Schilling wrote:
>
> Threaded mail-readers too, screen-based editors , spell-checkers, all
> useless frills.
Interestingly enough, I have explained my opinion in the part of the
post you have trimmed. On the other hand, things you mentioned are far
from being useless. They introduce no in
Wouter van Ooijen (www.voti.nl) enlightened us with:
>>True. Unless you have two proper locks. In that case your bike will
>>last a very long time.
>
> Nope. You will probably retrieve your two locks from the fencing you
> attached them to (if you did!), with your bike gone.
That's not my experien
the shortest description in regex way
--
http://mail.python.org/mailman/listinfo/python-list
Hello Pythoners,
I'm currently writing some Python to manipulate a semi-structured XML
document. I'm using DOM (minidom) and I've got working code for
transforming the document to HTML files and for adding the 'structured'
elements which populate the higher regions of the tree (i.e. near the
root)
Benji York schrieb:
>> >>> suffix = 'var'
>> >>> vars()['a%s' % suffix] = 45
>> >>> avar
>> 45
>
>
> Quoting from http://docs.python.org/lib/built-in-funcs.html#l2h-76 about
> the "vars" built in:
>
> The returned dictionary should not be modified: the effects on the
> corresponding symbol
Sybren Stuvel wrote:
> Martin P. Hellwig enlightened us with:
>
>>Personal transportation sucks in the Netherlands, if you live in the
>>Randstad (the area of the above mentioned cities) and you have to
>>travel across the Randstad, you go with the bike and/or
>>bus/tram/metro/train because that i
[EMAIL PROTECTED] wrote:
> Exists some tool, programs or some able to compute the minimal regular
> expression, namely ,taking a series of regular exoression, the minimal
> one that makes the same matching?
> thanx in advance
m//;
it matches everything. Perhaps you need to better define your pr
Richard Lewis wrote:
>
> I admit I haven't tried very much code yet, but I'm not sure how I'm
> going to handle situations like: the user wants to insert a link in the
> middle of a paragraph. How can I use the DOM to insert a node into the
> middle of some text? Am I right in thinking that the DO
I am having a strange problem with classes. I'm fairly sure the
problem is with classes, anyway, because when I re-write the program
without them, it works like I'd expect it to.
When I run this program, at first, L[0].z[1] is 0, because z=[0,0].
But after I run that loop to assign different valu
On Fri, 26 Aug 2005 07:52:06 GMT, Wouter van Ooijen (www.voti.nl) <[EMAIL
PROTECTED]> wrote:
> I have a tool in Python to which I want to add a small GUI. The tools
> currently runs everywhere PySerial is supported. I need a file-access
> dialog. What is the preffered way to to this? Is there a
>
Martin P. Hellwig enlightened us with:
> Yes it is, and it sucks too
In Amsterdam, it's the best way to go.
> or do you find it amusing to ride 15 clicks through rain and wind to
> get to your clients?
Makes a man out of you ;-) Of course, rain sucks, but as long as it's
not raining too hard it'
cfgauss wrote:
> I am having a strange problem with classes. I'm fairly sure the
> problem is with classes, anyway, because when I re-write the program
> without them, it works like I'd expect it to.
>
> When I run this program, at first, L[0].z[1] is 0, because z=[0,0].
> But after I run that lo
On Fri, 26 Aug 2005 12:13:10 +0200, "Diez B. Roggisch"
<[EMAIL PROTECTED]> said:
> Richard Lewis wrote:
> >
> > I admit I haven't tried very much code yet, but I'm not sure how I'm
> > going to handle situations like: the user wants to insert a link in the
> > middle of a paragraph. How can I use
Hi
I'm about to start my third, and final, year in computer science at
cambridge uni, and i need to come up with an idea for a software
project, but i'm really struggling for ideas, and i was wondering
whether anyone here had any suggestions.
I'd say i'm probably most experienced in Java, but I h
Wouter van Ooijen wrote:
>I have a tool in Python to which I want to add a small GUI. The tools
> currently runs everywhere PySerial is supported. I need a file-access
> dialog. What is the preffered way to to this? Is there a
> platform-independent file-access dialog available, or should I use th
Adriaan Renting wrote:
> Not in my Python.
>
>
for count in range(0, 10):
>
> ... value = count
> ... exec("'a%s=%s' % (count, value)")
But that's not what rafi suggested.
rafi:
> why using the eval?
>
> exec ('a%s=%s' % (count, value))
See the difference?
--
Robert Kern
[EMAIL
Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>>
>>> On the information side (in contrast to the discussion side) RSS is
>>> replacing Usenet,
>>
>> LOL, how? I can't post to RSS feeds. Or do you mean for lurkers?
>
> I said "inf
Richard Lewis wrote:
> Hello Pythoners,
>
> I'm currently writing some Python to manipulate a semi-structured XML
> document. I'm using DOM (minidom) and I've got working code for
> transforming the document to HTML files and for adding the 'structured'
> elements which populate the higher regions
Jon Hewer enlightened us with:
> Areas of interested include AI, distributed systems. Most of all i
> want something that is interesting, and actually useful (thats
> probably stating the obvious!)
You could help developing Dynamite (contact Dick van Albada from the
University of Amsterdam for th
[EMAIL PROTECTED] wrote:
> "NNTP and its applications" have evolved to provide a set of much more
> sophisticated means of accessing and giving information than any forum
> I've ever seen.
Example(s). And do users need those sophisticated things?
--
John Small Perl scripts: ht
Thanks for your help.
* James <[EMAIL PROTECTED]> [2005-08-26 11:42]:
> No, the default paramter LL is only ever created once, not
> reinitialised every time the constructor is called - this is quite a
> common gotcha!
But still, it is not absolutely clear for me, what is going on. So, at
least
[EMAIL PROTECTED] wrote:
> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
[ web based boards ]
>> And which useful tools do you require?
>>
> A choice of news readers to suit different people with different
> interfaces,
- different browsers, different stylesheets, different boar
Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
> What I hate about most are the sites that don't even *mention* that
> they want cookies. Often I have to wonder, reinput input fields etc.
> and then after ten minutes trying *bang*, the idea, maybe to allow
> cookies for that site.
So your browser d
Bryan Olson <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
> Steve Holden asked:
> > Do you just go round looking for trouble?
>
> In the course of programming, yes, absolutly.
>
> > As far as position reporting goes, it seems pretty clear that
> > find() will always report positive index
Denis Kasak <[EMAIL PROTECTED]> wrote:
> Mike Schilling wrote:
>>
>> Threaded mail-readers too, screen-based editors , spell-checkers, all
>> useless frills.
>
> Interestingly enough, I have explained my opinion in the part of the
> post you have trimmed. On the other hand, things you mentione
Jon Hewer <[EMAIL PROTECTED]> writes:
>Hi
>I'm about to start my third, and final, year in computer science at
>cambridge uni, and i need to come up with an idea for a software
>project, but i'm really struggling for ideas, and i was wondering
>whether anyone here had any suggestions.
>I'd say i
In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
> >
> > I'm talking about using the technology for communication, instead of
> > reinventing the wheel with crappy web forums.
>
> What is exactly crappy about those forums?
>
They are slow
They are inflexible
They are slow
They do
On Thu, 25 Aug 2005 11:39:48 -0700, Trent Mick wrote:
> [michael wrote]
>> SOLVED! Thank you.
>>
>> I wonder why this was needed for 2.4 and not 2.2? I don't think it was
>> lingering things from old installs because it happened on a persons
>> computer that had never had any python installed bef
In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
>
> > "NNTP and its applications" have evolved to provide a set of much more
> > sophisticated means of accessing and giving information than any forum
> > I've ever seen.
>
> Example(s). And do users need tho
In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>
> > They
> > have no downsides I can possibly think of
>
> Some people never use them, and hence they use memory and add risks.
>
So they can choose a newsreader that doesn't have these facilities, no
extra memory use, no risk.
--
John Bokma wrote:
> [EMAIL PROTECTED] wrote:
>
>> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>
> [ web based boards ]
>
>>> And which useful tools do you require?
>>>
>> A choice of news readers to suit different people with different
>> interfaces,
>
> - different browsers, d
John Bokma wrote:
> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>
>> What I hate about most are the sites that don't even *mention* that
>> they want cookies. Often I have to wonder, reinput input fields etc.
>> and then after ten minutes trying *bang*, the idea, maybe to allow
>> cookies for tha
When I run my Application it crashes at the following part:
- [ code ]
from kdecore import KLibLoader, KLibFactory
def myApp (self):
# ...
offer = KTrader.self().query("text/html")
# the offer can handle HTML - so
"[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> the shortest description in regex way
Which is? Oh, and please quote the previous message and author. Reply under
the part you are replying too, etc. Even with Google this is possible.
--
John Small Perl scripts: http://johnbo
Hi!
Maybe this question is already answared somewhere, but I could not find
it:
I want to modify one of the letters of a text of a Excel cell through
COM; let's say to make it red. The VB reference tells that it can be
managed with:
With Worksheets("Sheet1").Range("A1")
.Value = "abcdefg"
Dirk Zimmermann wrote:
> But still, it is not absolutely clear for me, what is going on. So, at
> least just for my understanding: The parameter LL is created just once
> for the whole class and not for the object
Yes. And because a lists are mutable, you can alter that one instance of
the list
Hi Madhu,
I came across your reference on the net
and wanted to get in touch with you regarding an interesting possibility in the
open-source space.
We are working with one of our client,
which is starting its engineering operations in Bangalore. The focus is on
building open source solu
Robert Kern wrote:
> You might find that the more Pythonic XML modules are better suited to
> handling mixed content. I've been using lxml and ElementTree quite
> successfully.
fwiw, here's an ET snippet that inserts an anchor element inside
a paragraph element:
# from lxml.etree import * # or
#
For simple, it's hard to beat EasyGUI: http://www.ferg.org/easygui/
Bob
--
http://mail.python.org/mailman/listinfo/python-list
On 8/26/05, bruce <[EMAIL PROTECTED]> wrote:
> 1st question, can this be part of a startup?
> 2nd question, does your university expect to own the rights/IP of your
> efforts
> 3rd question, are you serious, or just looking for a 'project' for a grade
I am pretty sure the university will hold any
On Wed, 24 Aug 2005, Wade wrote:
> Nice little series by Seth Stevenson for Americans daydreaming about
> emigration. Somewhere, anywhere ... maybe Amsterdam?
For a Python newsgroup, I'm surprised no one has mentioned yet that
Guido van Rossum developed Python at the CWI in Amsterdam (called
St
[EMAIL PROTECTED] wrote:
> Hi,
> I am trying to non-dimensionalize some data I have obtained. There are
> no 'standard' dimensionless groups for my application, so I would like
> to obtain the 'best' non-dimensional groups based on some statistical
> measures of the resulting transformed data.
>
>
In comp.lang.perl.misc Mike Schilling <[EMAIL PROTECTED]> wrote:
> "Denis Kasak" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
>> Mike Schilling wrote:
>>> I see a difference between "X would be useful for A, B, and C" and "Y
>>> will always be the only proper way."
>>> Don't yo
[EMAIL PROTECTED] wrote:
> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>> >
>> > I'm talking about using the technology for communication, instead of
>> > reinventing the wheel with crappy web forums.
>>
>> What is exactly crappy about those forums?
>>
> They are slow
I have
[EMAIL PROTECTED] wrote:
> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>> [EMAIL PROTECTED] wrote:
>>
>> > "NNTP and its applications" have evolved to provide a set of much more
>> > sophisticated means of accessing and giving information than any forum
>> > I've ever seen.
>>
>
Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> [EMAIL PROTECTED] wrote:
>>
>>> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>>
>> [ web based boards ]
>>
And which useful tools do you require?
>>> A choice of news readers to suit different people wi
Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
> John Bokma wrote:
>> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>>
>>> What I hate about most are the sites that don't even *mention* that
>>> they want cookies. Often I have to wonder, reinput input fields etc.
>>> and then after ten minutes trying
[EMAIL PROTECTED] wrote:
> In comp.lang.perl.misc John Bokma <[EMAIL PROTECTED]> wrote:
>>
>> > They
>> > have no downsides I can possibly think of
>>
>> Some people never use them, and hence they use memory and add risks.
>>
> So they can choose a newsreader that doesn't have these facilities
Am Fri, 26 Aug 2005 11:49:34 +0100 schrieb Jon Hewer:
> Hi
>
> I'm about to start my third, and final, year in computer science at
> cambridge uni, and i need to come up with an idea for a software
> project, but i'm really struggling for ideas, and i was wondering
> whether anyone here had any s
On Fri, 26 Aug 2005 13:59:09 +0200, "Fredrik Lundh"
<[EMAIL PROTECTED]> said:
> Robert Kern wrote:
>
> > You might find that the more Pythonic XML modules are better suited to
> > handling mixed content. I've been using lxml and ElementTree quite
> > successfully.
>
> fwiw, here's an ET snippet
Hi all.
I was wondering if it ispossible to integrate C source in a python project.
Best regards
--
http://mail.python.org/mailman/listinfo/python-list
Dragan Cvetkovic <[EMAIL PROTECTED]> wrote:
> John Bokma <[EMAIL PROTECTED]> writes:
>
>>> A forum provides a
>>> single, usually rather limited, interface for the user with no way
>>> for the user to change it radically.
>>
>> Does the user want this? And with a user stylesheet you can change it
Thomas Bartkus wrote:
> Name: lib64python2.4-devel
> Summary: The libraries and header files needed for Python development
>
> Description: The Python programming language's interpreter can be extended
> with dynamically loaded extensions and can be embedded in other programs.
> This package cont
John Bokma <[EMAIL PROTECTED]> writes:
>> A forum provides a
>> single, usually rather limited, interface for the user with no way for
>> the user to change it radically.
>
> Does the user want this? And with a user stylesheet you can change it
> quite radically :-)
>
> And in return the user get
How to know if connection is active after telnetlib.Telnet.open(host,port)?
--
http://mail.python.org/mailman/listinfo/python-list
billiejoex wrote:
> Hi all.
> I was wondering if it ispossible to integrate C source in a python project.
There is ofcourse Python/C API
http://docs.python.org/api/api.html
But you will probably be easier off with Pyrex or Swig.
Good summary on when to use which
http://www.rexx.com/~dkuhlman/pyt
John Bokma wrote:
>
> You can't be sure: errors in the handling of threads can cause a buffer
> overflow, same for spelling checking :-D
Yes, they can, provided they are not properly coded. However, those
things only interact locally with the user and have none or very limited
interaction with
John Bokma <[EMAIL PROTECTED]> writes:
> [EMAIL PROTECTED] wrote:
>> They don't have killfiles or scoring
>
> You can install a mod to kill people.
Gee, didn't know that it's that powerful. One more reason not to use web
forums :-)
Dragan
--
Dragan Cvetkovic,
To be or not to be is true. G.
Google for "optimized regexp" returns:
http://laurent.riesterer.free.fr/regexp/make-regexp.html
http://search.cpan.org/~dankogai/Regexp-Optimizer-0.15/
There are several more links, but all appear to be written in languages
other than Python. Perhaps you could port one of them.
It also seems tha
"Krisz" <[EMAIL PROTECTED]> wrote in
news:[EMAIL PROTECTED]:
A.book.Worksheets(1).Range("a1").Characters(1,1)
> Traceback (most recent call last):
> File "", line 1, in ?
> AttributeError: Characters instance has no __call__ method
>
> So my question is that am I doing something wrong or
Than you James. I'll take a look as soon as possible.
It is possible do the contrary (integrates python source in a C project)?
"James" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> billiejoex wrote:
>> Hi all.
>> I was wondering if it ispossible to integrate C source in
[EMAIL PROTECTED] wrote:
>
... snip ...
>
> Same applies to most newsfeeds, depending on retention. If you
> want to look a long way back in a thread, use Google Groups.
Except for those anti-social zealots who use an X-noarchive header.
--
"If you want to post a followup via groups.google.com
John Bokma wrote:
> Ulrich Hobelmann <[EMAIL PROTECTED]> wrote:
>
>> John Bokma wrote:
>>> http://www.phpbb.com/mods/
>>
>> Great. How can I, the user, choose, how to use a mod on a given web
>> server?
>
> Ask the admin?
And that is, in your opinion, completely comparable to running your own
John Bokma wrote:
>
> so use Lynx :-)
>
> One forum I visit is about scorpions. And really, it talks a bit easier
> about scorpions if you have an image to look at :-D.
>
> In short: Usenet = Usenet, and www = www. Why some people want to move
> people from www to Usenet or vice versa is beyond
billiejoex wrote:
> Hi all.
> I was wondering if it ispossible to integrate C source in a python
> project.
>
> Best regards
Yes, of course. Have a look here:
http://docs.python.org/ext/ext.html
There are two nice tools for this:
SWIG
http://www.swig.org/Doc1.1/HTML/Python.html
SIP
http://ww
>
> Hi all.
> I was wondering if it ispossible to integrate C source in a
> python project.
Yes it is. Which tool you use depends on your requirements:
http://starship.python.net/crew/theller/ctypes/
ctypes allowes loading dlls/shared libs and calling functions
in that lib.
www.swig.org
is a
John Bokma wrote:
> "T Beck" <[EMAIL PROTECTED]> wrote:
>
> > If we argue that people are evolving the way e-mail is handled, and
> > adding entire new feature sets to something which has been around
> > since the earliest days of the internet, then that's perfectly
> > feasable. HTML itself has g
On Thu, 25 Aug 2005 13:22:53 -0400, François Pinard wrote:
>[David MacQuigg]
>
>> The key new features needed in a spam filter are the ability to
>> extract the sender's identity (not that of the latest forwarder), and
>> to factor into the spam score the reputation of that identity.
>
>This will o
Robert Kern wrote:
> Paul Miller wrote:
>
>>I have a user who is is having trouble getting MacPython on his OS X
>>10.3.8 system.
>>
>>When he runs ConfigurePythonCarbon, he gets this error:
>>
>>[terminated]
>>'import site' failed; use -v for traceback
>>traceback )most recent call last):
>>File
Hey there.
i have a time string (created with strftime) then read from a file,
i am having some trouble understanding how to get the difference
between times.
i know i can structime(timestring) and get a time value, but i dont
know how to manipulate it.
basically, if i have string 2005-08-24 09:25
> > If that were so, Pythonistas could never write a recursive function!
>
> No, presumably at the writing of the edition of _Learning Python_ that
> he is reading, Python did not have nested scopes in the language, yet.
> One could always write a recursive function provided it was at the
> top-lev
I have strange problem with telnetlib.
r=self.telnet.read_until(expected,timeout)
It works in most cases (hundrets of iterations), but sometimes "r" doesn't
contain "expected", first I thought that server is responding incorrectly, then
I realized that read_until doesn't wait timeout seconds!
ex
On Fri, 26 Aug 2005, John Bokma wrote:
> people from www to Usenet or vice versa is beyond me. If 80% of the current
> Usenet users stop posting, Usenet is not going to die :-D
Heh. Quite the opposite, I reckon: it would get much better (higher SNR)! :-)
--
Rich Teer, SCNA, SCSA, OpenSolaris
>Tkinter has a file acces dialog available with the same API on all platforms.
>It is also mapped to the standard dialog on Windows.
> Since Tkinter is certainly installed by default with Python, if a file dialog
> is everything you need, you probably don't have to look further.
Great :)
Wout
Hi. I'm trying to use pcapy module on Windows XP prof sp2 but it doesn't
work.
The example source reported on the site
(http://oss.coresecurity.com/impacket/sniff.py) works only on *unix
machines.
On Windows machines the findalldevs() function (an output on the bottom)
gives an unicode object that
i have written some code in test.py as below:
import __main__
if __name__!='__main__':
print 1
print 2
when i run test.py, i got
2
on the screen.
now, i have some question about the code, 1. since no __main__ module at
all, why it's legal to write "import __main__"?
2. since if running a scr
1 - 100 of 227 matches
Mail list logo