conferences new mailing list created

2009-05-23 Thread David Goodger
The conferen...@python.org mailing list is for open discussion of issues related to Python conferences. All conferences are welcome: established and planned, worldwide. The archive is open to all. Subscribe here: http://mail.python.org/mailman/listinfo/conferences Please spread the word to

bzr-1.15final released

2009-05-23 Thread Bob Tanner
The smart server will no longer raise 'NoSuchRevision' when streaming content with a size mismatch in a reconstructed graph search. New command ``bzr dpush``. Plugins can now define their own annotation tie- breaker when two revisions introduce the exact same line. The Bazaar team is happy

Re: Problems with sys.stout.flush()

2009-05-23 Thread Carl Banks
On May 22, 10:33 pm, Joel Ross jo...@cognyx.com wrote: Hi all, I'm using python 2.5 and trying to flush the sys.stout buffer with sys.stout.flush(), but doesn't seem to work. Each time a line is printed    it appends the one before it I need to clear the output and write a new output without

html ui + py background? any tut?

2009-05-23 Thread oyster
I have read for many times that the modern appliaction (not a web one, but desktop on) uses html + js for its UI, and python code is for the background work but I have never found event a simple (yet completed) article on how to develop such a thing from scrach in these advocacy thing. Can anyone

Re: Ambiguous locale.strxfrm

2009-05-23 Thread Tuomas Vesterinen
Thanks. Bug report done, issue 6093. Tuomas Vesterinen Gabriel Genellina wrote: En Fri, 22 May 2009 06:32:40 -0300, Tuomas Vesterinen tuomas.vesteri...@iki.fi escribió: This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates its comeback. The tail of the strxfrm result is

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Carl Banks wrote: On May 22, 10:33 pm, Joel Ross jo...@cognyx.com wrote: Hi all, I'm using python 2.5 and trying to flush the sys.stout buffer with sys.stout.flush(), but doesn't seem to work. Each time a line is printed it appends the one before it I need to clear the output and write a

Re: html ui + py background? any tut?

2009-05-23 Thread David Lyon
Hi, I don't know any tutorial either... At work, we have made gui apps using wxpython to make the gui... wxpython has html viewer component... you can use Cheetah or another template engine to make the html... It's pretty easy and effective... David On Sat, 23 May 2009 15:48:38 +0800,

Re: Problems with sys.stout.flush()

2009-05-23 Thread Carl Banks
On May 23, 2:20 am, Joel Ross jo...@cognyx.com wrote: Carl Banks wrote: On May 22, 10:33 pm, Joel Ross jo...@cognyx.com wrote: Hi all, I'm using python 2.5 and trying to flush the sys.stout buffer with sys.stout.flush(), but doesn't seem to work. Each time a line is printed    it

Re: Problems with sys.stout.flush()

2009-05-23 Thread Mohammed Mediani
Hi all, Is anyone aware of a 3-d plotting tool for simple mathematical functions. It seems that all the tools available have their problems with new versions. None of matplotlib, nor PyX, nor mat3d, seems to work for 3d anymore. Any suggestions??? Thanks --

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Carl Banks wrote: On May 23, 2:20 am, Joel Ross jo...@cognyx.com wrote: Carl Banks wrote: On May 22, 10:33 pm, Joel Ross jo...@cognyx.com wrote: Hi all, I'm using python 2.5 and trying to flush the sys.stout buffer with sys.stout.flush(), but doesn't seem to work. Each time a line is printed

Abstract Classes

2009-05-23 Thread Tim Cook
I am implementing a set of specifications that were designed to be OO language neutral. Several classes are specified as being abstract; so therefore there should be no instances of them, correct? However in the classes that are subclasses what is the correct way in Python to implement them? I

Re: Problems with sys.stout.flush()

2009-05-23 Thread Carl Banks
On May 23, 3:49 am, Joel Ross jo...@cognyx.com wrote:      def progressbar(self, number, total,  char):          percentage = float(number*100)/total          percentage = int(round(percentage))          percentage = int(100 - percentage)          self.f=sys.stdout          if percentage

Re: Representing a Tree in Python

