[RELEASED] Python 3.3.0 beta 2

2012-08-13 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On behalf of the Python development team, I'm happy to announce the second beta release of Python 3.3.0 -- a little later than originally scheduled, but much better for it. This is a preview release, and its use is not recommended in production

Python Game Programming Challenge (PyWeek) #15 is coming!

2012-08-13 Thread Richard Jones
The 15th Python Game Programming Challenge (PyWeek) is coming. It'll run from the 9th to the 16th of September: http://pyweek.org/ The PyWeek challenge: 1. Invites entrants to write a game in one week from scratch either as an individual or in a team, 2. Is intended to be challenging and fun,

combine modelformset and inlineformset in django views

2012-08-13 Thread Asif Jamadar
I have two models class A(models.Model): name = models.CharField(50) type = models.CharField(50) class B(models.Model): field1 = ForeignKeyField(A) value = IntegerField() I need to generate both formsets and inline formsets using the

[ANNOUNCE] Campaign to support the notmm project!

2012-08-13 Thread Etienne Robillard
Hi All, I'm raising a campaign to support the notmm project, a freely accessible open source project i created to develop an advanced web framework for Django. Furthermore the project is using ConfigObj internally for allowing flexible configuration and Cython for extending Django apps in C.

Re: Idle no longer works

2012-08-13 Thread jussij
On Saturday, August 11, 2012 4:09:16 PM UTC-7, Opap-OJ wrote: I can no longer open the Idle IDE for Python on Windows 7. .. Any idea why? It looks like your registry has changed. To fix this just use the Windows Explorer, click on a Python file and use the 'Open with, Choose default

Re: save dictionary to a file without brackets.

2012-08-13 Thread Steven D'Aprano
On Sun, 12 Aug 2012 17:15:12 -0700, alex23 wrote: On Aug 10, 7:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Well whatever you do *DON'T* mention Cython. I mentioned it just now but I think I've got away with it. While I'm not against threads straying off topic, you're beginning to

Re: Threads and sockets

2012-08-13 Thread Ulrich Eckhardt
Am 10.08.2012 15:01, schrieb loial: I am writing an application to send data to a printer port(9100) and then recieve PJL responses back on that port. Because of the way PJL works I have to do both in the same process(script). If I understand that right, you are opening a TCP connection, so

Re: Official reason for omitting inspect.currentcallable() ?

2012-08-13 Thread Steven D'Aprano
On Sun, 12 Aug 2012 23:06:19 +, kj wrote: Is there an *explicitly stated* reason (e.g. in a PEP, or in some python dev list message) for why the inspect module (at least for Python 2.7) does not include anything like a currentcallable() function that would *stably*[1] return the currently

testfixtures 2.3.5 Released!

2012-08-13 Thread Chris Withers
Hi All, I'm pleased to announce the release of testfixtures 2.3.5. testfixtures is a collection of helpers for writing succinct unit tests including help for: - Comparing objects and sequences Better feedback when the results aren't as you expected along with support for comparison of

Re: Official reason for omitting inspect.currentcallable() ?

2012-08-13 Thread Chris Angelico
On Mon, Aug 13, 2012 at 6:24 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sun, 12 Aug 2012 23:06:19 +, kj wrote: Is there an *explicitly stated* reason (e.g. in a PEP, or in some python dev list message) for why the inspect module (at least for Python 2.7) does not

