ANN: SuPy 1.6 for Snow Leopard and Python 2.7

2011-04-24 Thread Greg Ewing
New Binaries of SuPy 1.6 Available -- http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/ I have released two new builds of SuPy 1.6 for MacOSX: MacOSX 10.6 (Snow Leopard) System Python 2.6 User Python 2.7 What is SuPy? - SuPy is a plugin

Re: Question about compiling python 30 from subversion repository on OSX

2011-04-24 Thread Ned Deily
In article c1ffbdb9-1a2b-41d7-970d-e7de1a973...@glegroupsg2000goo.googlegroups.com , Anthony Kong anthony.hw.k...@gmail.com wrote: I have checked out source code from this url http://svn.python.org/projects/python/branches/py3k, then run ./configure --with-universal-archs=64-bit make

Re: detecting newline character

2011-04-24 Thread jmfauth
On 23 avr, 22:25, Daniel Geržo dan...@rulez.sk wrote: Well I am doing this on: Python 2.7.1 (r271:86832, Mar  7 2011, 14:28:09) [GCC 4.2.1 (Apple Inc. build 5664)] on darwin So what do you guys advise me to do? -- Use the io module. jmf --

Re: detecting newline character

2011-04-24 Thread Daniel Geržo
On 23.4.2011 21:18, Thomas 'PointedEars' Lahn wrote: Daniel Geržo wrote: I need to detect the newline characters used in the file I am reading. For this purpose I am using the following code: def _read_lines(self): with contextlib.closing(codecs.open(self.path, rU)) as fobj:

Re: learnpython.org - an online interactive Python tutorial

2011-04-24 Thread Steven D'Aprano
On Sun, 24 Apr 2011 11:35:28 +1000, Chris Angelico wrote: On Sun, Apr 24, 2011 at 10:42 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: This is much like my experience with Apple's Hypertalk, where the only data structure is a string. I'm very fond of Hypertalk, but it is

Re: learnpython.org - an online interactive Python tutorial

2011-04-24 Thread Chris Angelico
On Sun, Apr 24, 2011 at 6:13 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: suppose an implementation might choose to trade off memory for time, skipping string - bignum conversations at the cost of doubling the memory requirements. But even if I grant you bignums, you have to

Re: detecting newline character

2011-04-24 Thread Daniel Geržo
On 24.4.2011 9:05, jmfauth wrote: Use the io module. For the record, when I use io.open(file=self.path, mode=rt, encoding=enc)) as fobj: my tests are passing and everything seems to work fine. That indicates there is a bug with codecs module and universal newline support. -- S

Re: learnpython.org - an online interactive Python tutorial

2011-04-24 Thread Steven D'Aprano
On Sat, 23 Apr 2011 22:10:47 -0500, harrismh777 wrote: I've been giving this some more thought. From the keyboard, all I am able to enter are character strings (not numbers). Presumably these are UTF-8 strings in python3. If I enter the character string 57 then python converts my

Re: detecting newline character

2011-04-24 Thread Thomas 'PointedEars' Lahn
Daniel Geržo wrote: On 24.4.2011 9:05, jmfauth wrote: Use the io module. For the record, when I use io.open(file=self.path, mode=rt, encoding=enc)) as fobj: my tests are passing and everything seems to work fine. That indicates there is a bug with codecs module and universal newline

Re: detecting newline character

2011-04-24 Thread Daniel Geržo
On 24.4.2011 11:19, Thomas 'PointedEars' Lahn wrote: It is clear now that codecs.open() would not support universal newlines from at least Python 2.6 forward as it is *documented* that it opens files in *binary mode* only. The source code that I have posted shows that it therefore actively

Function __defaults__

2011-04-24 Thread Steven D'Aprano
Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I trust that changing function defaults in this fashion is guaranteed to work? -- Steven --

Re: Re: learnpython.org - an online interactive Python tutorial

