[issue3112] implement PEP 3134 exception reporting

2008-06-23 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Le lundi 23 juin 2008 à 06:16 +, Adam Olsen a écrit : > Failure doesn't have an args tuple and doesn't subclass Exception (or > BaseException) - it already needs modification in 3.0. It's heaped > full of complexity and implementation det

[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The problem seems to have been introduced by r53954. -- nosy: +amaury.forgeotdarc ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-23 Thread Erick Tryzelaar
New submission from Erick Tryzelaar <[EMAIL PROTECTED]>: Revision r63851 [1] by Benjamin Peterson removed a couple mac scripts, including cachersrc.py. Unfortunately, this script is still referenced in Mac/Makefile.in, so it fails to install on my mac. Anyone have a workaround I could add for

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-23 Thread Erick Tryzelaar
Erick Tryzelaar <[EMAIL PROTECTED]> added the comment: I should add the error message: DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_Users_Shared_erickt_P rojects_macports_dports.git_lang_python30/work/Python-3.0b1: ../python.exe ./scripts/cachersrc.py -v /opt/local/var/macports/build/_Us

[issue701743] Reloading pseudo modules

2008-06-23 Thread Walter Dörwald
Walter Dörwald <[EMAIL PROTECTED]> added the comment: AFAIK reload() is gone in 3.0 anyway, so I don't think this patch is relevant any longer. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue2378] UnboundLocalError when trying to raise exceptions inside execfile

2008-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: The problem is in PyFrame_LocalsToFast. (As I understand it: "Locals" refers to the locals() dictionary of the frame; "Fast" refers to an optimization where local variables are stored in an array. Each call to locals() or the trace fun

[issue3175] multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution

2008-06-23 Thread Mark Summerfield
New submission from Mark Summerfield <[EMAIL PROTECTED]>: I built Python 30b1 from the tarball on Fedora 8 and Xubuntu 8. My only configure switch was --prefix to get a local build. On both systems the only build error I got was: Failed to find the necessary bits to build these modules: _gestal

[issue3045] Windows online help broken when spaces in TEMP environ

2008-06-23 Thread Senthil
Senthil <[EMAIL PROTECTED]> added the comment: This issue is valid in Python2.5. I verified it on a Windows. The fix suggested Changing: os.system(cmd + ' ' + filename) to os.system('%s "%s"' % (cmd,filename)) in pydoc.tempfilepager also makes sense for fixing this issue. --

[issue3176] result error for 2/5 and 4/5

2008-06-23 Thread Hiweed
New submission from Hiweed <[EMAIL PROTECTED]>: On IDLE 3.0b1 (Windows XP SP3): - type 2/5 you'll get 0.40002 instead of 0.4 - type 4/5 you'll get 0.80004 instead of 0.8 -- components: IDLE, Windows messages: 68620 nosy: hiweed severity: normal status: open titl

[issue3176] result error for 2/5 and 4/5

2008-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: This is normal, and due to the floating point representation of numbers. Please see http://www.python.org/doc/faq/general/#why-are-floating-point-calculations-so-inaccurate -- nosy: +amaury.forgeotdarc resolution: -> invalid st

[issue3142] urllib docs don't match the new modules

2008-06-23 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Only a few things -- I've done them in r64477. This is now done, thanks! -- resolution: -> fixed status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3177] os.startfile implement in posix and MacOSX

2008-06-23 Thread Young-Ho Cha
New submission from Young-Ho Cha <[EMAIL PROTECTED]>: Currently, os.startfile is implemented in Win32 only, but there are command line tools in Unix and MacOSX that have same behavior. As a result of http://portland.freedesktop.org, unix desktop has command line tool named "xdg-open" (http://por

[issue3167] math test fails on Solaris 10

2008-06-23 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: Judging by the information at http://docs.sun.com/app/docs/doc/802-1930-03/6i5u95u0i? l=en&a=view&q=matherr this behaviour is intentional. It looks like log(-inf) sets errno = EDOM and returns -inf. An IEEE 754 conforming math library woul

[issue3178] __radd__(self, other) isn't called if self and other are of the same class

2008-06-23 Thread Pyry Pakkanen
New submission from Pyry Pakkanen <[EMAIL PROTECTED]>: >>> class test: ... def __radd__(self,other): ... return '__radd__ called' ... >>> t = test() >>> 1 + t '__radd__ called' >>> t + t Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand typ

[issue3178] __radd__(self, other) isn't called if self and other are of the same class

2008-06-23 Thread Andrii V. Mishkovskyi
Andrii V. Mishkovskyi <[EMAIL PROTECTED]> added the comment: This is covered in section 3.4.7 of Python Reference Manual: __radd__(self, other) [skipped] These methods are called to implement the binary arithmetic operations (+, -, *, /, %, divmod(), pow(), **, <<, >>, &, ^, |) with reflected

[issue3167] math test fails on Solaris 10

2008-06-23 Thread Mark Dickinson
Mark Dickinson <[EMAIL PROTECTED]> added the comment: On second thoughts, forget about matherr---looks like it's outdated technology. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3178] __radd__(self, other) isn't called if self and other are of the same class

2008-06-23 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc <[EMAIL PROTECTED]> added the comment: As Andrii said, this behaviour is by design. -- nosy: +amaury.forgeotdarc resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]>

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
New submission from Ralf Schmitt <[EMAIL PROTECTED]>: import cPickle res=[] for x in range(1,2000): res.append(dict(doc=x, similar=[])) cPickle.dumps(res) Traceback (most recent call last): File "pi.py", line 10, in cPickle.dumps(res) RuntimeError: maximum recursion depth exceeded svn

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-23 Thread Andi Albrecht
Andi Albrecht <[EMAIL PROTECTED]> added the comment: IMO, the best way to resolve this is to use the default continuation whitespace when a Header class is created from a string. But I'm pretty unsure about the default whitespace character. After having a look at a random set of mails in my inbox

[issue3179] cPickle is seriously broken

2008-06-23 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: This example works before my patch, exactly! The reason of the patch I applied is that in some cases a Recursion error should be raised, but it didn't happen, causing some serious issues later. I'm putting in copy to cuerty, for him to anal

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Apparently there are some self->nesting-- calls missing in batch_list and batch_dict. ___ Python tracker <[EMAIL PROTECTED]> ___

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: Of course it should not raise an RecursionError. for reference: http://bugs.python.org/issue2702 is the original bugreport. ___ Python tracker <[EMAIL PROTECTED]> _

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-23 Thread Barry A. Warsaw
Barry A. Warsaw <[EMAIL PROTECTED]> added the comment: I'm pretty convinced that this stuff is broken and needs serious attention. Unfortunately, I won't have time to address the email package before 2.6 and 3.0 get released. My current work lives at bzr+ssh://[EMAIL PROTECTED]/python/users/ba

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: here is a test case. I cannot run it however: ~/pydev/trunk/ ./python Lib/test/test_cpickle.py [EMAIL PROTECTED] ok Traceback (most recent call last): File "Lib/test/test_cpickle.py", line 3, in from test.pickletester impor

[issue2549] shutil: NameError (WindowsError) when moving from ext3 to fat32 under linux

2008-06-23 Thread Raghuram Devarakonda
Raghuram Devarakonda <[EMAIL PROTECTED]> added the comment: This is duplicate of 3134. I posted a patch there. -- resolution: -> duplicate status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> __

[issue3167] math test fails on Solaris 10

2008-06-23 Thread Jean Brouwers
Jean Brouwers <[EMAIL PROTECTED]> added the comment: Here is a simple test case, demonstrating the issue. #include #include #include int main(int argc, char *argv[]) { printf("%f %d\n", log(-HUGE_VAL), errno); printf("%f %d\n", log( HUGE_VAL), errno); } result is different for 32- a

[issue3180] Interrupts are lost during readline PyOS_InputHook processing

2008-06-23 Thread Michael Abbott
New submission from Michael Abbott <[EMAIL PROTECTED]>: The (undocumented!) API for PyOS_InputHook has two defects which are addressed in the attached patch (at least when using the readline module): firstly the called hook currently has to guess that input will come on descriptor 0; secondly, an

[issue3181] ConfigParsers are classic classes

2008-06-23 Thread Ari Makela
New submission from Ari Makela <[EMAIL PROTECTED]>: The base class, ConfigParser.RawConfigParser does not inherit object and therefore it is a classic class. Test script run with my normal python installation: $ /usr/bin/python -V Python 2.5.2 $ /usr/bin/python arska/configparser.py bar And r

[issue3181] ConfigParsers are classic classes

2008-06-23 Thread Ari Makela
Changes by Ari Makela <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10711/configparser.diff ___ Python tracker <[EMAIL PROTECTED]> ___ ___

[issue3181] ConfigParsers are classic classes

2008-06-23 Thread Ari Makela
Changes by Ari Makela <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10711/configparser.diff ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3181] ConfigParsers are classic classes

