[ANN] Release 0.70.1 of Task Coach

2008-06-29 Thread Frank Niessink
Hi, I'm happy to announce release 0.70.1 of Task Coach. This release optionally brings back the tabbed user interface that was removed in the previous release and fixes a few bugs. Bugs fixed: * The search control in the toolbar did not maintain state correctly for different viewers. Task Coach

Re: lxml and links

2008-06-29 Thread Ampedesign
On Jun 27, 10:00 pm, Stefan Behnel [EMAIL PROTECTED] wrote: Ampedesign wrote: I'm trying to extract all the links on a page with lxml. Ideally, I would like it to return me a list of hrefs of each link on the page, in a list. How would I go about doing this? Read the manual?

What is @ used for ?

2008-06-29 Thread gops
Hi. I am noob in python. while reading some source code I came across , this funny thing called @ in some function , def administrator(method): @functools.wraps(method) def wrapper(self, *args, **kwargs): user = users.get_current_user() if not user: if

Re: C++ or Python

2008-06-29 Thread Sebastian lunar Wiesner
Dan Stromberg [EMAIL PROTECTED]: things like passing a method as a function parameter is a no-brainer (requires extra syntax in java because of the cautious type system - not sure about C++). C++ has function pointers and functors, therefore this is not really an issue with C++. -- Freedom

Re: HTML Parsing

2008-06-29 Thread Sebastian lunar Wiesner
Stefan Behnel [EMAIL PROTECTED]: [EMAIL PROTECTED] wrote: I am trying to build my own web crawler for an experiement and I don't know how to access HTTP protocol with python. Also, Are there any Opensource Parsing engine for HTML documents available in Python too? That would be great.

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread Lie
On Jun 29, 11:18 am, [EMAIL PROTECTED] wrote: Ok I'm a Python noob, been doing OK so far, working on a data conversion program and want to create some character image files from an 8-bit ROM file. Creating the image I've got down, I open the file and use TK to draw the images... but 1)  It

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread Lie
On Jun 29, 4:47 pm, Lie [EMAIL PROTECTED] wrote: On Jun 29, 11:18 am, [EMAIL PROTECTED] wrote: Ok I'm a Python noob, been doing OK so far, working on a data conversion program and want to create some character image files from an 8-bit ROM file. Creating the image I've got down, I

Re: What is @ used for ?

2008-06-29 Thread Lie
On Jun 29, 3:39 pm, gops [EMAIL PROTECTED] wrote: Hi. I am noob in python. while reading some source code I came across , this funny thing called @ in some function , def administrator(method):     @functools.wraps(method)     def wrapper(self, *args, **kwargs):         user =

problem with internationalized headers in email package

2008-06-29 Thread Manlio Perillo
Hi. From RFC 2047: + An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'. + An 'encoded-word' MUST NOT appear within a 'quoted-string'. + An 'encoded-word' MUST NOT be used in a Received header field. + An 'encoded-word' MUST NOT be used in parameter of a MIME Content-Type or

tkinter, loading image error, TclError: couldn't recognize data in image file C:/users/me/desktop/images/blob4.jpg

2008-06-29 Thread defn noob
from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file = 'C:/users/saftarn/desktop/images/blob4.jpg') #im = file = 'C:/users/me/desktop/images/blob4.jpg' pic = w.create_image(0,

Re: pixel colour on screen

2008-06-29 Thread Irmen de Jong
Dennis Lee Bieber wrote: On Sat, 28 Jun 2008 11:47:46 -0700 (PDT), [EMAIL PROTECTED] declaimed the following in comp.lang.python: Could anyone help me, I'm a python noob and need some help. im trying to find some code that will, given a screen co-ordinate, will give me the colour of that

Classical nurses site

2008-06-29 Thread jinole
Recommended for everyone to an Asian pornographic website,There are many beauty photos and movies.URL: http://www.loioi.com If you need more sites, then contact me. e-mail: [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

windows installers and license agreement

