[Perl Golf] Round 1

2012-02-05 Thread Alec Taylor
One sentence can contain one or more strings next to each-other, which can be joined to make another word. e.g.: to get her == together an other == another where about == whereabouts etc Solve this problem using as few lines of code as possible[1]. Good luck! [1] Don't use external

PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Alec Taylor
PIL, PyCrypto and many other modules require a C compiler and linker. Unfortunately neither install on my computer, with a PATH with the following: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC C:\libraries\MinGW\msys\1.0\bin C:\libraries\MinGW C:\Python27\Scripts Output from

Help about dictionary append

2012-02-05 Thread Anatoli Hristov
Hi there, I`m again confused and its the dictionary. As dictionary does not support append I create a variable list with dictionary key values and want to add new values to it and then copy it again to the dictionary as I dont know other methods. mydict =

Re: Help about dictionary append

2012-02-05 Thread Chris Angelico
On Mon, Feb 6, 2012 at 2:13 AM, Anatoli Hristov toli...@gmail.com wrote: Hi there, I`m again confused and its the dictionary. As dictionary does not support append I create a variable list with dictionary key values and want to add new values to it and then copy it again to the dictionary as

Re: Help about dictionary append

2012-02-05 Thread James Broadhead
On 5 February 2012 15:13, Anatoli Hristov toli...@gmail.com wrote: Hi there, I`m again confused and its the dictionary. As dictionary does not support append I create a variable list with dictionary key values and want to add new values to it and then copy it again to the dictionary as I dont

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Christian Heimes
Am 05.02.2012 15:40, schrieb Alec Taylor: PIL, PyCrypto and many other modules require a C compiler and linker. Unfortunately neither install on my computer, with a PATH with the following: C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC C:\libraries\MinGW\msys\1.0\bin

Re: Help about dictionary append

2012-02-05 Thread Andrew Berg
On 2/5/2012 9:13 AM, Anatoli Hristov wrote: and I get and error that TUPLE object has no attribute Append !!! You defined mydict['name'] as a tuple, and tuples are immutable. Using a tuple means that you don't ever want the values to change. But how to add new Values to a dictionary then ? This

Re: Common LISP-style closures with Python

2012-02-05 Thread Alan Ristow
On 02/05/2012 05:19 AM, Antti J Ylikoski wrote: Yes, I do know that, but then it would not be a closure :-) Forgive me if this is terribly naive, but what is the advantage of using a closure as opposed to, say, some other function that returns the same value in the same context, but

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Alec Taylor
A 4 year old compiler? I also have MSVC11 installed. Can the python project add support for that so that we aren't waiting 5 years between compiler support? On Mon, Feb 6, 2012 at 2:23 AM, Christian Heimes li...@cheimes.de wrote: Am 05.02.2012 15:40, schrieb Alec Taylor: PIL, PyCrypto and many

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Steven D'Aprano
On Mon, 06 Feb 2012 03:42:08 +1100, Alec Taylor wrote: A 4 year old compiler? Compilers aren't like milk. They don't go off after a few weeks. A good compiler/operating system combination should still be usable after 4 or 14 years. The compiler I'm using is six years old, and I expect that it

Re: [Perl Golf] Round 1

2012-02-05 Thread Heiko Wundram
Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem clearly. -- --- Heiko. --

Re: Help about dictionary append

2012-02-05 Thread Anatoli Hristov
Thanks Chris, It works fine, I see it will take time till I understand all the syntax :( A.H On Sun, Feb 5, 2012 at 4:20 PM, Chris Angelico ros...@gmail.com wrote: On Mon, Feb 6, 2012 at 2:13 AM, Anatoli Hristov toli...@gmail.com wrote: Hi there, I`m again confused and its the

Re: Common LISP-style closures with Python

2012-02-05 Thread Ian Kelly
On Sat, Feb 4, 2012 at 9:19 PM, Antti J Ylikoski antti.yliko...@tkk.fi wrote: I'm not sure how naughty this is, but the same thing can be done without using nonlocal by storing the local state as an attribute of the enclosed function object: ... Yes, I do know that, but then it would not