How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Xantipius
subj -- http://mail.python.org/mailman/listinfo/python-list

Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Blind Anagram
I thought I would try out Python 3.3 beta 2. This works well so far but I keep getting the message: Exception KeyError: KeyError(6308,) in module 'threading' from 'c:\\Program Files\\Python33\\lib\\threading.py' ignored after some of my python code completes. Is this an issue worth

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Steven D'Aprano
On Mon, 13 Aug 2012 03:18:49 -0700, Xantipius wrote: subj The same way as you compressed it, only in reverse. When you ask a sensible question, I'm sure that somebody will give you a sensible answer. -- Steven -- http://mail.python.org/mailman/listinfo/python-list

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Chris Angelico
On Mon, Aug 13, 2012 at 8:36 PM, Blind Anagram non...@nowhere.com wrote: I thought I would try out Python 3.3 beta 2. This works well so far but I keep getting the message: Exception KeyError: KeyError(6308,) in module 'threading'from 'c:\\Program Files\\Python33\\lib\\threading.py'

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Blind Anagram
Chris Angelico wrote in message news:mailman.3222.1344856408.4697.python-l...@python.org... On Mon, Aug 13, 2012 at 8:36 PM, Blind Anagram non...@nowhere.com wrote: I thought I would try out Python 3.3 beta 2. This works well so far but I keep getting the message: Exception KeyError:

Re: Running Python web apps on shared ASO servers?