2008-06-29 Thread Darren Dale
Is it possible to create a windows installer using distutils that includes a prompt for the user to agree to the terms of the license? Thanks, Darren -- http://mail.python.org/mailman/listinfo/python-list

Re: pxssh submit su commands = very very slow

2008-06-29 Thread gert
On Jun 29, 4:45 am, Dan Stromberg [EMAIL PROTECTED] wrote: On Sat, 28 Jun 2008 19:08:59 -0700, gert wrote: this does the same except 100 times faster ? I don't understand the logic about the prompt, its not the same as the output from the bash shell ? [EMAIL PROTECTED]:~# cat ssh2.py

Re: complex numbers should respect the I representation

2008-06-29 Thread Grant Edwards
On 2008-06-29, Roy Smith [EMAIL PROTECTED] wrote: I think complex numbers should respect the i or I representation, instead of j. No reason being cute and using a different character instead of the traditional representation? Ask any electrical engineer what j means. And ask them what I

Unnormalizing normalized path in Windows

2008-06-29 Thread Julien
Hi, In Windows, when a path has been normalized with os.path.normpath, you get something like this: C:/temp/my_dir/bla.txt # With forward slashes instead or backward slashes. Is it possible to revert that? magic_function('C:/temp/my_dir/bla.txt') 'C:\temp\my_dir\bla.txt' I wonder if

Re: Why is recursion so slow?

2008-06-29 Thread Dan Upton
On Sun, Jun 29, 2008 at 1:27 AM, Terry Reedy [EMAIL PROTECTED] wrote: slix wrote: Recursion is awesome for writing some functions, like searching trees etc but wow how can it be THAT much slower for computing fibonacci- numbers? The comparison below has nothing to do with recursion versus

Re: windows installers and license agreement

2008-06-29 Thread Nick Dumas
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Darren Dale wrote: Is it possible to create a windows installer using distutils that includes a prompt for the user to agree to the terms of the license? Thanks, Darren Yeah. In your setup.py script, have it pop up a console window with the

Re: Testing for Null?

2008-06-29 Thread Chris
On Jun 29, 3:12 am, c0mrade [EMAIL PROTECTED] wrote: Try something like this... list = ['lkdfjsldk', None, '', '0', 'slfkjsdlfj', 'lsdgjdlfg', False, True] for n, it in enumerate(list):     if not it: print 'Error on this definition'     else: print '%d. %s' % (n+1, it) Results: 1.

Re: Why is recursion so slow?

2008-06-29 Thread Jean-Paul Calderone
On Sun, 29 Jun 2008 10:03:46 -0400, Dan Upton [EMAIL PROTECTED] wrote: On Sun, Jun 29, 2008 at 1:27 AM, Terry Reedy [EMAIL PROTECTED] wrote: slix wrote: Recursion is awesome for writing some functions, like searching trees etc but wow how can it be THAT much slower for computing fibonacci-

Re: Unnormalizing normalized path in Windows

2008-06-29 Thread Duncan Booth
Julien [EMAIL PROTECTED] wrote: In Windows, when a path has been normalized with os.path.normpath, you get something like this: C:/temp/my_dir/bla.txt # With forward slashes instead or backward slashes. Is it possible to revert that? magic_function('C:/temp/my_dir/bla.txt')

Re: py2exe, PyQT, QtWebKit and jpeg problem

2008-06-29 Thread yang . zengguang
On 6月20日, 下午11时04分, Carbonimax [EMAIL PROTECTED] wrote: hello I have a problem with py2exe and QtWebKit : I make a program with a QtWebKit view. If I launch the .py directly, all images (jpg, png) are displayed but if I compile it with py2exe I have only png images. No jpg ! No error

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread larry
Wonderful, thank you! Will try them out this evening. The image module syntax looks more like what I was expecting than TKinter. All the online drawing examples I found yesterday used TKinter; image was only shown to manipulate pre-made images. Larry --

gelato - nvidia and python

2008-06-29 Thread [EMAIL PROTECTED]
Did somebody worked with gelato from nvidia and python? I have some C cod from books nvidia . This is : GelatoAPI *r = GelatoAPI::CreateRenderer(); r-Camera (main); ... API calls through r ... r-Render (main); delete r; // Finished with this renderer the code for python i create is only this :