2008-06-23 Thread Ari Makela
Changes by Ari Makela <[EMAIL PROTECTED]>: Added file: http://bugs.python.org/file10712/configparser.py ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3181] ConfigParsers are classic classes

2008-06-23 Thread Georg Brandl
Georg Brandl <[EMAIL PROTECTED]> added the comment: Why do you think ConfigParser should be a new-style class? -- nosy: +georg.brandl resolution: -> invalid status: open -> pending ___ Python tracker <[EMAIL PROTECTED]>

[issue3182] 2to3 Slight Patch

2008-06-23 Thread Nick Edds
New submission from Nick Edds <[EMAIL PROTECTED]>: This is a small patch to the 2to3 tool, replacing some calls to isinstance (x,y) with type(x) is y in the file pytree.py. Although there is only a slight performance increase for each time this change is made, the recursive nature of pattern matc

[issue1571841] email module does not complay with RFC 2046: CRLF issue

2008-06-23 Thread Deron Meranda
Deron Meranda <[EMAIL PROTECTED]> added the comment: Still an issue in 2.5. This lack of conformance to the RFC is can also cause problems when trying to use encrypted or signed email, as those activities may depend on "canonical" line endings. An LF rather than CR+LF can cause the crypto to br

[issue3175] multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution

2008-06-23 Thread Jesse Noller
Jesse Noller <[EMAIL PROTECTED]> added the comment: This is a duplicate of http://bugs.python.org/issue3150 -- assignee: -> jnoller nosy: +jnoller resolution: -> duplicate ___ Python tracker <[EMAIL PROTECTED]> __

