If you don't write or otherwise maintain Python Extension Modules
written in C (or C++), you can stop reading.
Python 2.5 alpha 1 is in the process of being released later today.
There are important changes that are in 2.5 to support 64-bit systems.
These changes can cause Python to crash if your
In <[EMAIL PROTECTED]>, Roman Susi
wrote:
> Out of curiosity, how do I draw functions outside classes with UML? How
> module could be drawn in this case?
I just create a (UML) class for modules. After all a Python module can be
seen as a class definition for a singleton which is instantiated at
I am new to python. I got a new project where I have to create a GUI
and
attch my code to it.
The GUI should look like vsTASKER www.virtualsim.com
I mean GUI lets user create diagram, and my code should read that
diagram and run the algorithm.
Do you know any other tool like this where I can
<[EMAIL PROTECTED]> wrote:
> We can extend the functionality of python using C,C++.I want to
> know what are the other lang that we can use to extend the
> functionality of Python?
C# or any .NET one in the IronPython implementation, Java (or any other
JVM one) in the Jython implementation; f
Roger Binns wrote:
> SQLite only accepts Unicode so a Unicode string has to be supplied.
fact or FUD? let's see:
import pysqlite2.dbapi2 as DB
db = DB.connect("test.db")
cur = db.cursor()
cur.execute("create table if not exists test (col text)")
cur.execute("insert into t
-Original Message-
From: Steve Holden [mailto:[EMAIL PROTECTED]
Sent: 2006年4月4日 20:00
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: Re: [psf] #286: Py_Initialize faliure if the python24.lib build
with vc8
psf wrote:
> #286: Py_Initialize faliure if the python24.lib build with v
Alex Martelli wrote:
> Frank Millman <[EMAIL PROTECTED]> wrote:
>...
> > If they are all equivalent from a functional point of view, I lean
> > towards the second version. I agree with Rune that the third one is
> > nicer to read, but somehow the [:] syntax makes it a bit more obvious
> > what
Hi All.
We can extend the functionality of python using C,C++.I want to
know what are the other lang that we can use to extend the
functionality of Python?
Bye
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I am hosting python applicaitions on a shared hositng so I dont have
enough privilages, I have installed python in my home folder, through
Automatic installer > extratools.php
I want to install Python imaging library module. I just copied the PIL
in my py24 folder and also in site packages, bu
Are U Using any IDE for Python?
If yes then check out the setting and make sure that u are running same
code.
--
http://mail.python.org/mailman/listinfo/python-list
hi John,
Python doesn't provide for loop like C / C++ but using Range() or
Xrange() you can achive all the functionalities of the C for loop.If
you wants distributed for loop You can use Xrange.
John Salerno wrote:
> I'm reading Text Processing in Python right now and I came across a
> comment
Fredrik Lundh wrote:
> here's one way to do it:
>
> import cElementTree as ET
>
> tree = ET.XML("""
>
> ball
>
> red
> large
>
>
> """)
>
> MAP = {
> "object": ("dl", "object"),
> "name": ("dt", "name"
"ChaosKCW" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> me. As for SQLite supporting unicode, it probably does,
No, SQLite *ONLY* supports Unicode. It will *only* accept
strings in Unicode and only produces strings in Unicode.
All the functionality built into SQLite such as comp
i have the following simple html that asks for a price:
--
http://mail.python.org/mailman/listinfo/python-list
momobear wrote:
>
> Butternut squash wrote:
>> any recommendations? any opinions?
>>
>> I want to learn to program in python and need a gui reference. I'll be
>> updating various mysql tables. I have most of the code ready to roll by
>> using a command line. I need put some lipstick on my project
That's not the issue Felipe,
Although I somewhat understand your annoyment Putting onself on a
pedestal just because one knows better is not good for the teaching sake.
Now I am not saying you feel you're better/more educated/smarter ... I am
saying you have hopefully asked questions on t
EWT LLC and CCP h.f., having specific commercial interests in
doing so, have decided to sponsor a sprint on the Python
programming language with specific short- and medium-term
acceleration goals.
The sprint is also intended to stimulate broad consideration of
the future of Python, and specificall
John Salerno <[EMAIL PROTECTED]> writes:
> The reason for this distinction comes from the fact that I read a lot
> how using range and for is somewhat discouraged, because it doesn't
> really use a for loop for it's true purpose. So my question is, is
> this just a Python-oriented opinion about for
I'm reading Text Processing in Python right now and I came across a
comment that is helping me to see for loops in a new light. I think
because I'm used to the C-style for loop where you create a counter
within the loop declaration, for loops have always seemed to me to be
about doing something
Em Ter, 2006-04-04 às 20:40 -0500, Philippe Martin escreveu:
> I needed a laugh: funny but why ?
I made a simple answer for a simple question. =)
Sometimes the way people ask things annoys me a lot, they seem to think
that we know what they're thinking... Why doesn't everybody read the
netiquette
I needed a laugh: funny but why ?
Felipe Almeida Lessa wrote:
> Em Ter, 2006-04-04 às 16:42 -0700, flamesrock escreveu:
>> Hi,
>
> Hi
>
>> Are there any good decompilers for python?
>
> Yes
>
>> -Thanks
>
> You're welcome =)
>
--
http://mail.python.org/mailman/listinfo/python-list
What's wrong with using three sets of double-quotes? I do it with kwrite
and it works like a charm.
--
http://mail.python.org/mailman/listinfo/python-list
There is an article on oreilly.net's OnLamp site called "The World's
Most Maintainable Programming Language"
(http://www.oreillynet.com/onlamp/blog/2006/03/the_worlds_most_maintainable_p.html).
It's not about a specific language, but about the qualities that would
make up the title language
> So, function could be a utility class method. If there are no better ways.
What I mean is <> is the formal notation for a class in which
global functions are aggregated. It's not a hack.
Python is not alone here. Most OO languages aside Java and Smalltalk
have functions outside classes and UML a
flamesrock wrote:
> Hi,
>
> Are there any good decompilers for python?
Decompyle can manage any version from 1.5 up to 2.3.3.
Is that "good"? What is "good" to you?
-Peter
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 2006-04-04 at 16:42 -0700, fxe wrote:
> Hi John , thanks a million for the info.Looking at your solution I am sure
> this would work. After struggling with this for the past few hours I found
> another way just before reading your post. Its as simple as :
>
> canvas.create_line(x1,y1,x2,y2
Em Ter, 2006-04-04 às 16:42 -0700, flamesrock escreveu:
> Hi,
Hi
> Are there any good decompilers for python?
Yes
> -Thanks
You're welcome =)
--
Felipe.
--
http://mail.python.org/mailman/listinfo/python-list
> So it comes down to this: is it possible to run code (that
> was created in a separate editor) in IDLE in some kind of
> automated way?
Using the Zeus for Windows IDE this should be possible. Zeus has
many options when it comes to running tools and compilers:
http://www.zeusedit.com/forum/vie
I prefer Emacs or TextWrangler
--
http://mail.python.org/mailman/listinfo/python-list
> You should use a decent editor that could automatically
> comment/uncomment code upon your request.
The Zeus for Windows IDE has just such a feature:
http://www.zeusedit.com/python.html
To do this in Zeus you basically mark the lines of text
that need commenting then use the Macros, Add Com
"Sakcee" <[EMAIL PROTECTED]> writes:
> I got the response using s.send("GET / HTTP/1.0\r\n\r\n"),
>
> but this socket is being blocked by squid server that we have installed
> in our socket.
You don't have squid installed "in your socket". You have it
installed on a computer. Going through squ
Hi,
Are there any good decompilers for python?
-Thanks
--
http://mail.python.org/mailman/listinfo/python-list
Hi John , thanks a million for the info.Looking at your solution I am sure
this would work. After struggling with this for the past few hours I found
another way just before reading your post. Its as simple as :
canvas.create_line(x1,y1,x2,y2,fill='#00',state=DISABLED)
Thanks again,
Tom
--
On Tue, 2006-04-04 at 14:47 -0700, fxe wrote:
> Hi,
> I am using tkinter and I have a canvas that with several rectangles drawn
> on it. The rectangles need to have bindings to move and resize them. No
> problem here, but I also need to display a grid on the same canvas, for
> which I am using cr
On Tue, 2006-04-04 at 14:46 -0700, beta wrote:
> Hello All,
>
> I am new with Python, your help would be very appreciated.
>
> I have a simple pinpong applicaiton. I would like make a ball's color
> change when mouse is clicked on it.
>
> Here is my sample code:
>
> from Tkinter import *
>
> i
Dan wrote:
>>> Sounds like you are walking a "fine line" on the "no compiled programs
>>> written by me" thing.
>
> Yeah, I hate it. I could have written a C++ server, client application
> etc.. very easily. Instead, I have had to write javascript on the
> client to embed in an html page to view,
Hi,
I used cdrecord, albeit on Linux, to do it. Someone already suggested
to use Cygwin for that.
I'll just drop a piece of code I wrote for getting the percentage of
advance when recording sound, with cdrecord. Here it is (wraps
cdrecord):
#!/usr/bin/env python
"""
Canonizer: will open up a pro
<[EMAIL PROTECTED]> wrote in message
> Here is a 3' view. I posted about a clear
> (admittedly very minor) doc problem 8 days ago.
> Since then there have been 30+ postings in this
> thread. Insults and bad feelings have flown.
> Two people setup wikis and uploaded the tutorial.
> I don't kno
Context: I entered this thread complaining about a
derogatory reply to a poster saying that he failed to
read the documentation correctly, when in fact the
documentation was faulty.
This reply on the Fedora list makes an interesting
contrast to c.l.p.
> > [description of problems OP had installin
"Michael Yanowitz" <[EMAIL PROTECTED]> writes:
>I am still relatively new to Python. I am confused by the syntax
> for tuples.
Well, it's reassuring to know that this is still as confusing for
newcomers now as it was when I started.
> File "scene.py", line 256, in readData
> thread.sta
On 04/04/2006-12:01PM, ishtar2020 wrote:
> This is the line where the interpreter finds the error
>
>if text.list[i].toString() in limits:list)): <- Here is where
That line has two extra close parens before the :
Can you show the traceback?
--
http://mail.python.org/mailman/listinfo
[EMAIL PROTECTED] wrote:
> Robin,
>
>I just recently obtained the E-Book from the publisher Manning
> and have started reading. I have to complement you on your writing
> style. It is VERY conducive to learning. The three things that
> particularly jump out at me as read are;
>
>
thanks for the help
I got the response using s.send("GET / HTTP/1.0\r\n\r\n"),
but this socket is being blocked by squid server that we have installed
in our socket. do you know how can i configure the squid to stop
blocking the socket
thanks
--
http://mail.python.org/mailman/listinfo/python-l
Hi,
I am using tkinter and I have a canvas that with several rectangles drawn
on it. The rectangles need to have bindings to move and resize them. No
problem here, but I also need to display a grid on the same canvas, for
which I am using create_line. My problem is I do not want the grid lines t
Robin,
I just
recently obtained the E-Book from the publisher Manning and have started
reading. I have to complement you on your writing style. It
is VERY conducive to learning. The three things that particularly jump
out at me as read are;
Your use of ‘jargon’
sections.
[EMAIL PROTECTED] (Alex Martelli) writes:
> I vastly prefer to call list(xxx) in order to obtain a new list with the
> same items as xxx -- couldn't be more obvious than that.
>
> You can't claim it's obvious that xxx[:] *copies* data
Heh, it wasn't obvious that list(xxx) copies data either (I th
Hello All,
I am new with Python, your help would be very appreciated.
I have a simple pinpong applicaiton. I would like make a ball's color
change when mouse is clicked on it.
Here is my sample code:
from Tkinter import *
import string
class Pong(Frame):
def createWidgets(self):
Sakcee:
>how can i get page response from a site e.g. google.com port 80
[...]
>can i do at socket level?
Yes, but you'll need to implement HTTP:
http://www.ietf.org/rfc/rfc2616.txt
--
René Pijlman
--
http://mail.python.org/mailman/listinfo/python-list
John Salerno schreef:
> But thank god I'm passed this problem, although I'm sure it only gets
> worse now!
Yes, I'm afraid it does. I got stuck at puzzle 27 and gave up
temporarily. I'm going to try again though when I feel I need a challenge :)
--
If I have been able to see further, it was on
In article <[EMAIL PROTECTED]>,
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> > I have just installed FC5 on a new computer. I can access Python by
> > typing "Python" in a terminal window, but I can't find any way of
> > getting to IDLE.
> >
> > Can anyone help?
> $ yum provides idle
> can help,
This took a moment
I spent a lot of time stupidly thinking about right/left sorting, is it
looping? no that's not it...doh Then the light
then realized this
if self.key == key:
return 1
elif key < self.key:
if self.left:
self.left.find(key
[EMAIL PROTECTED] a écrit :
> Hi all,
>
> I am running into a conceptual glitch in implementing a simple binary tree
> class. My insertion and printing (sorting) seems to be ok, but when I search
> the tree, my find method isn't doing what I thought it should.
>
> Here is the output of running
David H Wild wrote:
> I have just installed FC5 on a new computer. I can access Python by typing
> "Python" in a terminal window, but I can't find any way of getting to IDLE.
>
> Can anyone help?
$ yum provides idle
can help, I think. it'll probably tell you to do
$ yum install python-tools
That looks reasonable. The operation you are implementing is known as
'convolution' and is equivalent to multiplying polynomials. It would be
a little more general if you had the input 'die' be a sequence of the
count for each outcome, so d6 would be [1]*6 (or [0]+[1]*6 if you
prefer). That would a
ishtar2020 wrote:
> Hi everybody
>
> I've been writing my very first application in Python and everything is
> running smoothly, except for a strange problem that pops up every once
> in a while. I'm sure is the kind
> of newbie thing every seasoned programmer knows.
>
> Sometimes a receive stran
"Sakcee" wrote:
> this is really a stupid question, how can i get page rsponse from a
> site e.g. google.com port 80
> form socket, can i do something
>
> import socket
> s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
> s.connect( ( "www.google.com", 80 ) )
> s.send( "Hello" ) # GET??
>
I have just installed FC5 on a new computer. I can access Python by typing
"Python" in a terminal window, but I can't find any way of getting to IDLE.
Can anyone help?
--
David Wild using RISC OS on broadband
--
http://mail.python.org/mailman/listinfo/python-list
Hi
this is really a stupid question, how can i get page rsponse from a
site e.g. google.com port 80
form socket, can i do something
import socket
s = socket.socket( socket.AF_INET, socket.SOCK_STREAM )
s.connect( ( "www.google.com", 80 ) )
s.send( "Hello" ) # GET??
response = s.recv(8048)
print
Roy Smith wrote:
> ishtar2020 <[EMAIL PROTECTED]> wrote:
>>I've been writing my very first application in Python and everything is
>>running smoothly, except for a strange problem that pops up every once
>>in a while. I'm sure is the kind
>>of newbie thing every seasoned programmer knows.
>
> Nob
Frederick,
I didn't know about cElementTree before, wow - this is a lot nicer than
PyyXML - and a whole lot faster. Almost makes my comments about
dealing with the xml as text, completely pointless.
--
http://mail.python.org/mailman/listinfo/python-list
Hi all,
I am running into a conceptual glitch in implementing a simple binary tree
class. My insertion and printing (sorting) seems to be ok, but when I search
the tree, my find method isn't doing what I thought it should.
Here is the output of running my tests:
>python -i trees.py
***
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
pysqlite 2.2.0 released
===
I'm pleased to announce the availability of pysqlite 2.2.0. This is a major
release with a few new features and much refactored code for improved
robustness.
Go to http://pysqlite.org/ for downloads, on
are you using PyXML?
If this is a simple one to one relationship with dependence on order,
I'd forgo the whole PyXML, read the file line by line, and replace tags
as appropriate. You may have to do some simple checkin, in case there
is n object
Otherwise, have fun with the parsers - nothing is
Ron Adam wrote:
> I have an element tree structure of nested elements that I want to
> convert to html as nested definition and unordered lists in the
> following way.
>
>
> ball
>
>red
>large
>
>
>
>
> To...
>
>
> ball
>
John Salerno wrote:
> Pythor wrote:
> > John Salerno wrote:
> >> John Salerno wrote:
> >>> Pythor wrote:
> >>>
> Whis is why I said carefully ;) I missed it several times myself when
> I was working on the challenge.
> >>> Ok, frustration has set in again. I see the file name in the sou
I'm new to element tree and haven't been able to find a simple solution
to this problem yet. So maybe someone can point me in the right direction.
I have an element tree structure of nested elements that I want to
convert to html as nested definition and unordered lists in the
following way.
Thanks, think I have it now.
S
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Ok so I'm not to bright sometimes
>
> Well if you want this kinda control I suggest you go ahead and subclass
> toplevel, but the simple answer before running
>
> root.mainloop()
>
>
> make a call to
>
> r
Pythor wrote:
> John Salerno wrote:
>> John Salerno wrote:
>>> Pythor wrote:
>>>
Whis is why I said carefully ;) I missed it several times myself when
I was working on the challenge.
>>> Ok, frustration has set in again. I see the file name in the source
>>> code, but am I meant to actua
John Salerno wrote:
> John Salerno wrote:
> > Pythor wrote:
> >
> >> Whis is why I said carefully ;) I missed it several times myself when
> >> I was working on the challenge.
> >
> > Ok, frustration has set in again. I see the file name in the source
> > code, but am I meant to actually access a
Jarek, I am using it always like in the following example to connect to
the remote host and it works for me flawlessly.
Petr Jakes
import kinterbasdb as k
con = k.connect(
host='router.maren.cz',
database='/data/sysdat01.gdb',
user='SYSDBA', password='masterkey')
--
ht
Steven D'Aprano wrote:
> Look at Microsoft. Their first version of Word (for Macintosh, as it
> turned out) was copy-protected. Their second version of Word, and every
> version since, as well as Excel and Powerpoint, have not included copy
> protection, time-limitations, product activation, or any
I must add, when the python interpreter displays the traceback, with
the line that is producing the error, it doesn't look like the one I
got in the code.
This is the line where the interpreter finds the error
if text.list[i].toString() in limits:list)): <- Here is where
the error is foun
ishtar2020 <[EMAIL PROTECTED]> wrote:
>I've been writing my very first application in Python and everything is
>running smoothly, except for a strange problem that pops up every once
>in a while. I'm sure is the kind
>of newbie thing every seasoned programmer knows.
Nobody here has a crystal ball.
"ishtar2020" wrote:
> Sometimes a receive strange Syntax Errors from parts of code that
> worked perfectly minutes ago. What's even more puzzling is that those
> errors are pointed to another part of the module when I do some random,
> innofensive changes in the code (like inserting a line or dele
ishtar2020 wrote:
> Hi everybody
>
> I've been writing my very first application in Python and everything is
> running smoothly, except for a strange problem that pops up every once
> in a while. I'm sure is the kind
> of newbie thing every seasoned programmer knows.
>
> Sometimes a receive stran
For certain errors like Syntax Errors, you'll get a much more helpful
response if you post some actual code. Strip it down if you have to,
but make sure we can reproduce the errors.
--
Brian Beck
Adventurer of the First Order
--
http://mail.python.org/mailman/listinfo/python-list
Hi everybody
I've been writing my very first application in Python and everything is
running smoothly, except for a strange problem that pops up every once
in a while. I'm sure is the kind
of newbie thing every seasoned programmer knows.
Sometimes a receive strange Syntax Errors from parts of cod
Scott wrote:
> I am trying to get a mod_python application to read an existing PHP
> session. I need some data that was set in the session by the PHP
> application. I am using the mod_python Session class but even when I
> specify the session id that PHP uses the Session(req, sid) call
> ret
I started learning PEP 343 , and it made me feel unsure how much I
really comprehend.
Can somebody explain which benefit it provides, compared with usual
Aspect Orientation ?
The latter looks more generic to me (and doesn't need the "with"
keyword). Do I miss something apparent ?
Nebur
--
http:
Balin napisał(a):
> con = kinterbasdb.connect(host='192.168.1.20',
> database='/home/db/TEST.FDB', user='SYSDBA', password='masterkey) <--- E
I don't think it's valid. If you connect to remote host, don't give a
path to database, just its name. Specifying full path long time ago was
suppo
Kevin Walzer wrote:
> Is the new build of wxPython-Mac a universal binary?
>
No, not yet. There is still some more work to do for that.
--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!
--
http://mail.python.org/mailman/listinfo/python-list
Robin Dunn wrote:
>
> Announcing
> --
>
> The 2.6.3.2 release of wxPython is now available for download at
> http://wxpython.org/download.php. This is a mostly bug fix release
> and takes care of several "unfortunate features" discovered in the
> 2.6.3.0 release made last week. A summar
Peter Hansen wrote:
> Felipe Almeida Lessa wrote:
>> $ pwd
>> /usr/lib/python2.4/site-packages
>> $ grep -re klass . | wc -l
>> 274
>> $ grep -re class_ . | wc -l
>> 897
>
> How many of those "class_" instances are really just substrings of
> "__class__" and "class_name" and such? On my machine,
John Salerno wrote:
> Pythor wrote:
>
>> Whis is why I said carefully ;) I missed it several times myself when
>> I was working on the challenge.
>
> Ok, frustration has set in again. I see the file name in the source
> code, but am I meant to actually access a file, or just use the name
> its
Robin Dunn wrote:
>
> Announcing
> --
>
> The 2.6.3.2 release of wxPython is now available for download at
> http://wxpython.org/download.php. This is a mostly bug fix release
> and takes care of several "unfortunate features" discovered in the
> 2.6.3.0 release made last week. A summar
Pythor wrote:
> Whis is why I said carefully ;) I missed it several times myself when
> I was working on the challenge.
Ok, frustration has set in again. I see the file name in the source
code, but am I meant to actually access a file, or just use the name
itself? I also had to look up what 'b
Announcing
--
The 2.6.3.2 release of wxPython is now available for download at
http://wxpython.org/download.php. This is a mostly bug fix release
and takes care of several "unfortunate features" discovered in the
2.6.3.0 release made last week. A summary of changes is listed below
and a
Peter Otten wrote:
> The old Python "To-Do List" now lives principally in a
> SourceForge reincarnation.
> http://sourceforge.net/tracker/?atid=355470&group_id=5470&func=browse
> http://python.sourceforge.net/peps/pep-0042.html
>
Thanks, very nice summary.
One thing, the
[EMAIL PROTECTED] wrote:
> Thanks Kent that works perfectly.. How can I strip all the HTML and
> create easily a dictionary of {location:price} ??
This should help:
prices = priceGuide.table
for tr in prices:
print tr.a.string, tr.a.findNext('font').string
Kent
--
http://mail.python.org/
John Salerno wrote:
> Pythor wrote:
> > John Salerno wrote:
> >> Pythor wrote:
> >>> John Salerno wrote:
> >>>
> I'm sorry, but I'm terribly confused. Nothing seems to be working for
> me. I *think* what I need to pickle is an image file,
> >>> SNIP
> >>>
> >>> Hint: Read the source for
But not in UML: a class diagram will represent classes while a sequence
diagram objects.
Philippe
bruno at modulix wrote:
> Philippe Martin wrote:
>> Roman Susi wrote:
>>
> (snip)
>
>>>More theoretical question is if I create classes on the fly, how UML can
>>>reflect that?
>>
>>
>> You me
Thanks Kent that works perfectly.. How can I strip all the HTML and
create easily a dictionary of {location:price} ??
--
http://mail.python.org/mailman/listinfo/python-list
Ok so I'm not to bright sometimes
Well if you want this kinda control I suggest you go ahead and subclass
toplevel, but the simple answer before running
root.mainloop()
make a call to
root.geometry(geometryString)
geoometrystring is in the format WxH+X+Y - you may hve to do some
screen cal
Pythor wrote:
> John Salerno wrote:
>> Pythor wrote:
>>> John Salerno wrote:
>>>
I'm sorry, but I'm terribly confused. Nothing seems to be working for
me. I *think* what I need to pickle is an image file,
>>> SNIP
>>>
>>> Hint: Read the source for that page more carefully.
>>>
>> Hmmm...t
Ravi Teja wrote:
>>>Out of curiosity, how do I draw functions outside classes with UML? How
>
> module could be drawn in this case?
>
> As a utility class.
So, function could be a utility class method. If there are no better ways.
>>>More theoretical question is if I create classes on the fly,
Robert Kern wrote:
> Roger Binns wrote:
> > "Paul Boddie" <[EMAIL PROTECTED]> wrote
> >>It looks like you may have Unicode objects that you're presenting to
> >>sqlite. In any case, with earlier versions of pysqlite that I've used,
> >>you need to connect with a special unicode_results parameter,
Hi all,
I have some problem with packege kinterbas for Firebird db connection
this is my code:
import kinterbasdb
class ConnessioneDB:
def initialize(self):
kinterbasdb.init(concurrency_level=1)
con = kinterbasdb.connect(host='192.168.1.20',
database='/home/db/TEST.FDB', user
John Salerno wrote:
> Pythor wrote:
> > John Salerno wrote:
> >
> >> I'm sorry, but I'm terribly confused. Nothing seems to be working for
> >> me. I *think* what I need to pickle is an image file,
> >
> > SNIP
> >
> > Hint: Read the source for that page more carefully.
> >
>
> Hmmm...the source d
Tomi Lindberg wrote:
>
> # A die with n faces
> D = lambda n: [x+1 for x in range(n)]
>
That can be written:
D = lambda n : range(1,n+1)
Gerard
--
http://mail.python.org/mailman/listinfo/python-list
Philippe Martin wrote:
> Roman Susi wrote:
>
(snip)
>>More theoretical question is if I create classes on the fly, how UML can
>>reflect that?
>
>
> You mean objects I think:
Yes : class objects !-)
Python's classes *are* objects. And you can create new classes at runtime.
(snip)
--
bruno d
1 - 100 of 180 matches
Mail list logo