2009-05-23 Thread Albert van der Horst
In article 43289c33-04b9-4cbc-9823-d8a4ee86d...@y33g2000prg.googlegroups.com, godshorse chinthak...@gmail.com wrote: On May 13, 11:54=A0am, CTO debat...@gmail.com wrote: On May 13, 12:10=A0am, godshorse chinthak...@gmail.com wrote: Hello, I want to find out the shortest path tree from a

PureData py/pyExt into standalone python

2009-05-23 Thread responsible7
Hi guys, Short version: I've written some python classes for py/pyExt extensions for the dataflow graphical programming environment PureData. Here's an example PureData screenshot for clarity: see: http://i40.tinypic.com/2rrx6gy.jpg My classes talk to eachother via the PureData system,

Re: html ui + py background? any tut?

2009-05-23 Thread Дамјан Георгиевски
I have read for many times that the modern appliaction (not a web one, but desktop on) uses html + js for its UI, and python code is for the background work but I have never found event a simple (yet completed) article on how to develop such a thing from scrach in these advocacy thing.

Replacing module with a stub for unit testing

2009-05-23 Thread pigmartian
Hi, I'm working on a unit test framework for a module. The module I'm testing indirectly calls another module which is expensive to access --- CDLLs whose functions access a database. test_MyModule ---MyModule---IntermediateModule--- ExpensiveModule I want to create a stub of

error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
Section 9.3.3 says that given, class MyClass: A simple example class i = 12345 def f(self): return 'hello world' and x = MyClass() then this x.counter = 1 while x.counter 10: x.counter = x.counter * 2 print(x.counter) del x.counter will print 16 link,

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
let me add that I see that this could be right if x.counter = 1 and counter need not have anything to do with MyClass but this could be more clear. Thanks Vincent Davis 720-301-3003 On Sat, May 23, 2009 at 7:08 AM, Vincent Davis vinc...@vincentdavis.netwrote: Section 9.3.3 says that given,

Optimizing math functions