2011-04-24 Thread Dave Angel
On 01/-10/-28163 02:59 PM, harrismh777 wrote: Cameron Simpson wrote: | folks are not aware that 'bc' also has arbitrary precision floating | point math and a standard math library. Floating point math? I thought, historically at least, that bc is built on dc (arbitrary precision integer math,

Re: detecting newline character

2011-04-24 Thread Thomas 'PointedEars' Lahn
Daniel Geržo wrote: Thomas 'PointedEars' Lahn wrote: It is clear now that codecs.open() would not support universal newlines from at least Python 2.6 forward as it is *documented* that it opens files in *binary mode* only. The source code that I have posted shows that it therefore actively

[SOLVED] detecting newline character

2011-04-24 Thread Thomas 'PointedEars' Lahn
Daniel Geržo wrote: On 23.4.2011 21:18, Thomas 'PointedEars' Lahn wrote: Daniel Geržo wrote: [f = codecs.open(…, mode='rU', encoding='ascii') and f.newlines] […] The only reason I can think of for this not working ATM comes from the documentation, where it says that 'U' requires Python to

ANN: SuPy 1.6 for Snow Leopard and Python 2.7

2011-04-24 Thread Greg Ewing
New Binaries of SuPy 1.6 Available -- http://www.cosc.canterbury.ac.nz/greg.ewing/SuPy/ I have released two new builds of SuPy 1.6 for MacOSX: MacOSX 10.6 (Snow Leopard) System Python 2.6 User Python 2.7 What is SuPy? - SuPy is a plugin

Re: learnpython.org - an online interactive Python tutorial

2011-04-24 Thread jmfauth
On 24 avr, 05:10, harrismh777 harrismh...@charter.net wrote:     I've been giving this some more thought. From the keyboard, all I am able to enter are character strings (not numbers). Presumably these are UTF-8 strings in python3.  If I enter ... In Python 3, input() returns a unicode, a

Re: Function __defaults__

2011-04-24 Thread Terry Reedy
On 4/24/2011 5:58 AM, Steven D'Aprano wrote: Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I trust that changing function defaults in this fashion is guaranteed to work? Interesting

Re: Function __defaults__

2011-04-24 Thread Benjamin Kaplan
On Sun, Apr 24, 2011 at 5:58 AM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: Consider this in Python 3.1: def f(a=42): ...     return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I trust that changing function defaults in

Re: Function __defaults__

2011-04-24 Thread Daniel Kluev
http://docs.python.org/dev/reference/datamodel.html Callable types ... Special attributes: ... __defaults__A tuple containing default argument values for those arguments that have defaults, or None if no arguments have a default value Writable I don't see any 'implementation detail' mark

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
On 4/24/2011 2:58 AM, Steven D'Aprano wrote: Consider this in Python 3.1: def f(a=42): ... return a ... f() 42 f.__defaults__ = (23,) f() 23 Is this an accident of implementation, or can I trust that changing function defaults in this fashion is guaranteed to work? This is

Re: Groups in regular expressions don't repeat as expected

2011-04-24 Thread John Nagle
On 4/21/2011 6:16 AM, Neil Cerutti wrote: On 2011-04-20, John Naglena...@animats.com wrote: Findall does something a bit different. It returns a list of matches of the entire pattern, not repeats of groups within the pattern. Consider a regular expression for matching domain

Include me in the list

2011-04-24 Thread nusrath ahmed
I have written a python script for logging into a website. For the time being I have created a login page and a website which I want to log in. My script pulls up the login page but does not post the username and password and log me in. It simple displays the login page. I wanted my

Re: Include me in the list

2011-04-24 Thread Chris Angelico
On Mon, Apr 25, 2011 at 6:34 AM, nusrath ahmed nusrathah...@yahoo.com wrote: urlLogin = 'file:///C:/Documents%20and%20Settings/Fat/Desktop/New%20Folder/Login.html' This is a file on your hard disk. You'll need to change the URL to point to the actual login page on the actual web site. Chris

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
Good point, Benjamin. I didn't think of testing on Jython before answering. For practical purposes it's a really good idea to test obscure features against all potential target platforms. In this case, I would argue that**Benjamin's test demonstrates a bug in Jython. One could counter by

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
Oops, I must correct myself. Please ignore my previous post. As Daniel points out, Writable is specified in the Python 3 documentation. Apparently I was reading the documentation with only my right eye open, and the Writable tag fell on my blind spot. I concur that this unambiguously implies

Re: Function __defaults__

2011-04-24 Thread Daniel Kluev
On Mon, Apr 25, 2011 at 8:21 AM, Ken Seehart k...@seehart.com wrote: Good point, Benjamin.  I didn't think of testing on Jython before answering.  For practical purposes it's a really good idea to test obscure features against all potential target platforms. In this case, I would argue that

Re: Function __defaults__

2011-04-24 Thread Terry Reedy
On 4/24/2011 5:21 PM, Ken Seehart wrote: Good point, Benjamin. I didn't think of testing on Jython before answering. For practical purposes it's a really good idea to test obscure features against all potential target platforms. In this case, I would argue that**Benjamin's test demonstrates a

Re: Function __defaults__

2011-04-24 Thread Ken Seehart
Gotta love that email latency. :-D Ken On 4/24/2011 2:47 PM, Daniel Kluev wrote: On Mon, Apr 25, 2011 at 8:21 AM, Ken Seehartk...@seehart.com wrote: Good point, Benjamin. I didn't think of testing on Jython before answering. For practical purposes it's a really good idea to test obscure

Pls chk my login script

2011-04-24 Thread nusrath ahmed
I have written a python script for logging into a website. My script pulls up a browser page but does not log me in. Can any one suggest if I i am wrong in nay way,though the script is correct I am sure My script is as below * import cookielib

Re: Pls chk my login script

2011-04-24 Thread Chris Rebert
On Sun, Apr 24, 2011 at 3:05 PM, nusrath ahmed nusrathah...@yahoo.com wrote: I have written a python script for logging into a website. My script pulls up a browser page but does not log me in. Can any one suggest if I i am wrong in nay way,though the script is correct I am sure My script is

Re: Vectors

2011-04-24 Thread Robert Kern
On 4/22/11 7:32 PM, Algis Kabaila wrote: On Saturday 23 April 2011 06:57:23 sturlamolden wrote: On Apr 20, 9:47 am, Algis Kabailaakaba...@pcug.org.au wrote: Are there any modules for vector algebra (three dimensional vectors, vector addition, subtraction, multiplication [scalar and vector].

Re: Function __defaults__

2011-04-24 Thread Steven D'Aprano
On Sun, 24 Apr 2011 10:07:02 -0700, Ken Seehart wrote: On 4/24/2011 2:58 AM, Steven D'Aprano wrote: [...] Is this an accident of implementation, or can I trust that changing function defaults in this fashion is guaranteed to work? This is documented in python 3, so I would expect it to be

Re: Vectors

2011-04-24 Thread rusi
On Apr 25, 4:49 am, Robert Kern robert.k...@gmail.com wrote: On 4/22/11 7:32 PM, Algis Kabaila wrote: On Saturday 23 April 2011 06:57:23 sturlamolden wrote: On Apr 20, 9:47 am, Algis Kabailaakaba...@pcug.org.au wrote: Are there any modules for vector algebra (three dimensional

[issue11907] SysLogHandler can't send long messages

2011-04-24 Thread Lukáš Lalinský
Lukáš Lalinský lalin...@gmail.com added the comment: It will be called only from the handler, so I think it should be fine. The reason why I started using syslog was that I need to log into a single file from multiple processes, but it seems to be showing up as too much trouble. --

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

2011-04-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Reopening this issue since #9228 was closed as a duplicate of this one. Given the significant level of user demand for this behaviour, it should NOT be closed again until a PEP has been written and either accepted or rejected. If such a PEP

[issue9228] Make changes in the PATH and PATHEXT on installation

2011-04-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: If it is being requested every few months, then we should reconsider rejecting it. I have now reopened #3561 instead of this one. -- ___ Python tracker rep...@bugs.python.org

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

2011-04-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Now, another factor to consider is that Windows 7 makes manipulating the system PATH even more difficult to do correctly (e.g. see http://www.symantec.com/connect/forums/wise-7-win-7-problems-updating-environment-variable-current-user). I

[issue11912] Python shouldn't use the mprotect() system call

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: PaX doesn't block mprotect in itself, but prevents pages from being both writable and executable. Andreas's right, it's probably due to a dlopen of an object requiring executable stack via ctypes. So you should report this to iotop's

[issue3526] Customized malloc implementation on SunOS and AIX

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: Sébastien: I'm chiming in late, but doesn't AIX have something like LD_PRELOAD? Why not use it to transparently replace AIX's legacy malloc by another malloc implementation like dlmalloc or ptmalloc? That would not require any patching

[issue11697] Unsigned type in mmap_move_method

2011-04-24 Thread Rafael Zanella
Rafael Zanella rafael.zane...@yahoo.com.br added the comment: Seems like it should use size_t since it deals with memory location/obj size, but Python doesn't have size_t only ssize_t, and ssize_t is signed... m.move(2**32, 10, 4) # Should throw a ValueError - Won't it wrap around and

[issue6780] startswith error message is incomplete

2011-04-24 Thread Ezio Melotti
Changes by Ezio Melotti ezio.melo...@gmail.com: -- keywords: +needs review stage: needs patch - patch review versions: +Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6780 ___

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- status: pending - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11258 ___ ___ Python-bugs-list

[issue828450] sdist generates bad MANIFEST on Windows

2011-04-24 Thread higery
Changes by higery shoulderhig...@gmail.com: Added file: http://bugs.python.org/file21764/test_manifest_reading_sdist_v2.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue828450 ___

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Kasun Herath
Kasun Herath kasun...@gmail.com added the comment: Yes this is a repeatable error. My timezone is GMT + 5:30. The test fails even if the last element of 'calendar.timegm's tuple is changed to 0 or 1 but pass if the function is changed as follows print calendar.timegm((1999, 12, 31, 23, 30, 0,

[issue11882] test_imaplib failed on x86 ubuntu

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- versions: +Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11882 ___

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

2011-04-24 Thread Sridhar Ratnakumar
Sridhar Ratnakumar sridh...@activestate.com added the comment: I believe ActiveState handle this by making the PATH modification optional and having it off by default (I found docs for ActivePerl stating this explicitly, but no equivalent for ActivePython). ActivePython 2.x has it on by

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: After wrestling with startup issues on the OS X buildbots, here is a new patch, tested on several different UNIX platforms. -- Added file: http://bugs.python.org/file21765/embedtest2.patch ___ Python

[issue10914] Python sub-interpreter test

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Unless someone objects, I would like to commit that latest patch, since at least it enables the start of a regression suite for Python embedding. (it also allowed me to notice how crufty and incredibly obscure the getpath.c mechanisms are)

[issue10914] Python sub-interpreter test

2011-04-24 Thread Nick Coghlan
Nick Coghlan ncogh...@gmail.com added the comment: Sounds good. I still have that embedded pickle module issue to deal with, and this should let me actually add a test for it along with the fix. -- ___ Python tracker rep...@bugs.python.org

[issue1346874] httplib simply ignores CONTINUE

2011-04-24 Thread Carl Nobile
Carl Nobile carl.nob...@gmail.com added the comment: I have run into this same issue. It does violate RFC2616 in section 4.3 All 1xx (informational), 204 (no content), and 304 (not modified) responses MUST NOT include a message-body. All other responses do include a message-body, although it

[issue1062277] Pickle breakage with reduction of recursive structures

2011-04-24 Thread Alex Gaynor
Changes by Alex Gaynor alex.gay...@gmail.com: -- nosy: +alex ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue1062277 ___ ___ Python-bugs-list

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I agree with Amaury that it would be better in Modules. In my experience, code that is in PC/ is a pain to discover. A couple of nits about the patch: - the functions in the PyMethodDef array could be sorted alphabetically - the defint() macro

[issue11750] Mutualize win32 functions

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: PS: I don't think there's a problem with the _windows name, as long as wxPython doesn't depend on a *toplevel* module named _windows. -- ___ Python tracker rep...@bugs.python.org

[issue8065] Memory leak in readline.get_current_history_length

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: For the record, I tried Alexander's tests on the buildbots and it failed on OS X Leopard: http://www.python.org/dev/buildbot/all/builders/AMD64%20Leopard%20custom/builds/12/steps/test/logs/stdio but succeeded on OS X Tiger:

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
New submission from Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: After 19d9f0a177de and 020ebe0be33e, test_ctypes hangs when test suite is run in sandbox. This problem occurs only in Python 3.3. $ sandbox python3.3 -B -m test.regrtest --timeout=10 -v test_ctypes == CPython

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Reverting of 19d9f0a177de is sufficient to avoid this problem. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11915

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: What do you call sandbox ? Also, would be nice if you investigated a bit more about the causes. From the traceback, it looks like the child process is stuck inside exec(). -- ___ Python tracker

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: wget http://gentoo.osuosl.org/distfiles/sandbox-2.5.tar.xz tar -xJf sandbox-2.5.tar.xz cd sandbox-2.5 ./configure make make install -- ___ Python tracker

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: It's a source tarball of sandbox implementation used by default in Gentoo. Sandbox is enabled during building/testing/installation of all packages in Gentoo. Sandbox e.g. disallows write access to directories outside

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 2c0da1c4f063 by Victor Stinner in branch 'default': Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the http://hg.python.org/cpython/rev/2c0da1c4f063 -- nosy: +python-dev

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: Is the assert still needed? The assertion is in RLock()._acquire_restore(), not in RLock._release_save(). I prefer to keep it, it doesn't hurt. close this issue because I commited my fix. -- resolution: - fixed status:

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset 996b9c9dc10a by Victor Stinner in branch 'default': Issue #11005, issue #11915: fix issue number of commit 2c0da1c4f063. http://hg.python.org/cpython/rev/996b9c9dc10a -- nosy: +python-dev

[issue11005] Assertion error on RLock._acquire_restore

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: The commit: New changeset 2c0da1c4f063 by Victor Stinner in branch 'default': Issue #11915: threading.RLock()._release_save() raises a RuntimeError if the http://hg.python.org/cpython/rev/2c0da1c4f063 --

[issue11916] A few errnos from OSX

2011-04-24 Thread Pierre Carrier
New submission from Pierre Carrier p...@redhat.com: A few errnos from OSX are missing in the eponymous module. --- 8 --- #ifdef EAUTH inscode(d, ds, de, EAUTH, EAUTH, Authentication error); #endif #ifdef EBADARCH inscode(d, ds, de, EBADARCH, EBADARCH, Bad CPU type in executable); #endif

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: 19d9f0a177de causes that test_ctypes hangs when test suite is run in Gentoo sandbox. Please reopen this issue. $ sandbox python3.3 -B -m test.regrtest --timeout=10 -v test_ctypes == CPython 3.3a0

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: Moving discussion to issue #11258. -- resolution: - duplicate status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11915

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: 19d9f0a177de causes that test_ctypes hangs when test suite is run in Gentoo sandbox. Please reopen this issue. I'd prefer having a separate issue (which you already opened :-)). The fact that all buildbots work fine after the change suggests to

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: duplicate - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11915 ___

[issue11258] ctypes: Speed up find_library() on Linux by 500%

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: OK. We will use issue #11915. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11258 ___

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Changes by Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com: -- nosy: +jonash, vapier ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11915 ___

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis arfrever@gmail.com added the comment: (Revision 2c0da1c4f063 mistakenly refers to this issue. This revision is actually for issue #11005.) -- ___ Python tracker rep...@bugs.python.org

[issue11846] Remove non-guaranteed implementation details from docs.

2011-04-24 Thread Ned Batchelder
Changes by Ned Batchelder ned...@users.sourceforge.net: -- nosy: +nedbat ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11846 ___ ___

[issue11916] A few errnos from OSX

2011-04-24 Thread Martin v . Löwis
Changes by Martin v. Löwis mar...@v.loewis.de: -- versions: -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11916 ___

[issue1490929] urllib.retrieve's reporthook called with non-helpful value

2011-04-24 Thread Rafael Zanella
Rafael Zanella azraellzane...@gmail.com added the comment: Simple (lazy) test case added. It just replicates one test case of reporthook to work with progresshook. The testcases assume the hard-coded value of blocksize on urllib, maybe it should become a public property. Also commented on

[issue11849] ElementTree memory leak

2011-04-24 Thread Charles-Francois Natali
Charles-Francois Natali neolo...@free.fr added the comment: This is definitely a malloc bug. Test with default malloc on a Debian box: cf@neobox:~/cpython$ ./python ../issue11849_test.py *** Python 3.3.0 alpha --- PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND 0 3778 pts/2

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: The MALLOC_MMAP_THRESHOLD improvement is less visible here: $ MALLOC_MMAP_THRESHOLD_=1024 ../opt/python issue11849_test.py *** Python 3.3.0 alpha --- USER PID %CPU %MEMVSZ RSS TTY STAT START TIME COMMAND 0 antoine 7703

[issue11849] glibc allocator doesn't release all free()ed memory

2011-04-24 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: By the way, I noticed that dictionnaries are never allocated through pymalloc, since a new dictionnary takes more than 256B... On 64-bit builds indeed. pymalloc could be improved to handle allocations up to 512B. Want to try and write a patch?

[issue11916] A few errnos from OSX

2011-04-24 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- assignee: - ronaldoussoren components: +Library (Lib), Macintosh -Extension Modules nosy: +ned.deily, ronaldoussoren stage: - patch review versions: -Python 3.4 ___ Python tracker rep...@bugs.python.org

[issue8809] smtplib should support SSL contexts

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8809 ___ ___ Python-bugs-list mailing list

[issue8808] imaplib should support SSL contexts

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue8808 ___ ___ Python-bugs-list mailing list

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: This issue comes from sandbox, not from ctypes. Using sandbox, execv() C function doesn't close files with FD_CLOEXEC flag if the child program is a static program. test_ctypes hangs on find_library() in

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If you would like to reproduce sandbox bug: gcc sandbox_exec_bug.c -o sandbox_exec_bug gcc -static static.c -o static sandbox ./sandbox_exec_bug The bug doesn't occur if static.c is not compiled with -static. Note: I don't know if

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: I close this issue because it is not a Python. I will try to open an issue in Gentoo bugtracker, but now I am too tired to do that :-) -- resolution: - invalid status: open - closed ___

[issue11915] test_ctypes hangs in sandbox

2011-04-24 Thread STINNER Victor
STINNER Victor victor.stin...@haypocalc.com added the comment: If the child program is static, sandbox protects it using a tracing mechanism (based on ptrace with PTRACE_SYSCALL). Output is debug mode: trace_main tracing: ./static TRACE (pid=10377):trace_main: parent waiting for child

[issue11895] pybench prep_times calculation error

2011-04-24 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset e4fcfb8066ff by Jesus Cea in branch '2.7': pybench prep_times calculation error (closes #11895) http://hg.python.org/cpython/rev/e4fcfb8066ff New changeset 7569870a8236 by Jesus Cea in branch '3.1': pybench prep_times calculation

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-24 Thread Roundup Robot
Roundup Robot devnull@devnull added the comment: New changeset bb62908896fe by Jesus Cea in branch 'default': Correctly merging #9319 into 3.3? http://hg.python.org/cpython/rev/bb62908896fe -- ___ Python tracker rep...@bugs.python.org

[issue9319] imp.find_module('test/badsyntax_pep3120') causes segfault

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9319 ___ ___ Python-bugs-list mailing list

[issue11895] pybench prep_times calculation error

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea resolution: fixed - stage: committed/rejected - status: closed - open ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11895 ___

[issue11901] Docs for sys.hexversion should give the algorithm

2011-04-24 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: +1!. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11901 ___ ___ Python-bugs-list

[issue11910] test_heapq C tests are not skipped when _heapq is missing

2011-04-24 Thread Jesús Cea Avión
Jesús Cea Avión j...@jcea.es added the comment: Patch seems good. Ezio, can you commit?. -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11910 ___

[issue11912] Python shouldn't use the mprotect() system call

2011-04-24 Thread Jesús Cea Avión
Changes by Jesús Cea Avión j...@jcea.es: -- nosy: +jcea ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue11912 ___ ___ Python-bugs-list mailing list

[issue8426] multiprocessing.Queue fails to get() very large objects

2011-04-24 Thread Matt Goodman
Matt Goodman meawo...@gmail.com added the comment: You can not pickle individual objects larger than 2**31. This failure is not handled cleanly in the core module, and I suspect masked by above processes. Try piping a*(2**31) through you pipe, or pickling it to disk . . . -- nosy:

[issue10616] Change PyObject_AsCharBuffer() error message

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

[issue6780] startswith error message is incomplete

2011-04-24 Thread Santoso Wijaya
Changes by Santoso Wijaya santoso.wij...@gmail.com: -- nosy: +santa4nt ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue6780 ___ ___ Python-bugs-list

[issue8326] Cannot import name SemLock on Ubuntu

2011-04-24 Thread Buck Golemon
Buck Golemon buck.gole...@amd.com added the comment: python2.7.1+ from mercurial supports sem_open (and multiprocessing) just fine. doko: Could you help us figure out why the ubuntu 10.10 python2.7 build has this issue? I believe this issue should be assigned to you? Relevant lines from the