2012-08-13 Thread Gilles
On Sun, 12 Aug 2012 22:26:19 +0100, Tim Golden m...@timgolden.me.uk wrote: Just to make a point: one person's isn't a good solution is another person's works perfectly well for me. Modern servers are really quite quick: the cost of starting up a Python process and generating an HTML page can be

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Chris Angelico
On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram non...@nowhere.com wrote: Here is a fairly short bit of code which produces the exception: for pre in ('12', '13', '14', '15', '21' ): n = int(pre + '543') s = str(n * n) if len(set(s)) == 9: print(n, s) Interesting. I just downloaded a

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Steven D'Aprano
On Mon, 13 Aug 2012 12:24:55 +0100, Blind Anagram wrote: Here is a fairly short bit of code which produces the exception: for pre in ('12', '13', '14', '15', '21' ): n = int(pre + '543') s = str(n * n) if len(set(s)) == 9: print(n, s) Um, I don't think so. for pre in

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Chris Angelico
On Mon, Aug 13, 2012 at 9:38 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Since your code doesn't even import threading, let alone use it, I can't imagine how you get an error in threading. Hey, I try not to get scornful until at least the sixth post :) ChrisA --

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Ben Finney
Xantipius r...@bk.ru writes: subj resp -- \ “What is needed is not the will to believe but the will to find | `\ out, which is the exact opposite.” —Bertrand Russell, _Free | _o__) Thought and Official Propaganda_, 1928 | Ben Finney --

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Blind Anagram
Chris Angelico wrote in message news:mailman.3223.1344857956.4697.python-l...@python.org... On Mon, Aug 13, 2012 at 9:24 PM, Blind Anagram non...@nowhere.com wrote: Here is a fairly short bit of code which produces the exception: for pre in ('12', '13', '14', '15', '21' ): n = int(pre +

Re: Threading KeyError in Python 3.3 beta 2?

2012-08-13 Thread Chris Angelico
On Mon, Aug 13, 2012 at 9:51 PM, Blind Anagram non...@nowhere.com wrote: Thanks to you both for your responses. Its an IDE issue of some kind (I am using WING). When I run under a command prompt (or IDLE) all is well. Next time, do mention that sort of environmental consideration in the

Re: decoding a byte array that is unicode escaped?

2012-08-13 Thread strong . drug
пятница, 6 ноября 2009 г., 12:48:47 UTC+4 пользователь sam написал: I am simply trying to display this copyright symbol on a webpage, so how do I encode the byte array to utf-8 given that it is 'escape encoded' in the above way? I tried: responseByteArray.decode('utf-8') and

Re: save dictionary to a file without brackets.

2012-08-13 Thread Mark Lawrence
On 13/08/2012 01:15, alex23 wrote: On Aug 10, 7:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Well whatever you do *DON'T* mention Cython. I mentioned it just now but I think I've got away with it. While I'm not against threads straying off topic, you're beginning to come across as a

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Mark Lawrence
On 13/08/2012 11:18, Xantipius wrote: subj Either a) write some code and when and if it fails give us a small code snippet that demonstates the problem with the complete traceback. or b) state how much you are willing to pay for someone here to come up with a solution for you. --

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread PythonAB
On 13 aug 2012, at 14:40, Mark Lawrence wrote: On 13/08/2012 11:18, Xantipius wrote: subj Either a) write some code and when and if it fails give us a small code snippet that demonstates the problem with the complete traceback. or b) state how much you are willing to pay for

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Miki Tebeka
Have a look at PyMedia. -- http://mail.python.org/mailman/listinfo/python-list

ANN: psutil 0.6.0 released

2012-08-13 Thread Giampaolo Rodolà
Hi folks, I'm pleased to announce the 0.6.0 release of psutil: http://code.google.com/p/psutil/ This is one of the best releases so far as it addresses two important issues: system memory functions management and permission errors occurring on Windows and OSX. === Memory functions ===

Re: Official reason for omitting inspect.currentcallable() ?

2012-08-13 Thread kj
In mailman.3221.1344847903.4697.python-l...@python.org Chris Angelico ros...@gmail.com writes: I'm not familiar with it by that name, but Pike's this_function is what the OP's describing. You got it. It's a useful construct in theory when you want to write in recursion, which was part of the

print(....,file=sys.stderr) buffered?

2012-08-13 Thread Helmut Jarausch
Hi, for tracing purposes I have added some print outs like print('+++ before calling foo',file=sys.stderr) x=foo(..) print('--- after calling foo', and within 'foo' print(' entering foo ...',file=sys.stderr) Now, when executing this, I always get +++ before calling foo --- after calling foo

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Ramchandra Apte
As far as I know, stdout is usually buffered (not necessary) in both C++ and Python stderr is non-buffered in both C++ and Python (I can't imagine the point of stderr if it were buffered) Even with this, stdout usually come immediately - the situation you have shouldn't happen. Are you using an

Re: Does anyone have an activate script for portable python?

2012-08-13 Thread Ramchandra Apte
PS:virtualenv is added to the stdlib in Python 3.3 On 13 August 2012 05:42, alex23 wuwe...@gmail.com wrote: On Aug 12, 9:09 am, Gelonida N gelon...@gmail.com wrote: In Pythons installed with virtualenv there is on windows an activate.bat script, that can be used to setup the cmd-shell such,

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Grant Edwards
On 2012-08-13, Helmut Jarausch jarau...@skynet.be wrote: Hi, for tracing purposes I have added some print outs like print('+++ before calling foo',file=sys.stderr) x=foo(..) print('--- after calling foo', and within 'foo' print(' entering foo ...',file=sys.stderr) Now, when executing

Re: save dictionary to a file without brackets.

2012-08-13 Thread alex23
On Aug 13, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Why on your say so? My mistake, I didn't realise you wanted to sound so tedious. Knock yourself out. -- http://mail.python.org/mailman/listinfo/python-list

Re: save dictionary to a file without brackets.

2012-08-13 Thread alex23
On Aug 13, 6:05 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Chill out Alex, it's all good. Mark was channelling a famous scene from Fawlty Towers, staring Monty Python's own John Cleese, hence it is on- topic, for the sillier definitions of on-topic. Thank you, yes, I get

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Helmut Jarausch
On Mon, 13 Aug 2012 15:43:31 +, Grant Edwards wrote: On 2012-08-13, Helmut Jarausch jarau...@skynet.be wrote: Hi, for tracing purposes I have added some print outs like print('+++ before calling foo',file=sys.stderr) x=foo(..) print('--- after calling foo', Sorry, this is a cut'n

Re: save dictionary to a file without brackets.

2012-08-13 Thread rusi
On Aug 13, 1:05 pm, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: Chill out Alex, it's all good. Mark was channelling a famous scene from Fawlty Towers, staring Monty Python's own John Cleese, hence it is on- topic, for the sillier definitions of on-topic. Ha! Thanks for that

Re: print(....,file=sys.stderr) buffered?

2012-08-13 Thread Jerry Hill
On Mon, Aug 13, 2012 at 11:16 AM, Helmut Jarausch jarau...@skynet.be wrote: Now, when executing this, I always get +++ before calling foo --- after calling foo entering foo ... Can you give us a piece of code we can run that produces this output for you? You gave us an outline in your

Sharing code between different projects?

2012-08-13 Thread andrea crotti
I am in the situation where I am working on different projects that might potentially share a lot of code. I started to work on project A, then switched completely to project B and in the transiction I copied over a lot of code with the corresponding tests, and I started to modify it. Now it's

Re: save dictionary to a file without brackets.

2012-08-13 Thread Mark Lawrence
On 13/08/2012 17:14, alex23 wrote: On Aug 13, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Why on your say so? My mistake, I didn't realise you wanted to sound so tedious. Knock yourself out. Yes m'lud. Do I lick your boots or polish them? -- Cheers. Mark Lawrence. --

Re: save dictionary to a file without brackets.

2012-08-13 Thread Mark Lawrence
On 13/08/2012 01:15, alex23 wrote: On Aug 10, 7:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Well whatever you do *DON'T* mention Cython. I mentioned it just now but I think I've got away with it. While I'm not against threads straying off topic, you're beginning to come across as a

Re: Idle no longer works

2012-08-13 Thread Terry Reedy
On 8/13/2012 1:43 PM, Dennis Lee Bieber wrote: On Mon, 13 Aug 2012 00:11:06 -0700 (PDT), jus...@zeusedit.com declaimed the following in gmane.comp.python.general: On Saturday, August 11, 2012 4:09:16 PM UTC-7, Opap-OJ wrote: I can no longer open the Idle IDE for Python on Windows 7. .. Any

Re: Does anyone have an activate script for portable python?

2012-08-13 Thread Gelonida N
On 08/13/2012 02:12 AM, alex23 wrote: On Aug 12, 9:09 am, Gelonida N gelon...@gmail.com wrote: In Pythons installed with virtualenv there is on windows an activate.bat script, that can be used to setup the cmd-shell such, that the search path for python and pythor elated tools (pip /

Re: Sharing code between different projects?

2012-08-13 Thread Rob Day
I'd just create a module - called shared_utils.py or similar - and import that in both projects. It might be a bit messy if there's no 'unifying theme' to the module - but surely it'd be a lot less messy than your TempDirectory class, and anyone else who knows Python will understand 'import

Re: Sharing code between different projects?

2012-08-13 Thread Chris Angelico
On Tue, Aug 14, 2012 at 2:53 AM, andrea crotti andrea.crott...@gmail.com wrote: The problem is that there are functions/classes from many domains, so it would not make much sense to create a real project, and the only name I could give might be utils or utilities.. There's actually much merit

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Xantipius
On Aug 13, 3:40 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/08/2012 11:18, Xantipius wrote: subj Either a) write some code and when and if it fails give us a small code snippet that demonstates the problem with the complete traceback. or b) state how much you are willing to

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Chris Angelico
On Tue, Aug 14, 2012 at 9:00 AM, Xantipius r...@bk.ru wrote: Mark, in regard your last remark: it's just a recreation for me. Nothing more in it. I like to put some weird and useless problems before myself. In that case, I strongly recommend that you write some code instead of throwing

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Mark Lawrence
On 14/08/2012 00:00, Xantipius wrote: On Aug 13, 3:40 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/08/2012 11:18, Xantipius wrote: subj Either a) write some code and when and if it fails give us a small code snippet that demonstates the problem with the complete traceback. or

Re: save dictionary to a file without brackets.

2012-08-13 Thread alex23
On Aug 14, 3:43 am, Mark Lawrence breamore...@yahoo.co.uk wrote: On 13/08/2012 01:15, alex23 wrote: On Aug 10, 7:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Well whatever you do *DON'T* mention Cython. I mentioned it just now but I think I've got away with it. While I'm not

Re: save dictionary to a file without brackets.

2012-08-13 Thread Steven D'Aprano
On Mon, 13 Aug 2012 18:07:26 +0100, Mark Lawrence wrote: On 13/08/2012 17:14, alex23 wrote: On Aug 13, 10:37 pm, Mark Lawrence breamore...@yahoo.co.uk wrote: Why on your say so? My mistake, I didn't realise you wanted to sound so tedious. Knock yourself out. Yes m'lud. Do I lick your

Re: How to uncompress a VOB file? (Win XP)

2012-08-13 Thread Steven D'Aprano
On Tue, 14 Aug 2012 01:34:46 +0100, Mark Lawrence wrote: When did you seek my permission to call me by my forename? Sheesh. It's 2012, not 1812. If you sign your posts with your full name, you have to expect that people will call you Mark rather than Mr Lawrence or Lord High Mucky-Muck Grand

how to call perl script from html using python

2012-08-13 Thread mullapervez
Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez -- http://mail.python.org/mailman/listinfo/python-list

Re: how to call perl script from html using python

2012-08-13 Thread Simon Cropper
On 14/08/12 15:12, mullaper...@gmail.com wrote: Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez Google you question. Many solutions already exist on the Internet. -- Cheers Simon Simon Cropper

Re: how to call perl script from html using python

2012-08-13 Thread mullapervez
On Tuesday, August 14, 2012 10:42:48 AM UTC+5:30, mulla...@gmail.com wrote: Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez Hey Simon, Thank You for your mail and time,

Re: how to call perl script from html using python

2012-08-13 Thread Simon Cropper
On 14/08/12 15:31, mullaper...@gmail.com wrote: On Tuesday, August 14, 2012 10:42:48 AM UTC+5:30, mulla...@gmail.com wrote: Hi, I wanna call perl script in HTML form n store that data in DB using Python. How can i do this...?? Please help me Thank you Pervez Hey Simon, Thank

[issue13742] Add a key parameter (like sorted) to heapq.merge

2012-08-13 Thread Simon Sapin
Simon Sapin added the comment: I just remembered about this. I suppose it is too late for 3.3? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13742 ___

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread Juan Javier
New submission from Juan Javier: I think it will be useful to have a decorator like this one on the threading module: def synchronized(func): A decorator to make a function execution synchronized. Examples: @synchronized def foo(): pass class Foo: def

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
New submission from Florent Xicluna: Hello, I noticed a large memory consumption in my application. I tracked it down to be a problem with garbage collection of generator locals. The issue was noticed in 2.6 first. Then I reproduced it in 2.7. The test case finds some leak in 3.3 too, it

[issue15564] cgi.FieldStorage should not call read_multi on files

2012-08-13 Thread patrick vrijlandt
patrick vrijlandt added the comment: I must admit my usage case is a hack, but the summary is: view a page on one computer, process it on another computer; like sending the page to a friend, with friend - self and send - upload. I found one other victim in python

[issue15624] clarify io.TextIOWrapper newline documentation

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: For me input means «reading from» and output — «writing to». Nevertheless I'm ok with you suggestion. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15624

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- title: clarify io.TextIOWrapper newline documentation - clarify newline documentation for open and io.TextIOWrapper. ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15624

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Close as fixed. Thanks. -- resolution: - fixed stage: - committed/rejected status: open - closed versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15624

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5b629e9fde61 by Andrew Svetlov in branch '3.2': Issue #15624: clarify newline documentation for open and io.TextIOWrapper http://hg.python.org/cpython/rev/5b629e9fde61 New changeset 9e098890ea2c by Andrew Svetlov in branch 'default': Issue #15624:

[issue8800] add threading.RWLock

2012-08-13 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I should add that on Windows, the new SRW that is part of Vista and Windows 7, uses locking, that is it favors neither readers or writers. It appears that nowadays the complex semantics of RWLocks have not really proven worthwile. See

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15629 ___ ___

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread Hynek Schlawack
Hynek Schlawack added the comment: Silence means consent, so I will supply a patch as soon as 3.4 is open. Meanwhile, I reworded the docs for os.makedirs, the patch is attached. Please have a look at it so we can get it in for 3.3. -- keywords: +patch stage: needs patch - patch review

[issue15624] clarify newline documentation for open and io.TextIOWrapper.

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Thanks a lot, Andrew. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15624 ___ ___ Python-bugs-list mailing

[issue15636] base64.decodebytes is only available in Python3.1+

2012-08-13 Thread Andrew Scheller
New submission from Andrew Scheller: According to the documentation ( http://docs.python.org/py3k/library/base64.html#base64.decodebytes ) both the decodebytes and the deprecated decodestring methods are available in the base64 module in Python3.x However in Python3.0 (I'm testing with

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Do you mean to mention stdin as well as stdout/stderr? It will be nice. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15561 ___

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: I don't mean perlbrew, but homebrew (an OS X package manager to install from source). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15635 ___

[issue15635] memory leak with generators

2012-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: Though, I cannot reproduce on Debian Squeeze (2.6.6 deb or 2.7 from source) or Ubuntu (2.7.2+ or 3.2). Someone on OS X might confirm the same issue. This is python 2.7.3 installed from source (using perlbrew) and GCC 4.2.1. The output of the script is: $

[issue15555] Default newlines of io.TextIOWrapper

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: It doesn't. _io can be fixed to directly support os.linesep, but I doubt if anybody really need it. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: Yes, that too. :) I am working on it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15561 ___ ___

[issue15555] Default newlines of io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: I think it can be useful for testing reasons (e.g. testing that os.linesep is respected by certain code). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1

[issue15637] Segfault reading null VMA (works fine in python 2.x)

2012-08-13 Thread Alberto Milone
New submission from Alberto Milone: The attached test case works fine in Python 2.7 but causes Pyhton 3.2 to segfault. -- components: ctypes files: randr_test messages: 168087 nosy: albertomilone priority: normal severity: normal status: open title: Segfault reading null VMA (works

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: I can reproduce this on an OSX 10.8 system, both using python 2.7 and python 3.3. The growth is significantly less using python 3.3. What's odd is that the growth does not occur when both test_iter calls use 124 as the argument (or larger values). If I'd

[issue15635] memory leak with generators

2012-08-13 Thread Ronald Oussoren
Ronald Oussoren added the comment: BTW. I don't think this is a memory leak, the amount of memory used doesn't increase when there are more calls to test_iter(123). -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15635

[issue15509] webbrowser.open sometimes passes zero-length argument to the browser.

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Better to fix producer of empty lines than filter those ones. Keep in mind: there are several places there args list generated, probably you fix not all error sources. -- nosy: +asvetlov ___ Python tracker

[issue15629] Run doctests in Doc/*.rst as part of regrtest

2012-08-13 Thread R. David Murray
R. David Murray added the comment: That's exactly what Georg's suggestion is about. Sphinx does have a way to mark doctest snippets as run this, don't run this. I believe that requires using 'make doctest' as the runner, but I already think that is the way to go, as I said before.

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Chris Jerdonek
New submission from Chris Jerdonek: The io.TextIOWrapper documentation says that the write_through argument was added in version 3.3: Changed in version 3.3: The write_through argument has been added. http://docs.python.org/dev/library/io.html#io.TextIOWrapper However, it seems to be present

[issue13498] os.makedirs exist_ok documentation is incorrect, as is some of the behavior

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Silence doesn't mean consent, but it does mean you can go ahead and see if anyone complains :) I think your proposal is fine, but I'd prefer making the sentinels just IGNORE and FAIL. The module namespace means the names themselves don't have to be fully

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: For 3.2 to mention write_through, issue 15638 should probably be fixed first. I can create a patch for that first. -- dependencies: +incorrect version info for TextIOWrapper write_through docs ___ Python tracker

[issue15633] httplib.response is not closed after all data has been read

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Without a reproducible test case I doubt we are going to be able to solve this, but yes please provide what information you can for the record, in case someone else runs in to it in a more reproducible situation. -- nosy: +r.david.murray

[issue15639] csv.Error description is incorrectly broad

2012-08-13 Thread Xavier Morel
New submission from Xavier Morel: In both Python 2.7 and Python 3.x, csv.Error is documented as: Raised by any of the functions when an error is detected. As far as I can tell from using the module and looking at the code, this is completely incorrect. There is actually a single instance

[issue15592] subprocess.communicate() breaks on no input with universal newlines true

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: _communicate_with_select has the same problem as _communicate_with_poll. I don't understand why input has encoded if universal_newlines and passed unchanged otherwise. From my perspective input should be encoded (converted to bytes) if it is str regardless

[issue12623] universal newlines subprocess support broken with select- and poll-based communicate()

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12623 ___ ___

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Writing such a decorator is pretty trivial to do. On the other hand, I've done it often enough that I could be convinced it is useful to add. I think it would be better to have a decorator generator that takes a lock as its argument, however, since an

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread R. David Murray
R. David Murray added the comment: Oh, I misread your code. The code I'm working on uses the lock to serialize several different functions, and your decorator wouldn't work for that. -- ___ Python tracker rep...@bugs.python.org

[issue15595] subprocess.Popen(universal_newlines=True) does not work for certain locales

2012-08-13 Thread Chris Jerdonek
Changes by Chris Jerdonek chris.jerdo...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15595 ___ ___

[issue15635] memory leak with generators

2012-08-13 Thread R. David Murray
Changes by R. David Murray rdmur...@bitdance.com: -- nosy: +r.david.murray ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15635 ___ ___

[issue15604] PyObject_IsTrue failure checks

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15604 ___ ___

[issue15557] Tests for webbrowser module

2012-08-13 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15557 ___ ___

[issue15634] synchronized decorator for the threading module

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I'm not sure how useful that is in practice. Often you want to use the same lock accross several functions or methods. Also, I think it would be more accurate to call this serialized than synchronized. -- nosy: +jyasskin, pitrou

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread R. David Murray
R. David Murray added the comment: If I remember correctly it existed in one of the versions (python vs C) but not in both. Or, it existed but wasn't actually respected by one of the versions. -- nosy: +pitrou, r.david.murray ___ Python tracker

[issue15571] Python version of TextIOWrapper ignores write_through arg

2012-08-13 Thread Roundup Robot
Roundup Robot added the comment: New changeset ba055ccd99ef by Andrew Svetlov in branch 'default': Issue #15571: comment the fact what python impl of TextIOWrapper always works in write_throuth mode http://hg.python.org/cpython/rev/ba055ccd99ef -- nosy: +python-dev

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: The C version seems to have it in 3.2 as well: http://hg.python.org/cpython/file/5b629e9fde61/Modules/_io/textio.c#l818 Is it possible you were thinking of issue 15571 (not used in Python version but still respected)? --

[issue15571] Python version of TextIOWrapper ignores write_through arg

2012-08-13 Thread Andrew Svetlov
Andrew Svetlov added the comment: Patch applied -- nosy: +asvetlov resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15571

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: See 9144014028f3. It was part of a bugfix in the 3.2 branch, therefore it wasn't exposed as a public API. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15638

[issue15638] incorrect version info for TextIOWrapper write_through docs

2012-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - rejected stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15638 ___

[issue15561] update subprocess docs to reference io.TextIOWrapper

2012-08-13 Thread Chris Jerdonek
Chris Jerdonek added the comment: As I can see in subprocess.py TextIOWrapper is applied to stdin also in non-buffered (write_through=True) mode. In 3.2, I will not mention the write_through argument based on Antoine's response to issue 15638. --

  1   2   >