ANN: phileas (=Python/Html Integration; Larry's Elegant Alternative scheme) 0.6 available

2011-01-03 Thread Larry Myerscough
Hippo's Techical Systems BV is proud to anounced that release 0.6 of 'phileas' is available. Phileas stands for: *P*ython *H*TML *I*ntegration - *L*arry's *E*legant *A*lternative *S*cheme (The word 'elegant' is a matter of taste of course but it makes the acronym work!) /Web-site/:

asciitable 0.5.0

2011-01-03 Thread Tom Aldcroft
I'd like to announce the release of version 0.5.0 of asciitable, an extensible module for reading and writing ASCII tables. This release features a new function to guess the table format from the supported formats within asciitable. This function is now called by default within

[ANN] Python courses 2011

2011-01-03 Thread Mike Müller
Python Courses 2011 === Our schedule of public Python courses for 2011 is taking shape. This year we added some new topics such as Cython and XML processing with Python. If you are interested in other Python topics just let me now. Also, if you would like to teach about a Python

Pygments 1.4 Unschärfe released

2011-01-03 Thread Georg Brandl
I've just uploaded the Pygments 1.4 packages to CheeseShop. Pygments is a generic syntax highlighter written in Python. Download it from http://pypi.python.org/pypi/Pygments, or look at the demonstration at http://pygments.org/demo. As always, many thanks go to Tim Hatch for writing or

First release of Proteus

2011-01-03 Thread ced
Proteus is a Python library to access Tryton [1] server. (Tryton is a three-tiers high-level general purpose application platform) It can be used through XML-RPC or by using trytond as module and provides an Active Record pattern enabling you to interact pythonically with your Tryton server.

Re: Tkinter: The good, the bad, and the ugly!

2011-01-03 Thread Octavian Rasnita
From: Hank Fay hank...@gmail.com Subject: Re: Tkinter: The good, the bad, and the ugly! That (the desktop app issue) was the big game-change for me. It looks like a desktop app, it acts like a desktop app, and our enterprise customers would be delighted to a) have no installs to do for fat

A quesstion with matplotlib

2011-01-03 Thread 余亮罡
Dear all, I have a quesstion about change the width of the ylabel.You know the width of the ylabel is relaete to the x axi,how can i change the width of the ylabel not depend on the width of the x-axis? Thank you! George -- http://mail.python.org/mailman/listinfo/python-list

Re: list 2 dict?

2011-01-03 Thread Glazner
On Jan 2, 3:18 pm, Octavian Rasnita orasn...@gmail.com wrote: Hi, If I want to create a dictionary from a list, is there a better way than the long line below? l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b'] d = dict(zip([l[x] for x in range(len(l)) if x %2 == 0], [l[x] for x in range(len(l)) if

Arisingsoft provides the Norton antivirus all in one security suite.

2011-01-03 Thread mani ma
hai, Uses : The package includes a personal firewall, phishing protection and the ability to detect and remove malware. Norton 360 is compatible with 32-bit editions of Windows XP and 32-bit or 64-bit editions of Windows Vista.Windows 7 support has been added. Reviews cited Norton 360's low

Re: String building using join

2011-01-03 Thread Alexander Gattin
Hello, On Sun, Jan 02, 2011 at 10:11:50AM -0800, Alex Willmer wrote: def prg3(l): return '\n'.join([str(x) for x in l if x]) just one fix (one fix one fix one fix): return '\n'.join([str(x) for x in l if x is not None]) -- With best regards, xrgtn --

Re: Is there anyway to run JavaScript in python?

2011-01-03 Thread Diez B. Roggisch
crow wen...@gmail.com writes: Hi, I'm writing a test tool to simulate Web browser. Is there anyway to run JavaScript in python? Thanks in advance. Not really. Yes, you can invoke spidermonkey. But the crucial point about running JS is not executing JS, it's about having the *DOM* of the

Re: Interrput a thread

2011-01-03 Thread Diez B. Roggisch
gervaz ger...@gmail.com writes: On 31 Dic 2010, 23:25, Alice Bevan–McGregor al...@gothcandy.com wrote: On 2010-12-31 10:28:26 -0800, John Nagle said: Even worse, sending control-C to a multi-thread program is unreliable in CPython.  See http://blip.tv/file/2232410; for why.  It's

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 2, 5:55 pm, Gerry Reno gr...@verizon.net wrote: I tried printing sys.path and here is the output: ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk', '/usr/local/lib/python2.7/lib-old',