Re: gelato - nvidia and python

2008-06-29 Thread Benjamin Kaplan
On Sun, Jun 29, 2008 at 11:34 AM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Did somebody worked with gelato from nvidia and python? I have some C cod from books nvidia . This is : GelatoAPI *r = GelatoAPI::CreateRenderer(); r-Camera (main); ... API calls through r ... r-Render (main);

Re: Docutils rst2html.py gives Error/3 Unknown Directive type toctree

2008-06-29 Thread Thijs Triemstra | Collab
Getting the same error in the apache logs here, no idea where it's coming from: [Sun Jun 29 18:25:50 2008] [error] string:10: (ERROR/3) Unknown directive type toctree. [Sun Jun 29 18:25:50 2008] [error] [Sun Jun 29 18:25:50 2008] [error] .. toctree:: [Sun Jun 29 18:25:50 2008] [error]

Re: using urllib2

2008-06-29 Thread Alexnb
No I figured it out. I guess I never knew that you aren't supposed to split a url like http://www.goo\ gle.com But I did and it gave me all those errors. Anyway, I had a question. On the original code you had this for loop: for tabs in soup.findAll('table', {'class': 'luna-Ent'}): yield

Re: using urllib2

2008-06-29 Thread Jeff McNeil
On Jun 29, 12:50 pm, Alexnb [EMAIL PROTECTED] wrote: No I figured it out. I guess I never knew that you aren't supposed to split a url like http://www.goo\ gle.com But I did and it gave me all those errors. Anyway, I had a question. On the original code you had this for loop: for tabs in

Re: Beginner's Python development questions

2008-06-29 Thread Lie
On Jun 29, 12:46 am, Łukasz Dąbek [EMAIL PROTECTED] wrote: Hello! I'm newcomer to Python development and I have some questions (I didn't found answers for these):     1. Some bugs at bugs.python.org are assigned but it didn't changed for many months

Re: complex numbers should respect the I representation

2008-06-29 Thread Lie
On Jun 29, 8:39 pm, Grant Edwards [EMAIL PROTECTED] wrote: On 2008-06-29, Roy Smith [EMAIL PROTECTED] wrote: I think complex numbers should respect the i or I representation, instead of j. No reason being cute and using a different character instead of the traditional representation?

Re: C++ or Python

2008-06-29 Thread Dan Stromberg
On Sun, 29 Jun 2008 11:20:45 +0200, Sebastian \lunar\ Wiesner wrote: Dan Stromberg [EMAIL PROTECTED]: things like passing a method as a function parameter is a no-brainer (requires extra syntax in java because of the cautious type system - not sure about C++). C++ has function pointers

Re: Why is recursion so slow?

2008-06-29 Thread Terry Reedy
Dan Upton wrote: On Sun, Jun 29, 2008 at 1:27 AM, Terry Reedy [EMAIL PROTECTED] wrote: slix wrote: Recursion is awesome for writing some functions, like searching trees etc but wow how can it be THAT much slower for computing fibonacci- numbers? The comparison below has nothing to do with

Re: Why is recursion so slow?

2008-06-29 Thread Dan Upton
On Sun, Jun 29, 2008 at 2:35 PM, Terry Reedy [EMAIL PROTECTED] wrote: People should read posts to the end before replying, in case it actually says what one thinks it should, but just in a different order than one expected. Well, pardon me. --

Re: using urllib2

2008-06-29 Thread Alexnb
Okay, so i've hit a new snag and can't seem to figure out what is wrong. What is happening is the first 4 definitions of the word simple don't show up. The html is basicly the same, with the exception of noun turning into adj. Ill paste the html of the word cheese, and then the one for simple,

Re: tkinter, loading image error, TclError: couldn't recognize data in image file C:/users/me/desktop/images/blob4.jpg

