[issue2698] Extension module build fails for MinGW: missing vcvarsall.bat

2010-08-31 Thread Lehmann
Lehmann added the comment: I hope I'm sending this information in the right place. Trying to install psutil 0.1.3, on Python 2.7 (with Win7 as OS), I get the same error that was mentionned in this thread: c:\Users\Andre\Bureau\psutil-0.1.3>setup.py install running install running build running

[issue9574] allow whitespace around central '+' in complex constructor

2010-08-31 Thread Jervis Whitley
Jervis Whitley added the comment: Here is a patch to document string argument requirements. -- keywords: +patch Added file: http://bugs.python.org/file18686/complex_doc.diff ___ Python tracker _

[issue9722] PyObject_Print with Visual Studio 2010

2010-08-31 Thread Krauzi
New submission from Krauzi : Hi guys, i recently found out that PyObject_Print is not working with Visual Studio 2010: #include #include int main( int argc, char** argv ) { Py_Initialize(); PyObject_Print( PyUnicode_FromString("test"), stdout, Py_PRINT_RAW ); Py_Finalize();

[issue9722] PyObject_Print with Visual Studio 2010

2010-08-31 Thread Marc-Andre Lemburg
Marc-Andre Lemburg added the comment: Krauzi wrote: > > New submission from Krauzi : > > Hi guys, > i recently found out that PyObject_Print is not working with Visual Studio > 2010: > > > #include > #include > > int main( int argc, char** argv ) > { > Py_Initialize(); > PyObject

[issue3735] allow multiple threads to efficiently send the same requests to a processing.Pool without incurring duplicate processing

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- resolution: -> postponed stage: unit test needed -> needs patch ___ Python tracker ___ ___ Python-bugs-list

[issue4892] Sending Connection-objects over multiprocessing connections fails

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue3831] Multiprocessing: Expose underlying pipe in queues

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue5501] Update multiprocessing docs re: freeze_support

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue8534] multiprocessing not working from egg

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- keywords: +needs review nosy: +asksol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue9722] PyObject_Print with Visual Studio 2010

2010-08-31 Thread Krauzi
Krauzi added the comment: i used the one from python.org. I cant build python with VC2010 because it cant convert the project from VC2008 to VC2010. -- ___ Python tracker ___ __

[issue3093] Namespace pollution from multiprocessing

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- nosy: +asksol stage: -> needs patch ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-31 Thread Ask Solem
Ask Solem added the comment: are there really any test/doc changes needed for this? -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-31 Thread Ask Solem
Changes by Ask Solem : -- stage: needs patch -> unit test needed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue6407] multiprocessing Pool should allow custom task queue

2010-08-31 Thread Jesse Noller
Jesse Noller added the comment: > are there really any test/doc changes needed for this? Yes. At bare minimum we need unit tests for the new possible usage of the API; I'd like docs and an example which show the new usage as well. -- ___ Python trac

[issue9722] PyObject_Print with Visual Studio 2010

2010-08-31 Thread Amaury Forgeot d'Arc
Amaury Forgeot d'Arc added the comment: You really should use the same version of Visual Studio than the one used to compile python. "stdout" points to a FILE object created by your version of the compiler (VS2010); it cannot be passed to PyObject_Print(), which uses definitions from the VS20

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi, As reported in this issue and issue 1756343 and issue 1542544, Python does not produce a shared python library on AIX even with the --enable-shared flag. I had provided a patch to correct that, but it was breaking static compilation of Python on AIX. W

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18688/python266_AIX61_static_gcc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18689/python266_AIX61_static_gcc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18690/python266_AIX61_static_xlc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18691/python266_AIX61_static_xlc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18692/python266_AIX61_shared_gcc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18693/python266_AIX61_shared_gcc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18694/python266_AIX61_shared_xlc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18695/python266_AIX61_shared_xlc_patchshared.txt.gz ___ Python tracker ___ _

[issue9723] pipes.quote() needs to be documented

2010-08-31 Thread Brandon Craig Rhodes
New submission from Brandon Craig Rhodes : The only way to safely build shell command lines from inside of Python — which is necessary when sending commands across SSH, since that behaves like os.system() rather than like subprocess.call() — is to use the wonderful pipes.call() method to turn

[issue1756343] Python 2.5.1 fails to build on AIX