Re: CPython on the Web

2011-01-03 Thread Diez B. Roggisch
azakai alonmozi...@gmail.com writes: Hello, I hope this will be interesting to people here: CPython running on the web, http://syntensity.com/static/python.html That isn't a new implementation of Python, but rather CPython 2.7.1, compiled from C to JavaScript using Emscripten and LLVM. For

Re: Interrput a thread

2011-01-03 Thread gervaz
On 3 Gen, 17:47, de...@web.de (Diez B. Roggisch) wrote: gervaz ger...@gmail.com writes: On 31 Dic 2010, 23:25, Alice Bevan–McGregor al...@gothcandy.com wrote: On 2010-12-31 10:28:26 -0800, John Nagle said: Even worse, sending control-C to a multi-thread program is unreliable in

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 3:22 pm, gervaz ger...@gmail.com wrote: On 3 Gen, 17:47, de...@web.de (Diez B. Roggisch) wrote: gervaz ger...@gmail.com writes: On 31 Dic 2010, 23:25, Alice Bevan–McGregor al...@gothcandy.com wrote: On 2010-12-31 10:28:26 -0800, John Nagle said: Even worse, sending

Re: Interrput a thread

2011-01-03 Thread Adam Skutt
On Jan 3, 4:06 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Multiple processes, ok, but then regarding processes' interruption there will be the same problems pointed out by using threads? No.  Processes can be terminated easily on all major platforms.  See `os.kill`. Yes,

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:10 PM, azakai wrote: On Jan 2, 5:55 pm, Gerry Reno gr...@verizon.net wrote: I tried printing sys.path and here is the output: ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/', '/usr/local/lib/python2.7/plat-linux2', '/usr/local/lib/python2.7/lib-tk',

Re: Interesting bug

2011-01-03 Thread John Machin
On Jan 2, 12:22 am, Daniel Fetchinson fetchin...@googlemail.com wrote: An AI bot is playing a trick on us. Yes, it appears that the mystery is solved: Mark V. Shaney is alive and well and living in Bangalore :-) -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: A fun hack. Have you bothered to compare it to the PyPy javascript backend - perfomance-wise, that is? Diez I don't think that exists anymore. Didn't that get removed from PyPy about 2 years ago? Regards, Gerry --

Re: Interrput a thread

2011-01-03 Thread gervaz
On 3 Gen, 22:17, Adam Skutt ask...@gmail.com wrote: On Jan 3, 4:06 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Multiple processes, ok, but then regarding processes' interruption there will be the same problems pointed out by using threads? No.  Processes can be

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 4:17 pm, Adam Skutt ask...@gmail.com wrote: On Jan 3, 4:06 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Multiple processes, ok, but then regarding processes' interruption there will be the same problems pointed out by using threads? No.  Processes can be

SUNLisp 2: Josh vs. Kenny Flamewars Galore!!

2011-01-03 Thread kenny
All they agree on is Common Lisp! Come join the Yobbos of MCNA at the Frog Toad for booze, vino, and great food and knock down drag out debates galore on everything from Cells to Lisp IDEs: When: Tomorrow Tuesday, at 7pm Where: http://www.thefrogandtoadpub.com/ HK --

Re: CPython on the Web

2011-01-03 Thread Diez B. Roggisch
Gerry Reno gr...@verizon.net writes: On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: A fun hack. Have you bothered to compare it to the PyPy javascript backend - perfomance-wise, that is? Diez I don't think that exists anymore. Didn't that get removed from PyPy about 2 years ago?

Re: Interrput a thread

2011-01-03 Thread Diez B. Roggisch
gervaz ger...@gmail.com writes: On 3 Gen, 22:17, Adam Skutt ask...@gmail.com wrote: On Jan 3, 4:06 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Multiple processes, ok, but then regarding processes' interruption there will be the same problems pointed out by using

Re: Interrput a thread

