pyCologne Python User Group Cologne - Meeting, June 13, 6.30pm

2011-06-28 Thread Andi Albrecht
We will meet Wednesday, July, 13th starting about 6.30 pm - 6.45 pm at Room 0.14, Benutzerrechenzentrum (RRZK-B) University of Cologne, Berrenrather Str. 136, 50937 Köln, Germany On this month's agenda: - EuroPython review (Reimar Bauer, ...) - pylint and Django apps (!django-lint) (Andi

Seeking Feedback on Python Vulnerabilities Document

2011-06-28 Thread Kevin Coyne
All: I have recently completed a draft of Python. Vulnerability descriptions for the language for eventual submission to the International Organization for Standardization (ISO) Information and Communication Technologies (ICT) committee. This document enumerates the standard ways in which

ANN: PyIE - Python Inference Enginefd (0(

2011-06-28 Thread Dusty Higgins
O Qui3(8 573 _Dustin Higgins -- http://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation: http://www.python.org/psf/donations/

Trying to chain processes together on a pipeline

2011-06-28 Thread Andrew Berg
I'm working on an audio/video converter script (moving from bash to Python for some extra functionality), and part of it is chaining the audio decoder (FFmpeg) either into SoX to change the volume and then to the Nero AAC encoder or directly into the Nero encoder. This is the chunk of code from my

How to read barcoded value from PDF

2011-06-28 Thread Asif Jamadar
Hi, I have a PDF document which consist of barcode characters. Now how can I retrieve that bar-coded value programmatically. When I googled I found a tool called Pypdf which provides a function called 'PdfFileReader' To read the PDF file, but how can I read the barcode form the existing PDF.

How to read barcoded value from PDF

2011-06-28 Thread Asif Jamadar
Hi, I have a PDF document which consist of barcode characters. Now how can I retrieve that bar-coded value programmatically. When I googled I found a tool called Pypdf which provides a function called 'PdfFileReader' To read the PDF file, but how can I read the barcode form the existing PDF.

Re: Trying to chain processes together on a pipeline

2011-06-28 Thread Peter Otten
Andrew Berg wrote: I'm working on an audio/video converter script (moving from bash to Python for some extra functionality), and part of it is chaining the audio decoder (FFmpeg) either into SoX to change the volume and then to the Nero AAC encoder or directly into the Nero encoder. This is

Re: Trying to chain processes together on a pipeline

2011-06-28 Thread Andrew Berg
On 2011.06.28 01:32 AM, Peter Otten wrote: subprocess.call([ls], stdout=open(os.devnull, w)) 0 D'oh! Not sure why I was thinking os.devnull was a file object. :-[ Start with factoring out common code into a good old function. For some reason I was thinking I would have problems doing that, but

Re: Trying to chain processes together on a pipeline

2011-06-28 Thread Chris Rebert
On Mon, Jun 27, 2011 at 11:47 PM, Andrew Berg bahamutzero8...@gmail.com wrote: On 2011.06.28 01:32 AM, Peter Otten wrote: subprocess.call([ls], stdout=open(os.devnull, w)) 0 D'oh! Not sure why I was thinking os.devnull was a file object. :-[ On the bright side, I think in part due to this

Re: Trying to chain processes together on a pipeline

2011-06-28 Thread Thomas Rachel
Am 28.06.2011 07:57 schrieb Andrew Berg: I'm working on an audio/video converter script (moving from bash to Python for some extra functionality), and part of it is chaining the audio decoder (FFmpeg) either into SoX to change the volume and then to the Nero AAC encoder or directly into the Nero

Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work

2011-06-28 Thread mando
This is the result of the test you suggested to me. What do you think? Last login: Mon Jun 27 19:35:21 on ttys000 host220-186-dynamic:~ luca$ cd /Library/Frameworks/Python.framework/ Versions/2.6 host220-186-dynamic:2.6 luca$ cd ./lib/python2.6/lib-dynload/ host220-186-dynamic:lib-dynload luca$

Re: Trying to chain processes together on a pipeline

2011-06-28 Thread Andrew Berg
On 2011.06.28 02:44 AM, Thomas Rachel wrote: The way you work with the exception is not the very best - instead of parsing the stringified exception, you better would trigger on exc.winerror (it is an integer with the error number). Or, even better, just pas the error information contained

Re: module problem on windows 64bit

2011-06-28 Thread Christian Heimes
Am 27.06.2011 22:03, schrieb Peter Irbizon: well, my program exe generated from py2exe. I am running Python 2.7 on my win xp 32bit box then I compile my application with py2exe. After that I can use it on other computers (on 32bit everything works perfect) but on 64 bit windows I am getting

Re: Significant figures calculation

2011-06-28 Thread Steven D'Aprano
On Tue, 28 Jun 2011 01:16 pm Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 Is 0.0 one sig fig or two? (Just vaguely curious. Also curious as to whether a zero sig figures value is ever useful.) Two.

Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work

2011-06-28 Thread Ned Deily
In article 7e5a3cc6-93d0-4750-93cd-fe721960d...@u26g2000vby.googlegroups.com, mando mandol...@gmail.com wrote: This is the result of the test you suggested to me. What do you think? Last login: Mon Jun 27 19:35:21 on ttys000 host220-186-dynamic:~ luca$ cd

Re: How to read barcoded value from PDF

2011-06-28 Thread Robin Becker
On 28/06/2011 06:59, Asif Jamadar wrote: Hi, ... In Reportlab I can do the following code to generate barcode and to get the value of that barcode barcode=code39.Extended39(123456789,barWidth=0.2*mm,barHeight=8*mm) bc = Paragraph(Barcode value: %s %

Re: Significant figures calculation

2011-06-28 Thread Mel
Erik Max Francis wrote: Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 That's not really zero significant figures; without further qualification, it's one. Is 0.0 one sig fig or two? Two.

Re: Significant figures calculation

2011-06-28 Thread Chris Angelico
On Tue, Jun 28, 2011 at 9:47 PM, Mel mwil...@the-wire.com wrote: By convention, nobody ever talks about 1 x 9.97^6 . Unless you're a British politician of indeterminate party allegiance famous line, quoted as #6 in here:

Re: module problem on windows 64bit

2011-06-28 Thread Peter Irbizon
kinterbasdb's extension module _kinterbasdb.pyd depends on the shared library fbclient.dll. The Firebird client library is of the Firebird SQL server. As I already explained you have to install the 32bit (!) version of Firebird and enable the copy client dll to system32 option during the

Re: module problem on windows 64bit

2011-06-28 Thread Christian Heimes
Am 28.06.2011 14:59, schrieb Peter Irbizon: yes, that's right. but I am using embedable version of fbclient.dll so I don't need to install Firebird Sql Server package. all dlls are in my program folder even so it does not work. fbclient.dll may depend on more DLLs. Dependency walker is a great

Re: Mac OS X 10.6.6 and MacPyhton 2.6 idle doesn't work

2011-06-28 Thread mando
Why my post aren't here? -- http://mail.python.org/mailman/listinfo/python-list

Re: PyPad 2.7.1 Update 4 (Python on iPad and iPhone)

2011-06-28 Thread AlienBaby
On Jun 23, 2:07 pm, Jon Dowdall jon.dowdall+newsgr...@gmail.com wrote: Hi All, I'm pleased to announce that PyPad (Python environment for iOS) 2.7.1 Update 4 is now available in the iTunes App Store. New in this version is the ability to create custom modules. Modules can be independent or

Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
Hi all, newbie question here. I'm using python 2.7. I've built my first program to pull some info off the web, process it, and build dialpeers for a cisco router. I have 2 problems - the first is the formatting of printing the gathered information to a file. It seems to be inserting a new line

Re: Suppressing newline writing to file after variable

2011-06-28 Thread Noah Hall
On Tue, Jun 28, 2011 at 5:05 PM, Ellerbee, Edward eeller...@bbandt.com wrote: Hi all, newbie question here. I'm using python 2.7. I've built my first program to pull some info off the web, process it, and build dialpeers for a cisco router. I have 2 problems - the first is the formatting of

Using decorators with argument in Python

2011-06-28 Thread Jigar Tanna
I am new to Python and Django, was going through the concept of decorators where I came across a special case of using arguments with decorators Below is the code for memoization where I was looking at the concept... cache = {} def get_key(function, *args, **kw) : key = '%s. %s: ' %

Re: Using decorators with argument in Python

2011-06-28 Thread Lie Ryan
On 06/29/2011 02:52 AM, Jigar Tanna wrote: coming across to certain views from people, it is not a good practice to use decorators with arguments (i.e. @memoize() ) and instead it is good to just use @memoize. Can any of you guys explain me advantages and disadvantages of using each of

Re: Using decorators with argument in Python

2011-06-28 Thread Ian Kelly
On Tue, Jun 28, 2011 at 10:52 AM, Jigar Tanna poisonousratt...@gmail.com wrote: coming across to certain views from people, it is not a good practice to use decorators with arguments (i.e. @memoize() ) and instead it is good to just use @memoize. Can any of you guys explain me advantages and

RE: Suppressing newline writing to file after variable

2011-06-28 Thread Ellerbee, Edward
Thank you! That works perfect, I'll have to look into string formatting more. My next issue to solve I've been researching is: How to condense a group of numbers to a wildcard list. For example: 252205 252206 252208 252220 252221 25 252223 919745 919725 919785 704770 thru 704799 (all

Re: Significant figures calculation

2011-06-28 Thread Erik Max Francis
Mel wrote: Erik Max Francis wrote: Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 That's not really zero significant figures; without further qualification, it's one. Is 0.0 one sig fig or two? Two.

Re: Significant figures calculation

2011-06-28 Thread Erik Max Francis
Steven D'Aprano wrote: On Tue, 28 Jun 2011 01:16 pm Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 Is 0.0 one sig fig or two? (Just vaguely curious. Also curious as to whether a zero sig figures value is

Change the name with the random names in a text file

2011-06-28 Thread Amaninder Singh
Hi Guys, I am fairly new to the language and programing. I am trying to solve a problem in a text file. Where names are something like in this manner [**Name2 (NI) 98**] [**Last Name (STitle) 97**] [**First Name4 (NamePattern1) 93**] [**Last Name (NamePattern1) 94**] ([**Name (NI) 95**])

Re: Suppressing newline writing to file after variable

2011-06-28 Thread Noah Hall
On Tue, Jun 28, 2011 at 6:32 PM, Ellerbee, Edward eeller...@bbandt.com wrote: Thank you! That works perfect, I'll have to look into string formatting more. My next issue to solve I've been researching is: How to condense a group of numbers to a wildcard list. For example: 252205 252206

How to create n number of threads

2011-06-28 Thread hisan
How to create n number thread in python. i want iterate over the for loop and create a thread for each iteration . sample code for i in range(o,50): i want to create 50 thread here which call the same function. how start and stop each thread after completion --

what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Xah Lee
this will be of interest to those bleeding-edge pythoners. “what… is the airspeed velocity of an unladen swallow?” xahlee.org/funny/unladen_swallow.html Xah -- http://mail.python.org/mailman/listinfo/python-list

Re: How to create n number of threads

2011-06-28 Thread Ian Kelly
On Tue, Jun 28, 2011 at 1:33 PM, hisan santosh.s...@gmail.com wrote: How to create n number thread in python. i want iterate over the for loop and create a thread for each iteration . sample code  for i in range(o,50):  i want to create 50 thread here which call the same function. how start

Re: what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Alister Ware
On Tue, 28 Jun 2011 12:33:27 -0700, Xah Lee wrote: this will be of interest to those bleeding-edge pythoners. “what… is the airspeed velocity of an unladen swallow?” xahlee.org/funny/unladen_swallow.html Xah is that an African or European swallow? -- --

Re: what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Ian Kelly
On Tue, Jun 28, 2011 at 1:33 PM, Xah Lee xah...@gmail.com wrote: this will be of interest to those bleeding-edge pythoners. “what… is the airspeed velocity of an unladen swallow?” xahlee.org/funny/unladen_swallow.html More interesting to me is not the ad but that Wolfram Alpha will actually

how can I disable tkinter install?

2011-06-28 Thread Nat Echols
I am building Python 2.7.2 with a standard set of options as part of a nightly build system. Some of our machines apparently have the tk headers installed, so Python automatically builds Tkinter on those platforms. Unfortunately, this now breaks matplotlib. Is there a way to turn of tkinter

Re: Significant figures calculation

2011-06-28 Thread Mel
Erik Max Francis wrote: Mel wrote: Erik Max Francis wrote: Chris Angelico wrote: On Tue, Jun 28, 2011 at 12:56 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Zero sig figure: 0 That's not really zero significant figures; without further qualification, it's one. Is 0.0

Re: Significant figures calculation

2011-06-28 Thread Erik Max Francis
Mel wrote: Erik Max Francis wrote: Mel wrote: By convention, nobody ever talks about 1 x 9.97^6 . Not sure what the relevance is, since nobody had mentioned any such thing. If it was intended as a gag, I don't catch the reference. I get giddy once in a while.. push things to limits. It

Re: Using decorators with argument in Python

2011-06-28 Thread Ben Finney
Jigar Tanna poisonousratt...@gmail.com writes: where I came across a special case of using arguments with decorators A decorator is a function which takes exactly one parameter, and returns a function based on that parameter. URL:http://docs.python.org/glossary.html#term-decorator

Re: Suppressing newline writing to file after variable

2011-06-28 Thread Chris Angelico
On Wed, Jun 29, 2011 at 3:32 AM, Ellerbee, Edward eeller...@bbandt.com wrote: How to condense a group of numbers to a wildcard list. For example: 252205 252206 252208 Condense to: 25220[568] Assuming you have the list sorted (if not, that's the first place to start), I'd do a six-pass

Re: Suppressing newline writing to file after variable

2011-06-28 Thread Chris Angelico
On Wed, Jun 29, 2011 at 8:56 AM, Chris Angelico ros...@gmail.com wrote:      else emit(lastprefix+tails)  else emit(lastprefix+tails) Typo in the above code. The else needs a colon after it, both times. ChrisA -- http://mail.python.org/mailman/listinfo/python-list

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 4a0b929b5c3d by Ned Deily in branch '2.7': Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9 http://hg.python.org/cpython/rev/4a0b929b5c3d New changeset 570cdef34066 by Ned Deily in branch '3.2': Issue #10736: Fix

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-28 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- resolution: - fixed stage: - committed/rejected status: open - pending ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10736 ___

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset abfe28e7e5cd by Ned Deily in branch '2.7': Issue #8746: Correct faulty configure checks so that os.chflags() and http://hg.python.org/cpython/rev/abfe28e7e5cd New changeset 529e26aa4fa3 by Ned Deily in branch '3.2': Issue #8746:

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks for the additional tests, Garrett. I've applied them (modulo a fix). I've also applied the corrections to configure which should make os.chflags() and os.lchflags() reappear again in BSD and OS X builds where supported. I've also added and

[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Dirkjan Ochtman
New submission from Dirkjan Ochtman dirk...@ochtman.nl: See https://bugzilla.redhat.com/show_bug.cgi?id=692632 for more details and a proposed patch. -- components: Library (Lib) messages: 139347 nosy: djc priority: normal severity: normal status: open title: gettext breaks on empty

[issue1475523] gettext breaks on plural-forms header

2011-06-28 Thread Dirkjan Ochtman
Dirkjan Ochtman dirk...@ochtman.nl added the comment: Okay, I've filed issue12425. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1475523 ___

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset c8ffa3891d5e by Ned Deily in branch '2.7': Issue #12141: Install a copy of template C module file so that http://hg.python.org/cpython/rev/c8ffa3891d5e New changeset de226a510b52 by Ned Deily in branch '3.2': Issue #12141: Install a

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Patches applied as described above for 3.3, 3.2.1, and 2.7.3. I'm setting the status of the issue to pending and, assuming there are no buildbot failures in the near future, I will close it unless anyone sees a reason not to. -- resolution: -

[issue12426] packaging.tests.test_command_install_dist.InstallTestCase failure

2011-06-28 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: FAIL: test_user_site (packaging.tests.test_command_install_dist.InstallTestCase) -- Traceback (most recent call last): File

[issue12427] packaging register fails because POST data should be bytes

2011-06-28 Thread Vinay Sajip
New submission from Vinay Sajip vinay_sa...@yahoo.co.uk: vinay@eta-natty:~/projects/nemo$ pysetup3 run register running register Registering nemo to http://pypi.python.org/pypi Traceback (most recent call last): File /usr/local/bin/pysetup3, line 4, in module sys.exit(main()) File

[issue12428] functools test coverage

2011-06-28 Thread Brian Thorne
New submission from Brian Thorne hardb...@gmail.com: The test coverage for functools was down around ~60%, this is a patch to bring that up to ~98%. Made two changes to the Lib/functools.py file itself: 1) Moved the Python implementation of partial into Lib/functools.py from

[issue12406] msi.py needs updating for Python 3.3

2011-06-28 Thread Vinay Sajip
Vinay Sajip vinay_sa...@yahoo.co.uk added the comment: and adding the two files added for packaging should do the trick Which two files would those be, exactly? In my branch I've changed to logic from parent.physical == distutils to parent.physical in (distutils, packaging) and this should

[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-06-28 Thread STINNER Victor
New submission from STINNER Victor victor.stin...@haypocalc.com: test_io.check_interrupted_write() has two threads and a pipe: - reader (thread): read one byte from the pipe - writer (main thread): write 1 MB into the pipe An alarm (SIGALRM) is scheduled in one second. The writer blocks

[issue12429] test_io.check_interrupted_write() sporadic failures on FreeBSD 6 on Python 2.7/3.2

2011-06-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Patch to skip the test on FreeBSD 5, 6 and 7. I was unable to reproduce #11859 on my FreeBSD 8 VM, so I didn't add freebsd8. -- keywords: +patch Added file: http://bugs.python.org/file22506/test_io_skip_freebsd.patch

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
New submission from Seppo Yli-Olli seppo.ylio...@gmail.com: Checksums need to be mirrored as well, otherwise having mirrors is a waste of money because PyPi main server being slow ends up with whole download failing. If this is the wrong bug tracker, please advice me to the right one so this

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Seppo Yli-Olli
Changes by Seppo Yli-Olli seppo.ylio...@gmail.com: -- type: - feature request ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12430 ___ ___

[issue12428] functools test coverage

2011-06-28 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Raymond, do we care whether or not the pure Python version of functools.partial supports inheritance and instance testing? The constructor is technically documented as returning a partial object rather than a simple staticmethod instance with

[issue12428] functools test coverage

2011-06-28 Thread Raymond Hettinger
Raymond Hettinger raymond.hettin...@gmail.com added the comment: Raymond, do we care whether or not the pure Python version of functools.partial supports inheritance and instance testing? We don't care. The docs make very few guarantees beyond the core functionality. Everything else is an

[issue12430] Pip fails to fetch from mirror if PyPi checksum times out

2011-06-28 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: Hello, The PyPI bug tracker is over here (you can find the link on the front page of http://pypi.python.org/pypi): http://sourceforge.net/tracker/?group_id=66150atid=513503 That said, having checksums come from the master server

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Jon Siddle
New submission from Jon Siddle j...@corefiling.co.uk: Issue8280 fixed an issue where the fragment was being sent to the server (and returned by get_selector). Unfortunately the fix means that the full URL stored in the Request no longer includes the fragment either. This is in contradiction

[issue12425] gettext breaks on empty plural-forms value

2011-06-28 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +Arfrever ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12425 ___

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
New submission from Vincent Legoll vincent.leg...@gmail.com: Using pylint I found some unused imports in Lib. I filtered the most obvious ones by hand to produce the attached patch. Should I submit individual patches, one for each file, so as to ease review ? -- components: Library

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 8c17e898e0e8 by Benjamin Peterson in branch 'default': remove unused imports (closes #12432) http://hg.python.org/cpython/rev/8c17e898e0e8 -- nosy: +python-dev resolution: - fixed stage: - committed/rejected status: open -

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Garrett Cooper
New submission from Garrett Cooper yaneg...@gmail.com: Running 'make clean' leaves libpython*.a behind. The attached patch removes it when make clean is run. This was resolved on py3k, not trunk; the attached patch matches what was done on py3k. -- components: Build files:

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: A similar fix was applied and released in both 2.6.6 and 2.7.1. -- nosy: +ned.deily resolution: - out of date stage: - committed/rejected status: open - closed type: compile error - ___ Python tracker

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +orsenthil ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12431 ___ ___ Python-bugs-list mailing list

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Garrett Cooper
Garrett Cooper yaneg...@gmail.com added the comment: Is svn not being updated anymore (in lieu of hg)? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12433 ___

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: Looking through http://hg.python.org/cpython/rev/8c17e898e0e8 I see that the glob.py hunk has been applied reversed. The changeset 68349:55bea11d892e removing it is 3 monthes old... Looks like I missed a svn-hg migration on my side,

[issue12433] make clean doesn't clean up static libraries on 2.x

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: No, the svn repos for python itself (at svn.python.org) are frozen as of the hg transition and are for historical reference only. See http://docs.python.org/devguide/ for more info on current practices. --

[issue12432] remove a bunch of unused imports in Lib

2011-06-28 Thread Vincent Legoll
Vincent Legoll vincent.leg...@gmail.com added the comment: This one reverts glob.py to the previous state -- Added file: http://bugs.python.org/file22510/reremove-sys-import-from-glob.patch ___ Python tracker rep...@bugs.python.org

[issue12431] urllib2.Request.get_full_url() broken in newer versions of Python

2011-06-28 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: This has been fixed with issue #11703, latest version of Python 2.7 does not exhibit this behaviour anymore: Python 2.7.2 (default, Jun 12 2011, 14:24:46) [MSC v.1500 64 bit (AMD64)] on win 32 Type help, copyright, credits or license

[issue12407] test_subinterps fails on Windows

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I don't really understand why you need this. Under normal setups, the test is already properly skipped under Windows, since there's no rule to build the Modules/_testembed with MSVC. Or are you talking about another kind of setup? Cygwin? mingw?

[issue12352] multiprocessing.Value() hangs

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Nice work! I also think heap_gc_deadlock_lockless.diff is good, except for Victor's reservation: is it deliberate that you reversed the following two statements in _free_pending_blocks(), compared to the code in free()? +

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I do agree it is a nuisance that it doesn't work with bytearray instances. After all, these methods are supposed to be homogeneous, and they are when called on a str or bytes object. -- assignee: docs@python - stage: committed/rejected

[issue12380] bytearray methods center, ljust, rjust don't accept a bytearray as the fill character

2011-06-28 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- components: -Documentation ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12380 ___ ___

[issue12434] Strengthen 2.7 io types warning

2011-06-28 Thread Terry J. Reedy
New submission from Terry J. Reedy tjre...@udel.edu: Trying 3.2 code with 2.7, I got this (greatly simplified): from __future__ import print_function from io import StringIO print('hello world', file=StringIO()) Traceback... TypeError: string argument expected, got 'str' (StringIO.StringIO

[issue12147] smtplib.send_message does not implement corectly rfc 2822

2011-06-28 Thread Nicolas Estibals
Nicolas Estibals nicolas.estib...@gmail.com added the comment: Sorry for the late, my week-end was more busy than expected. Here is the corrected version of the patch. -- Added file: http://bugs.python.org/file22511/send_message_rfc2822_v2.patch ___

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-28 Thread Kamil Kisiel
Kamil Kisiel ka...@kamilkisiel.net added the comment: The application is interfacing with a C library that uses abort() to signal fatal errors (horrible, I know..). Instead of core dumping I would like to be able to handle these errors at the Python level and do something else. It's starting

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: I think we should apply this to earlier applicable versions too. I would accept this change for Python 2.6. -- nosy: +barry ___ Python tracker rep...@bugs.python.org

[issue12423] signal handler doesn't handle SIGABRT from os.abort

2011-06-28 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Be aware that programs which use signal.signal() to register a handler for SIGABRT will behave differently. I don't understand this sentence. I think that this sentence should be removed, and another should maybe be added. E.g.

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Brian Hare
New submission from Brian Hare ha...@umkc.edu: In Windows, using python 3.2, the built-input function does not strip the trailing '\r' from the string input: Python 3.2 (r32:88445, Feb 20 2011, 21:29:02) [MSC v.1500 32 bit (Intel)] on win32 Type help, copyright, credits or license for more

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12435 ___ ___

[issue12435] Input function does not strip trailing '\r' from string input

2011-06-28 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc amaur...@gmail.com added the comment: Already fixed with issue11272, which will be included in 3.2.1 and 3.3. -- nosy: +amaury.forgeotdarc resolution: - out of date status: open - closed superseder: - input() has trailing carriage return on windows

[issue12436] Provide reference to detailed installation instructions

2011-06-28 Thread Nick Coghlan
New submission from Nick Coghlan ncogh...@gmail.com: The Boston Python Workshop folks have some detailed step-by-step instructions on getting Python up and running ([1]). Given that this can be a pain point for new users (primarily on Windows), it may be good to reference these instructions

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-06-28 Thread Matt Joiner
New submission from Matt Joiner anacro...@gmail.com: _ctypes.dlopen is not including the errno when it raises OSError. This occurs when attempting to load a library that doesn't exist, the error string given is clearly generated from an ENOENT. joiner@dbssyd800:~$ python3 dlopen_raise.py None

[issue10736] test_ttk_guionly fails on OS X using ActiveState Tcl 8.5.9 (Cocoa)

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: No obvious buildbot problems so far so I'm going to close this as fixed. Thanks for the patch, Ronald. -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10736

[issue8746] os.chflags() and os.lchflags() are not built when they should be be

2011-06-28 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8746 ___ ___ Python-bugs-list mailing

[issue12141] sysconfig.get_config_vars('srcdir') fails in specific cases

2011-06-28 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12141 ___ ___ Python-bugs-list

[issue12172] IDLE crashes when I use F5 to run

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Since there's been no response and I believe the problem should not occur with a properly installed Python 3.2 and ActiveState Tcl 8.5 as described here (http://www.python.org/download/mac/tcltk/), I'm going to close this issue. Please reopen if the

[issue12438] getpass error on idle

2011-06-28 Thread João Bernardo
New submission from João Bernardo jbv...@gmail.com: The getpass function is raising an error when first used on idle (Python 3.2 and 2.7.1) The next time it'll work as expected (it echoes the data, but idle is just for testing purposes so no problems here) from getpass import getpass p =

[issue12379] build outside source fail in head

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Fixed by Benjamin in f8f1d5691ae8. -- nosy: +ned.deily resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12379

[issue12437] _ctypes.dlopen does not include errno in OSError

2011-06-28 Thread Santoso Wijaya
Santoso Wijaya santoso.wij...@gmail.com added the comment: On Windows: try: ... ctypes.CDLL('somelib') ... except OSError as exc: ... print repr(exc) ... print exc.errno ... WindowsError(126, 'The specified module could not be found') 22 -- nosy: +santa4nt

[issue12361] Memory Leak in File Logging

2011-06-28 Thread Jacob Perkins
Jacob Perkins jap...@gmail.com added the comment: Sorry about this. Turns out the flattening of memory usage was a temporary coincidence, and I eventually tracked the bug down to an old version of MySQLdb. -- resolution: - invalid status: pending - closed

[issue12417] Inappropriate copyright on profile files

2011-06-28 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 02150e60636b by Benjamin Peterson in branch '2.6': update profile license (closes #12417) http://hg.python.org/cpython/rev/02150e60636b New changeset 633597815463 by Benjamin Peterson in branch '3.1': update profile license (closes

[issue9516] sysconfig: $MACOSX_DEPLOYMENT_TARGET mismatch: now 10.3 but 10.5 during configure

2011-06-28 Thread Ned Deily
Ned Deily n...@acm.org added the comment: While I am a little concerned about applying these fixes, it is clear that the previous behavior was broken and the initial set of patches as applied did not improve matters. The only risk I can see is that there is a slight chance that there *might*

[issue10403] Use member consistently

2011-06-28 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: So I'm -1 on using attributes to denote methods. It will actively confuse non-expert users. If you want to ditch members, please consider using the more explicit phrase attributes and methods. -- nosy: +pitrou

[issue10403] Use member consistently

2011-06-28 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Yes, I agree with you. Good Suggestion. Thanks! -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10403 ___

  1   2   >