2010-08-31 Thread Sébastien Sablé
Sébastien Sablé added the comment: I proposed a patch in issue 941346 to correct this same problem with Python 2.6.6. regards -- nosy: +sable ___ Python tracker ___

[issue1542544] Improve dynamic linking support on AIX

2010-08-31 Thread Sébastien Sablé
Sébastien Sablé added the comment: I proposed a patch in issue 941346 that is different from this one but which should result in a shared python library on AIX as well. regards -- nosy: +sable ___ Python tracker

[issue9724] help('nonlocal') missing

2010-08-31 Thread Cherniavsky Beni
New submission from Cherniavsky Beni : >>> help('nonlocal') no Python documentation found for 'nonlocal' As a language keyword, it clearly should have documentation. -- assignee: d...@python components: Documentation messages: 115266 nosy: cben, d...@python priority: normal severity: no

[issue9724] help('nonlocal') missing

2010-08-31 Thread Benjamin Peterson
Benjamin Peterson added the comment: r84376. -- nosy: +benjamin.peterson resolution: -> fixed status: open -> closed ___ Python tracker ___ _

[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-08-31 Thread Michał Powaga
Michał Powaga added the comment: The problem was be here: path = path[:-1] # This is not needed and cuts last character return urlunparse((scheme, netloc, path, params, query, fragment)) I sent a patch. PS. Sorry if I`m doing something wrong but it is my first patch and acti

[issue9725] urllib.request.FancyURLopener won't connect to pages requiring username and password

2010-08-31 Thread Petr Machek
New submission from Petr Machek : Code: import urllib.request class MyOpener(urllib.request.FancyURLopener): prompt_user_passwd = lambda x, y, z: ("username", "password") opener = MyOpener() page = opener.open("http://riddle.p4x.ch/music";) print(page.readlines()) opener.open() call ends

[issue9723] pipes.quote() needs to be documented

2010-08-31 Thread Eric Smith
Eric Smith added the comment: I think you mean pipe.quote in your message, not pipe.call. The subject looks correct. I'm not sure pipes is the best place for this, but I agree it should probably be documented in older versions. It seems to me we've had this discussion before about quoting co

[issue9721] urlparse.urljoin() cuts off last base character with semicolon at url start

2010-08-31 Thread R. David Murray
Changes by R. David Murray : -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyt

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: The patch shouldn't remove the tests for tostring()/fromstring() (they might be deprecated, but they are still supported). -- ___ Python tracker __

[issue9726] logging.handlers.RotatingFileHandler: implement "preserve log file name extension" feature

2010-08-31 Thread Desmond Cox
New submission from Desmond Cox : See https://issues.apache.org/jira/browse/LOG4NET-64 - "[PATCH] to RollingFileAppender.cs to add the ability to preserve the log file name extension when rolling the log file." Currently, rollover appends a numeric extension to the base file name. E.g.: app.l

[issue9693] asynchat push_callable() patch

2010-08-31 Thread Giampaolo Rodola'
Giampaolo Rodola' added the comment: Thanks for the comments. > I don't understand what _Callable is used for; why not just a tuple? _Callable is just a container to store function, args and kwargs objects. I thought it made more sense than using a tuple because it's intrinsically callable.

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-31 Thread Thomas Jollans
Thomas Jollans added the comment: That sounds reasonable. I've updated the patch to keep the old test_tofromstring testcase. I'll also attach another patch in a moment that removes what I'm reasonably sure is all the uses of array.tostring and .fromstring in the standard library and the oth

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-31 Thread Thomas Jollans
Changes by Thomas Jollans : Added file: http://bugs.python.org/file18698/tostring_usage.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue8990] array constructor and array.fromstring should accept bytearray.

2010-08-31 Thread Thomas Jollans
Changes by Thomas Jollans : Removed file: http://bugs.python.org/file18607/tofrombytes.diff ___ Python tracker ___ ___ Python-bugs-list mailing

[issue5553] Py_LOCAL_INLINE(type) doesn't actually inline except using MSC

2010-08-31 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Committed in r84379 -- keywords: -needs review resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker _

[issue1397474] timeit execution enviroment

2010-08-31 Thread Terry J. Reedy
Terry J. Reedy added the comment: I agree that the Timer doc is deficient in not saying that timing is done within a function defined within the timeit module. It is also deficient in not mentioning the secret of how to successfully pass user-defined functions until the very bottom instead of

[issue808164] socket.close() doesn't play well with __del__

2010-08-31 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: Fixed in r84380 and r84382. -- keywords: -needs review resolution: -> accepted stage: patch review -> committed/rejected status: open -> closed ___ Python tracker ___

[issue7141] 2to3 should add from __future__ import print_statement

2010-08-31 Thread Daniel Stutzbach
Daniel Stutzbach added the comment: I don't think I'm familiar enough with 2to3's pattern-matching syntax to write a good patch. Here's a rough outline for how a patch would work. There are two cases: 1) When there is already a "from __future__ import". Currently, this line is stripped by