2011-01-03 Thread Adam Skutt
On Jan 3, 5:05 pm, gervaz ger...@gmail.com wrote: Regarding the case pointed out by Adam I think the best way to deal with it is to create a critical section so that the shared memory will be updated in an atomic fashion. Ok, so if the OS kills the process between taking the lock and releasing

Re: CPython on the Web

2011-01-03 Thread Gerry Reno
On 01/03/2011 05:55 PM, Diez B. Roggisch wrote: Gerry Reno gr...@verizon.net writes: On 01/03/2011 03:13 PM, Diez B. Roggisch wrote: A fun hack. Have you bothered to compare it to the PyPy javascript backend - perfomance-wise, that is? Diez I don't think that exists

Re: Interrput a thread

2011-01-03 Thread Adam Skutt
On Jan 3, 5:24 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Of course.  The whole point here is not about threads vs processes. It's about shared memory concurrency vs non-shared memory concurrency.  You can implement both with threads and both with processes, but threads are

Re: SUNLisp 2: Josh vs. Kenny Flamewars Galore!!

2011-01-03 Thread Thomas 'PointedEars' Lahn
kenny crossposted bullshit over 5 newsgroups again: […] JFTR: *PLONK* -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread astar
On Jan 2, 4:58 pm, pyt...@bdurham.com wrote: Azakai/Gerry, Errors when using Firefox 3.6.3: firefox 3.6.13 openbsd i386 4.8 -current error console has some errors: editor not defined module not define too much recursion nothing interested happened on the web page, but wonderful project

Python comparison matrix

2011-01-03 Thread Alex Willmer
I've created a spreadsheet that compares the built ins, features and modules of the CPython releases so far. For instance it shows: - basestring was first introduced at version 2.3 then removed in version 3.0 - List comprehensions (PEP 202) were introduced at version 2.0. - apply() was a built

Re: Python comparison matrix

2011-01-03 Thread Antoine Pitrou
On Mon, 3 Jan 2011 16:17:00 -0800 (PST) Alex Willmer a...@moreati.org.uk wrote: I've created a spreadsheet that compares the built ins, features and modules of the CPython releases so far. For instance it shows: A couple of errors: - BufferError is also in 3.x - IndentationError is also in

Re: Python comparison matrix

2011-01-03 Thread python
Alex, I think this type of documentation is incredibly useful! Is there some type of key which explains symbols like !, *, f, etc? Thanks for sharing this work with the community. Malcolm -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 12:13 pm, de...@web.de (Diez B. Roggisch) wrote: A fun hack. Have you bothered to compare it to the PyPy javascript backend - perfomance-wise, that is? Gerry already gave a complete and accurate answer to the status of this project in comparison to PyPy and pyjamas. Regarding

Re: Python comparison matrix

2011-01-03 Thread Alex Willmer
On Tuesday, January 4, 2011 12:54:24 AM UTC, Malcolm wrote: Alex, I think this type of documentation is incredibly useful! Thank you. Is there some type of key which explains symbols like !, *, f, etc? There is a key, it's the second tab from the end, '!' wasn't documented and I forgot

Re: Python comparison matrix

2011-01-03 Thread Alex Willmer
Thank you Antoine, I've fixed those errors. Going by the docs, I have VMSError down as first introduced in Python 2.5. -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 12:23 pm, Gerry Reno gr...@verizon.net wrote: On 01/03/2011 03:10 PM, azakai wrote: On Jan 2, 5:55 pm, Gerry Reno gr...@verizon.net wrote: I tried printing sys.path and here is the output: ['', '/usr/local/lib/python27.zip', '/usr/local/lib/python2.7/',

Re: Multiple instances and wrong parental links

2011-01-03 Thread DevPlayer
Mere are my ramblings of a novice (bad) Hobbyst programmer. You mentioned that your having a hard time coming up with a solution to your complex problem. Complex means you are doing lots of different things to different things all over the place where timing is an issue. First it seems you are

Re: String building using join

2011-01-03 Thread Kushal Kumaran
On Mon, Jan 3, 2011 at 3:07 AM, gervaz ger...@gmail.com wrote: On 2 Gen, 19:14, Emile van Sebille em...@fenx.com wrote: snip class Test:       def __init__(self, v1, v2):           self.v1 = v1           self.v2 = v2 t1 = Test(hello, None) t2 = Test(None, ciao) t3 = Test(salut, hallo)