2008-06-29 Thread Terry Reedy
defn noob wrote: from Tkinter import * import os master = Tk() w = Canvas(master, width=800, height=600) print os.path.exists('C:/me/saftarn/desktop/images/blob4.jpg') im = PhotoImage(file = 'C:/users/saftarn/desktop/images/blob4.jpg') #im = file = 'C:/users/me/desktop/images/blob4.jpg' pic

Re: using urllib2

2008-06-29 Thread Alexnb
Actually after looking at this, the code is preactically the same, except the definitions. So what COULD be going wrong here? Alexnb wrote: Okay, so i've hit a new snag and can't seem to figure out what is wrong. What is happening is the first 4 definitions of the word simple don't show up.

Function to import module to namespace

2008-06-29 Thread bvdp
Is it possible to do this from a function: import a module and append the defs in that module to an existing module/namesapce. So, in my code I have something like: # main code import mods def loadmore(n): import_module(n, mods) # end of main this will permit the addition of the

Re: Function to import module to namespace

2008-06-29 Thread Cédric Lucantis
Le Sunday 29 June 2008 21:08:36 bvdp, vous avez écrit : Is it possible to do this from a function: import a module and append the defs in that module to an existing module/namesapce. So, in my code I have something like: # main code import mods def loadmore(n): import_module(n, mods)

Re: gelato - nvidia and python

2008-06-29 Thread name
On Jun 29, 5:34 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Did somebody worked with gelato from nvidia and python? I have some C cod from books nvidia . This is : GelatoAPI *r = GelatoAPI::CreateRenderer(); r-Camera (main); ... API calls through r ... r-Render (main); delete r;   //

Re: using urllib2

2008-06-29 Thread Alexnb
Okay, now I ran in it the shell, and this is what happened: for tabs in soup.findAll('table', {'class': 'luna-Ent'}): ... tabs.findAll('td')[-1].contents[-1].string ... u' ' u' ' u' ' u' ' u' ' u'not complex or compound; single. ' u' ' u' ' u' ' u' ' u' ' u'inconsequential or rudimentary.

Re: Docutils rst2html.py gives Error/3 Unknown Directive type toctree

2008-06-29 Thread Gerard Flanagan
On Jun 19, 11:19 pm, Calvin Cheng [EMAIL PROTECTED] wrote: Hi, I am attempting to convert a bunch of .txt files into html using the docutils package. It works for most of the txt files except for the index.txt file which gives 2 errors: (1) Error/3 Unknown Directive type toctree (2)

UnboundLocalError problems

2008-06-29 Thread Mr SZ
Hi, I am writing a small script that changes my pidgin status to away when I lock my screen.I'm using the DBUS API for pidgin and gnome-screensaver.Here's the code: #!/usr/bin/env python import dbus, gobject from dbus.mainloop.glib import DBusGMainLoop

Re: gelato - nvidia and python