[issue941346] AIX shared library fix

2010-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: In dynamic builds, there seem to be lots of messages such as: ld: 0711-224 WARNING: Duplicate symbol: .PyLong_FromString ld: 0711-224 WARNING: Duplicate symbol: PyLong_FromString Are you sure this is normal? In any case, if you find a way to cleanup ld_so_aix

[issue9693] asynchat push_callable() patch

2010-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: > > - why override __bool__?? > > I did that for performance. > Considering that initiate_send() method is called many times, and that > it is almost always used to send data rather than firing functions I > wanted to avoid to call isinstance(first, _Callable)

[issue9727] Add callbacks to be invoked when locale changes

2010-08-31 Thread Nick Coghlan
New submission from Nick Coghlan : As part of the PEP 384 discussion, it was noted that one of the problems with mixed C runtimes on Windows is that each C runtime in the process has it's own idea of the current locale setting. This can be addressed to some degree by having extension modules q

[issue9713] Py_CompileString fails on non decode-able paths.

2010-08-31 Thread STINNER Victor
STINNER Victor added the comment: The problem is not specific to Py_CompileString(): all functions based (indirectly) on PyParser_ASTFromString() and PyParser_ASTFromFile() expect filenames encoded in utf-8 with the strict error handler. If we choose to use something else than utf-8 in strict

[issue9713] Py_CompileString fails on non decode-able paths.

2010-08-31 Thread STINNER Victor
Changes by STINNER Victor : -- components: +Unicode -None versions: +Python 3.2 ___ Python tracker ___ ___ Python-bugs-list mailing lis

[issue1552880] Unicode Imports

2010-08-31 Thread STINNER Victor
STINNER Victor added the comment: utf-8 codec (in strict mode) rejects surrogates in python3, and so you doesn't support undecodable filenames (filenames decoded using surrogateescape error handler which produces surrogate characters). It may be possible if you use surrogateescape everywhere.

[issue1552880] Unicode Imports

2010-08-31 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: I conffess that I didn't follow the utf-8/surrogate discussion. But the utf-8 encoding can encode all valid unicode characters: UTF-8 may only legally be used to encode valid Unicode scalar values. According to the Unicode standard the high and low sur

[issue9728] Docs point to FAQ Section 3, but FAQs are not numbered

2010-08-31 Thread Daniel Stutzbach
New submission from Daniel Stutzbach : In Doc/extending/windows.rst, there's the following text: If your module creates a new type, you may have trouble with this line:: PyVarObject_HEAD_INIT(&PyType_Type, 0) Change it

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-08-31 Thread Andrew Bennetts
New submission from Andrew Bennetts : ython 2.6.6 (r266:84292, Aug 24 2010, 21:47:18) [GCC 4.4.5 20100816 (prerelease)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import socket, ssl >>> s = socket.socket() >>> wrapped = ssl.wrap_socket(s) >>> wrapped.rec

[issue9729] Unconnected SSLSocket.{send, recv} raises TypeError: 'member_descriptor' object is not callable

2010-08-31 Thread Andrew Bennetts
Changes by Andrew Bennetts : -- type: -> behavior ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.p

[issue9730] base64 encoding takes in bytes rather than string.

2010-08-31 Thread JingCheng LIU
New submission from JingCheng LIU : http://docs.python.org/py3k/library/base64.html?highlight=base64 the examples given doesn't work -- assignee: d...@python components: Documentation messages: 115287 nosy: Dmitry.Jemerov, JingCheng.LIU, d...@python, ezio.melotti, orsenthil, pitrou prio