Re: Python comparison matrix

2011-01-03 Thread Tomasz Rola
On Mon, 3 Jan 2011, Alex Willmer wrote: I've created a spreadsheet that compares the built ins, features and modules of the CPython releases so far. For instance it shows: [...] I gathered the data from the documentation at python.org. It's work in progress so there are plenty of rough

Re: CPython on the Web

2011-01-03 Thread MrJean1
FireFox 3.6.13 on MacOS X Tiger (10.4.11) fails: Error: too much recursion Error: Modules is not defined Source File: http://synthensity.com/static/python.html /Jean On Jan 2, 11:26 pm, Wolfgang Strobl ne...@mystrobl.de wrote: azakai alonmozi...@gmail.com: On Jan 2, 4:58 pm,

Re: list 2 dict?

2011-01-03 Thread DevPlayer
An adaptation to Hrvoje Niksic's recipe Use a dictionary comprehention instead of a list comprehension or function call: lyst = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b'] it = iter( lyst ) dyct = {i:it.next() for i in it} # I'm using {} and not [] for those with tiny fonts. #print dyct {8: 'b', 1: 2,

Re: CPython on the Web

2011-01-03 Thread MrJean1
FYI, The example http://syntensity.com/static/python.html works fine in Safari 4.1.3 on MacOS X Tiger (10.4.11). /Jean On Jan 3, 5:59 pm, azakai alonmozi...@gmail.com wrote: On Jan 3, 12:23 pm, Gerry Reno gr...@verizon.net wrote: On 01/03/2011 03:10 PM, azakai wrote: On Jan 2,

Re: list 2 dict?

2011-01-03 Thread Paul Rubin
Octavian Rasnita orasn...@gmail.com writes: If I want to create a dictionary from a list... l = [1, 2, 3, 4, 5, 6, 7, 'a', 8, 'b'] dict(l[i:i+2] for i in xrange(0,len(l),2)) seems simplest to me. -- http://mail.python.org/mailman/listinfo/python-list

Re: CPython on the Web

2011-01-03 Thread John Nagle
On 1/1/2011 11:26 PM, azakai wrote: Hello, I hope this will be interesting to people here: CPython running on the web, http://syntensity.com/static/python.html That isn't a new implementation of Python, but rather CPython 2.7.1, compiled from C to JavaScript using Emscripten and LLVM. For more

Re: Interrput a thread

2011-01-03 Thread Jean-Paul Calderone
On Jan 3, 6:17 pm, Adam Skutt ask...@gmail.com wrote: On Jan 3, 5:24 pm, Jean-Paul Calderone calderone.jeanp...@gmail.com wrote: Of course.  The whole point here is not about threads vs processes. It's about shared memory concurrency vs non-shared memory concurrency.  You can implement

Re: CPython on the Web

2011-01-03 Thread azakai
On Jan 3, 10:11 pm, John Nagle na...@animats.com wrote: On 1/1/2011 11:26 PM, azakai wrote: Hello, I hope this will be interesting to people here: CPython running on the web, http://syntensity.com/static/python.html That isn't a new implementation of Python, but rather CPython 2.7.1,

[issue10632] multiprocessing generates a fatal error

2011-01-03 Thread Brian Quinlan
Changes by Brian Quinlan br...@sweetapp.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10632 ___ ___ Python-bugs-list

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
Etienne Robillard e...@gthcfoundation.org added the comment: On 02/01/11 10:50 PM, Glenn Linderman wrote: Glenn Linderman v+pyt...@g.nevcal.com added the comment: Rereading the doc link I pointed at, I guess detach() is part of the new API since 3.1, so doesn't need to be checked for in

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
Etienne Robillard e...@gthcfoundation.org added the comment: i'm thinking this issue is also well connected to: http://bugs.python.org/issue1573931 so a backport of whatever solution comes to 3.2 would be a great addition to Python 2.6 as the very minimum, in order to satisfy minimal backward