Re: [Perl Golf] Round 1

2012-02-05 Thread Ben Finney
Alec Taylor alec.tayl...@gmail.com writes: One sentence can contain one or more strings next to each-other, which can be joined to make another word. e.g.: to get her == together an other == another where about == whereabouts etc Yes, that's true. Solve this problem using as few

Re: [Perl Golf] Round 1

2012-02-05 Thread Neal Becker
Heiko Wundram wrote: Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem clearly. But this really misses the

MySQLdb not allowing hyphen

2012-02-05 Thread Emeka
Hello All, I noticed that MySQLdb not allowing hyphen may be way to prevent injection attack. I have something like below: insert into reviews(message, title)values('%s', '%s') %( We don't know where to go,We can't wait till morrow ) ProgrammingError(1064, You have an error in your SQL syntax;

Re: MySQLdb not allowing hyphen

2012-02-05 Thread Chris Rebert
On Sun, Feb 5, 2012 at 2:41 PM, Emeka emekami...@gmail.com wrote: Hello All, I noticed that MySQLdb not allowing hyphen may be way to prevent injection attack. I have something like below: insert into reviews(message, title)values('%s', '%s') %( We don't know where to go,We can't wait

Re: [Perl Golf] Round 1

2012-02-05 Thread Heiko Wundram
Am 05.02.2012 23:15, schrieb Neal Becker: Heiko Wundram wrote: Am 05.02.2012 12:49, schrieb Alec Taylor: Solve this problem using as few lines of code as possible[1]. Pardon me, but where's the problem? If your intention is to propose a challenge, say so, and state the associated problem

Re: MySQLdb not allowing hyphen

2012-02-05 Thread Emeka
Dennis , Chris Thanks so much! On Mon, Feb 6, 2012 at 1:23 AM, Dennis Lee Bieber wlfr...@ix.netcom.comwrote: On Mon, 6 Feb 2012 00:41:24 +0200, Emeka emekami...@gmail.com wrote: Hello All, I noticed that MySQLdb not allowing hyphen may be way to prevent injection attack. What

Python and TAP

2012-02-05 Thread Matej Cepl
I have just finished listening to the FLOSS Weekly podcast #200 (http://twit.tv/show/floss-weekly/200) on autotest, where I've learned about the existence of TAP (http://testanything.org/). A standardization of testing seems to be so obviously The Right Thing™, that it is strange that I don't

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Terry Reedy
On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote: On Mon, 6 Feb 2012 03:42:08 +1100, Alec Tayloralec.tayl...@gmail.com wrote: A 4 year old compiler? I also have MSVC11 installed. Can the python project add support for that so that we aren't waiting 5 years between compiler support? 3.3 will

difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Matej Cepl
Hi, I have this working function: def as_xml(self): out = etree.Element(or) for k in sorted(self.keys()): out.append(etree.Element(hostname, attrib={'op': '=', 'value': random.choice(self[k])})) # ... return somehow string representing XML

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Steven D'Aprano
On Mon, 06 Feb 2012 02:27:38 +0100, Matej Cepl wrote: Strange thing is that this unit tests correctly with python3, but fails with python2. The problem is that apparently python3 random.choice picks different element of self[k] than the one python2 (at least, both of them are constant in

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Terry Reedy
On 2/5/2012 11:01 PM, Steven D'Aprano wrote: Reading the docs, I would expect that when using an int as seed, you should get identical results. That is similar to expecting hash to be consistent from version to version. There is no mention that the PRNG has changed between 2.6 and 3.2;

help function and operetors overloading

2012-02-05 Thread Mohsen Pahlevanzadeh
Dear all, You know python has many functions for operators overloading such as __add__, __radd__, __invert__, __eq__ and so on. How i see the complete list of them with help function? Yours, Mohsen signature.asc Description: This is a digitally signed message part --

Re: Common LISP-style closures with Python

2012-02-05 Thread Antti J Ylikoski
On 5.2.2012 22:58, Ian Kelly wrote: On Sat, Feb 4, 2012 at 9:19 PM, Antti J Ylikoskiantti.yliko...@tkk.fi wrote: I'm not sure how naughty this is, but the same thing can be done without using nonlocal by storing the local state as an attribute of the enclosed function object: ... Yes, I do

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Steven D'Aprano
On Mon, 06 Feb 2012 00:07:04 -0500, Terry Reedy wrote: On 2/5/2012 11:01 PM, Steven D'Aprano wrote: Reading the docs, I would expect that when using an int as seed, you should get identical results. That is similar to expecting hash to be consistent from version to version. No. hash is

Re: help function and operetors overloading

2012-02-05 Thread Chris Rebert
On Sun, Feb 5, 2012 at 9:48 PM, Mohsen Pahlevanzadeh moh...@pahlevanzadeh.org wrote: Dear all, You know python has many functions for operators overloading such as __add__, __radd__, __invert__, __eq__ and so on. How i see the complete list of them with help function? I don't know if there's

Re: [Perl Golf] Round 1

2012-02-05 Thread Chris Angelico
On Mon, Feb 6, 2012 at 10:03 AM, Heiko Wundram modeln...@modelnine.org wrote: You're only allowed to bash him for one-liners as soon as he formulates something that in some way or another resembles a programming challenge, and not some incoherent listing of words without actual intent... ;-)

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Chris Angelico
On Mon, Feb 6, 2012 at 12:26 PM, Terry Reedy tjre...@udel.edu wrote: On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote: On Mon, 6 Feb 2012 03:42:08 +1100, Alec Tayloralec.tayl...@gmail.com wrote: A 4 year old compiler? I also have MSVC11 installed. Can the python project add support for that

Re: difference between random module in python 2.6 and 3.2?

2012-02-05 Thread Terry Reedy
On 2/6/2012 12:56 AM, Steven D'Aprano wrote: On Mon, 06 Feb 2012 00:07:04 -0500, Terry Reedy wrote: On 2/5/2012 11:01 PM, Steven D'Aprano wrote: Reading the docs, I would expect that when using an int as seed, you should get identical results. That is similar to expecting hash to be

Re: help function and operetors overloading

2012-02-05 Thread Terry Reedy
On 2/6/2012 12:48 AM, Mohsen Pahlevanzadeh wrote: Dear all, You know python has many functions for operators overloading such as __add__, __radd__, __invert__, __eq__ and so on. How i see the complete list of them with help function? import operator help(operator) Help on built-in module

Re: PyCrypto builds neither with MSVC nor MinGW

2012-02-05 Thread Terry Reedy
On 2/6/2012 1:53 AM, Chris Angelico wrote: On Mon, Feb 6, 2012 at 12:26 PM, Terry Reedytjre...@udel.edu wrote: On 2/5/2012 6:23 PM, Dennis Lee Bieber wrote: On Mon, 6 Feb 2012 03:42:08 +1100, Alec Tayloralec.tayl...@gmail.com wrote: A 4 year old compiler? I also have MSVC11 installed. Can

[issue13944] HMAC object called hmac

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7c263bfc92f5 by Georg Brandl in branch '2.7': Closes #13944: fix capitalization of class name. http://hg.python.org/cpython/rev/7c263bfc92f5 New changeset cd748bab3cdd by Georg Brandl in branch '3.2': Closes #13944:

[issue13945] Mistake in the text for PEP-383

2012-02-05 Thread Georg Brandl
Georg Brandl ge...@python.org added the comment: Done in 5748c9cf7628. -- nosy: +georg.brandl resolution: - fixed status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13945

[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2c08bf9aca22 by Éric Araujo in branch 'default': Allow multiple values for package_data in setup.cfg (#11805). http://hg.python.org/cpython/rev/2c08bf9aca22 -- nosy: +python-dev

[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset edb6f9fb54ac by Éric Araujo in branch 'default': Stop converting package_data to extra_files in pysetup create (#13712). http://hg.python.org/cpython/rev/edb6f9fb54ac -- nosy: +python-dev

[issue13771] HTTPSConnection __init__ super implementation causes recursion error

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: super without arguments literally relies on a compiler hack. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13771 ___

[issue6617] During compiling python 3.1 getting error Undefined symbol libintl_bind_textdomain_codeset

2012-02-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: I'm tagging this as a duplicate of #13843, since I expect more activity on the newer issue. -- nosy: +skrah resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Python doesn't compile anymore

[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2012-02-05 Thread Stefan Krah
Stefan Krah stefan-use...@bytereef.org added the comment: See also #6617 (which I marked as a duplicate). -- nosy: +amaury.forgeotdarc, skrah, thoratsandip ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13843

[issue13943] distutils’ build_py fails when package string is unicode

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the report and patch. I think distutils was not written with Unicode in mind, or maybe even before Python had a unicode type. Technically, http://docs.python.org/distutils/setupscript#additional-meta-data says that unicode is not

[issue13773] Support sqlite3 uri filenames

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: I've added an updated patch which adds a link. I've also changed the exception when URIs are not supported to sqlite3.NotSupportedError. Sounds good. Note to the person who will commit: :const:`True` should be marked up as ``True.`` I

[issue7559] TestLoader.loadTestsFromName swallows import errors

2012-02-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- versions: +Python 3.3 -Python 2.6, Python 3.1 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue7559 ___

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: BTW I wonder if setting __all__ to something but a list is valid. I think I ran into a similar bug once and fixing __all__ fixed it. The IDLE robustness fix is probably a good thing, but maybe we should also check the stdlib’s __all__s and

[issue1625] bz2.BZ2File doesn't support multiple streams

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Just a thought: maybe the doc note should mention that bz2file is a backport of 3.3’s improved class, so that people know that 1) it’s well-supported code 2) a future Python version will remove the need for the external dependency. --

[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Note that my proposed syntax does not allow something equivalent to {'': [etc.]} in distutils, i.e. package data for top-level modules. I think this is okay: modules should not install data in their installation dir. I don’t think it was

[issue13893] Make CGIHTTPServer capable of redirects (and status other than 200)

2012-02-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- stage: test needed - committed/rejected status: open - closed superseder: - http.server doesn't process Status header from CGI scripts versions: -Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 3.3, Python 3.4

[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 730c2e4aaf9c by Éric Araujo in branch 'default': Stop converting package_data to extra_files in pysetup create (#13712). http://hg.python.org/distutils2/rev/730c2e4aaf9c New changeset ea717d8e71d0 by Éric Araujo in

[issue13901] test_get_outputs (test_distutils) failure with --enable-shared on Mac OS X

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset e6a28ae0dfd6 by Éric Araujo in branch 'default': Port OS X --enable-shared fix from packaging (#13901; untested) http://hg.python.org/distutils2/rev/e6a28ae0dfd6 New changeset ea717d8e71d0 by Éric Araujo in branch

[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 83a0985c7aad by Éric Araujo in branch 'default': Allow multiple values for package_data in setup.cfg (#11805). http://hg.python.org/distutils2/rev/83a0985c7aad New changeset ea717d8e71d0 by Éric Araujo in branch

[issue11805] package_data only allows one glob per-package

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: Thanks for the help Erik. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11805

[issue13712] pysetup create should not convert package_data to extra_files

2012-02-05 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- resolution: - fixed stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13712 ___

[issue13843] Python doesn't compile anymore on our Solaris buildbot: undefined libintl_* symbols

2012-02-05 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: See also #6617 (which I marked as a duplicate). This issue contains an interesting message (msg91758): I dont know Solaris, but googling for libintl_textdomain solaris shows that many other projects have the same issue. The

[issue1625] bz2.BZ2File doesn't support multiple streams

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset ad20324229f4 by Nadeem Vawda in branch '2.7': Clarify note in BZ2File docs about lack of multi-stream support (issue #1625). http://hg.python.org/cpython/rev/ad20324229f4 New changeset e4c4595033ad by Nadeem Vawda

[issue13839] -m pstats should combine all the profiles given as arguments

2012-02-05 Thread Éric Araujo
Éric Araujo mer...@netwok.org added the comment: This sounds like a reasonable request. The patch needs tests, probably using test.script_helper.assert_python_ok. -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org

[issue13770] python3 json: add ensure_ascii documentation

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 33d6da1b1c71 by Éric Araujo in branch '3.2': Document json.dump ensure_ascii parameter (#13770) http://hg.python.org/cpython/rev/33d6da1b1c71 New changeset 1cb9b8126534 by Éric Araujo in branch 'default': Merge

[issue6715] xz compressor support

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 11bd2d32b4e8 by Éric Araujo in branch '3.2': Improve interlinking of archiving/compression modules docs. http://hg.python.org/cpython/rev/11bd2d32b4e8 New changeset 1cb9b8126534 by Éric Araujo in branch 'default':

[issue2945] bdist_rpm does not list dist files (should effect upload)

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 26aea1825418 by Éric Araujo in branch '3.2': Stop ignoring RPMs in distutils' upload command (#2945). http://hg.python.org/cpython/rev/26aea1825418 New changeset 1cb9b8126534 by Éric Araujo in branch 'default':

[issue13716] distutils doc contains lots of XXX

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 3d25869fce0c by Éric Araujo in branch '3.2': Hide or remove user-visible XXX notes from distutils doc (#13716). http://hg.python.org/cpython/rev/3d25869fce0c New changeset 1cb9b8126534 by Éric Araujo in branch

[issue1040439] Missing documentation on how to link with libpython

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 79e8de78abd0 by Éric Araujo in branch '3.2': Markup improvements for the embedding CPython doc patch from #1040439 http://hg.python.org/cpython/rev/79e8de78abd0 New changeset 1cb9b8126534 by Éric Araujo in branch

[issue13921] sqlite3: OptimizedUnicode obsolete in Py3k

2012-02-05 Thread Petri Lehtinen
Petri Lehtinen pe...@digip.org added the comment: Éric Araujo wrote: I’m not sure the doc note is useful, but didn’t code search to confirm it. Yeah. Perhaps it would be better as a comment in the code. Also, 3.2 may be out of bounds for this cleanup (I don’t know the rules for what can be

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 773a97b3927d by Charles-François Natali in branch 'default': Issue #13734: Add os.fwalk(), a directory walking function yielding file http://hg.python.org/cpython/rev/773a97b3927d -- nosy: +python-dev

[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10482 ___ ___

[issue10487] http.server doesn't process Status header from CGI scripts

2012-02-05 Thread Ross Lagerwall
Changes by Ross Lagerwall rosslagerw...@gmail.com: -- nosy: +rosslagerwall ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10487 ___ ___

[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: It looks like the test failures do not show up with debug enabled (--with-pydebug). I'm able to reproduce them with: ./configure MACOSX_DEPLOYMENT_TARGET=10.7 CC=clang -- nosy: +ned.deily ___ Python

[issue13734] Add a generic directory walker method to avoid symlink attacks

2012-02-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed, thanks for the comments. Note to myself (and others that might be interested in the O(1)) version): we can't simply call openat(dirfd, .., O_RDONLY) to re-open the current directory's file descriptor after having walked a

[issue12410] Create a new helper function that enable to test that an operation don't hang more than a given timeout.

2012-02-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Closing, since it's hard to write correctly, and apparently not that useful. -- resolution: - rejected stage: - committed/rejected status: open - closed ___ Python tracker

[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

2012-02-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Closing (see http://bugs.python.org/msg149904 and http://bugs.python.org/msg149909). -- assignee: docs@python - resolution: - rejected stage: patch review - committed/rejected status: open - closed versions: -Python 2.7,

[issue4709] Mingw-w64 and python on windows x64

2012-02-05 Thread John Pye
John Pye j...@curioussymbols.com added the comment: Hi Martin I have documented a build process for a Python package on MinGW-w64, including a requirement that this patch be applied. You might want to revisit it, given that your attempt to reproduce this bug earlier was unsuccessful.

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: Those four lines are present just in case self.root is not initialized. Even if you short-circuit the behavior and set parent=self.top, the patch still works, only that closing the calling EditorWindow instance also closes the help dialog.

[issue10284] NNTP should accept bytestrings for username and password

2012-02-05 Thread Hynek Schlawack
Changes by Hynek Schlawack h...@ox.cx: -- nosy: +hynek ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10284 ___ ___ Python-bugs-list mailing list

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: However, let me point out the following sentence: “Ports without SO_EXCLUSIVEADDRUSE set may be reused as soon as the socket on which bind was previously called is closed.” ...which seems to suggest we shouldn't use SO_REUSEADDR

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Actually, it seems that even though the documentation doesn't mention sockets in TIME_WAIT state, SO_REUSEADDR is actually required on Windows: http://twistedmatrix.com/trac/ticket/1151#comment:18 According to that message, we would only need

[issue8184] multiprocessing.managers will not fail if listening ocket already in use

2012-02-05 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: I think you read it wrong. Duh, I managed to misread both the comment and the code :-) What my subconscious refused to admit is the fact that on Windows, SO_REUSEADDR allows you to bind to any port - even though the other

[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: I can reproduce it without --with-pydebug. Thanks. I will investigate. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue13370 ___

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 2b93ee675ec4 by Terry Jan Reedy in branch '2.7': #13933 refine patch using 'new' builtin http://hg.python.org/cpython/rev/2b93ee675ec4 New changeset d8f988b0c959 by Terry Jan Reedy in branch '3.2': #13933 refine

[issue13933] IDLE:not able to complete the hashlib module

2012-02-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: 6.11 Import statement says __all__; if defined, it must be a sequence of strings which are names defined or imported by that module. I am tempted to open an issue to change 'sequence' to 'list', or even 'sorted sequence', but that is

[issue4709] Mingw-w64 and python on windows x64

2012-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: John: in the current versions of the toolchain, Python's configure fails for me. I follow steps 1..3 of Steps to date. Then running ./configure fails saying that it does not work. I then tried alternatively these three approaches: 1. set

[issue13946] readline completer could return an iterable

2012-02-05 Thread Nicolas
New submission from Nicolas nicolas-gau...@laposte.net: The function set by readline.set_completer must return one completion per call. This should be great if we can return an iterable, because with current implementation I have to write a wrapper: cache = None def completer(text, state):

[issue10482] subprocess and deadlock avoidance

2012-02-05 Thread Jon Brandvein
Changes by Jon Brandvein jon.brandv...@gmail.com: -- nosy: +brandj ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue10482 ___ ___ Python-bugs-list

[issue964437] idle help is modal

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5452c881bd2d by Terry Jan Reedy in branch '2.7': Issue 964437 Make IDLE help window non-modal. http://hg.python.org/cpython/rev/5452c881bd2d New changeset a949956a80cc by Terry Jan Reedy in branch '3.2': Issue

[issue964437] idle help is modal

2012-02-05 Thread Terry J. Reedy
Terry J. Reedy tjre...@udel.edu added the comment: I was sure I had reverted, but did again, redownloaded, applied, and tested, and all well, so committed and pushed. 2.7 required hand-patching of ', modal' for chunk 5 due to 3rd argument being 'textFile.read()' instead of 'contents'. I

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Helder Magalhães
Helder Magalhães helder.magalh...@gmail.com added the comment: See tightly related ActivePython issue [1] regarding the way directories are added to the PATH environment variable. Also, here's qooxdoo (a well-known JavaScript framework) giving out instructions [2] on how to use the official

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Brian Curtin
Brian Curtin br...@python.org added the comment: FWIW I have an installer built which optionally adds to the path. It's not complete - still needs some GUI work to hook it all up, but I'll be proposing it shortly. -- ___ Python tracker

[issue964437] idle help is modal

2012-02-05 Thread Roger Serwy
Roger Serwy roger.se...@gmail.com added the comment: I pulled the latest repo with the patch for 2.7. It works. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue964437 ___

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: Helder: please don't change tracker settings unless you know what they are for. Python 2.6 and 3.1 can't possibly see any change here since they are in security fix mode, and can't see any fixes affecting this issue. Likewise, 2.7 and 3.2

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala
Marko Kohtala marko.koht...@gmail.com added the comment: Here is finally an update to my patch modified according to comments received. It should apply on 2.7 and 3.3 branches. -- Added file: http://bugs.python.org/file24429/sqlite3dump.patch ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala
Changes by Marko Kohtala marko.koht...@gmail.com: Removed file: http://bugs.python.org/file18726/sqlite3dump.patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala
Changes by Marko Kohtala marko.koht...@gmail.com: Removed file: http://bugs.python.org/file18725/sqlite3bug2.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue9750] sqlite3 iterdump fails on column with reserved name

2012-02-05 Thread Marko Kohtala
Changes by Marko Kohtala marko.koht...@gmail.com: Removed file: http://bugs.python.org/file18720/sqlite3bug.py ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9750 ___

[issue3561] Windows installer should add Python and Scripts directories to the PATH environment variable

2012-02-05 Thread Helder Magalhães
Helder Magalhães helder.magalh...@gmail.com added the comment: @Brian: glad to know about it. It will surely help, as many Windows users aren't much comfortable with the console already, and even less comfortable for tweaking the system at this level (apart from permission issues, etc.). ;-)

[issue10881] test_site and macframework builds fails

2012-02-05 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 82c4f094f811 by Ned Deily in branch '2.7': Issue #10881: Fix test_site failures with OS X framework builds. http://hg.python.org/cpython/rev/82c4f094f811 New changeset 013cba2eb008 by Ned Deily in branch '3.2':

[issue10881] test_site and macframework builds fails

2012-02-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: Thanks, Vinay, for your analysis. I adapted it for the applied fix. For 2.7, there were two additional test_site failures that are fixed by back porting minor fixes to site.py and sysconfig.py from 3.x. Applied in 2.7 (for 2.7.3), 3.2 (for 3.2.3),

[issue13590] exension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode 4.2

2012-02-05 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- nosy: +benjamin.peterson, georg.brandl priority: normal - release blocker title: Prebuilt python-2.7.2 binaries for macosx can not compile c extensions - exension module builds fail with python.org OS X installers on OS X 10.7 and 10.6 with Xcode

[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Ezra Berch
Ezra Berch ezrabe...@mac.com added the comment: The reason for this issue appears to be a bug in the clang optimizer. This is why it only shows up with debug disabled. When I compile with -O0 instead of -O3, the test passes. This issue from the clang tracker may be the same issue:

[issue13943] distutils’ build_py fails when package string is unicode

2012-02-05 Thread Patrick Andrew
Patrick Andrew pand...@isilon.com added the comment: From py-logilab-common 0.57.1 port for FreeBSD. No patches applied: package init file './test/__init__.py' not found (or not a regular file) Traceback (most recent call last): File setup.py, line 170, in module install() File

[issue10881] test_site and macframework builds fails

2012-02-05 Thread Ned Deily
Ned Deily n...@acm.org added the comment: P.S. I forgot to mention that one of the 2.7 test_site failures was due to the PYTHONUSERBASE env variable having no effect with OS X framework builds. That had been fixed in 3.x; it's now back ported. --

[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: So I have debugged the first failure and it has to do with the sign extending of 'signed char' parameters. The first test case basically does this: _dll = CDLL(_ctypes_test.__file__) _dll.tf_b.restype = c_byte _dll.tf_b.argtypes =

[issue13370] test_ctypes fails on osx 10.7

2012-02-05 Thread Meador Inge
Meador Inge mead...@gmail.com added the comment: Since the first argument is a 'signed char', that should be 'movsbq'. Hmmm, on second thought I am not 100% sure about that exact statement, but I still think this is most likely a clang bug having something to do with sign extension.

[issue13947] gdbm reorganize() leaves hanging file descriptor

2012-02-05 Thread Jack Miller
New submission from Jack Miller j...@codezen.org: I've discovered that using either 2.7.2 or 3.2.2 (from Arch) reorganizing gdbm databases leave hanging file descriptors that will cause EAGAIN errors trying to reopen it until the process is killed. For example: Python 2.7.2 (default, Jan 31

  1   2   >