2009-05-23 Thread Esmail
Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. I was checking out Wolfram Alpha (http://www70.wolframalpha.com/) and it can do simple optimization problems in math, such as maximize 15*x - x**2 over 0 to 15

Re: Replacing module with a stub for unit testing

2009-05-23 Thread Steven D'Aprano
On Sat, 23 May 2009 06:00:15 -0700, pigmartian wrote: Hi, I'm working on a unit test framework for a module. The module I'm testing indirectly calls another module which is expensive to access --- CDLLs whose functions access a database. ... The examples I can find of creating and using

Re: Replacing module with a stub for unit testing

2009-05-23 Thread Ben Finney
pigmart...@gmail.com writes: import ExpensiveModuleStub sys.modules['ExpensiveModule'] = ExpensiveModuleStub # Doesn't work But, import statements in the IntermediateModule still access the real ExpensiveModule, not the stub. The examples I can find of creating and using Mock

Re: Optimizing math functions

2009-05-23 Thread Steven D'Aprano
On Sat, 23 May 2009 09:22:59 -0400, Esmail wrote: Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. ... What it apparently can't do is for maximize (or minimize) functions that contain two variables, x and y, or more.

Re: html ui + py background? any tut?

2009-05-23 Thread Stefaan Himpe
Perhaps you want to investigate pyjamas[1] and pyjamas-desktop[2] [1] http://pyjs.org/ [2] http://pyjd.sourceforge.net/ Best regards, Stefaan. -- http://mail.python.org/mailman/listinfo/python-list

Python - R?

2009-05-23 Thread Esmail
Hello! Anyone using Python scripts and accessing some of R's functionality? If so, what are you using? I have read about RPy, is that a good solution? Are there others that can be recommended or are preferred? I would prefer to code in Python instead of R :-) Thanks, Esmail --

Re: html ui + py background? any tut?

2009-05-23 Thread Stefaan Himpe
Or maybe you are looking for something like nufox? http://nufox.berlios.de/ -- http://mail.python.org/mailman/listinfo/python-list

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Vincent Davis
Thank you that makes sense to me. Much more clear then the tutorial, I think so anyway. If you are learning about classes that you kinda expect MyClass to have counter in it. I might be nice to show that x.counter = 1 creates an instance that would look like (is this correct?) class MyClass:

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Carl Banks wrote: On May 23, 3:49 am, Joel Ross jo...@cognyx.com wrote: def progressbar(self, number, total, char): percentage = float(number*100)/total percentage = int(round(percentage)) percentage = int(100 - percentage) self.f=sys.stdout

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Michiel Overtoom
Vincent writes: you kinda expect MyClass to have counter in it. Yeah, that makes sense. These instance variables are often initialized in the __init__ method: class Counter(object): def __init__(self,initialvalue): self.value=initialvalue def inc(self):

Re: Problems with sys.stout.flush()

2009-05-23 Thread Peter Otten
Joel Ross wrote: class progress: def progressbar(self, number, total, char): percentage = float(number*100)/total percentage = int(round(percentage)) percentage = int(100 - percentage) self.f=sys.stdout if percentage 0:

Re: Problems with sys.stout.flush()

2009-05-23 Thread Dave Angel
Joel Ross wrote: div class=moz-text-flowed style=font-family: -moz-fixedCarl Banks wrote: On May 23, 2:20 am, Joel Ross jo...@cognyx.com wrote: Carl Banks wrote: On May 22, 10:33 pm, Joel Ross jo...@cognyx.com wrote: Hi all, I'm using python 2.5 and trying to flush the sys.stout buffer with

Re: from __future__ import absolute_import issue

2009-05-23 Thread LittleGrasshopper
On May 22, 12:42 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 20 May 2009 20:18:02 -0300, LittleGrasshopper   seattleha...@yahoo.com escribió: New to the group, this is my first post... It appears that either absolute imports (or my brain) aren't working. Given a module

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Benjamin Kaplan
On Sat, May 23, 2009 at 10:46 AM, Vincent Davis vinc...@vincentdavis.netwrote: Thank you that makes sense to me. Much more clear then the tutorial, I think so anyway. If you are learning about classes that you kinda expect MyClass to have counter in it. I might be nice to show that x.counter =

Re: Problems with sys.stout.flush()

2009-05-23 Thread Steven D'Aprano
On Sun, 24 May 2009 00:44:21 +1000, Joel Ross wrote: Still having the same problem if I pass it 1000 lines it will printout 1000 asterisks when I say lines I mean the argument number for the progress() function. I only want to printout 100 asterisks no matter how many lines I pass to the

Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Dave Angel
Vincent Davis wrote: Section 9.3.3 says that given, class MyClass: A simple example class i = 12345 def f(self): return 'hello world' and x = MyClass() then this x.counter = 1 while x.counter 10: x.counter = x.counter * 2 print(x.counter) del x.counter will print 16

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Thanks for all the help guys. I got it to work correctly with this class progress: def __init__(self): self.already = 0 def progressbar(self, number, total, char): percentage = int(100 - round(number*100.0/total)) if percentage 0: xchar = char *

Re: Re: error in tutorial for 3.0, section 9.3.3

2009-05-23 Thread Dave Angel
Vincent Davis wrote: Thank you that makes sense to me. Much more clear then the tutorial, I think so anyway. If you are learning about classes that you kinda expect MyClass to have counter in it. I might be nice to show that x.counter = 1 creates an instance that would look like (is this

How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread samba
I have a regex that needs multiline flag. Some where I read I can pass multiline flag in regex string itself without using re.compile. If anybody have any idea about how to do that please reply. -- http://mail.python.org/mailman/listinfo/python-list

need a help!

2009-05-23 Thread Minh Doan
Hi, I'm a newbie to python. I am having stuck with the following problem. I want to download the info(price) from fromcity to tocity at a certain time from kayak.com website. If we do it manually, we can go to the website, choose the appropriate info we want to get and press SEARCH. How can i do

Re: need a help!

2009-05-23 Thread Kushal Kumaran
On Sun, May 24, 2009 at 12:25 AM, Minh Doan daywed...@gmail.com wrote: Hi, I'm a newbie to python. I am having stuck with the following problem. I want to download the info(price) from fromcity to tocity at a certain time from kayak.com website. If we do it manually, we can go to the website,

Re: need a help!

2009-05-23 Thread Esmail
Minh Doan wrote: Hi, I'm a newbie to python. I am having stuck with the following problem. I want to download the info(price) from fromcity to tocity at a certain time from kayak.com http://kayak.com/ website. If we do it manually, we can go to the website, choose the appropriate info we

Re: Problems with sys.stout.flush()

2009-05-23 Thread Carl Banks
On May 23, 8:20 am, Dave Angel da...@ieee.org wrote: Incidentally, Carl's other suggestion, that you use a new variable instead of overwriting 'char', is a red herring. Yeah, I dropped the ball on this one, I misread his code as being in a loop instead of being called repeatedly. And after

Re: need a help!

2009-05-23 Thread Dave Angel
Minh Doan wrote: Hi, I'm a newbie to python. I am having stuck with the following problem. I want to download the info(price) from fromcity to tocity at a certain time from kayak.com website. If we do it manually, we can go to the website, choose the appropriate info we want to get and press

Re: How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread MRAB
samba wrote: I have a regex that needs multiline flag. Some where I read I can pass multiline flag in regex string itself without using re.compile. If anybody have any idea about how to do that please reply. Include (?m) in the regular expression for multiline matching. It's best to put it at

Re: How to pass multiline flag to re.sub without using re.complie.

2009-05-23 Thread Tim Chase
I have a regex that needs multiline flag. Some where I read I can pass multiline flag in regex string itself without using re.compile. If anybody have any idea about how to do that please reply. As detailed at [1], (?iLmsux) (One or more letters from the set 'i', 'L', 'm', 's', 'u', 'x'.)

Re: When does the escape character work within raw strings?

2009-05-23 Thread walterbyrd
On May 22, 12:22 pm, Rhodri James How do you know how a string object is going to be treated by any given function?  Read the Fine Manual for that function. So am I to understand that there is no consistency in string handling throughout the standard modules/objects/methods? Seems to make

Re: Optimizing math functions

2009-05-23 Thread Robert Kern
On 2009-05-23 08:22, Esmail wrote: Hello all, I would like to maximize or minimize a given math function over a specific set of values, in Python preferably. I was checking out Wolfram Alpha (http://www70.wolframalpha.com/) and it can do simple optimization problems in math, such as maximize

Re: When does the escape character work within raw strings?

2009-05-23 Thread Robert Kern
On 2009-05-23 16:05, walterbyrd wrote: On May 22, 12:22 pm, Rhodri James How do you know how a string object is going to be treated by any given function? Read the Fine Manual for that function. So am I to understand that there is no consistency in string handling throughout the standard

Problems with StaticBitmaps and events

2009-05-23 Thread Water Bottle
Hi, I'm new to wxpython and I created a test program. So far, it works, but there are some problems with it. For some reason, I get a small box in the top left corner. Not sure why that's happening. Also, I can't get my picture to bind to my Play(). Lastly, do you recommend using StaticBitmap

Re: Abstract Classes

2009-05-23 Thread Rhodri James
On Sat, 23 May 2009 12:02:00 +0100, Tim Cook timothywayne.c...@gmail.com wrote: I am implementing a set of specifications that were designed to be OO language neutral. Several classes are specified as being abstract; so therefore there should be no instances of them, correct? However in the

Re: Problems with sys.stout.flush()

2009-05-23 Thread Rhodri James
On Sat, 23 May 2009 18:19:11 +0100, Joel Ross jo...@cognyx.com wrote: Now I can move onto next one. Except that you still have the interesting issue that your environment isn't responding to '\r' correctly, which worries me rather. Or did you never test that? -- Rhodri James *-* Wildebeeste

Re: When does the escape character work within raw strings?

2009-05-23 Thread Rhodri James
On Sat, 23 May 2009 22:05:10 +0100, walterbyrd walterb...@iname.com wrote: On May 22, 12:22 pm, Rhodri James How do you know how a string object is going to be treated by any given function?  Read the Fine Manual for that function. So am I to understand that there is no consistency in

Re: When does the escape character work within raw strings?

2009-05-23 Thread Stephen Hansen
How do you know how a string object is going to be treated by any given function? Read the Fine Manual for that function. So am I to understand that there is no consistency in string handling throughout the standard modules/objects/methods? Seems to make python a lot more complicated

Re: Cursor movement question

2009-05-23 Thread Jive Dadson
Aahz wrote: In article wxorl.328387$yx2.227...@en-nntp-06.dc1.easynews.com, Jive Dadson notonthe...@noisp.com wrote: Gosh, you guys are slow. :-) I figured it out. Perhaps you could post the solution for posterity's sake? The double secret magic encantation is WarpPointer. Unfortunately,

wxPython gurus, please help

2009-05-23 Thread Jive Dadson
I have an application that opens an image file of the user's choice. I have an exception handler for the case that the user selected a bad or unsupported image file. My code is catching the exception, but unfortunately for me, after I exit the except-clause, wxPython is popping up its

wxpython and zoom/pan image

2009-05-23 Thread rzzzwilson
Hi, I've googled for this, but can only find things like openlayers that is a web-based javascript solution. I need to display an image at various zoom levels and want to allow the user to pan around in the Google maps style, that is, left-click hold and drag. The code should also action

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Rhodri James wrote: On Sat, 23 May 2009 18:19:11 +0100, Joel Ross jo...@cognyx.com wrote: Now I can move onto next one. Except that you still have the interesting issue that your environment isn't responding to '\r' correctly, which worries me rather. Or did you never test that? Yeah I

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Dennis Lee Bieber wrote: flush() is working perfectly fine -- it says transmit any data still held within internal buffers. It is NOT a clear screen, clear line terminal command. I was mistaken about the sys.stout.flush(). I understand it a little more now thanks --

Re: wxPython gurus, please help

2009-05-23 Thread Benjamin Kaplan
On Sat, May 23, 2009 at 6:55 PM, Jive Dadson notonthe...@noisp.com wrote: I have an application that opens an image file of the user's choice. I have an exception handler for the case that the user selected a bad or unsupported image file. My code is catching the exception, but

Re: wxpython and zoom/pan image

2009-05-23 Thread Dave Angel
rzzzwil...@gmail.com wrote: Hi, I've googled for this, but can only find things like openlayers that is a web-based javascript solution. I need to display an image at various zoom levels and want to allow the user to pan around in the Google maps style, that is, left-click hold and drag. The

Re: Problems with sys.stout.flush()

2009-05-23 Thread Mel
Joel Ross wrote: Rhodri James wrote: [ ... ] Except that you still have the interesting issue that your environment isn't responding to '\r' correctly, which worries me rather. Or did you never test that? Yeah I gave the \r a go and it kept printing out on a new line I will look into it.

Re: When does the escape character work within raw strings?

2009-05-23 Thread Steven D'Aprano
On Sat, 23 May 2009 14:05:10 -0700, walterbyrd wrote: On May 22, 12:22 pm, Rhodri James How do you know how a string object is going to be treated by any given function?  Read the Fine Manual for that function. So am I to understand that there is no consistency in string handling

Re: from __future__ import absolute_import issue

2009-05-23 Thread Gabriel Genellina
En Sat, 23 May 2009 12:32:24 -0300, LittleGrasshopper seattleha...@yahoo.com escribió: On May 22, 12:42 am, Gabriel Genellina gagsl-...@yahoo.com.ar wrote: En Wed, 20 May 2009 20:18:02 -0300, LittleGrasshopper   seattleha...@yahoo.com escribió: It appears that either absolute imports (or

Re: Problems with sys.stout.flush()

2009-05-23 Thread Joel Ross
Mel wrote: Joel Ross wrote: Rhodri James wrote: [ ... ] Except that you still have the interesting issue that your environment isn't responding to '\r' correctly, which worries me rather. Or did you never test that? Yeah I gave the \r a go and it kept printing out on a new line I will

[Announcement] PyISAPIe version 1.1.0 Release Candidate 2

2009-05-23 Thread Phillip Sitbon
Hello all, I've recently revived the Python ISAPI Extension (PyISAPIe) project and thought I'd share the newest release with you, version 1.1.0-rc2. Development in bringing Python to Windows servers has been slow these days, so hopefully this project can continue to fill a niche for those who

Extending C++ class in python

2009-05-23 Thread nazia
Hi all, I'm a newbie in Python and need help. Can anyone help me by explaining the steps of extending a C++ class in Python with a simple example? I'm not interested to use SWIG like tools. Thanks for your time. -Nazia -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with sys.stout.flush()

2009-05-23 Thread AK
Joel Ross wrote: Rhodri James wrote: On Sat, 23 May 2009 18:19:11 +0100, Joel Ross jo...@cognyx.com wrote: Now I can move onto next one. Except that you still have the interesting issue that your environment isn't responding to '\r' correctly, which worries me rather. Or did you never test

[issue6092] Changed Shortcuts don't show up in menu

2009-05-23 Thread jamesie
New submission from jamesie pos...@jamesie.de: After having changed the key binding for run-module to C-r it still says F5 in the menu and in the general section of configuration. Check Module has the same behaviour. Seen with Debian Lenny's IDLE 1.2.2 on Python 2.5.2 and with IDLE 3.1b1 on

[issue5079] time.ctime docs refer to time tuple for default

2009-05-23 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: None will be made. -- resolution: - out of date status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5079 ___

[issue5797] there is en exception om Create User page

2009-05-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- resolution: - invalid status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5797 ___

[issue6093] Ambiguous locale.strxfrm

2009-05-23 Thread Tuomas Vesterinen
New submission from Tuomas Vesterinen tuomas.vesteri...@iki.fi: This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates its comeback. The tail of the strxfrm result is ambiguous. Python 3.0.1 (r301:69556, Apr 14 2009, 14:30:31) [GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2

[issue1064] Test issue

2009-05-23 Thread Martin v . L�wis
Martin v. Löwis mar...@v.loewis.de added the comment: And yet more email -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1064 ___ ___

[issue1064] Test issue

2009-05-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Another one. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1064 ___ ___ Python-bugs-list

[issue6054] tarfile normalizes arcname

2009-05-23 Thread mkv
mkv mvirk...@cc.hut.fi added the comment: Great, thanks for the speedy work :) Now if only issue4750 would get fixed for 2.7 as well ;) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6054

[issue960325] --require feature option for configure/make (fail if building not possible)

2009-05-23 Thread Björn Lindqvist
Björn Lindqvist bjou...@gmail.com added the comment: I'm not Hallvard but I'd also appreciate this feature. I think it is quite important to have for automated build systems; Python seem to build correctly but then down the line some other package fails because the bz2 module is not available.

[issue4470] smtplib SMTP_SSL not working.

2009-05-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: With the closure of 4066 all the tests in the test patch pass, so I'm lowering the piority of this ticket. I haven't reviewed the other patches, but the tests in the test patch appear to be doing tests in the setup method, which doesn't

[issue4385] Py_Object_HEAD_INIT in Py3k

2009-05-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Unless I'm missing something it looks like this can be closed as fixed. -- nosy: +r.david.murray resolution: - fixed stage: commit review - committed/rejected status: open - pending ___ Python

[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: Removed file: http://bugs.python.org/file13774/test-smtplib.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5259 ___

[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: 5304 and 3921 are fixed. Is there still an issue here? If so, I think we need a test case we can add to the test suite. It can be a patch against the new test_smtpnet.py test. -- nosy: +r.david.murray

[issue6089] str.format raises SystemError

2009-05-23 Thread Eric Smith
Eric Smith e...@trueblade.com added the comment: Fixed in: trunk: r72848 release26-maint: r72849 py3k: r72850 release30-main: r72851 -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Looks like I accidentally deleted the file I was asking for. Not sure how that happened, but I'm reattaching it. -- Added file: http://bugs.python.org/file14043/test-smtplib.diff ___ Python

[issue6047] install target in python 3.x makefile should be fullinstall

2009-05-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Removed fullinstall in r72857. -- resolution: - accepted status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6047

[issue1983] Return from fork() is pid_t, not int

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Thanks, the patch was committed in r72852, r72853, r72854. I then realized a couple of functions had been looked over (including getpid() and getppid()), and committed a complement in r72855, r72856 and r72858. -- resolution: accepted -

[issue3877] test_fileio fails on OpenBSD 4.4

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I've committed a more generic fix to test_fileio. Normally it should be ok, if there's any problem please reopen the bug. -- resolution: - fixed status: open - closed versions: +Python 2.7, Python 3.1

[issue4385] Py_Object_HEAD_INIT in Py3k

2009-05-23 Thread Georg Brandl
Changes by Georg Brandl ge...@python.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4385 ___ ___ Python-bugs-list

[issue6050] zipfile: Extracting a directory that already exists generates an OSError

2009-05-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: It would be nice to have a test with the patch. -- nosy: +benjamin.peterson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6050 ___

[issue5756] idle pydoc et al removed from 3.1 without versioned replacements

2009-05-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: r72866 installs 2to3 over old installations. That should do the trick. -- status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5756

[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Here is a patch. -- keywords: +patch Added file: http://bugs.python.org/file14044/issue5761.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5761

[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: svnversion program from Subversion 1.7 (currently trunk), when invoked on unversioned directory, prints Unversioned directory instead exported. This change in output is intentional and won't be reverted. It causes

[issue5259] smtplib is broken in Python3

2009-05-23 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- assignee: - r.david.murray stage: test needed - commit review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5259 ___

[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: New patch following Benjamin's comments. -- Added file: http://bugs.python.org/file14046/issue5761-2.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5761

[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: I'm attaching improved patch. -- Added file: http://bugs.python.org/file14047/python-2.6.2-svnversion.patch ___ Python tracker rep...@bugs.python.org

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread soundmurderer
soundmurderer soundmurde...@gmail.com added the comment: OK, I'm convinced. Changing PYTHONHOME is bad. But I am all in favor R. David Murray's solution of extending to include something like PYTHONHOMELIB. Martin v. Löwis: What I want is simply to be able to use --libdir to tell ./configure

[issue5761] add file name to py3k IO objects repr()

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Committed in r72870. -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue5761 ___

[issue6094] Python fails to build with Subversion 1.7

2009-05-23 Thread Benjamin Peterson
Benjamin Peterson benja...@python.org added the comment: Fixed in r72871. -- nosy: +benjamin.peterson resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6094

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Martin v. Löwis: What I want is simply to be able to use --libdir to tell ./configure where to put standard Python libs, and I want my Python installation to recognize this lib location without having to hack PYTHONPATH or PYTHONHOME or

[issue6060] PYTHONHOME should be more flexible (and controllable by --libdir)

2009-05-23 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- resolution: - wont fix status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6060 ___

[issue5259] smtplib is broken in Python3

2009-05-23 Thread José Luis Cáceres
José Luis Cáceres j...@telefonica.net added the comment: There is a similar problem that I found with encode_cram_md5 in smtplib.py, SMTP.login() method. I used the solution proposed by miwa, both for PLAIN and CRAM MD5 authentication. Additionally, for the last one, I had to introduce a

[issue1943] improved allocation of PyUnicode objects

2009-05-23 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Updated patch against py3k. On a 64-bit system, each unicode object takes 14 bytes less than without the patch (using sys.getsizeof()). Two to four more bytes could be gained by folding the `state` member in the two lower bits of `defenc`, but I'm

[issue6042] Document and slightly simplify lnotab tracing

2009-05-23 Thread Jeffrey Yasskin
Jeffrey Yasskin jyass...@gmail.com added the comment: Committed to trunk in r72879. I'll wait to merge it to 3.x until 3.1 has been released, since we're approaching the release candidate there. -- stage: patch review - committed/rejected ___ Python

[issue6042] Document and slightly simplify lnotab tracing

2009-05-23 Thread Jeffrey Yasskin
Changes by Jeffrey Yasskin jyass...@gmail.com: -- assignee: - jyasskin ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6042 ___ ___

  1   2   >