[issue3183] sha modules & Modules/Setup.dist

2008-06-23 Thread Ralf W. Grosse-Kunstleve
New submission from Ralf W. Grosse-Kunstleve <[EMAIL PROTECTED]>: It would be very useful to add two lines to Modules/Setup.dist: Index: Modules/Setup.dist === --- Modules/Setup.dist (revision 64489) +++ Modules/Setup.dist (workin

[issue3175] multiprocessing build fails on Fedora 8 and Xubuntu 8 + solution

2008-06-23 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bugs-l

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: If you just remove the reference to cachesrc.py, do you still have adverse effects? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]>

[issue449227] rlcompleter add "(" to callables feature

2008-06-23 Thread Manuel Muradás
Manuel Muradás <[EMAIL PROTECTED]> added the comment: I have also updated the rlcompleter documentation. Here is the complete patch. rlcompleterAndDoc2.6.diff -- nosy: +facundobatista Added file: http://bugs.python.org/file10714/rlcompleterAndDoc2.6.diff

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-23 Thread Erick Tryzelaar
Erick Tryzelaar <[EMAIL PROTECTED]> added the comment: Hello again, I then have problems with it finding MacOS.py in the BuildApplet.py script: DYLD_FRAMEWORK_PATH=/opt/local/var/macports/build/_Users_Shared_erickt_Projects_macports_dports.git_lang_python30/work/Python-3.0b1: ../python.exe ./sc

[issue3174] 3.0b1 doesn't seem to install on macs

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Hmm. BuildApplet.py may have to go or some Mac modules may have to reappear. I'm adding Ronald and Brett in to see if they have any comments. Ronald, is it possible to have a Mac install w/o the BuildApplet/cachesrc scripts? -- ass

[issue3170] test_pydoc has no way to regenerate pristine data

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Actually, I was wondering if the comparison testing is even worthwhile. All it's really going to tell is if something has changed, not if it's broken. ___ Python tracker <[EMAIL PROTECTED]>

[issue3177] implement os.startfile on posix and MacOSX

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Those commands can be easily used through the subprocess module. However, if a patch is provided, it could be accepted. -- nosy: +benjamin.peterson priority: -> low title: os.startfile implement in posix and MacOSX -> implement os

[issue2044] test_sunaudiodev.py converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: I'm a little nervous about committing anything that hasn't been tested. Can anyone on Sun test this please? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]>

[issue2042] test_audioop.py converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This patch no longer applies cleanly. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue2024] test_gl.py converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Unfortunately, I can't easily test this. Can anyone else? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> __

[issue2023] test_cd converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Unfortunately, I can't easily test this. Can anyone else? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> __

[issue2022] test_al converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Unfortunately, I can't easily test this. Can anyone else? -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> __

[issue1567948] poplib.py list interface

2008-06-23 Thread Facundo Batista
Facundo Batista <[EMAIL PROTECTED]> added the comment: 2008/6/22 Hasan Diwan <[EMAIL PROTECTED]>: > Yea, I guess that since nothing has happened to it in the past 2 years > (as you said), it's probably a good idea to close it. Ok, closing it. Feel free to reopen if interested. Thanks! ---

[issue1949] test_ntpath.py converted to unittest

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: This patch no longer applies cleanly. -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> ___ __

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-23 Thread Chris Withers
Chris Withers <[EMAIL PROTECTED]> added the comment: Again, in total agreement with Andi *EXCEPT*: Please use ' ' instead of '\t' for the continuation character. It's the \t that gets mis-rendered by Outlook and Thunderbird (at the very least!) and since ' ' is also valid according to the RFC,

