Re: Printing a text over an image

2012-11-15 Thread Marco Nawijn
On Wednesday, November 7, 2012 5:52:36 PM UTC+1, Martha Morrigan wrote: Hi guys, Using python, wxpython and sqlite in a windows system, Im trying to print some certificates/diplomas/cards with a image at background with the name of person/text over it. I know the basic steps

Re: Python-list Digest, Vol 110, Issue 106

2012-11-15 Thread Jean-Michel Pichavant
- Original Message - Hi, I have a question about Django. I easy_installed Django1.4 and psycopg2, and python manage.py syncdb. And gave me a error; No module named psycopg2.extensions. posgre9.1 is installed. It works fine on my MAC but not my Windows. Does anyone know about this

Re: Python garbage collector/memory manager behaving strangely

2012-11-15 Thread Thomas Rachel
Am 17.09.2012 04:28 schrieb Jadhav, Alok: Thanks Dave for clean explanation. I clearly understand what is going on now. I still need some suggestions from you on this. There are 2 reasons why I was using self.rawfile.read().split('|\n') instead of self.rawfile.readlines() - As you have seen,

debugging in eclipse

2012-11-15 Thread chip9munk
Hi all! I have a stupid problem, for which I cannot find a solution... I have a python module, lets call it debugTest.py. and it contains: def test(): a=1 b=2 c=a+b c so as simple as possible. Now I would like to debug it in eclipse.. (I have pydev and all) so the question is

Re: debugging in eclipse

2012-11-15 Thread Roy Smith
In article b45840eb-f429-4287-905a-76d752d4f...@googlegroups.com, chip9m...@gmail.com wrote: Now I would like to debug it in eclipse.. Heh. It took me a while to realize that the subject line was not referring to http://en.wikipedia.org/wiki/Solar_eclipse_of_November_13,_2012 --

Re: debugging in eclipse

2012-11-15 Thread Dave Angel
On 11/15/2012 07:29 AM, chip9m...@gmail.com wrote: Hi all! I have a stupid problem, for which I cannot find a solution... I have a python module, lets call it debugTest.py. and it contains: def test(): a=1 b=2 c=a+b c so as simple as possible. Now I would like to

Re: debugging in eclipse

2012-11-15 Thread Martin P. Hellwig
On Thursday, 15 November 2012 12:29:04 UTC, chip...@gmail.com wrote: Hi all! I have a stupid problem, for which I cannot find a solution... I have a python module, lets call it debugTest.py. and it contains: def test(): a=1 b=2 c=a+b c

Re: debugging in eclipse

2012-11-15 Thread chip9munk
On Thursday, November 15, 2012 1:49:22 PM UTC+1, Roy Smith wrote: Heh. It took me a while to realize that the subject line was not referring to http://en.wikipedia.org/wiki/Solar_eclipse_of_November_13,_2012 :)) -- http://mail.python.org/mailman/listinfo/python-list

Re: debugging in eclipse

2012-11-15 Thread chip9munk
On Thursday, November 15, 2012 2:42:09 PM UTC+1, Dave Angel wrote: Add a call to test() to the end of the file, and it might do better. I'd also add a print statement, just to assure yourself that it's running. thanks, that is it, (stupid me) now if I have many functions in the model I

Re: debugging in eclipse

2012-11-15 Thread chip9munk
On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig wrote: I assume you have at the end of the debugTest.py file something like this: if __name__ == '__main__': test() no i did not have it... is main really necessary? -- http://mail.python.org/mailman/listinfo/python-list

Re: debugging in eclipse

2012-11-15 Thread Roy Smith
In article mailman.3714.1352986928.27098.python-l...@python.org, Dave Angel d...@davea.name wrote: I'd also add a print statement, just to assure yourself that it's running. My trick to make sure something is running is to add assert 0. To be fair, I usually start by adding a print statement,

Re: debugging in eclipse

