VIFF 0.7

2008-09-21 Thread Martin Geisler
I'm very happy to announce the release of VIFF version 0.7: Tar/GZ: http://viff.dk/release/viff-0.7.tar.gz Tar/BZ2: http://viff.dk/release/viff-0.7.tar.bz2 Zip: http://viff.dk/release/viff-0.7.zip Exe: http://viff.dk/release/viff-0.7.win32.exe The changes since version 0.6 are:

WSO2 Web Service Framework for Jython 1.0-alpha Released

2008-09-21 Thread Heshan Suriyaarachchi
WSO2 WSF/Jython provides an amazingly simple approach to create (Code First) and consume Web Services in Jython. This framework integrates the Apache Axis2 http://ws.apache.org/axis2/ web services engine into Jython. Thus, providing all the power and versatility of the Axis2 engine to the Jython

Re: CTypes on a 64 bit machine truncates pointers to 32 bits?

2008-09-21 Thread Lawrence D'Oliveiro
In message [EMAIL PROTECTED], Ron Garret wrote: Default return type is int, which I assumed would be 64 bits on a 64 bit machine, but turns out it's 32. Stupid. I think preferred ABIs these days are LP64, not ILP64 or LLP64. -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-21 Thread MVP
Hi! Everything ... are an object. It's true ; but a language built around the objects, and OOP, are two different concepts. @-salutations -- Michel Claveau -- http://mail.python.org/mailman/listinfo/python-list

Re: Not fully OO ?

2008-09-21 Thread M�ta-MCI (MVP)
Bonjour ! AMHA, ceux qui ont écrit ce texte ont une mauvaise idée de ce que sont les variables en Python. Ils ont sans doute trop en tête les notions des variables en C ou en Basic, et ne se sont pas penchés sur les spécificités de Python. @-salutations -- Michel Claveau --

Re: Not fully OO ?

2008-09-21 Thread Martin v. Löwis
Christian Heimes wrote: Kay Schluehr wrote: Actually it is simply wrong in the mentioned case [...] It's not wrong. You have found a simple optimization. Lot's of compilers for lots of languages optimize code by code folding. I don't think he meant that Python is wrong somehow, but that

Re: Not fully OO ?

2008-09-21 Thread Fredrik Lundh
Martin v. Löwis wrote: I don't think he meant that Python is wrong somehow, but that the OO babble of what happens for 2+2 is wrong. The babble said that, when the code is executed, an __add__ message is sent to the 2 object, with another 2 object as the parameter. That statement is incorrect:

Re: report a BUG of package setuptools-0.6c8.

2008-09-21 Thread Sebastien Douche
2008/9/20 Carl Banks [EMAIL PROTECTED]: On Sep 20, 1:11 am, Fredrik Lundh [EMAIL PROTECTED] wrote: 为爱而生 wrote: File /usr/lib/python2.5/site-packages/setuptools/command/sdist.py, line 98, in entries_finder log.warn(unrecognized .svn/entries format in %s, dirname) NameError: global

How to kill threading.Thread instance?