2008-06-29 Thread Paul Boddie
On 29 Jun, 17:34, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: dir(r) ['__call__', '__class__', '__cmp__', '__delattr__', '__doc__', '__getattribute__', '__hash__', '__init__', '__module__', '__name__', '__new__', '__reduce__', '__reduce_ex__', '__repr__', '__self__', '__setattr__',

list extension ?

2008-06-29 Thread Stef Mientki
hello, I basically need a list with a few extra attributes, so I derived a new object from a list, and it works perfect. But I wonder why the newly derived list component is much more flexible ? # so here is the new list object class tGrid_List ( list ) : def __init__ ( self, value = [] ) :

Re: list extension ?

2008-06-29 Thread Scott David Daniels
Stef Mientki wrote: ... (approximately, I PEP-8'ed it a bit) ... class tGrid_List(list): def __init__(self, value=[]): list.__init__(self, value) # and with this new list component, I can add new attributes on the fly a = tGrid_list([2, 3]) a.New_Attribute = 'some text' # I'm not

Re: using urllib2

2008-06-29 Thread Jeff McNeil
I didn't spend a lot of time debugging that code -- I've been using beautiful soup a lot at work lately and really pulled that out of memory at about 2:00 AM a couple days ago. In the 5 minute I spent on it, it appeared that the definitions were setup like so: table class=luna-Ent tr tdBlah/td

Re: Function to import module to namespace

2008-06-29 Thread Terry Reedy
bvdp wrote: Is it possible to do this from a function: import a module and append the defs in that module to an existing module/namesapce. So, in my code I have something like: # main code import mods def loadmore(n): import_module(n, mods) # end of main this will permit the

Re: UnboundLocalError problems

2008-06-29 Thread Terry Reedy
Mr SZ wrote: Hi, I am writing a small script that changes my pidgin status to away when I lock my screen.I'm using the DBUS API for pidgin and gnome-screensaver.Here's the code: #!/usr/bin/env python import dbus, gobject from dbus.mainloop.glib import DBusGMainLoop

Re: Function to import module to namespace

2008-06-29 Thread bvdp
Terry Reedy wrote: bvdp wrote: Is it possible to do this from a function: import a module and append the defs in that module to an existing module/namesapce. So, in my code I have something like: # main code import mods def loadmore(n): import_module(n, mods) # end of main

Re: Function to import module to namespace

2008-06-29 Thread bvdp
Terry Reedy wrote: snip Do you mean something like this? snip math.__dict__.update(string.__dict__) dir(math) ['Formatter', 'Template', '_TemplateMetaclass', '__builtins__', snip I think this is working First off, 2 module files: funcs.py def func1(): print I'm func1

RE: Use of the is statement

2008-06-29 Thread Delaney, Timothy (Tim)
Maric Michaud wrote: Le Friday 27 June 2008 18:26:45 Christian Heimes, vous avez écrit : Ask yourself if you are interested if f.tell() returns exactly the same 0 object (is) or a number that is equal to 0 (==). That said, f.tell() == 0 and f.tell() != 0 should be written f.tell() and not

Re: Function to import module to namespace

2008-06-29 Thread John Machin
On Jun 30, 9:52 am, bvdp [EMAIL PROTECTED] wrote: Terry Reedy wrote: snip Do you mean something like this? snip math.__dict__.update(string.__dict__) dir(math) ['Formatter', 'Template', '_TemplateMetaclass', '__builtins__', snip I think this is working

How to invoke the Python idle

2008-06-29 Thread Only-Trouble
Hi all I am running openSUSE 10.3 I am learning python on my own, it seems like the system has already installed a python IDLE The question is how to invoke it? Thanks Only-Trouble -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with internationalized headers in email package

2008-06-29 Thread Martin v. Löwis
+ An 'encoded-word' MUST NOT appear in any portion of an 'addr-spec'. + An 'encoded-word' MUST NOT appear within a 'quoted-string'. + An 'encoded-word' MUST NOT be used in a Received header field. + An 'encoded-word' MUST NOT be used in parameter of a MIME Content-Type or

Re: Function to import module to namespace

2008-06-29 Thread bvdp
John Machin wrote: snip Good questions. Short answer ... probably 'cause I've not thought the problem though completely :) You are updating with *everything* in the 'more' module, not just the functions. This includes such things as __name__, __doc__, __file__. Could have interesting

Re: How to invoke the Python idle

2008-06-29 Thread miya
On Jun 29, 10:01 pm, Only-Trouble [EMAIL PROTECTED] wrote: Hi all I am running openSUSE 10.3 I am learning python on my own, it seems like  the system has already installed a python IDLE The question is how to invoke it? Thanks Only-Trouble how about executing from the terminal idle --

Re: How to invoke the Python idle

2008-06-29 Thread John Henderson
Only-Trouble wrote: Hi all I am running openSUSE 10.3 I am learning python on my own, it seems like the system has already installed a python IDLE The question is how to invoke it? If it's anything like my Red Hat system, I had to find the command first. In my case, at:

Re: How to invoke the Python idle

2008-06-29 Thread David
Alon Ben-Ari wrote: Thank you yes I have This is what I got: [EMAIL PROTECTED]:~ idle bash: idle: command not found [EMAIL PROTECTED]:~ Any idea ? Alon On Sun, Jun 29, 2008 at 10:05 PM, David [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Only-Trouble wrote: Hi all

Re: How do web templates separate content and logic?

2008-06-29 Thread Tim Roberts
John Salerno [EMAIL PROTECTED] wrote: No, I don't mean presentation logic at all. I mean something along the lines of combining HTML (which is what I refer to as content) and Python (which is what I meant by logic). So for example, if you have code like this (and this isn't necessarily proper

Re: [Employment] New TurboGears Job in Eugene, OR

2008-06-29 Thread Tim Roberts
[EMAIL PROTECTED] (Aahz) wrote: Paul McNett [EMAIL PROTECTED] wrote: They want an expert for a maximum of $25 per hour? If they find someone, it'll be a pretty good bullshitter looking for experience. Note that it's an academic year position -- lots and lots of vacation time. This would

Re: frame grabber hardware

2008-06-29 Thread Tim Roberts
[EMAIL PROTECTED] wrote: can anybody recommend a simple USB or PCI framegrabber with video input that runs under xp and has a python driver available? I just want to get the image into a file, no special requirements. There are a vast range of inexpensive web cams that will do this job. Logitech

Re: pixel colour on screen

2008-06-29 Thread Tim Roberts
[EMAIL PROTECTED] wrote: Could anyone help me, I'm a python noob and need some help. im trying to find some code that will, given a screen co-ordinate, will give me the colour of that pixel in RGB. i have found a lot about getting the pixel colour from a picture file with a given co-ordinate, but

Re: help debugging noob code - converting binary data to images...

2008-06-29 Thread larry
success, had to fill in a few blanks with some more googling, here is the finished script (used all for loops this time, saved a few more lines): == #!/usr/local/bin/python import string import Image, ImageDraw size = 2 im = Image.new(1,[8*size,8*size],1) draw = ImageDraw.Draw(im)

Re: How do web templates separate content and logic?

2008-06-29 Thread Guillaume Bog
On Mon, Jun 30, 2008 at 11:27 AM, Tim Roberts [EMAIL PROTECTED] wrote: John Salerno [EMAIL PROTECTED] wrote: If it seems out of place to you, then you shouldn't do it. In general, you need to find a model that makes sense to you, and that allows you to write readable, workable,

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Okay---so committing this would be premature at this point. It looks like the test_math errors are the same problem that Jean found. Skip, does LDFLAGS=-xlibmieee ./configure ... do anything to alleviate the test_math errors? The cmath

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Stefan Sonnenberg-Carstens
New submission from Stefan Sonnenberg-Carstens [EMAIL PROTECTED]: Given the attached source, I can produce these results: [EMAIL PROTECTED] ~]$ python ziptest.py Start 10:05:54 ZIP stored mtime: (2008, 6, 29, 10, 5, 54) Original mtime: (2008, 6, 29, 10, 5, 54) Duration 0.00291705131531 Stop

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Stefan Sonnenberg-Carstens
Stefan Sonnenberg-Carstens [EMAIL PROTECTED] added the comment: I changed the script a bit, so that the txt file is not getting recreated every time. It gives: [EMAIL PROTECTED] ~]$ python ziptest.py Start 10:15:05 ZIP stored mtime: (2008, 6, 29, 10, 15, 4) Original mtime: (2008, 6, 29, 10,

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-29 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Well, I think I figured out why the __hash__ changes were backported from Py3k: without them, the existence of object.__hash__ makes the Hashable ABC completely useless (every newstyle class meets it). I see two options here. Option 1 is to

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: LDFLAGS=-xlibmieee ./configure ... I guess that should probably be: LDFLAGS=-Xlinker -xlibmieee ./configure ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3167

[issue3233] Timestamp stored in ZIP file not correct ?

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: That's a limitation of the zip file format. It uses DOS time stamps, which only support 5 bits for representing seconds. As a consequence, within a minute, ZIP can only store even seconds. If the number of seconds in the minute is odd on the

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: Skip: one more question. What does cmath.exp(710.0 + 1.5j) give instead of the expected OverflowError? Incidentally, the Solaris buildbot seems happy enough at the moment. I wonder what the difference between Skip's machine and the

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs [EMAIL PROTECTED]: I try to get working pipe emulation using Popen. I try to pass StringIO object to p1.stdin of the first process and I got the following: File /usr/lib/python2.5/subprocess.py, line 587, in __init__ errread, errwrite) =

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
New submission from Martin Mokrejs [EMAIL PROTECTED]: Although I do appreciate that you try to improve python it is not clear to me from http://docs.python.org/lib/module-subprocess.html: 1. Why the old functions have been deprecated 2. I can pipe together two processes. But how can I use pipe

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin Mokrejs
Martin Mokrejs [EMAIL PROTECTED] added the comment: Please link to http://www.python.org/dev/peps/pep-0324/ from the docs webpage at least. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3235 ___

[issue3154] Quick search box renders too long on FireFox 3

2008-06-29 Thread Martina Oefelein
Martina Oefelein [EMAIL PROTECTED] added the comment: I can reproduce it with Safari if I enlarge the font size (Cmd +), and it looks like this will happen with *any* browser. Main cause is that the with of the sidebar is set in pixels, while the size of the Quick search box (and the

[issue1580] Use shorter float repr when possible

2008-06-29 Thread Mark Dickinson
Changes by Mark Dickinson [EMAIL PROTECTED]: -- nosy: +marketdickinson ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue1580 ___ ___ Python-bugs-list

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10496/issue600362.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue600362 ___

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10771/issue600362-py26.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue600362 ___

[issue600362] relocate cgi.parse_qs() into urlparse

2008-06-29 Thread Senthil
Changes by Senthil [EMAIL PROTECTED]: Added file: http://bugs.python.org/file10772/issue600362-py3k.diff ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue600362 ___

[issue2235] __eq__ / __hash__ check doesn't take inheritance into account

2008-06-29 Thread Nick Coghlan
Nick Coghlan [EMAIL PROTECTED] added the comment: Attached patch allows classes to explicitly block inheritance of object.__hash__ by setting the tp_hash slot to Py_None or the __hash__ attribute to None. This is similar to the approach used in Py3k, but allows __hash__ to be inherited by

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: I suspect this is because of the transition from PyInt to PyLong: Python 2.6b1+ (trunk:64580M, Jun 28 2008, 18:04:04) [GCC 4.0.1 (Apple Computer, Inc. build 5370)] on darwin Type help, copyright, credits or license for more information.

[issue3234] subprocess.py strips last character when raising an AttributeError

2008-06-29 Thread Benjamin Peterson
Benjamin Peterson [EMAIL PROTECTED] added the comment: No, the class you are creating with cStringIO.cStringIO is actually called cStringIO.cStringI. -- nosy: +benjamin.peterson resolution: - invalid status: open - closed ___ Python tracker [EMAIL

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: For comparison, 64-bit -xO5 Python build: Python 2.6b1 (r26b1:64398, Jun 28 2008, 12:50:06) [C] on sunos5 Type help, copyright, credits or license for more information. import cmath cmath.exp(710.0 + 1.5j) Traceback (most recent call last):

[issue3167] math test fails on Solaris 10

2008-06-29 Thread Mark Dickinson
Mark Dickinson [EMAIL PROTECTED] added the comment: What about this case? Should cmath not produce the same result as math: No; this is correct, I think. Note that the cmath.log result has nonzero imaginary part, so can't be represented as a float. Similarly, math.sqrt(-1) is an error,

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: I have not yet been able to duplicate the problem in a smaller test case, but I did stumble into a fix. Changing the following statement in the cmath_log function from if (PyTuple_GET_SIZE(args) == 2) x = c_quot(x,

[issue3235] Improve subprocess module usage

2008-06-29 Thread David
David [EMAIL PROTECTED] added the comment: See if Doug Hellman's module of the week helps any http://blog.doughellmann.com/2007/07/pymotw-subprocess.html I plan on asking him if we can include some of his examples in the Python 3000 docs. Subprocess is new enough and gets enough questions on

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Attached is a test case which does demonstrate the problem. See the top of that file. I will post this at the SUN C Forum. Added file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Changes by Jean Brouwers [EMAIL PROTECTED]: Removed file: http://bugs.python.org/file10774/SunC-64bit-xO5-bug.c ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168 ___

[issue3235] Improve subprocess module usage

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: 1. The documentation never gives a rationale for deprecating things. To find out why they are deprecated, you'll typically have to research what checkins to a code base have been made that added the deprecation, and perhaps also ask on mailing

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Martin v. Löwis
Martin v. Löwis [EMAIL PROTECTED] added the comment: For the old int type, implementing this was trivial, as the conversion converted into a C long, then called PyInt_FromLong. For long, it's much more tricky, as no C type can be used to store the intermediate result. So instead,

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: Without changing the cmath_log code, another workaround is to compile Python with optimization level -xO2 or less for 64-bit using Sun C. ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3168

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Terry J. Reedy
New submission from Terry J. Reedy [EMAIL PROTECTED]: As reported in the py3 list File /root/Py3kb1/lib/python3.0/tkinter/__init__.py, line 1409, in __call__ return self.func(*args) File /root/Py3kb1/lib/python3.0/idlelib/MultiCall.py, line 165, in handler r = l[i](event) File

[issue3237] idlelib3.0 still using xrange

2008-06-29 Thread Benjamin Peterson
Changes by Benjamin Peterson [EMAIL PROTECTED]: -- assignee: - kbk nosy: +kbk ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue3237 ___ ___

[issue3168] cmath test fails on Solaris 10

2008-06-29 Thread Jean Brouwers
Jean Brouwers [EMAIL PROTECTED] added the comment: There is another, perhaps related issue on Solaris. The compiler warns that function finite is implicitly defined. Commenting out this line in pyconfig.h as /* #define HAVE_FINITE 1 */ make that warning go away. If there is no function

[issue3238] backport python 3.0 language functionality to python 2.6 by adding 7 opcodes to ceval.c

2008-06-29 Thread kai zhu
New submission from kai zhu [EMAIL PROTECTED]: this patch touches only Python/ceval.c. 1. the only existing thing it modifies is PyEval_EvalFrameEx (adds 7 extra cases for the new 3.0 opcodes, doesn't mess w/ any of the existing ones, or anything else as a matter of fact) 2. that, plus it

[issue2480] eliminate recursion in pickling

2008-06-29 Thread Aaron Gallagher
Aaron Gallagher [EMAIL PROTECTED] added the comment: I've provided an alternate implementation of this that works with very minimal modification to pickle.py. See issue 3119 for the patch. -- nosy: +habnabit ___ Python tracker [EMAIL PROTECTED]

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: This new patch also introduces re.ASCII as discussed on the mailing-list. Added file: http://bugs.python.org/file10777/reunicode2.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2834

[issue2834] re.IGNORECASE not Unicode-ready

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Improved patch which also detects incompatibilities for (?u). Added file: http://bugs.python.org/file10778/reunicode3.patch ___ Python tracker [EMAIL PROTECTED] http://bugs.python.org/issue2834

[issue3236] ints contructed from strings don't use the smallint constants

2008-06-29 Thread Antoine Pitrou
Antoine Pitrou [EMAIL PROTECTED] added the comment: Le dimanche 29 juin 2008 à 17:43 +, Martin v. Löwis a écrit : For long, it's much more tricky, as no C type can be used to store the intermediate result. So instead, PyLong_FromString already allocates a sufficiently-sized long object

[issue3239] curses/textpad.py incorrectly and redundantly imports ascii

2008-06-29 Thread Georgij Kondratjev
New submission from Georgij Kondratjev [EMAIL PROTECTED]: Line 'import curses, ascii' should be replaced with 'import curses' -- components: Library (Lib) messages: 68969 nosy: orivej severity: normal status: open title: curses/textpad.py incorrectly and redundantly imports ascii

  1   2   >