2012-11-15 Thread Ulrich Eckhardt
Am 15.11.2012 13:29, schrieb chip9m...@gmail.com: I have a python module, lets call it debugTest.py. and it contains: def test(): a=1 b=2 c=a+b c so as simple as possible. Should that be return c instead of c on a line? Now I would like to debug it in eclipse.. (I have

Re: debugging in eclipse

2012-11-15 Thread Alister
On Thu, 15 Nov 2012 05:46:49 -0800, chip9munk wrote: On Thursday, November 15, 2012 2:44:22 PM UTC+1, Martin P. Hellwig wrote: I assume you have at the end of the debugTest.py file something like this: if __name__ == '__main__': test() no i did not have it... is main really

Re: debugging in eclipse

2012-11-15 Thread chip9munk
On Thursday, November 15, 2012 2:43:26 PM UTC+1, Ulrich Eckhardt wrote: Should that be return c instead of c on a line? oh it is just a silly example function, the functionality is not important. It does not have to return anything... For a start, I would try to actually call the function.

Re: debugging in eclipse

2012-11-15 Thread chip9munk
On Thursday, November 15, 2012 3:21:52 PM UTC+1, Alister wrote: doing it that way means that it will only call test when executed directly not when imported as a module I see, thanks! -- http://mail.python.org/mailman/listinfo/python-list

error importing smtplib

2012-11-15 Thread Eric Frederich
Hello, I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd party login could be doing that would affect

Re: debugging in eclipse

2012-11-15 Thread Aahz
In article roy-f45720.08540815112...@news.panix.com, Roy Smith r...@panix.com wrote: In article mailman.3714.1352986928.27098.python-l...@python.org, Dave Angel d...@davea.name wrote: I'd also add a print statement, just to assure yourself that it's running. My trick to make sure something is

Re: Detect file is locked - windows

2012-11-15 Thread Aahz
In article mailman.3676.1352887368.27098.python-l...@python.org, Tim Golden m...@timgolden.me.uk wrote: On 14/11/2012 00:33, Ali Akhavan wrote: I am trying to open a file in 'w' mode open('file', 'wb'). open() will throw with IOError with errno 13 if the file is locked by another application

Re: Dictionary of Functions

2012-11-15 Thread MRAB
On 2012-11-15 16:04, Kevin Gullikson wrote: Hi all, I am trying to make a dictionary of functions, where each entry in the dictionary is the same function with a few of the parameters set to specific parameters. My actual use is pretty complicated, but I managed to boil down the issue I am

Re: error importing smtplib

2012-11-15 Thread Terry Reedy
On 11/15/2012 9:38 AM, Eric Frederich wrote: Hello, I created some bindings to a 3rd party library. I have found that when I run Python and import smtplib it works fine. If I first log into the 3rd party application using my bindings however I get a bunch of errors. What do you think this 3rd

Re: debugging in eclipse

2012-11-15 Thread Steven D'Aprano
On Thu, 15 Nov 2012 07:56:17 -0800, Aahz wrote: In article roy-f45720.08540815112...@news.panix.com, Roy Smith r...@panix.com wrote: In article mailman.3714.1352986928.27098.python-l...@python.org, Dave Angel d...@davea.name wrote: I'd also add a print statement, just to assure yourself

Re: Dictionary of Functions

2012-11-15 Thread Chris Kaynor
On Thu, Nov 15, 2012 at 8:04 AM, Kevin Gullikson kevin.gullik...@gmail.com wrote: Hi all, I am trying to make a dictionary of functions, where each entry in the dictionary is the same function with a few of the parameters set to specific parameters. My actual use is pretty complicated, but I

Re: Getting empty attachment with smtplib

2012-11-15 Thread Tobiah
I can already say that smtplib is not to blame. It is (mostly) unconcerned with the internal structure of the message -- and by itself will not empty attachments. On the advice of a co-worker, I tried using web2py's gluon.tools.Mail. It was easier to accomplish the attachment, and Thunderbird

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
Thanks for the idea. sys.path was the same before and after the login What else should I be checking? On Thu, Nov 15, 2012 at 11:57 AM, Terry Reedy tjre...@udel.edu wrote: On 11/15/2012 9:38 AM, Eric Frederich wrote: Hello, I created some bindings to a 3rd party library. I have found that

Re: error importing smtplib

2012-11-15 Thread Eric Frederich
Sorry, only saw your first response, didn't see the others. I compiled Python 2.7.2 myself with --enable-shared To create standalone applications that interact with this 3rd party program your main C file instead of having a main function has a FOO_user_main function. When you link your program

Lazy Attribute

2012-11-15 Thread Andriy Kornatskyy
A lazy attribute is an attribute that is calculated on demand and only once. The post below shows how you can use lazy attribute in your Python class: http://mindref.blogspot.com/2012/11/python-lazy-attribute.html Comments or suggestions are welcome. Thanks. Andriy Kornatskyy

Re: Dictionary of Functions

2012-11-15 Thread Joshua Landau
On 15 November 2012 17:13, Chris Kaynor ckay...@zindagigames.com wrote: On Thu, Nov 15, 2012 at 8:04 AM, Kevin Gullikson kevin.gullik...@gmail.com wrote: Hi all, I am trying to make a dictionary of functions, where each entry in the dictionary is the same function with a few of the

Re: Python questions help

2012-11-15 Thread Joshua Landau
On 15 November 2012 01:47, su29090 129k...@gmail.com wrote: I brought a python book and i'm a beginner and I read and tried to do the questions and I still get it wrong. How to create a program that reads an uspecified number of integers, that determines how many positive and negative values

Re: Simple Question regarding running .py program

2012-11-15 Thread rurpy
On 11/14/2012 04:07 PM, Steven D'Aprano wrote: On Wed, 14 Nov 2012 10:20:13 -0800, rurpy wrote: I'll skip the issues already addressed by Joshua Landau. [...] I don't understand why you suggest counting setup time for the alternatives to Google Groups, but *don't* consider setup time for

Re: error importing smtplib

2012-11-15 Thread Terry Reedy
On 11/15/2012 1:48 PM, Eric Frederich wrote: Thanks for the idea. sys.path was the same before and after the login Too bad. That seems to be a typical cause of import failure. What else should I be checking? No idea. You are working beyond my knowledge. But I might either look at the

Re: Simple Question regarding running .py program

2012-11-15 Thread Mark Lawrence
On 15/11/2012 21:29, ru...@yahoo.com wrote: All I'll say is that when I read something on gmane via Thunderbird on Windows Vista on any of the 25 Python mailing lists that I subscribe to, I don't want to read the double spaced crap that comes from G$. I hence perceive a problem. 1) G$ are