2008-09-21 Thread dmitrey
hi all, Is there a better way to kill threading.Thread (running) instance than this one http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960 (it's all I have found via google). BTW, it should be noticed that lots of threading module methods have no docstrings (in my Python 2.5), for

Re: How to kill threading.Thread instance?

2008-09-21 Thread Diez B. Roggisch
dmitrey schrieb: hi all, Is there a better way to kill threading.Thread (running) instance than this one http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/496960 (it's all I have found via google). Nope. There might be other ways technically, but none of them falls into a

Re: writeable buffer and struct.pack_into and struct.unpck_from

2008-09-21 Thread John Machin
On Sep 21, 3:16 pm, Tzury Bar Yochay [EMAIL PROTECTED] wrote: Thanks Gabriel, I was missing the information how to create a writable buffer. array.array objects also have the writable buffer nature: import array b = array.array('c', '\0' * 10) b array('c',

Re: How to kill threading.Thread instance?

2008-09-21 Thread Fredrik Lundh
dmitrey wrote: BTW, it should be noticed that lots of threading module methods have no docstrings (in my Python 2.5), for example _Thread__bootstrap, _Thread__stop. things named _Class__name are explicitly marked private by the implementation (using the __ prefix). using them just because

understanding list scope

2008-09-21 Thread Alex
Hi all! I have a problem understanding the behaviour of this snippet: data_set = ({param:a},{param:b},{param:c}) for i in range(len(data_set)): ds = data_set[:] data = ds[i] if i == 1: data['param'] = y if i == 2: data['param'] = x print data_set This script print out:

Re: understanding list scope

2008-09-21 Thread George Sakkis
On Sep 21, 8:51 am, Alex [EMAIL PROTECTED] wrote: Hi all! I have a problem understanding the behaviour of this snippet: data_set = ({param:a},{param:b},{param:c}) for i in range(len(data_set)):     ds = data_set[:]     data = ds[i]     if i == 1: data['param'] = y     if i == 2:

Re: understanding list scope

2008-09-21 Thread alex23
On Sep 21, 10:51 pm, Alex [EMAIL PROTECTED] wrote: Why? I'm coping data_set in ds so why data_set is changed? You're making a copy of the ds tuple, which has the -same- contents as the original. To create copies of the contents as well, try the deepcopy function from the copy module. As an

Re: understanding list scope

2008-09-21 Thread Alex
On 21 Set, 15:07, George Sakkis [EMAIL PROTECTED] wrote: On Sep 21, 8:51 am, Alex [EMAIL PROTECTED] wrote: Hi all! I have a problem understanding the behaviour of this snippet: data_set = ({param:a},{param:b},{param:c}) for i in range(len(data_set)): ds = data_set[:]

Re: How to kill threading.Thread instance?

2008-09-21 Thread dmitrey
I wonder why something like myThread.exit() or myThread.quit() or threading.kill(myThread) can't be implemented? Is something like that present in Python 3000? Regards, D. -- http://mail.python.org/mailman/listinfo/python-list

Re: How to kill threading.Thread instance?

2008-09-21 Thread Diez B. Roggisch
dmitrey schrieb: I wonder why something like myThread.exit() or myThread.quit() or threading.kill(myThread) can't be implemented? Is something like that present in Python 3000? Not that I'm aware of it (which doesn't mean to much though). However I *am* aware of the bazillions discussions

Re: How to kill threading.Thread instance?

2008-09-21 Thread Fredrik Lundh
Diez B. Roggisch wrote: I wonder why something like myThread.exit() or myThread.quit() or threading.kill(myThread) can't be implemented? Is something like that present in Python 3000? Not that I'm aware of it (which doesn't mean to much though). However I *am* aware of the bazillions

Override the '+' symbol

2008-09-21 Thread Mr.SpOOn
Hi, how can I override the '+' symbol (and other math symbols) so that it can have a new behavior when applied to some objects? -- http://mail.python.org/mailman/listinfo/python-list

Re: Override the '+' symbol

2008-09-21 Thread Navtej Singh
http://docs.python.org/ref/numeric-types.html On Sun, Sep 21, 2008 at 8:37 PM, Mr.SpOOn [EMAIL PROTECTED] wrote: Hi, how can I override the '+' symbol (and other math symbols) so that it can have a new behavior when applied to some objects? --

Re: Override the '+' symbol

2008-09-21 Thread Fredrik Lundh
Mr.SpOOn wrote: how can I override the '+' symbol (and other math symbols) so that it can have a new behavior when applied to some objects? see Emulating Numeric Types in the language reference: http://www.python.org/doc/ref/numeric-types.html /F --

Why are broken iterators broken?

2008-09-21 Thread Steven D'Aprano
According to the Python docs, once an iterator raises StopIteration, it should continue to raise StopIteration forever. Iterators that fail to behave in this fashion are deemed to be broken: http://docs.python.org/lib/typeiter.html I don't understand the reasoning behind this. As I understand

Re: Why are broken iterators broken?

2008-09-21 Thread Fredrik Lundh
Steven D'Aprano wrote: According to the Python docs, once an iterator raises StopIteration, it should continue to raise StopIteration forever. Iterators that fail to behave in this fashion are deemed to be broken: http://docs.python.org/lib/typeiter.html I don't understand the reasoning

Deploying a Python Service on Apache Axis2

2008-09-21 Thread Heshan Suriyaarachchi
Hi guys, Apache Axis2/Java, is a popular open source Web service engine. It currently supports exposing services written in Java, Javascript as Web services. This article [1] discusses the Python data Binding that enable exposing Web services written in Python. [1] -

Re: Problem with Python shell through Cygwin Screen (Python/Vim/Screen combo)

2008-09-21 Thread Ant
On Sep 19, 7:08 pm, Jason Tishler [EMAIL PROTECTED] wrote: ... There are known issues when trying to run a Windows program that directly accesses the console under Cygwin.  For example:    http://mail.python.org/pipermail/python-list/2004-June/21.html AFAICT, you will have to use Cygwin

Re: Why are broken iterators broken?

2008-09-21 Thread Roy Smith
In article [EMAIL PROTECTED], Fredrik Lundh [EMAIL PROTECTED] wrote: Steven D'Aprano wrote: According to the Python docs, once an iterator raises StopIteration, it should continue to raise StopIteration forever. Iterators that fail to behave in this fashion are deemed to be broken:

Re: How to make a reverse for loop in python?

2008-09-21 Thread Alex Snast
On Sep 21, 3:47 am, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: On Sat, 20 Sep 2008 16:27:41 -0700, Alex Snast wrote: Another quick question please, is the List data structure just a dynamic array? If so how can you use static size array, linked list, AVL trees etcetera.

Re: Why are broken iterators broken?

2008-09-21 Thread Fredrik Lundh
Roy Smith wrote: There are plausible examples of collections which grow while you're iterating over them. I'm thinking specifically of a queue in a multi-threaded application. One thread pushes work onto the back of the queue while another pops from the front. The queue could certainly go

I tried erlang-ish [1|2] in python and something came out...

2008-09-21 Thread process
In erlang you can cons like this: [1|2]. i tried this in python and it didnt raise an error but i dont know what the result do [1|2] [3] [2|2] [2] a = [2|2] a [2] [2|3] [3] [2|1] [3] -- http://mail.python.org/mailman/listinfo/python-list

Re: I tried erlang-ish [1|2] in python and something came out...

2008-09-21 Thread Gary Herron
process wrote: In erlang you can cons like this: [1|2]. i tried this in python and it didnt raise an error but i dont know what the result do In Python | is the logical bitwise-OR operator. Look at the binary representation of the numbers to understand it. Gary Herron [1|2]

Re: curses.setsyx()?

2008-09-21 Thread linkmaster032000
On Sep 19, 6:42 pm, [EMAIL PROTECTED] wrote: On Sep 19, 1:24 am, Tim Roberts [EMAIL PROTECTED] wrote: [EMAIL PROTECTED] wrote: I tried curses.setsyx(2,3) in my script and it doesn't move the curses cursor. Any alternatives/solutions? Did you call doupdate after?  setsyx just

Re: I tried erlang-ish [1|2] in python and something came out...

2008-09-21 Thread Chris Rebert
On Sun, Sep 21, 2008 at 10:02 AM, process [EMAIL PROTECTED] wrote: In erlang you can cons like this: [1|2]. i tried this in python and it didnt raise an error but i dont know what the result do In Python, like in C, the | operator on integers performs a bitwise-OR. To cons nondestructively onto

Re: BeautifulSoup and Problem Tables

2008-09-21 Thread Peter Pearson
On Sat, 20 Sep 2008 20:51:52 -0700 (PDT), [EMAIL PROTECTED] wrote: [snip] from BeautifulSoup import BeautifulSoup bst=file(rc:\bstest.htm).read() soup=BeautifulSoup(bst) rows=soup.findAll('tr') len(rows) a=len(rows[0].findAll('td')) b=len(rows[1].findAll('td')) c=len(rows[2].findAll('td'))

Some questions about PyOpenGL and wxPython

2008-09-21 Thread Clay Hobbs
I am making a program with wxPython that renders objects in 3D using PyOpenGL, and I am having some problems. For one thing, I forgot how to make a double-buffered hardware surface. For another thing, glColor(1.0, 0.0, 0.0) just before the rendering doesn't make the object red. Please help, I'm

Milenko Kindl rtegdgd

2008-09-21 Thread yuma
Milenko Kindl Banja Luka Banjaluka Bihac -- http://mail.python.org/mailman/listinfo/python-list

Re: understanding list scope

2008-09-21 Thread Peter Pearson
On Sun, 21 Sep 2008 06:17:36 -0700 (PDT), Alex wrote: On 21 Set, 15:07, George Sakkis [EMAIL PROTECTED] wrote: On Sep 21, 8:51 am, Alex [EMAIL PROTECTED] wrote: [snip] I have a problem understanding the behaviour of this snippet: [snip] Because you're doing a shallow copy:

Re: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-21 Thread Gabriel Genellina
En Sat, 20 Sep 2008 16:07:12 -0300, Blubaugh, David A. [EMAIL PROTECTED] escribió: Let me state that do have extensive experience with developing binary files. Please note that I have followed all of the instructions to the letter as far as developing a DLL to be imported. However, it is

Re: report a BUG of package setuptools-0.6c8.

2008-09-21 Thread Gabriel Genellina
En Sun, 21 Sep 2008 06:46:54 -0300, Sebastien Douche [EMAIL PROTECTED] escribió: 2008/9/20 Carl Banks [EMAIL PROTECTED]: On Sep 20, 1:11 am, Fredrik Lundh [EMAIL PROTECTED] wrote: 为爱而生 wrote: File /usr/lib/python2.5/site-packages/setuptools/command/sdist.py, line 98, in

Re: Some questions about PyOpenGL and wxPython

2008-09-21 Thread Mike C. Fletcher
Clay Hobbs wrote: I am making a program with wxPython that renders objects in 3D using PyOpenGL, and I am having some problems. For one thing, I forgot how to make a double-buffered hardware surface.

Newick parser

2008-09-21 Thread aditya shukla
Hello folks , i have a .nwk file.I want to parser the tree from that file.I found this python parser for newick trees. http://www.daimi.au.dk/~mailund/newick.html But i don't understand the usage properly.What i wanna do is if i have a file in the location c:\\files\\file1.nwk , then i wanna

Re: Newick parser

2008-09-21 Thread Fredrik Lundh
aditya shukla wrote: Hello folks , i have a .nwk file.I want to parser the tree from that file.I found this python parser for newick trees. http://www.daimi.au.dk/~mailund/newick.html But i don't understand the usage properly.What i wanna do is if i have a file in the location

Re: Here's something interesting: sympy crashes in Python 2.6 (Windows)

2008-09-21 Thread Mensanator
On Sep 21, 4:37 am, Fredrik Lundh [EMAIL PROTECTED] wrote: Mensanator wrote: I'm not the one who wrote sympy, so I guess I'm not the only one who didn't notice it. If it's a well known problem, then sorry I wasted your time. Given that 2.5 explicitly warns about this specific change:

Re: Why are broken iterators broken?

2008-09-21 Thread Terry Reedy
Steven D'Aprano wrote: According to the Python docs, once an iterator raises StopIteration, it should continue to raise StopIteration forever. Iterators that fail to behave in this fashion are deemed to be broken: http://docs.python.org/lib/typeiter.html I don't understand the reasoning

Re: How to kill threading.Thread instance?

2008-09-21 Thread Fuzzyman
On Sep 21, 4:04 pm, Fredrik Lundh [EMAIL PROTECTED] wrote: Diez B. Roggisch wrote: I wonder why something like myThread.exit() or myThread.quit() or threading.kill(myThread) can't be implemented? Is something like that present in Python 3000? Not that I'm aware of it (which doesn't mean

Re: Milenko Kindl rtegdgd

2008-09-21 Thread H Vlems
On 21 sep, 19:48, yuma [EMAIL PROTECTED] wrote: Milenko Kindl Banja Luka Banjaluka Bihac Well, that's not C isn't it, more like Snobol or RPG/2 -- http://mail.python.org/mailman/listinfo/python-list

Twisted: Get Protected HTTPS Page via Proxy with Authentication

2008-09-21 Thread Robert Hancock
from twisted.web import client from twisted.internet import reactor import base64 import sys def printPage(data): print data reactor.stop() def printError(failure): print sys.stderr, Error:, failure.getErrorMessage() reactor.stop() if len(sys.argv) == 4: url = sys.argv[1]

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Martin Griffith
On Sun, 21 Sep 2008 15:00:16 -0700 (PDT), in sci.electronics.design H Vlems [EMAIL PROTECTED] wrote: On 21 sep, 19:48, yuma [EMAIL PROTECTED] wrote: Milenko Kindl Banja Luka Banjaluka Bihac Well, that's not C isn't it, more like Snobol or RPG/2 It's better to say that's not C, is it I don't

Re: report a BUG of package setuptools-0.6c8.

2008-09-21 Thread Sebastien Douche
On Sun, Sep 21, 2008 at 19:56, Gabriel Genellina [EMAIL PROTECTED] wrote: http://bugs.python.org/setuptools/ And how do people manage to know that? Bugtracker send emails on setuptools mailing list. -- Seb -- http://mail.python.org/mailman/listinfo/python-list

Re: how can i check whether a variable is iterable in my code?

2008-09-21 Thread James Mills
satoru, I should point out that the normal approach is to just try whatever it is that you're doing, and let it fail where it fails. For example: def processSeq(x): for i in x: print i processSeq([1, 2, 3]) processSeq(foobar) processSeq(5) -- This will fail. cheers James On Sat, Sep

What do you call a class not intended to be instantiated

2008-09-21 Thread Steven D'Aprano
I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the class directly, with classmethods. Essentially, the class is used as a function that keeps state from one call to the next. The problem is that I don't

RE: NEW GENERATED DLL ERROR FOUND WITHIN f2PY.py

2008-09-21 Thread Blubaugh, David A.
Sir, Thank you for your reply. This is as to how I developed my .pyd file. I entered the following commands within my MS-DOS prompt within Windows XP: C:\python25\Scripts C:\python25\python f2py.py -c --fcompiler=gnu95 --compiler=mingw32 -m hello hello.f90 I am using the gfortran

appending * to glob returns files with '*' !!

2008-09-21 Thread John [H2O]
I have a glob.glob search: searchstring = os.path.join('path'+'EN*') files = glob.glob(searchstring) for f in files: print f ___ This returns some files: EN082333 EN092334 EN* My routine cannot handle the '*' and it should'nt be returned anyway? :-/ A bug? -- View this message in

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread James Mills
Hi, Wouldn't a normal class called State suffice for storing state between calls ? And ... Creating a state instance ? For example: class State(object): State() - new state object Creates a new state object that is suitable for holding different states of an application. Usefull in

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread Steven D'Aprano
Fixing top-posting. On Mon, 22 Sep 2008 08:54:43 +1000, James Mills wrote: On Mon, Sep 22, 2008 at 8:39 AM, Steven D'Aprano [EMAIL PROTECTED] wrote: I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread Sean DiZazzo
On Sep 19, 1:37 pm, John [H2O] [EMAIL PROTECTED] wrote: I have a glob.glob search: searchstring = os.path.join('path'+'EN*') shouldn't that be os.path.join(path, 'EN*') ? ___ This returns some files: EN082333 EN092334 EN* Mine doesn't return that last string. My routine cannot

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread James Mills
On Mon, Sep 22, 2008 at 9:05 AM, Steven D'Aprano [EMAIL PROTECTED] wrote: I'm not wedded to the idea, there are alternatives (perhaps the factory should instantiate the class and return that?) but I assume others have used this design and have a name for it. The problem is, I don't see why

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread Calvin Spealman
I call it an obvious misuse and misunderstanding of why you'd use a class in the first place. Either create an instance and not make these things classmethods or just share the stuff in a module-level set of variables. But the instantiating is the best options. Your class attributes might not be

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread bearophileHUGS
Steven D'Aprano: I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the class directly, with classmethods. Essentially, the class is used as a function that keeps state from one call to the next. You may

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread alex23
On Sep 20, 6:37 am, John [H2O] [EMAIL PROTECTED] wrote: My routine cannot handle the '*' and it should'nt be returned anyway? :-/ A bug? Not at all. That's the same behaviour you'll get if you do 'ls EN*'. In your case, you're asking to match on anything that begins with EN, a subset of files

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread James Mills
On Mon, Sep 22, 2008 at 9:39 AM, Calvin Spealman [EMAIL PROTECTED] wrote: I call it an obvious misuse and misunderstanding of why you'd use a class in the first place. Either create an instance and not make these things classmethods or just share the stuff in a module-level set of variables.

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread Aaron Castironpi Brady
On Sep 21, 6:05 pm, Steven D'Aprano [EMAIL PROTECTED] cybersource.com.au wrote: Fixing top-posting. On Mon, 22 Sep 2008 08:54:43 +1000, James Mills wrote: On Mon, Sep 22, 2008 at 8:39 AM, Steven D'Aprano [EMAIL PROTECTED] wrote: I have a class which is not intended to be instantiated.

Re: What do you call a class not intended to be instantiated

2008-09-21 Thread Ben Finney
Steven D'Aprano [EMAIL PROTECTED] writes: I have a class which is not intended to be instantiated. Instead of using the class to creating an instance and then operate on it, I use the class directly, with classmethods. Essentially, the class is used as a function that keeps state from one

pause between the loops

2008-09-21 Thread Jackie Wang
Hi all, For a loop like: for i = range (0,10); can I ask python to stop for, say, 5mins, after it go through loop i=0 before it starts loop i=1? Thank you very much! Jackie -- http://mail.python.org/mailman/listinfo/python-list

Re: appending * to glob returns files with '*' !!

2008-09-21 Thread Erik Max Francis
John [H2O] wrote: I have a glob.glob search: searchstring = os.path.join('path'+'EN*') files = glob.glob(searchstring) for f in files: print f ___ This returns some files: EN082333 EN092334 EN* My routine cannot handle the '*' and it should'nt be returned anyway? :-/ A bug? No, it

Re: pause between the loops

2008-09-21 Thread skip
Jackie can I ask python to stop for, say, 5mins, after it go through Jackie loop i=0 before it starts loop i=1? import time for i in range(10): time.sleep(5) # seconds Skip -- http://mail.python.org/mailman/listinfo/python-list

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Michael A. Terrell
H Vlems wrote: On 21 sep, 19:48, yuma [EMAIL PROTECTED] wrote: Milenko Kindl Banja Luka Banjaluka Bihac Well, that's not C isn't it, more like Snobol or RPG/2 Tidybowl -- http://improve-usenet.org/index.html aioe.org, Goggle Groups, and Web TV users must request to be white

Re: BeautifulSoup and Problem Tables

2008-09-21 Thread clurks
[EMAIL PROTECTED] wrote: Hi I would appreciate some help. I am trying to learn Python and want to use BeautifulSoup to pull some data from tables. I was really psyched earlier tonight when I discovered that I could do this from BeautifulSoup import BeautifulSoup

New Web2Py framework SLASHES development time...

2008-09-21 Thread Steve Shephed
bhttp://www.web2py.com Web2Py - Python Framework/b is the newest kid on the block for Python frameworks. It has a lot of features that simply are not there in other frameworks. Even Ruby!. You can design database models graphically online. The templating language is pure python and there are no

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Jim Thompson
On Sun, 21 Sep 2008 22:26:27 -0400, Michael A. Terrell [EMAIL PROTECTED] wrote: H Vlems wrote: On 21 sep, 19:48, yuma [EMAIL PROTECTED] wrote: Milenko Kindl Banja Luka Banjaluka Bihac Well, that's not C isn't it, more like Snobol or RPG/2 Tidybowl I thought you blanked

Question about sorted in Python 3.0rc1

2008-09-21 Thread josh logan
Hello, I have 2 questions. Say I have this class: class Player(object): def __init__(self, fname, lname, score): self.score = score self.fname = fname self.lname = lname def __cmp__(self, other): return (-cmp(self.score, other.score) or

Re: Milenko Kindl rtegdgd

2008-09-21 Thread Paul Hovnanian P.E.
yuma wrote: Milenko Kindl Banja Luka Banjaluka Bihac Try facing Mecca while repeating that and your source will compile. -- Paul Hovnanian mailto:[EMAIL PROTECTED] -- Leap and the net will appear. --

Re: Why are broken iterators broken?

2008-09-21 Thread Cameron Simpson
On 21Sep2008 18:36, Fredrik Lundh [EMAIL PROTECTED] wrote: Roy Smith wrote: There are plausible examples of collections which grow while you're iterating over them. I'm thinking specifically of a queue in a multi-threaded application. One thread pushes work onto the back of the queue

Re: Why are broken iterators broken?

2008-09-21 Thread Miles
On Sun, Sep 21, 2008 at 11:13 AM, Steven D'Aprano [EMAIL PROTECTED] wrote: According to the Python docs, once an iterator raises StopIteration, it should continue to raise StopIteration forever. Iterators that fail to behave in this fashion are deemed to be broken:

Re: Milenko Kindl rtegdgd

2008-09-21 Thread James Dow Allen
On Sep 22, 5:08 am, Martin Griffith [EMAIL PROTECTED] wrote: On Sun, 21 Sep 2008 15:00:16 -0700 (PDT), in sci.electronics.design H Well, that's not C isn't it, more like Snobol or RPG/2 It's better to say that's not C, is it I don't know why, but that's the way it works. I recall a

[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Graham Dumpleton
New submission from Graham Dumpleton [EMAIL PROTECTED]: Somewhere between Python 3.0a3 and Python 3.0b3, a call to PySys_SetObject() after having used Py_NewInterpreter() to create a sub interpreter causes a crash. This appears to be due to interp-sysdict being NULL after Py_NewInterpreter()

[issue3919] PySys_SetObject crashes after Py_NewInterpreter().

2008-09-21 Thread Graham Dumpleton
Graham Dumpleton [EMAIL PROTECTED] added the comment: Sorry, should also mention that this was on MacOS X 10.4 (Tiger). ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3919 ___

[issue3917] set_display definition allows empty '{' '}' in Language Definition

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r66522. Also removed the last two paragraphs of the set display explanation which were pasted from genexps and made no sense, and added a sentence about {} not constructing a set. -- resolution: - fixed status: open -

[issue3852] kqueue.control requires 2 params while docs say max_events (the second) defaults to 0

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Committed patch in r66523. At least for now, code and docs are consistent again. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3852

[issue3912] unittest. assertAlmostEqual() documentation incomplete

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, committed in r66524. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3912 ___

[issue3916] layout of build directories for Windows not current

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, committed as r66525. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3916 ___

[issue3915] Broken link in 14.7 curses, Python Library Reference

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, this is already fixed in SVN and will be in the 2.6 docs coming out soon. -- resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED]

[issue3914] augop definition does not include //=

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r66526. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3914 ___

[issue3913] compound_stmt syntax includes 'decorated'

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Bruce is right. I fixed decorated, the duplicate funcdef and the ? in r66527 and r66528. Bruce, usually adding comments with more issues, especially if they are so small, is fine; however, since they may be overlooked you're free to open

[issue3889] Demo/parser/unparse.py

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: This was fixed some time ago on the trunk. -- nosy: +georg.brandl resolution: - out of date status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3889

[issue3897] collections

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Thanks, fixed in r66530. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3897 ___

[issue3884] turtle in the tkinter package?

2008-09-21 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: This is now fixed in r66531. -- resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3884 ___

[issue3905] subprocess failing in GUI applications on Windows

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Jean-Michel, you'll need to apply the idlelib/run.py patch; replace sockthread.set_daemon(True) with sockthread.daemon = True around line 75. -- resolution: - fixed status: open - closed versions: +Python 3.0 -Python 2.5,

[issue3909] Building PDF documentation from tex files

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Which version of Sphinx did you use to build the docs? The Python docs currently need the unreleased SVN version (that will of course change for the final release). If you have a Sphinx release installed as a Python egg, it will cause problems,

[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Martin v. Löwis
New submission from Martin v. Löwis [EMAIL PROTECTED]: msg71969 suggests that OpenBSD 4.4 still fails to build Python if _XOPEN_SOURCE is defined. Henry, can you please confirm that a) the problem still is that select is unavailable if _POSIX_SOURCE is defined, and b) the attached patch fixes

[issue3918] random.uniform suprisingly (good kind) does not work as documented

2008-09-21 Thread Georg Brandl
Georg Brandl [EMAIL PROTECTED] added the comment: Noted in r66535. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3918 ___

[issue3920] OpenBSD 4.4 still doesn't support _XOPEN_SOURCE

2008-09-21 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: Looking at the code again, it might be that definition of _POSIX_SOURCE is not harmful per se anymore, as long as _BSD_SOURCE is also defined. Can you please also try the alternative bsd2.diff? Added file:

[issue3921] smtplib cannot sendmail over TLS

2008-09-21 Thread Takafumi SHIDO
New submission from Takafumi SHIDO [EMAIL PROTECTED]: when a SMTP object tries to send a mail through TLS, the smtp server replies retcode 502. When a test code (sendmail_test.py) is executed on Python 3, it stacks on sending mail while the test code works on Python 2.5. Following is the

[issue3879] 2.6 regression in urllib.getproxies_environment

2008-09-21 Thread vila
vila [EMAIL PROTECTED] added the comment: Georg Brandl: I guess you're processing the result of getproxies() yourself and relying on no being a key? Indeed. Thanks for approving this. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3879

[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: Damn. I uploaded a patch to this issue a few days ago for review. Apparently, it didn't work?! I'll recreate it again. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3659

[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring
Gerhard Häring [EMAIL PROTECTED] added the comment: Attached patch corrects the issue. Could you please review it? -- status: open - pending Added file: http://bugs.python.org/file11541/py3_sqlite3_str_subclass.dif ___ Python tracker [EMAIL

[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring
Changes by Gerhard Häring [EMAIL PROTECTED]: -- keywords: +easy, needs review, patch type: - behavior ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3659 ___

[issue3659] sqlite: enumeration value 'TYPE_STRING' not handled in switch

2008-09-21 Thread Gerhard Häring
Changes by Gerhard Häring [EMAIL PROTECTED]: -- status: pending - open ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3659 ___ ___ Python-bugs-list

[issue3922] 3.0rc1 missing tk lib in sys.path?

2008-09-21 Thread Jean-Michel Fauth
New submission from Jean-Michel Fauth [EMAIL PROTECTED]: 3.0rc1: When toying and attempting to import the scrolledtext module, I noticed the tkinter library path is no more by default included in the sys.path. Unfortunate omission or new Python 3.0 design? C:\Python30python Python 3.0rc1

[issue3838] test_tarfile error on cygwin (Directory not empty)

2008-09-21 Thread Lars Gustäbel
Lars Gustäbel [EMAIL PROTECTED] added the comment: The patch is okay. Go ahead. BTW, I've never used Cygwin before, is it always that slow? 10 minutes for a configure script on a recent machine is a real pain. -- nosy: +lars.gustaebel ___ Python

  1   2   >