[issue10348] multiprocessing: use SysV semaphores on FreeBSD

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Martin fixed test_concurrent_futures (#10798), this issue can be implemented later. -- type: - feature request versions: +Python 3.3 -Python 3.2 ___ Python tracker

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: http://docs.python.org/library/time.html#time-y2kissues Values 100–1899 are always illegal. Why are these values illegal? The GNU libc accepts year in [1900-2^31; 2^31-1] (tm_year in [-2147483648; 2147481747]). If

[issue10812] Add some posix functions

2011-01-03 Thread Ross Lagerwall
New submission from Ross Lagerwall rosslagerw...@gmail.com: Here's a patch that adds a bunch of posix functions that are missing from the posix module. Includes tests documentation. Tested on Linux FreeBSD. Specifically: futimes lutimes futimens fexecve

[issue10786] unittest.TextTextRunner does not respect redirected stderr

2011-01-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Thanks Terry. Done. Doc changes committed revision 87679. -- keywords: -patch nosy: -MarkRoddy, terry.reedy resolution: - accepted stage: needs patch - committed/rejected status: open - closed type: feature request - behavior

[issue10813] Suppress adding decimal point for places=0 in moneyfmt()

2011-01-03 Thread Carsten Grohmann
New submission from Carsten Grohmann carstengrohm...@gmx.de: Hi, the documentation of the decimal module contains a small recipe called moneyfmt() for format decimal values. It's very usefull. I'd like to suggest a small improvement because the output is incorrect with given dp=. (default)

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2011-01-03 Thread Ross Lagerwall
Ross Lagerwall rosslagerw...@gmail.com added the comment: I tested this on FreeBSD 8.1 - it outputs 'hello world'. I think this should be closed - i think the os.exec* functions should mirror the operating system exec* functions. If the platform has a limitation then so be it. And it seems

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-01-03 Thread Mher Movsisyan
Mher Movsisyan mher.movsis...@gmail.com added the comment: Attached test case demonstrates the issue. -- nosy: +mher Added file: http://bugs.python.org/file20240/test_issue5162.py ___ Python tracker rep...@bugs.python.org

[issue5162] multiprocessing cannot spawn child from a Windows service

2011-01-03 Thread Mher Movsisyan
Mher Movsisyan mher.movsis...@gmail.com added the comment: Treating python services like frozen executables solves the issue. The patch is attached. -- Added file: http://bugs.python.org/file20241/forking_r87679.patch ___ Python tracker

[issue10060] python.exe crashes or hangs on help() modules when bad modules found

2011-01-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Dev: I have no idea how what you just posted relates to the subject of this issue. Could you clarify please? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10060

[issue10775] assertRaises as a context manager should accept a 'msg' keyword argument.

2011-01-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: I'm fine with this functionality being added in 3.3. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10775 ___

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: See e.g. http://www.python.org/dev/buildbot/all/builders/x86%20XP-4%203.1 test_time f:\dd\vctools\crt_bld\self_x86\crt\src\asctime.c(130) : Assertion failed: ( ( tb-tm_mday = 1 ) ( ( ( _days[ tb-tm_mon + 1 ] - _days[ tb-tm_mon ] ) =

[issue6800] os.exec* raises OSError: [Errno 45] Operation not supported in a multithreaded application

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Agreed, not a Python bug. -- nosy: +pitrou resolution: - rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6800

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Regression introduced by r87648 (issue #8013). -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___

[issue8013] time.asctime segfaults when given a time in the far future

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: test_time fails with an (C) assertion error on Windows: see issue #10814. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8013

[issue10812] Add some posix functions

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: First couple comments: - you don't have to modify Misc/NEWS yourself; it will probably make patch maintenance easier - it would seem more natural for readv() to take a sequence of writable buffers (such as bytearrays) instead; I don't think the

[issue10815] Write to /dev/full does not raise IOError

2011-01-03 Thread Michal Vyskocil
New submission from Michal Vyskocil mvysko...@suse.cz: Write to /dev/full in python3 don't raise IOError. Python2 works as expected, the close call causes an IOError exception with no space left on device message. $ python Python 2.7 (r27:82500, Aug 07 2010, 16:54:59) [GCC] on linux2 Type

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: * r87680 fixes test_sockserver * r87681 fixes test_timeout * r87682 fixes test_tk * r87683 fixes test_xmlrpc * r87684 fixes test_socket r87682, r87683, r87684 are patches from Nadeem Vawda. On my Linux box, I am unable to get

[issue10815] Write to /dev/full does not raise IOError

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue is fixed in Python 3.2 beta 2: $ ./python f=open(/dev/full, wb) f.write(b'x') 1 f.close() IOError: [Errno 28] No space left on device ^D sys:1: ResourceWarning: unclosed file _io.BufferedWriter

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Etienne: since this is about solving a 3.x specific problem, it will not get backported. Issue 1573931 looks unrelated to me at a quick glance. FYI, you will find that you *do* have detach in 2.7 if you open a file using the io

[issue10806] Subprocess error if fds 0,1,2 are closed

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This new patch makes tests more comprehensive (closes all combinations of the three standard fds). -- Added file: http://bugs.python.org/file20242/sp3.patch ___ Python tracker rep...@bugs.python.org

[issue10816] test_multiprocessing: unclosed sockets

2011-01-03 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: test_remote (__main__.WithManagerTestRemoteManager) ... /home/haypo/prog/GIT/py3k/Lib/multiprocessing/managers.py:812: ResourceWarning: unclosed socket.socket object, fd=8, family=2, type=1, proto=0 util.debug('... decref

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Etienne Robillard
Etienne Robillard e...@gthcfoundation.org added the comment: On 03/01/11 09:45 AM, R. David Murray wrote: R. David Murray rdmur...@bitdance.com added the comment: Etienne: since this is about solving a 3.x specific problem, it will not get backported. Issue 1573931 looks unrelated to me at

[issue6075] Patch for IDLE/OS X to work with Tk-Cocoa

2011-01-03 Thread Kevin Walzer
Kevin Walzer wordt...@users.sourceforge.net added the comment: Ned--thank you for reviewing, testing, and modifying the patch. I applied your revised version to my new install of Python 2.7.1 and it works fine. -- ___ Python tracker

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Changes by Alexander Belopolsky belopol...@users.sourceforge.net: -- assignee: - belopolsky ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___

[issue10812] Add some posix functions

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, I get the following failures under OpenSolaris: == ERROR: test_lutimes (test.test_posix.PosixTester)

[issue10502] Add unittestguirunner to Tools/

2011-01-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: Committed revision 87685. It would be nice to see this included in the Mac OS X and Windows distribution, but I guess that applies to the *whole* Tools/ directory. -- resolution: - accepted stage: needs patch -

[issue10816] test_multiprocessing: unclosed sockets

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Ok, I found it: fixed by r87686 -- resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10816

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Robert Cheng
New submission from Robert Cheng robert.h.ch...@gmail.com: When reporthook is None, size variable is not computed and defaulted to -1. Thus, without reporthook, ContentTooShortError is not raised even when Content-Length header is supplied and download size is less than expected amount,

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Giampaolo Rodola'
Changes by Giampaolo Rodola' g.rod...@gmail.com: -- nosy: -giampaolo.rodola ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4953 ___ ___

[issue10817] urllib.request.urlretrieve never raises ContentTooShortError if no reporthook

2011-01-03 Thread Senthil Kumaran
Changes by Senthil Kumaran orsent...@gmail.com: -- assignee: - orsenthil nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10817 ___

[issue10812] Add some posix functions

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: According to the posix_fallocate() man page under OpenSolaris: EINVALThe len argument is less than or equal to zero, or the offset argument is less than zero, or the underlying file system does not

[issue9115] test_site: support for systems without unsetenv

2011-01-03 Thread Zsolt Cserna
Zsolt Cserna zsolt.cse...@morganstanley.com added the comment: I confirm that this patch fixes the problem. Thanks. On my systems I haven't seen other bugs related to unsetenv - however, it might be useful to fix subprocess.Popen and subprocess.call to use the os.environ by default (but this

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: Can someone with a windows box test time.asctime((12345, 1, 1, 0, 0, 0, 0, 0, 0))? If that crashes as well, can you tell which part of ( ( tb-tm_mday = 1 ) ( ( ( _days[ tb-tm_mon + 1 ] - _days[ tb-tm_mon ] ) =

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Andreas Stührk
Changes by Andreas Stührk andy-pyt...@hammerhartes.de: -- nosy: +Trundle ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: The pydoc module has two DocHandler classes and two DocServer classes. I think that they can be easily factorized. DocServer may also use serve_forever()+shutdown() instead of serve_until_quit()+quit flag, to be able to wait the

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I opened this issue because I had to fix a bug twice in pydoc: r87687 (fix a ResourceWarning(unclosed socket)). -- ___ Python tracker rep...@bugs.python.org

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: Alexander: PCbuild\amd64\python_d.exe Python 3.2b2+ (py3k, Jan 3 2011, 10:24:18) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or license for more information. import time [54931 refs] time.asctime((12345, 1, 1, 0, 0, 0, 0,

[issue10512] regrtest ResourceWarning - unclosed sockets and files

2011-01-03 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: * r87686 fixes multiprocessing * r87687 fixes pydoc * r87688 fixes test_subprocess Remaining ResourceWarning warnings: * test_imaplib * test_urllibnet * test_urllib2net -- ___

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 11:26 AM, Brian Curtin rep...@bugs.python.org wrote: .. PCbuild\amd64\python_d.exe Python 3.2b2+ (py3k, Jan  3 2011, 10:24:18) [MSC v.1500 64 bit (AMD64)] on win32 Type help, copyright, credits or

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Brian Curtin
Brian Curtin cur...@acm.org added the comment: No crash on 0-day or 300,000. I bumped it up to 3,000,000 and got a UnicodeDecodeError, although I'm not sure of the relevance of that to this issue. time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) 'Mon Jan 01 00:00:00 345' [54935 refs]

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 11:43 AM, Brian Curtin rep...@bugs.python.org wrote: .. No crash on 0-day or 300,000. I bumped it up to 3,000,000 and got a UnicodeDecodeError, although I'm not sure of the relevance of that to

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: This is under 3.1, not 3.2. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10814 ___ ___

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I can reproduce under Windows 7, 32-bit debug build, with the following line: time.asctime((12345, 1, 0, 0, 0, 0, 0, 0, 0)) Apparently, the debugger tells me that tb-tm_mday is 0. Actually, most of the tb fields are 0 except tm_year (10445),

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: I committed a a fix for the test in r87690. If this fixes the buildbot, I'll backport to 2.7 and call it a day for 3.2. For 3.2 a proper year range check will be added to close issue 8013. --

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Btw, I have a failed assertion in the test suite, with time.ctime(1e12): File: loctim64.c Line: 78 Expression: (*ptime = _MAX__TIME64_T) This is a recent py3k, compiled with VS2005. -- ___

[issue4953] cgi module cannot handle POST with multipart/form-data in 3.0

2011-01-03 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: So then David, is your suggestion to use sys.stdin = sys.stdin.detach() and you claim that the Windows-specific hacks are not needed in 3.x land? The are, in 2.x land, I have proven empirically, but haven't been able to test CGI forms

[issue1674555] sys.path in tests contains system directories

2011-01-03 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Apparently this patch isn't sufficient for test___all__. Please create empty _xmlplus directory (without __init__.py) in site-packages directory appropriate for given sys.prefix (e.g.

[issue10814] assertion failed on Windows buildbots

2011-01-03 Thread Alexander Belopolsky
Alexander Belopolsky belopol...@users.sourceforge.net added the comment: On Mon, Jan 3, 2011 at 12:30 PM, Amaury Forgeot d'Arc rep...@bugs.python.org wrote: .. Btw, I have a failed assertion in the test suite, with time.ctime(1e12) This is from r87657. I commented on that change in msg125117.

[issue10818] pydoc: refactorize duplicate DocHandler and DocServer classes

2011-01-03 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- assignee: d...@python - components: -Documentation nosy: +eric.araujo, ron_adam -d...@python stage: - needs patch type: - feature request versions: -Python 3.2 ___ Python tracker

[issue10619] Failed module loading in test discovery loses traceback

2011-01-03 Thread Michael Foord
Michael Foord mich...@voidspace.org.uk added the comment: This doesn't appear to be true on py3k (traceback.format_exc is used to preserve the original traceback). Need to check on Python 2.7. -- versions: -Python 3.2 ___ Python tracker

  1   2   3   >