Re: Lazy Attribute

2012-11-15 Thread Ian Kelly
On Thu, Nov 15, 2012 at 12:33 PM, Andriy Kornatskyy andriy.kornats...@live.com wrote: A lazy attribute is an attribute that is calculated on demand and only once. The post below shows how you can use lazy attribute in your Python class:

Re: Lazy Attribute

2012-11-15 Thread Ian Kelly
On Thu, Nov 15, 2012 at 12:33 PM, Andriy Kornatskyy andriy.kornats...@live.com wrote: A lazy attribute is an attribute that is calculated on demand and only once. The post below shows how you can use lazy attribute in your Python class:

Re: Subprocess puzzle and two questions

2012-11-15 Thread Nobody
On Wed, 14 Nov 2012 20:49:19 -0500, Roy Smith wrote: I'm slightly surprised that there's no way with the Python stdlib to point a DNS query at a specific server Me too, including the only slightly part. The normal high-level C resolver routines (getaddrinfo/getnameinfo, or even the old

Re: Is there a simpler way to modify all arguments in a function before using the arguments?

2012-11-15 Thread brucegoodstein
On Saturday, November 10, 2012 10:35:12 AM UTC-5, Aahz wrote: In article mailman.3530.1352538537.27098.python-l...@python.org, Peter Otten __pete...@web.de wrote: Miki Tebeka wrote: Is there a simpler way to modify all arguments in a function before using the arguments?

Re: Is there a simpler way to modify all arguments in a function before using the arguments?

2012-11-15 Thread Emile van Sebille
brucegoodst...@gmail.com wrote: Using a decorator works when named arguments are not used. When named arguments are used, unexpected keyword error is reported. Is there a simple fix? Extend def wrapper(*args) to handle *kwargs as well Emile Code: - from functools import wraps def

Re: Subprocess puzzle and two questions

2012-11-15 Thread Roy Smith
In article pan.2012.11.15.22.54.09.449...@nowhere.com, Nobody nob...@nowhere.com wrote: That's because the high-level routines aren't tied to DNS. This is true. gethostbyname() and getaddrinfo() use the NSS (name-service switch) mechanism, which is configured via /etc/nsswitch.conf.

Re: debugging in eclipse

2012-11-15 Thread alex23
On Nov 16, 3:05 am, Steven D'Aprano steve +comp.lang.pyt...@pearwood.info wrote: ``1/0`` is shorter.  ;-) It is also guaranteed to run, unlike assert. Only if they actively pass the command line switch to turn it off, which I'd assume someone intentionally using an assertion wouldn't do. --

Re: Simple Question regarding running .py program

2012-11-15 Thread Grant Edwards
On 2012-11-15, Mark Lawrence breamore...@yahoo.co.uk wrote: On 15/11/2012 21:29, ru...@yahoo.com wrote: All I'll say is that when I read something on gmane via Thunderbird on Windows Vista on any of the 25 Python mailing lists that I subscribe to, I don't want to read the double spaced crap

Re: Simple Question regarding running .py program

2012-11-15 Thread rusi
On Nov 16, 2:29 am, ru...@yahoo.com wrote: But of course, our genius doesn't keep any records and the cases where he is wrong don't make as much impression on his memory.  Further, he doesn't bother to check the headers on the non-crap posts.  Even a junior-high science student could see the

Re: Is there a simpler way to modify all arguments in a function before using the arguments?

2012-11-15 Thread Ethan Furman
Emile van Sebille wrote: brucegoodst...@gmail.com wrote: Using a decorator works when named arguments are not used. When named arguments are used, unexpected keyword error is reported. Is there a simple fix? Extend def wrapper(*args) to handle *kwargs as well Emile Code: - from

Re: Simple Question regarding running .py program

2012-11-15 Thread Chris Angelico
On Fri, Nov 16, 2012 at 3:10 PM, rusi rustompm...@gmail.com wrote: One small addition: GG allows spam posts to be marked as spam. This feature costs a few seconds and can help everyone (if a few more GG users would use it) And Gmail lets you do the exact same thing, but I almost never need to

Re: Simple Question regarding running .py program

2012-11-15 Thread Chris Angelico
On Fri, Nov 16, 2012 at 5:37 PM, Chris Angelico ros...@gmail.com wrote: Spam filtering is nothing unique. (Don't get me wrong though, that doesn't stop it from being a good thing. It's just not a reason to use GG above all else.) ChrisA -- http://mail.python.org/mailman/listinfo/python-list

Understanding '?' in regular expressions

2012-11-15 Thread krishna . k . kishor3
Can someone explain the below behavior please? re1 = re.compile(r'(?:((?:1000|1010|1020))[ ]*?[\,]?[ ]*?){1,3}') re.findall(re_obj,'1000,1020,1000') ['1000'] re.findall(re_obj,'1000,1020, 1000') ['1020', '1000'] However when I use [\,]?? instead of [\,]? as below, I see a different result

RE: Lazy Attribute

2012-11-15 Thread Andriy Kornatskyy
Ian, Thank you for the comments. The name attribute is not very descriptive. Why not lazy_attribute instead? It just shorter and still descriptive. If accessing the descriptor on the class object has no special meaning, then the custom is to return the descriptor object itself, as

RE: Lazy Attribute

2012-11-15 Thread Andriy Kornatskyy
Ian, Thank you for mentioning about this research, really appreciate that. Thanks. Andriy Kornatskyy From: ian.g.ke...@gmail.com Date: Thu, 15 Nov 2012 15:46:19 -0700 Subject: Re: Lazy Attribute To: python-list@python.org On Thu, Nov 15, 2012 at

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: testing the new version of irker -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Kristján Valur Jónsson
New submission from Kristján Valur Jónsson: The format used by the marshal module does not support instancing. This precludes certain data optimizations, such as sharing string constants, common tuples, even common code objects. Since the marshal format is used to write compiled code, this

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson
Mark Dickinson added the comment: I think consistent behavior between int() and Fraction() is valuable. Agreed. If no-one objects I'll fix the Decimal - Fraction and float - Fraction conversions to match what Decimal - int and float - int currently do (ValueError and OverflowError). Then

[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Kristján Valur Jónsson
Kristján Valur Jónsson added the comment: Second patch which adds the missing internment support for strings, including unittests. -- Added file: http://bugs.python.org/file27988/marshalinstance.patch ___ Python tracker rep...@bugs.python.org

[issue16476] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Leo Liu
New submission from Leo Liu: python -mjson.tool some_file.json x.json x.json will have trailing white spaces. Also reported here: http://thread.gmane.org/gmane.comp.python.devel/135311 -- messages: 175607 nosy: leoliu priority: normal severity: normal status: open title: Trailing

[issue16476] Trailing spaces in pretty-printed JSON

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: This is a duplicate of #16333. -- nosy: +ezio.melotti resolution: - duplicate stage: - committed/rejected status: open - closed superseder: - Trailing whitespace in json dump when using indent ___ Python tracker

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: another test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

[issue2771] Test issue

2012-11-15 Thread Ezio Melotti
Ezio Melotti added the comment: final test -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue2771 ___ ___ Python-bugs-list mailing list

[issue16465] dict creation performance regression

2012-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: In the end, it's mostly a wash. Yes, it's predictable. The gain is too small and undistinguished on a background of random noise. May be more long-running benchmark will show more reliable results, but in any case, the gain is small. My long-running

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield
New submission from Sam Thursfield: Exceptions such as disk full during extraction cause tarfile to leak file handles. Besides being messy, it causes real problems if, for example, the target file is on a mount that should be unmounted before the program exits - in this case, the unmount will

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Sam Thursfield
Sam Thursfield added the comment: sorry, replace 'open' with 'bltn_open' in the above comment - no need to change it. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16477 ___

[issue16477] tarfile fails to close file handles in case of exception

2012-11-15 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Issue16408 is similar issue for zipfile. -- keywords: +easy nosy: +lars.gustaebel, serhiy.storchaka stage: - needs patch type: behavior - resource usage versions: +Python 2.7, Python 3.2, Python 3.3, Python 3.4 -Python 3.5

[issue16391] add terminator ctor argument to logging.StreamHandlers derived handlers

2012-11-15 Thread Vinay Sajip
Vinay Sajip added the comment: I've added the ability to set handler properties via configuration slightly more easily, see the code in changeset a81ae412174a (the unit test shows how the configuration looks in practice). This enhancement cannot be added to earlier Python versions (no feature

[issue16144] misleading sentence in reference/import

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- resolution: - fixed stage: - committed/rejected status: open - closed type: - behavior ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16144

[issue16144] misleading sentence in reference/import

2012-11-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: Fixed in a8ca14983ab1 and 9961a0dafcc7. Thanks, Manuel. -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16144 ___

[issue16470] Backport set and dictionary comprehensions in tutorial to 2.7

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16470 ___ ___

[issue16386] imp.find_module does not specify registry key it searches on windows

2012-11-15 Thread Andrew Svetlov
Andrew Svetlov added the comment: I think much more important to mention registry key in http://docs.python.org/3/library/importlib.html#importlib.machinery.WindowsRegistryFinder ``imp`` is private module to access implementation internals but ``importlib`` is public interface to import

[issue16391] add terminator ctor argument to logging.StreamHandlers derived handlers

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16391 ___ ___

[issue16392] import crashes on circular imports in ext modules

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16392 ___ ___

[issue16404] Uses of PyLong_FromLong that don't check for errors

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16404 ___ ___

[issue16478] Fix division in tabnanny

2012-11-15 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: Tabnanny should use floor division in calculation, the comment says about this. But in the current Python 3 code / was not changed to //. -- components: Demos and Tools, Library (Lib) files: tabnanny_div.patch keywords: easy, patch messages: 175622

[issue16422] Decimal constants should be the same for py c module versions

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16422 ___ ___

[issue16427] Faster hash implementation

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16427 ___ ___

[issue16429] Emit SyntaxWarning for code that risks UnboundLocalError

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16429 ___ ___

[issue16434] SocketServer call shutdown in the wrong way

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16434 ___ ___

[issue16444] Use support.TESTFN_UNDECODABLE on UNIX

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16444 ___ ___

[issue16447] SEGFAULT when setting type.__name__

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16447 ___ ___

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- nosy: +asvetlov ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16446 ___ ___

[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Stephen
New submission from Stephen: Machine is Redhat Linux 6.2. Tried to install Python3.3 build failed in the make step. --- [sliu@wtl-build-1 Python-3.3.0]$ uname -a Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

[issue16479] Can't install Python 3 on Redhat Linux, make failed

2012-11-15 Thread Stephen
Stephen added the comment: Sorry, missed the configure command in the previous message. It should have been: --- [sliu@wtl-build-1 Python-3.3.0]$ uname -a Linux wtl-build-1 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev
Alexey Kachayev added the comment: Patch is attached for {float, Decimal} - {int, Fraction} consistency (with ValueError and OverflowError). Test cases are changed as well. I can also change OverflowError to ValueError for all cases, but I'm not sure should I open for this separated issue or

[issue16480] pyvenv 3.3 fails to create symlinks for virtualenv/local/{bin, lib} to virtualenv/{bin, lib}

2012-11-15 Thread Marco Amadori
New submission from Marco Amadori: The solution to work around the bug is there: http://ipoveraviancarriers.blogspot.it/2012/11/python-33-and-pyvenv-hackish-solution.html But probably pyvenv should be patched in order to create symlinks. Thanks! -- components: None messages: 175626

[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-15 Thread Stefan Krah
Stefan Krah added the comment: Should we go ahead with this? If so, then I think it only makes sense to change *all* undocumented cases of None default args. Here's a case that used rounding=None in quantize(): https://bitbucket.org/simplecodes/wtforms/issue/117/test-failure-with-python-33

[issue15783] decimal.localcontext(None) fails when using the C accelerator module

2012-11-15 Thread Stefan Krah
Stefan Krah added the comment: By all cases I mean the ones listed in msg169144, not the Number methods. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15783 ___

[issue16446] pdb raises BdbQuit on 'quit' when started with set_trace

2012-11-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- versions: +Python 3.2, Python 3.3 ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16446 ___ ___

[issue16481] process handle leak on windows in multiprocessing

2012-11-15 Thread Richard Oudkerk
New submission from Richard Oudkerk: On Windows the handle for a child process is not closed when the popen/process object is garbage collected. -- messages: 175629 nosy: sbt priority: normal severity: normal stage: needs patch status: open title: process handle leak on windows in

[issue16482] pdb.set_trace() clobbering traceback on error

2012-11-15 Thread A Kaptur
New submission from A Kaptur: pdb.set_trace() is overwriting the actual traceback when exiting with an error. See minimal recreation here: https://gist.github.com/4079971 -- messages: 175630 nosy: akaptur priority: normal severity: normal status: open title: pdb.set_trace() clobbering

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Mark Dickinson
Changes by Mark Dickinson dicki...@gmail.com: -- stage: needs patch - patch review ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16469 ___ ___

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev
Alexey Kachayev added the comment: I also attached full_issue patch: change OverflowError to ValueError for all cases. -- Added file: http://bugs.python.org/file27991/full_issues16469.diff ___ Python tracker rep...@bugs.python.org

[issue16475] Support object instancing and recursion in marshal

2012-11-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: marshal is only supposed to be used to serialize code objects, not arbitrary user data. Why don't you use pickle? -- nosy: +pitrou ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16475

[issue16469] Exceptions raised by Fraction() different from those raised by int()

2012-11-15 Thread Alexey Kachayev
Changes by Alexey Kachayev kacha...@gmail.com: Added file: http://bugs.python.org/file27992/full_issues16469_fixed.diff ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16469 ___

[issue12908] Update dev-in-a-box for new coverage steps

2012-11-15 Thread Brett Cannon
Brett Cannon added the comment: Fixed in various commits. -- resolution: - fixed stage: needs patch - committed/rejected status: open - closed ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue12908

[issue16434] SocketServer call shutdown in the wrong way

2012-11-15 Thread Andrew Svetlov
Changes by Andrew Svetlov andrew.svet...@gmail.com: -- stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16434 ___ ___

[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Brett Cannon
Brett Cannon added the comment: Here is my current plan:: parse_bytecode_file(data, source_stats, source_path) - code This will take in the bytes from the bytecode file and a stats dict from SourceLoader.path_stats(). The method will parse the bytecode file, verify the magic number,

[issue15627] Add a method to importlib.abc.SourceLoader for converting source to a code object

2012-11-15 Thread Brett Cannon
Brett Cannon added the comment: Might name this compile_source() instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15627 ___ ___

[issue15031] Split .pyc parsing from module loading

2012-11-15 Thread Brett Cannon
Brett Cannon added the comment: Might name it compile_bytecode_file() instead. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue15031 ___ ___

[issue16281] TODO in tailmatch(): it does not support backward in all cases

2012-11-15 Thread Serhiy Storchaka
Changes by Serhiy Storchaka storch...@gmail.com: -- components: +Interpreter Core stage: - needs patch ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16281 ___

[issue16458] subprocess.py throw The handle is invalid error on duplicating the STD_INPUT_HANDLE

2012-11-15 Thread Tim Golden
Tim Golden added the comment: Karthk, if you can run up an up-to-date patch and a test I'm willing to review and commit it, otherwise this one will lie quiet. -- ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue16458

  1   2   >