Pyro 4.13 available

2012-04-17 Thread Irmen de Jong
Hello, Pyro 4.13 has been released! Get it from Pypi: http://pypi.python.org/pypi/Pyro4/ Documentation: http://packages.python.org/Pyro4/index.html The most important changes in this version: * fixed source-newline problem with sending module sources with flame * fixed URI and Proxy

Manuel 1.6.0 released - now compatible with Python 3

2012-04-17 Thread Benji York
Ever wished you could test your documentation just like you test your code? Like doctest but wish it was just a little better/different? Manuel lets you test your documentation and build your own test formats. Full info at http://packages.python.org/manuel/. Download from

[ANN] Portable Python 2.7.3.1 released

2012-04-17 Thread Perica Zivkovic
Dear people, I would like to announce a new release of Portable Python based on Python 2.7.3 Included in this release: - - PyScripter v2.5.3 - NymPy 1.6.1 - SciPy 0.10.1 - Matplotlib 1.1.0 - PyWin32 216 - Django 1.4 - PIL 1.1.7 - Py2Exe 0.6.9 - wxPython 2.9.3.1 - NetworkX

PrintPreviewDialog problem

2012-04-17 Thread alhad
Hi Guys, I am using Python 2.5 Qt4.4.1 on windows xp machine. I am trying to use printpreviewdialog for my application. printer = QtGui.QPrinter(QtGui.QPrinter.HighResolution) preview = QtGui.QPrintPreviewDialog(printer,self) preview.paintRequested.connect(self.printPreview) preview.exec_()

From the crest of Olivet...

2012-04-17 Thread E Bmums
From the crest of Olivet, Jesus looked upon Jerusalem. Fair and peaceful was the scene spread out before Him. It was the season of the Passover, and from all lands the children of Jacob had gathered there to celebrate the great national festival. In the midst of gardens and vineyards, and

Re: pygame: output to file?

2012-04-17 Thread Temia Eszteri
Okay, superpollo. I'm looking at a few possible ways to do this (the Zen of Python hates me, even though I'm dutch-blooded!), and I'd like to ask a couple more questions before I dive into writing up a solution. First, are you simply trying to capture the framebuffer of a Pygame-made game in

Re: PrintPreviewDialog problem

2012-04-17 Thread Vincent Vande Vyvre
Le 17/04/12 08:09, alhad a écrit : Hi Guys, I am using Python 2.5 Qt4.4.1 on windows xp machine. I am trying to use printpreviewdialog for my application. printer = QtGui.QPrinter(QtGui.QPrinter.HighResolution) preview = QtGui.QPrintPreviewDialog(printer,self)

Re: escaping

2012-04-17 Thread Serhiy Storchaka
This was the original intention, i.e. 'format' preferred over '%' but even the core developers have backtracked on this issue. If I could remember the thread it was on I'd give you a reference, but I haven't the faintest idea as to which mailing list it was on. I'm certain that other subscribers

Re: Framework for a beginner

2012-04-17 Thread Bryan
biofob wrote: I am new to python and only have read the Byte of Python ebook, but want to move to the web. I am tired of being a CMS tweaker and after I tried python, ruby and php, the python language makes more sense (if that makes any sense for the real programmers). I heard a lot of good

Re: Framework for a beginner

2012-04-17 Thread Arnaud Delobelle
On 17 April 2012 09:54, Bryan bryanjugglercryptograp...@yahoo.com wrote: Django has emphasized backwards compatibility with the down-side that, last I heard, there was no plan to move to Python 3. Not quite: https://www.djangoproject.com/weblog/2012/mar/13/py3k/ -- Arnaud --

Re: pygame: output to file?

