IMPORTANT 2.5 API changes for C Extension Modules

2006-04-04 Thread [EMAIL PROTECTED]
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

Re: Standalone Python functions in UML?

2006-04-04 Thread Marc 'BlackJack' Rintsch
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

specialized GUI

2006-04-04 Thread diffuser78
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

Re: Extending Python

2006-04-04 Thread Alex Martelli
<[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

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 Thread Fredrik Lundh
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

FW: [psf] #286: Py_Initialize faliure if the python24.lib build with vc8

2006-04-04 Thread magazine
-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

Re: Best way to create a copy of a list

2006-04-04 Thread Frank Millman
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

Extending Python

2006-04-04 Thread sushant . sirsikar
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

Installing Python imaging library

2006-04-04 Thread amaltasb
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

Re: Strange problem when running python code

2006-04-04 Thread sushant . sirsikar
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

Re: using range() in for loops

2006-04-04 Thread sushant . sirsikar
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

Re: xml element tree to html problem

2006-04-04 Thread Ron Adam
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"

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 Thread Roger Binns
"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

pulling data from html and putting it in mysql database

2006-04-04 Thread Kun
i have the following simple html that asks for a price: -- http://mail.python.org/mailman/listinfo/python-list

Re: wxpython in action book

2006-04-04 Thread Butternut squash
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

Re: Python Decompilers?

2006-04-04 Thread Philippe Martin
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

The "Need for Speed" Sprint, Reykjavik, Iceland, May 21-28, 2006

2006-04-04 Thread Steve Holden
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

Re: using range() in for loops

2006-04-04 Thread Paul Rubin
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

using range() in for loops

2006-04-04 Thread John Salerno
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

Re: Python Decompilers?

2006-04-04 Thread Felipe Almeida Lessa
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

Re: Python Decompilers?

2006-04-04 Thread Philippe Martin
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

Re: how to comment lot of lines in python

2006-04-04 Thread Michael Sperlle
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

"The World's Most Maintainable Programming Language"

2006-04-04 Thread John Salerno
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

Re: Standalone Python functions in UML?

2006-04-04 Thread Ravi Teja
> 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

Re: Python Decompilers?

2006-04-04 Thread Peter Hansen
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

Re: tkinter canvas

2006-04-04 Thread John McMonagle
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

Re: Python Decompilers?

2006-04-04 Thread Felipe Almeida Lessa
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

Re: running IDLE from another program?

2006-04-04 Thread jussij
> 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

Re: Python Decompilers?

2006-04-04 Thread SamFeltus
I prefer Emacs or TextWrangler -- http://mail.python.org/mailman/listinfo/python-list

Re: how to comment lot of lines in python

2006-04-04 Thread jussij
> 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

Re: socket connetion to url with port 80

2006-04-04 Thread John J. Lee
"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

Python Decompilers?

2006-04-04 Thread flamesrock
Hi, Are there any good decompilers for python? -Thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: tkinter canvas

2006-04-04 Thread fxe
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 --

Re: tkinter canvas

2006-04-04 Thread John McMonagle
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

Re: Mouse event - binding

2006-04-04 Thread John McMonagle
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

Re: COM server / COM client

2006-04-04 Thread Larry Bates
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,

Re: CD Burning

2006-04-04 Thread hugonz
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

Re: Doc suggestions

2006-04-04 Thread rurpy
<[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

Re: Doc suggestions

2006-04-04 Thread rurpy
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

Re: tuple syntax ',' (ending in comma?)

2006-04-04 Thread Ben Finney
"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

Re: Strange problem when running python code

2006-04-04 Thread Christopher Weimann
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

Re: Book: wxPython in Action

2006-04-04 Thread Robin Dunn
[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; > >

Re: socket connetion to url with port 80

2006-04-04 Thread Sakcee
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

tkinter canvas

2006-04-04 Thread fxe
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

[wxPython-users] Book: wxPython in Action

2006-04-04 Thread Brian.Danielsen
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.

Re: Best way to create a copy of a list

2006-04-04 Thread Paul Rubin
[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

Mouse event - binding

2006-04-04 Thread beta
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):

Re: socket connetion to url with port 80

2006-04-04 Thread Rene Pijlman
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

Re: what's going on here?

2006-04-04 Thread Roel Schroeven
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

Re: IDLE on Fedora Core 5

2006-04-04 Thread David H Wild
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,

Re: Binary tree problem (searching)

2006-04-04 Thread [EMAIL PROTECTED]
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

Re: Binary tree problem (searching)

2006-04-04 Thread Bruno Desthuilliers
[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

Re: IDLE on Fedora Core 5

2006-04-04 Thread Fredrik Lundh
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

Re: Dice probability problem

2006-04-04 Thread Dave Mandelin
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

Re: Strange problem when running python code

2006-04-04 Thread James Stroud
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

Re: socket connetion to url with port 80

2006-04-04 Thread Fredrik Lundh
"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?? >

IDLE on Fedora Core 5

2006-04-04 Thread David H Wild
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

socket connetion to url with port 80

2006-04-04 Thread Sakcee
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

Re: Strange problem when running python code

2006-04-04 Thread Steve Juranich
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

Re: xml element tree to html problem

2006-04-04 Thread [EMAIL PROTECTED]
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

Binary tree problem (searching)

2006-04-04 Thread pyguy
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 ***

[ANN] pysqlite 2.2.0 released

2006-04-04 Thread Gerhard Häring
-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

Re: xml element tree to html problem

2006-04-04 Thread [EMAIL PROTECTED]
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

Re: xml element tree to html problem

2006-04-04 Thread Fredrik Lundh
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 >

Re: how do you use pickle?

2006-04-04 Thread Pythor
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

xml element tree to html problem

2006-04-04 Thread Ron Adam
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.

Re: Help with display placement

2006-04-04 Thread Samantha
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

Re: how do you use pickle?

2006-04-04 Thread John Salerno
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

Re: how do you use pickle?

2006-04-04 Thread Pythor
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

Re: kinterbas and Python

2006-04-04 Thread Petr Jakes
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

Re: Registration Code

2006-04-04 Thread Ross Ridge
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

Re: Strange problem when running python code

2006-04-04 Thread ishtar2020
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

Re: Strange problem when running python code

2006-04-04 Thread Roy Smith
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.

Re: Strange problem when running python code

2006-04-04 Thread Fredrik Lundh
"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

Re: Strange problem when running python code

2006-04-04 Thread John Salerno
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

Re: Strange problem when running python code

2006-04-04 Thread Brian Beck
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

Strange problem when running python code

2006-04-04 Thread ishtar2020
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

Re: mod_python and PHP sharing same session

2006-04-04 Thread K Raghu Prasad
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

PEP 343 == small-sized aspect orientation ?

2006-04-04 Thread Nebur
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:

Re: kinterbas and Python

2006-04-04 Thread Jarek Zgoda
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

Re: ANNOUNCE: wxPython 2.6.3.2

2006-04-04 Thread Robin Dunn
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

[wxPython-users] Re: ANNOUNCE: wxPython 2.6.3.2

2006-04-04 Thread Kevin Walzer
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

Re: [ANN] markup.py - 1.2 - an HTML/XML generator

2006-04-04 Thread Walter Dörwald
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,

Re: how do you use pickle?

2006-04-04 Thread John Salerno
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

Re: ANNOUNCE: wxPython 2.6.3.2

2006-04-04 Thread John Salerno
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

Re: how do you use pickle?

2006-04-04 Thread John Salerno
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

ANNOUNCE: wxPython 2.6.3.2

2006-04-04 Thread Robin Dunn
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

Re: Dr. Dobb's Python-URL! - weekly Python news and links (Apr 4)

2006-04-04 Thread gene tani
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

Re: scraping nested tables with BeautifulSoup

2006-04-04 Thread Kent Johnson
[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/

Re: how do you use pickle?

2006-04-04 Thread Pythor
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

Re: Standalone Python functions in UML?

2006-04-04 Thread Philippe Martin
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

Re: scraping nested tables with BeautifulSoup

2006-04-04 Thread [EMAIL PROTECTED]
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

Re: Help with display placement

2006-04-04 Thread [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 root.geometry(geometryString) geoometrystring is in the format WxH+X+Y - you may hve to do some screen cal

Re: how do you use pickle?

2006-04-04 Thread John Salerno
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

Re: Standalone Python functions in UML?

2006-04-04 Thread Roman Susi
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,

Re: Convertion of Unicode to ASCII NIGHTMARE

2006-04-04 Thread Paul Boddie
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,

kinterbas and Python

2006-04-04 Thread Balin
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

Re: how do you use pickle?

2006-04-04 Thread Pythor
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

Re: Dice probability problem

2006-04-04 Thread Gerard Flanagan
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

Re: Standalone Python functions in UML?

2006-04-04 Thread bruno at modulix
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   2   >