[issue449227] rlcompleter add "(" to callables feature

2008-06-23 Thread Facundo Batista
Changes by Facundo Batista <[EMAIL PROTECTED]>: -- assignee: -> facundobatista ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-

[issue3179] cPickle is seriously broken

2008-06-23 Thread Facundo Batista
Changes by Facundo Batista <[EMAIL PROTECTED]>: -- assignee: -> facundobatista ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-bu

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread David Gladstein
New submission from David Gladstein <[EMAIL PROTECTED]>: The documentation from http://www.effbot.org/zone/pythondoc-elementtree-ElementTree.htm is missing. Without it the module is pretty much impossible to use, unless you know about the effbot pages. -- assignee: georg.brandl component

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: What do you mean? http://docs.python.org/lib/module-xml.etree.ElementTree.html -- nosy: +benjamin.peterson ___ Python tracker <[EMAIL PROTECTED]> _

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread David Gladstein
David Gladstein <[EMAIL PROTECTED]> added the comment: an ElementTree instance holds a tree of Element instances which represents the XML tags. Element isn't documented. in the effbot version, there's a page http://www.effbot.org/zone/pythondoc-elementtree-ElementTree.htm#elementtree.ElementTr

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread Benjamin Peterson
Benjamin Peterson <[EMAIL PROTECTED]> added the comment: Ahh, but it is present in the new docs: http://docs.python.org/dev/library/xml.etree.elementtree.html#the-element-interface. ___ Python tracker <[EMAIL PROTECTED]>

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread Benjamin Peterson
Changes by Benjamin Peterson <[EMAIL PROTECTED]>: -- resolution: -> invalid status: open -> closed ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue3184] The elementtree.ElementTree Module doc is missing

2008-06-23 Thread David Gladstein
David Gladstein <[EMAIL PROTECTED]> added the comment: Excellent. - Original Message - From: "Benjamin Peterson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, June 23, 2008 7:12 PM Subject: [issue3184] The elementtree.ElementTree Module doc is missing Benjamin Peterson <[EM

[issue3177] implement os.startfile on posix and MacOSX

2008-06-23 Thread Young-Ho Cha
Young-Ho Cha <[EMAIL PROTECTED]> added the comment: I implemented os.startfile on posix and MacOSX as you said. but it need more work to handle error. -- keywords: +patch Added file: http://bugs.python.org/file10715/os_startfile.diff ___ Python track

[issue449227] rlcompleter add "(" to callables feature

2008-06-23 Thread Manuel Muradás
Changes by Manuel Muradás <[EMAIL PROTECTED]>: Removed file: http://bugs.python.org/file10695/rlcompleter2.6.diff ___ Python tracker <[EMAIL PROTECTED]> ___ _

[issue1974] email.MIMEText.MIMEText.as_string incorrectly folding long subject header

2008-06-23 Thread Andi Albrecht
Andi Albrecht <[EMAIL PROTECTED]> added the comment: FWIW, I've uploaded a patch to codereview: http://codereview.appspot.com/2407 It uses a space character as Chris suggested. ___ Python tracker <[EMAIL PROTECTED]> __

[issue3185] Documentation of time.time() differs from source documentation

2008-06-23 Thread Carsten Grohmann
New submission from Carsten Grohmann <[EMAIL PROTECTED]>: The current python documentation of the time module (http://docs.python.org/lib/module-time.html) means that time.time() returns the "seconds since the epoch, in UTC". But in the current source documentation of the time module (http://svn

[issue3185] Documentation of time.time() differs from source documentation

2008-06-23 Thread Martin v. Löwis
Martin v. Löwis <[EMAIL PROTECTED]> added the comment: I cannot see the difference. The docstring doesn't say "current local time", it says "current time". What do you mean by "current local unix seconds" - that phrase makes no sense. time.time() returns the seoncds since the Epoch, and they mus

[issue3185] Documentation of time.time() differs from source documentation

2008-06-23 Thread Carsten Grohmann
Carsten Grohmann <[EMAIL PROTECTED]> added the comment: "current local unix seconds" means seconds since the Epoch in local timezone. I've attached a small example to show that is no difference between the time returned by time.localtime() and time.time(). So I assume that time.time() also retur

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: the test works as expected (i.e. it fails). The problem I had was that some Bittorrent bencode also installed a test package for me. == ERROR: test_flat_list (__main__.cPickl

[issue3179] cPickle is seriously broken

2008-06-23 Thread Ralf Schmitt
Ralf Schmitt <[EMAIL PROTECTED]> added the comment: btw. this should be a release blocker. ___ Python tracker <[EMAIL PROTECTED]> ___ ___ Python-