2012-04-17 Thread Temia Eszteri
Oh, forgot to mention some things. Also poorly phrased other things. Let me try that again. * ImageMagick (http://www.imagemagick.org/) as Ian suggested - the ctypes binding I found for this was too immature to use, and the other option will require compiling, The 'other option' I meant here was

Re: File traversing

2012-04-17 Thread Nibin V M
wow...thanks Karl :) On Tue, Apr 17, 2012 at 2:20 AM, Karl Knechtel zahl...@gmail.com wrote: On Sun, Apr 15, 2012 at 5:51 AM, Chris Angelico ros...@gmail.com wrote: (You may also want to consider using the 'with' statement to guarantee a timely closing of the file. Outside the scope of

Re: Framework for a beginner

2012-04-17 Thread Roy Smith
In article c59fba7e-df71-4429-919b-cf34668fe...@s10g2000pbc.googlegroups.com, Bryan bryanjugglercryptograp...@yahoo.com wrote: Django has emphasized backwards compatibility with the down-side that, last I heard, there was no plan to move to Python 3. Hardly. See

Re: logging.config.fileConfig FileHandler configure to write to APP_DATA

2012-04-17 Thread Jean-Michel Pichavant
Jeffrey Britton wrote: I figured out what I was after. logfn = os.path.join(os.environ['APPDATA'], directory, filename) ensure_path(logfn) logging.config.fileConfig(logging.conf, defaults={'logfn': logfn}) In the config file use: [handler_fileHandler] class=FileHandler level=DEBUG

Re: system call that is killed after n seconds if not finished

2012-04-17 Thread Adam Skutt
On Apr 16, 11:34 am, Alain Ketterlin al...@dpt-info.u-strasbg.fr wrote: Jaroslav Dobrek jaroslav.dob...@gmail.com writes: I would like to execute shell commands, but only if their execution time is not longer than n seconds. Like so: monitor(os.system(do_something), 5) I.e. the command

Simple TLS NPN negotiation not working on socket server

2012-04-17 Thread Alek Storm
Hi all, Support for the TLS NPN extension was apparently just added in Python 3.3 (see http://bugs.python.org/issue14204), but I can't get the following simple TCP server using it to work with a browser: sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(('',8000)) sock.listen(5)

How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Edward d'Auvergne
Hi, I was wondering if anyone knows of how to detect when IO redirection of any form is happening within a Python program? I would like to emulate the behaviour of the GNU tools (for example the Unix commands 'ls' or 'grep') whereby ascii escape sequences are printed if the output is solely to

Re: PrintPreviewDialog problem

2012-04-17 Thread Chris Angelico
On Tue, Apr 17, 2012 at 4:09 PM, alhad alhaddeshpa...@gmail.com wrote: but, i am getting AttributeError for paintRequested Before executing that line, find out what 'preview' contains. My guess is that you have an error return such as None, which will of course not have a paintRequested

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread pat
Check os.isatty(fd). It will return True if fd is a terminal-like device. On Tue, Apr 17, 2012 at 5:21 PM, Edward d'Auvergne edw...@nmr-relax.comwrote: Hi, I was wondering if anyone knows of how to detect when IO redirection of any form is happening within a Python program? I would like to

Re: File traversing

2012-04-17 Thread Nibin V M
# python test.py File test.py, line 1 with open('/etc/trueuserowners') as res_own_file: ^ IndentationError: unexpected indent [~]# cat test.py with open('/etc/trueuserowners') as res_own_file: all_res = set(line.strip().replace(' ', '').split(':')[1] for line in res_own_file if ':'

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Chris Angelico
On Wed, Apr 18, 2012 at 12:21 AM, Edward d'Auvergne edw...@nmr-relax.com wrote: I was wondering if anyone knows of how to detect when IO redirection of any form is happening within a Python program?  I would like to emulate the behaviour of the GNU tools (for example the Unix commands 'ls' or

Re: File traversing

2012-04-17 Thread Chris Angelico
On Wed, Apr 18, 2012 at 12:31 AM, Nibin V M nibi...@gmail.com wrote: # python test.py   File test.py, line 1     with open('/etc/trueuserowners') as res_own_file:     ^ IndentationError: unexpected indent Make sure your first code line is flush left. Since indentation indicates block

Re: File traversing

2012-04-17 Thread Nibin V M
thanks for a super fast reply Chris :) On Tue, Apr 17, 2012 at 8:06 PM, Chris Angelico ros...@gmail.com wrote: On Wed, Apr 18, 2012 at 12:31 AM, Nibin V M nibi...@gmail.com wrote: # python test.py File test.py, line 1 with open('/etc/trueuserowners') as res_own_file: ^

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Edward d'Auvergne
Hi, Thanks for the incredibly quick responses! The os.isatty() call (and sys.std*.isatty() calls as suggested by Chris Angelico at http://mail.python.org/pipermail/python-list/2012-April/1291048.html) work perfectly for this job! I might have to do some testing later on Windows though to see

A better way to read Image from a server and start download / load

2012-04-17 Thread vijay swaminathan
Hi Expert, I'm a newbie to python and still on the process of learning on the go ... I have a webserver which has list of images to load on a Device Under Test (DUT) ... *Requirement is:* if the image is already present on the server, proceed with loading the image onto the DUT. if the image

Re: Framework for a beginner

2012-04-17 Thread Gerd Niemetz
Am Mittwoch, 11. April 2012 22:11:37 UTC+2 schrieb biof...@gmail.com: I am new to python and only have read the Byte of Python ebook, but want to move to the web. I am tired of being a CMS tweaker and after I tried python, ruby and php, the python language makes more sense (if that makes any

Working with Cursors

2012-04-17 Thread timlash
Searched the web and this forum without satisfaction. Using Python 2.7 and pyODBC on Windows XP I can get the code below to run and generate two cursors from two different databases without problems. Ideally, I'd then like to join these result cursors thusly: SELECT a.state, sum(b.Sales)

Re: Framework for a beginner

2012-04-17 Thread Gerd Niemetz
Am Mittwoch, 11. April 2012 22:11:37 UTC+2 schrieb biof...@gmail.com: I am new to python and only have read the Byte of Python ebook, but want to move to the web. I am tired of being a CMS tweaker and after I tried python, ruby and php, the python language makes more sense (if that makes any

Re: Working with Cursors

2012-04-17 Thread Ian Kelly
On Tue, Apr 17, 2012 at 12:11 PM, timlash timl...@gmail.com wrote: Searched the web and this forum without satisfaction.  Using Python 2.7 and pyODBC on Windows XP I can get the code below to run and generate two cursors from two different databases without problems.  Ideally, I'd then like

Re: how to count the total number of strings (in the list) used in Python?

2012-04-17 Thread nn
On Apr 16, 3:00 pm, Chinesekidz chinesek...@googlemail.com wrote: Hello! I would like to know how to write the program to count the total number of strings (in the list) used in Python.. for example: list:['1','2','3','4'] for l in range(4):      num=input(list:+list[l]+(between 1 and

Re: Working with Cursors

2012-04-17 Thread nn
On Apr 17, 2:11 pm, timlash timl...@gmail.com wrote: Searched the web and this forum without satisfaction.  Using Python 2.7 and pyODBC on Windows XP I can get the code below to run and generate two cursors from two different databases without problems.  Ideally, I'd then like to join these

Re: Working with Cursors

2012-04-17 Thread nn
On Apr 17, 2:11 pm, timlash timl...@gmail.com wrote: Searched the web and this forum without satisfaction.  Using Python 2.7 and pyODBC on Windows XP I can get the code below to run and generate two cursors from two different databases without problems.  Ideally, I'd then like to join these

Re: How to determine if IO redirection is occurring with the output from a Python program?

2012-04-17 Thread Chris Angelico
On Wed, Apr 18, 2012 at 12:59 AM, Edward d'Auvergne edw...@nmr-relax.com wrote: Hi, Thanks for the incredibly quick responses!  The os.isatty() call (and sys.std*.isatty() calls as suggested by Chris Angelico at http://mail.python.org/pipermail/python-list/2012-April/1291048.html) work

Bug in Python

2012-04-17 Thread Kiuhnm
I'm using Python 3.2.2, 64 bit on Windows 7. Consider this code: --- print(1) print(2) print(3) with open('test') as f: data = f.read() with open('test') as f: data = f.read() --- If I debug this code with python -m pdb script.py and I issue the command j 7 Python crashes. Kiuhnm

Re: Framework for a beginner

2012-04-17 Thread Bryan
Roy Smith wrote: Bryan wrote: Django has emphasized backwards compatibility with the down-side that, last I heard, there was no plan to move to Python 3. Hardly.  Seehttps://www.djangoproject.com/weblog/2012/mar/13/py3k/ Ah, I'm behind the times again. Thanks, that's good news. -- --Bryan

Re: Bug in Python

2012-04-17 Thread Hans Mulder
On 18/04/12 03:08:08, Kiuhnm wrote: print(1) print(2) print(3) with open('test') as f: data = f.read() with open('test') as f: data = f.read() I get the same result with Pythin 3.3.0a0 on MacOS X 10.6: 93 ./python.exe -m pdb /tmp/script.py /tmp/script.py(1)module() - print(1)

Re: Bug in Python

2012-04-17 Thread John O'Hagan
On Wed, 18 Apr 2012 03:08:08 +0200 Kiuhnm kiuhnm03.4t.yahoo...@mail.python.org wrote: I'm using Python 3.2.2, 64 bit on Windows 7. Consider this code: --- print(1) print(2) print(3) with open('test') as f: data = f.read() with open('test') as f: data = f.read() --- If I

Re: Bug in Python

2012-04-17 Thread Terry Reedy
On 4/18/2012 12:47 AM, Hans Mulder wrote: On 18/04/12 03:08:08, Kiuhnm wrote: print(1) print(2) print(3) with open('test') as f: data = f.read() with open('test') as f: data = f.read() How much of that is needed to trigger the problem? All three prints? Any of them? I get the

[issue10486] http.server doesn't set all CGI environment variables

2012-04-17 Thread Glenn Linderman
Glenn Linderman v+pyt...@g.nevcal.com added the comment: Reading the CGI 1.1 spec, it says: The QUERY_STRING value provides the query-string part of the Script-URI. (See section 3.3). The server MUST set this variable; if the Script-URI does not include a query component, the

[issue14087] multiprocessing.Condition.wait_for missing

2012-04-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Charles-François, will you take this one? :) Yes :-) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14087 ___

[issue14576] IDLE cannot connect to subprocess - New solution

2012-04-17 Thread clikkeb
clikkeb clik...@gmail.com added the comment: It is one of the possible solutions. In combination with the writable flag solution, you might create a class variable in IdleConf (e.g. user_cfg) that contains the user's home directory; such variable will be initialized to an empty string by

[issue14586] TypeError: truncate() takes no keyword arguments

2012-04-17 Thread Guy Taylor
Guy Taylor thebigguy.co...@gmail.com added the comment: @Brandl truncate() was the issue I ran into, no other reason. I have started on the rest of the IO module tho. I know the patch is not working but I ran into problems with getting cpython to change functions from positional to keyword.

[issue14600] Change ImportError reference handling, naming

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: You probably want to check args and kwargs for NULL-ness too. Otherwise, looks good. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14600

[issue14593] PyErr_SetFromImportErrorWithNameAndPath lacks error checking

2012-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- resolution: - duplicate status: open - closed superseder: - Change ImportError reference handling, naming ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14593

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Surely, if these objects define non-trivial 'close' members, they must not be called during garbage collection. Define non-trivial. There are various tests for it in test_io. Not ending up in gc.garbage is *by design*. Making file objects

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I _think_ the only python related things you can do from tp_clear() is Py_DECREF(), this is what I mean by trivial. This is the reason, for example, that special care was done with generators. An IO object could of course do

[issue11750] Mutualize win32 functions

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: sbt shibt...@gmail.com added the comment: s/_win32/_winapi/g Overlapped's naming is still lagging behind :-) Other than that, a comment: +def Close(self): +if not self.closed: +self.closed = True +

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: I _think_ the only python related things you can do from tp_clear() is Py_DECREF(), this is what I mean by trivial. Well, Py_DECREF is not trivial at all, since it can invoke arbitrary Python code (through e.g. weakref callbacks, or by

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Well, I want backwards-compatibility *now*, not forever. I don't think changing a function signature in an incompatible way is generally acceptable. You might make one of the arguments optional, though (but keeping the current semantics when the

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Kristján Valur Jónsson
Kristján Valur Jónsson krist...@ccpgames.com added the comment: I don't believe it. I don't see what's magical about being called by the gc. Again, a Py_DECREF in tp_dealloc can invoke arbitrary Python code. Look again. gcmodule specifically takes any objects reachable from ob_clear and sees

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: Look again. gcmodule specifically takes any objects reachable from ob_clear and sees if any of them have side effects when Py_DECREF'd. has_finalizer() in gcmodule.c doesn't check for weakref callbacks, so a weakref callback can still be

[issue14339] Optimizing bin, oct and hex

2012-04-17 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- assignee: - mark.dickinson ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14339 ___ ___

[issue12081] Remove distributed copy of libffi

2012-04-17 Thread Matthias Klose
Matthias Klose d...@debian.org added the comment: The last time I merged libffi, we were not able to build the MacOS X and Windows libffi from the upstream sources, but used the internal copy of the copy. Now that libffi 3.0.11 is released, we could - update to this new version, see if the

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: FreeBSD doesn't provide CLOCK_PROCESS_CPUTIME_ID, but CLOCK_PROF. CLOCK_PROF can be used instead of getrusage(), its precision can be read using clock_getres(). Something like #if defined(CLOCK_PROF) defined(__FreeBSD__) can be

[issue14604] spurious stat() calls in importlib

2012-04-17 Thread Antoine Pitrou
New submission from Antoine Pitrou pit...@free.fr: It seems importlib does multiple stat() calls on py files: stat(/home/antoine/cpython/opt/Lib, {st_mode=S_IFDIR|0775, st_size=12288, ...}) = 0 stat(/home/antoine/cpython/opt/Lib/_sysconfigdata.py, {st_mode=S_IFREG|0664, st_size=16032, ...}) =

[issue14586] TypeError: truncate() takes no keyword arguments

2012-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: Ah, I'm glad someone else chimed in. I was going to say that I was pretty sure we had a macro for doing this, but I don't do much C level coding so I didn't have a reference handy. -- ___

[issue14586] TypeError: truncate() takes no keyword arguments

2012-04-17 Thread R. David Murray
R. David Murray rdmur...@bitdance.com added the comment: macro, function...something automated, anyway :) -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14586 ___

[issue11750] Mutualize win32 functions

2012-04-17 Thread sbt
sbt shibt...@gmail.com added the comment: Overlapped's naming is still lagging behind :-) Argh. And a string in winapi_module too. Yet another patch. -- Added file: http://bugs.python.org/file25252/winapi_module.patch ___ Python tracker

[issue9762] PEP 3149 related build failures

2012-04-17 Thread Senthil Kumaran
Senthil Kumaran sent...@uthcode.com added the comment: Hi Barry, I stumbled upon this bug when trying to compile Python2.6 from source on Ubuntu 11.10. If this bug report or the related one issue11715 is a problem due to Ubuntu changes, I think, it is good inform in the download or news

[issue13684] httplib tunnel infinite loop

2012-04-17 Thread luzakiru
luzakiru visco...@inbox.com added the comment: Although perhaps not optimal, the patch is consistent with the rest of the code and fixes the reasonably severe issue. Could this patch be applied in lieu of a better one that can come later? -- ___

[issue14604] spurious stat() calls in importlib

2012-04-17 Thread Eric Snow
Changes by Eric Snow ericsnowcurren...@gmail.com: -- nosy: +eric.snow ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14604 ___ ___ Python-bugs-list

[issue14605] Make import machinery explicit

2012-04-17 Thread Brett Cannon
New submission from Brett Cannon br...@python.org: There should no longer be any implicit part of import when there doesn't have to be. To make import fully explicit, some things need to happen (in context to importlib): * Expose FileLoader * Expose SourceFileLoader * Expose PathFinder *

[issue14592] old-style (level=-1) importing broken after importlib changes

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Detecting if you are in a package is as simple as ``'.' in __name__ or hasattr(mod, '__path__')`` or alternatively for the last guard, ``__name__ == __package__``. As for the failure, I will have a look. --

[issue14605] Make import machinery explicit

2012-04-17 Thread Éric Araujo
Changes by Éric Araujo mer...@netwok.org: -- nosy: +eric.araujo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14605 ___ ___ Python-bugs-list

[issue14551] imp.load_source docs removed from python3 docs...is this correct?

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: On Tue, Apr 17, 2012 at 06:51, Antoine Pitrou rep...@bugs.python.orgwrote: Antoine Pitrou pit...@free.fr added the comment: Well, I want backwards-compatibility *now*, not forever. I don't think changing a function signature in an

[issue13959] Re-implement parts of imp in pure Python

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: I doubt I will beat you to it, Eric, but I did want to say that your overall design was what I had in my head when I was thinking about how to re-implement the function, so keep at it! -- ___ Python

[issue1615] descriptor protocol bug

2012-04-17 Thread Micah Friesen
Micah Friesen guinnessforbreakf...@gmail.com added the comment: I ran into this recently, as well, and have lost probably a day's worth of time debugging it. I submit that this is not a feature - I can't imagine a real-world scenario where you actually want to write debuggable code where a

[issue14087] multiprocessing.Condition.wait_for missing

2012-04-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 5606ee052783 by Charles-François Natali in branch 'default': Issue #14087: multiprocessing: add Condition.wait_for(). Patch by sbt. http://hg.python.org/cpython/rev/5606ee052783 -- nosy: +python-dev

[issue14428] Implementation of the PEP 418

2012-04-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Victor, can you let us know when you think the patch is ready for review? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428

[issue4600] __class__ assignment: new-style? heap? == confusing

2012-04-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- nosy: +flox ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue4600 ___ ___ Python-bugs-list

[issue14087] multiprocessing.Condition.wait_for missing

2012-04-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed. Thanks for the patch, and sorry for the delay! -- resolution: - fixed stage: commit review - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Daniel Stutzbach
Daniel Stutzbach stutzb...@google.com added the comment: On Tue, Apr 17, 2012 at 4:08 AM, Antoine Pitrou rep...@bugs.python.org wrote: has_finalizer() in gcmodule.c doesn't check for weakref callbacks, so a weakref callback can still be invoked from tp_dealloc. Unless I'm mistaken, weakrefs

[issue14371] Add support for bzip2 compression to the zipfile module

2012-04-17 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/issue14371 ___ ___ Python-bugs-list mailing list

[issue9141] Allow objects to decide if they can be collected by GC

2012-04-17 Thread Antoine Pitrou
Antoine Pitrou pit...@free.fr added the comment: On Tue, Apr 17, 2012 at 4:08 AM, Antoine Pitrou rep...@bugs.python.org wrote: has_finalizer() in gcmodule.c doesn't check for weakref callbacks, so a weakref callback can still be invoked from tp_dealloc. Unless I'm mistaken, weakrefs

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 8a4c9a168d09 by Charles-François Natali in branch '2.7': Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can http://hg.python.org/cpython/rev/8a4c9a168d09 New changeset 428bece48029 by

[issue5113] 2.5.4.3 / test_posix failing on HPUX systems

2012-04-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Committed, thanks. -- resolution: - fixed stage: patch review - committed/rejected status: open - closed versions: -Python 2.6 ___ Python tracker rep...@bugs.python.org

[issue14371] Add support for bzip2 compression to the zipfile module

2012-04-17 Thread Martin v . Löwis
Martin v. Löwis mar...@v.loewis.de added the comment: What's the status of your contrib form? -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14371 ___

[issue14606] Memory leak subprocess

2012-04-17 Thread Roland
Changes by Roland r...@ebi.ac.uk: -- nosy: rfs priority: normal severity: normal status: open title: Memory leak subprocess type: resource usage versions: Python 2.7 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14606

[issue14606] Memory leak subprocess

2012-04-17 Thread Roland
New submission from Roland r...@ebi.ac.uk: subprocess leaks memory on win 7 64bit (Python 2.7.3 32bit). The following code snippet will fill up memory slowly but completely after running it multiple times. When python exits the memory is not freed. import subprocess import shlex for i in

[issue9762] Multiarch related build failures on Ubuntu = 11.04

2012-04-17 Thread Barry A. Warsaw
Changes by Barry A. Warsaw ba...@python.org: -- title: PEP 3149 related build failures - Multiarch related build failures on Ubuntu = 11.04 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue9762

[issue9762] PEP 3149 related build failures

2012-04-17 Thread Barry A. Warsaw
Barry A. Warsaw ba...@python.org added the comment: On Apr 17, 2012, at 01:56 PM, Senthil Kumaran wrote: I stumbled upon this bug when trying to compile Python2.6 from source on Ubuntu 11.10. If this bug report or the related one issue11715 is a problem due to Ubuntu changes, I think, it is

[issue14548] garbage collection just after multiprocessing's fork causes exceptions

2012-04-17 Thread Charles-François Natali
Charles-François Natali neolo...@free.fr added the comment: Alternative patch which records pid when Finalize object is created. Looks good to me. Note that it could eventually be rewritten to use an atfork() module, when we finally merge your patch for this other issue :-) -- stage:

[issue14607] method with special keyword-only argument gives error

2012-04-17 Thread Florent Xicluna
New submission from Florent Xicluna florent.xicl...@gmail.com: This is probably a bug. class A: ... def f(self, __a=42): ... pass ... A().f() class A: ... def f(self, *, __a=42): ... pass ... A().f() Traceback (most recent call last): File stdin, line 1, in module

[issue14608] Python 2.7.3 x86 msi - msvcr90.dll version mismatch

2012-04-17 Thread Eduard
New submission from Eduard alexandrul...@gmail.com: After installing Python 2.7.3, inside the Python folder I have version 9.0.30729.1 of msvcr90.dll, but it seems that the embeded redistributable package contains the 9.0.21022.8 version of msvcm90.dll, msvcp90.dll, and msvcr90.dll Is this

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- hgrepos: +118 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___ ___ Python-bugs-list

[issue14608] Python 2.7.3 x86 msi - msvcr90.dll version mismatch

2012-04-17 Thread Florent Xicluna
Changes by Florent Xicluna florent.xicl...@gmail.com: -- components: +Windows nosy: +loewis ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14608 ___

[issue14600] Change ImportError reference handling, naming

2012-04-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 7a32b9380ffd by Brian Curtin in branch 'default': Fix #14600. Correct reference handling and naming of ImportError convenience function http://hg.python.org/cpython/rev/7a32b9380ffd -- nosy: +python-dev

[issue14592] old-style (level=-1) importing broken after importlib changes

2012-04-17 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/issue14592 ___

[issue14592] old-style (level=-1) importing broken after importlib changes

2012-04-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 68f9ad6a3b13 by Brett Cannon in branch 'default': Issue #14592: A relative import will raise a KeyError if __package__ http://hg.python.org/cpython/rev/68f9ad6a3b13 -- nosy: +python-dev

[issue14592] old-style (level=-1) importing broken after importlib changes

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: SystemError fixed (stemming from a misunderstanding of what PyDict_GetItemWithError() did). -- assignee: - brett.cannon resolution: - fixed stage: - committed/rejected status: open - closed ___

[issue2377] Replace __import__ w/ importlib.__import__

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Note: __import__('sys', level=1) no longer works; raises KeyError instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2377 ___

[issue13959] Re-implement parts of imp in pure Python

2012-04-17 Thread Roundup Robot
Roundup Robot devn...@psf.upfronthosting.co.za added the comment: New changeset 66bd85bcf916 by Brett Cannon in branch 'default': Issue #13959: Re-implement imp.load_compiled() in imp.py. http://hg.python.org/cpython/rev/66bd85bcf916 -- ___ Python

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file25253/aac59a3c11ef.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue2090] __import__ with fromlist=

2012-04-17 Thread Brett Cannon
Brett Cannon br...@python.org added the comment: Importlib does away with this issue. -- resolution: - out of date stage: - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2090

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Added file: http://bugs.python.org/file25254/384190bb0bd5.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue12599] Use 'is not None' where appropriate in importlib

2012-04-17 Thread Brett Cannon
Changes by Brett Cannon br...@python.org: -- components: +Library (Lib) keywords: +easy priority: normal - low versions: -Python 3.2 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12599 ___

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: Removed file: http://bugs.python.org/file25253/aac59a3c11ef.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14428 ___

[issue14428] Implementation of the PEP 418

2012-04-17 Thread STINNER Victor
STINNER Victor victor.stin...@gmail.com added the comment: can you let us know when you think the patch is ready for review? Now! I created a repository for the PEP. I integrated my own last comments. I tested the PEP on Linux 3.3, FreeBSD 8, OpenBSD 5, OpenSolaris and Windows Seven. The

[issue14607] method with special keyword-only argument gives error

2012-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +benjamin.peterson, ncoghlan ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14607 ___ ___

[issue14606] Memory leak subprocess

2012-04-17 Thread Antoine Pitrou
Changes by Antoine Pitrou pit...@free.fr: -- nosy: +brian.curtin, tim.golden ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue14606 ___ ___

  1   2   >