Re: [Python-Dev] co_firstlineno on decorated functions

2010-08-03 Thread Raghuram Devarakonda
On Tue, Aug 3, 2010 at 10:14 AM, Guido van Rossum wrote: > What are the use cases for co_firstlineno? Even if it is for > displaying the source code, I can find virtue for both sides of this > argument. nose uses co_firstlineno to determine order of the test functions and decorating a test funct

Re: [Python-Dev] Very Strange Argument Handling Behavior

2010-04-16 Thread Raghuram Devarakonda
On Fri, Apr 16, 2010 at 12:57 AM, Alex Gaynor wrote: > Hi all, > > I ran into the follow behavior while making sure Django works > correctly on PyPy.  The following behavior was observed in all tested > versions of CPython (2.5, 3.1): > def f(**kwargs): > ...     print(kwargs) > ... kwar

Re: [Python-Dev] IDLE reading IDLESTARTUP or PYTHONSTARTUP on restart

2009-02-11 Thread Raghuram Devarakonda
On Wed, Feb 11, 2009 at 1:45 PM, Mitchell L Model wrote: > I have a patch for IDLE, but I've never submitted a patch before and not > quite sure of the procedure, despite reading the guidelines at > http://www.python.org/dev/patches/. But I'll be brave and persevere. The > question I have at the m

Re: [Python-Dev] [patch] Duplicate sections detection in ConfigParser

2009-02-03 Thread Raghuram Devarakonda
>> The attached patch is compatible with both the 2.x and the 3.x >> branches; it adds a `unique_sects` parameter to the constructor of >> RawConfigParser and a test in the parser loop that raises >> DuplicateSectionError if a section is seen more then once and that >> unique_sects is True. http:/

Re: [Python-Dev] My patches

2008-10-30 Thread Raghuram Devarakonda
On Thu, Oct 30, 2008 at 11:55 AM, Paul Moore <[EMAIL PROTECTED]> wrote: > I just did a quick experiment, checking for trivial documentation > patches I could review, and some things became obvious: > > 1. There is no way of telling which issues have a patch. There is a "patch" keyword that is usu

Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Raghuram Devarakonda
> > Are there any mailing lists associated with this project? I looked at > > google code page but couldn't find any. > > Not yet. Do you want me to create a Google group for it? I think that will be very useful. ___ Python-Dev mailing list Python-D

Re: [Python-Dev] Invitation to try out open source code review tool

2008-05-05 Thread Raghuram Devarakonda
On Mon, May 5, 2008 at 12:28 PM, Guido van Rossum <[EMAIL PROTECTED]> wrote: > None of these seem insurmountable, so now that it's open source, I'm > looking forward to contributions. Are there any mailing lists associated with this project? I looked at google code page but couldn't find any.

Re: [Python-Dev] socket.try_reuse_address()

2008-04-30 Thread Raghuram Devarakonda
On Wed, Apr 30, 2008 at 2:07 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > > This one will not work. > > > > >>> 'windows' in System.getProperty('os.name').lower() > > Traceback (innermost last): > > File "", line 1, in ? > > TypeError: string member test needs char left operand > > >>>

Re: [Python-Dev] socket.try_reuse_address()

2008-04-30 Thread Raghuram Devarakonda
On Wed, Apr 30, 2008 at 1:42 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: > > if os.name == "nt": > > _socketmethods = _socketmethods + ('ioctl',) > > +_is_windows = True > > +elif os.name == 'java': > > +from java.lang import System > > +_is_windows = 'windows' in System.getP

Re: [Python-Dev] socket.SOL_REUSEADDR: different semantics between Windows vs Unix (or why test_asynchat is sometimes dying on Windows)

2008-04-07 Thread Raghuram Devarakonda
On Sat, Apr 5, 2008 at 1:22 PM, Trent Nelson <[EMAIL PROTECTED]> wrote: > Nod, if SO_EXCLUSIVEADDRUSE is used instead in the code I posted, Windows > raises EADDRINUSE on the second bind(). I don't have access to any Linux > boxes at the moment, so I can't test what sort of error is raised wit

Re: [Python-Dev] Small RFEs and the Bug Tracker

2008-02-20 Thread Raghuram Devarakonda
> > Renaming it is easy. To the native speakers reading it: What should > > it be called? (please try to come up with something shorter than > > "request for enhancement") > > > > "feature request"? How about calling it just "enhancement"? ___ Pytho

Re: [Python-Dev] bugs.pythong.org bug?

2008-02-06 Thread Raghuram Devarakonda
On Feb 6, 2008 2:54 PM, Joseph Armbruster <[EMAIL PROTECTED]> wrote: > - went to bugs.python.org > - clicked search (on the lhs of the page) > - typed in josepharmbruster as creator > - clicked search > > I will create an issue if deemed necessary. > > Joseph Armbruster > > exceptions.KeyError:

[Python-Dev] Returning exception stack trace in SimpleXMLRPCServer response

2007-10-04 Thread Raghuram Devarakonda
Hi, When an exception occurs in a function, SimpleXMLRPCServer currently sends exception type and value back to the client (in ) . So the client sees some thing like: "':invalid literal for int() with base 10" This string is constructed in _marshaled_dispatch() as ""%s:%s" % (exc_type, exc_value

Re: [Python-Dev] [Tracker-discuss] Python tickets summary

2007-09-13 Thread Raghuram Devarakonda
On 9/13/07, Facundo Batista <[EMAIL PROTECTED]> wrote: > http://www.taniquetil.com.ar/facundo/py_tickets.html It looks like the column "Opened by" contains information for "Last update by" and vice versa. At least, that is the case with issue 1159. Thanks, Raghu ___

Re: [Python-Dev] error in Misc/NEWS

2007-06-01 Thread Raghuram Devarakonda
On 6/1/07, Georg Brandl <[EMAIL PROTECTED]> wrote: > Raghuram Devarakonda schrieb: > > There is an entry in "Core and builtins" section of Misc/NEWS: > > > > "Bug #1722484: remove docstrings again when running with -OO.". > > > > The actu

[Python-Dev] error in Misc/NEWS

2007-06-01 Thread Raghuram Devarakonda
There is an entry in "Core and builtins" section of Misc/NEWS: "Bug #1722484: remove docstrings again when running with -OO.". The actual bug is 1722485. Incidentally, 1722484 appears to be spam. ___ Python-Dev mailing list Python-Dev@python.org http://

Re: [Python-Dev] removing use of mimetools, multifile, and rfc822

2007-05-31 Thread Raghuram Devarakonda
On 5/31/07, Barry Warsaw <[EMAIL PROTECTED]> wrote: > > In other words this email is to hopefully inspire someone to remove > > the uses > > of rfc822, mimetools, and multifile from the stdlib so the > > DeprecationWarnings can finally go in. > > +1 for deprecating these. I don't have time to slog

[Python-Dev] couple of bug fixes

2007-05-29 Thread Raghuram Devarakonda
Hi, I uploaded couple of patches to fix bugs. 1) http://www.python.org/sf/1720897 to fix the bug 668596 (distutils chops the first character of filenames). 2) http://www.python.org/sf/1713041 to fix the bug 1712742 (pprint handles depth argument incorrectly). Both the patches are extremely smal

Re: [Python-Dev] os.rename on windows

2007-05-01 Thread Raghuram Devarakonda
On 5/1/07, Scott Dial <[EMAIL PROTECTED]> wrote: > The cygwin implementation of rename goes like this: > > 1) Try to use MoveFile > 2) Try to use MoveFileEx(..., MOVEFILE_REPLACE_EXISTING) > 3) Try to unlink destination, then try to use MoveFile > > And as you say, Cygwin claims it meets POSIX.1.

Re: [Python-Dev] os.rename on windows

2007-04-30 Thread Raghuram Devarakonda
On 4/30/07, Andrew Bennetts <[EMAIL PROTECTED]> wrote: > Does MOVEFILE_REPLACE_EXISTING mean the rename over an existing file is > actually > atomic? I cannot find any MSDN docs that say so (and I've seen some that > suggest to me that it probably isn't). Even though MSDN docs do not say it exp

[Python-Dev] os.rename on windows

2007-04-30 Thread Raghuram Devarakonda
Hi, I have submitted a patch (http://www.python.org/sf/1704547) that allows os.rename to replace the destination file if it exists, on windows. As part of discussion in the tracker, Martin suggested that python-dev should discuss the change. Currently, os.rename() on windows uses the API MoveFile

Re: [Python-Dev] Python 2.5.1

2007-04-28 Thread Raghuram Devarakonda
On 4/28/07, Calvin Spealman <[EMAIL PROTECTED]> wrote: > Index: test_os.py > === > --- test_os.py (revision 54982) > +++ test_os.py (working copy) > @@ -6,6 +6,7 @@ > import unittest > import warnings > import sys > +import tempfi

[Python-Dev] some bug reviews

2007-04-25 Thread Raghuram Devarakonda
Hi, The following two bugs can be closed with possible document update. I have put my suggestions for doc changes in the SF tracker. -- http://python.org/sf/1615275 - tempile.TemporaryFile differences between linux and windows http://python.org/sf/1633941 - for line in sys.stdin: doesn't

Re: [Python-Dev] build problem on windows: unable to find getbuildinfo2.c

2007-04-13 Thread Raghuram Devarakonda
On 4/13/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > > I didn't find getbuildinfo2.c in the source. Can some one tell me if > > I am missing some thing here? Are there any additional steps need to > > follow on windows? > > It's a generated file. Search all build description files for that

[Python-Dev] build problem on windows: unable to find getbuildinfo2.c

2007-04-12 Thread Raghuram Devarakonda
Hi, I am trying to build latest python on Windows XP and ran into the following error: "c1 : fatal error C1083: Cannot open source file: '.\getbuildinfo2.c': No such file or directory" I am using Visual C++ 2005 Express Edition to build. I opened "PCbuilld8/pcbuild.sln" and did a "release" buil

Re: [Python-Dev] About SSL tests

2007-04-03 Thread Raghuram Devarakonda
On 4/2/07, Facundo Batista <[EMAIL PROTECTED]> wrote: > I launch openssl through subprocess, but I do *not* find a way to tell > him to quit serving, so all I can do is to kill the process (through the > pid from the Popen object). > > The problem is that os.kill only works in Unix and Macintosh.

Re: [Python-Dev] Should TemporaryFile() return a wrapper like NamedTemporaryFile()?

2007-03-29 Thread Raghuram Devarakonda
On 3/29/07, Raghuram Devarakonda <[EMAIL PROTECTED]> wrote: > Hi, > > I am looking into the issue http://python.org/sf/1615275 (suggested by > Neal) and added a comment there. I would appreciate it if some one can > check it out and comment on it. Basically, I am wonderi

[Python-Dev] Should TemporaryFile() return a wrapper like NamedTemporaryFile()?

2007-03-29 Thread Raghuram Devarakonda
Hi, I am looking into the issue http://python.org/sf/1615275 (suggested by Neal) and added a comment there. I would appreciate it if some one can check it out and comment on it. Basically, I am wondering if TemporaryFile() should return a wrapper instance (with "file" member) just like NamedTemp

Re: [Python-Dev] adding _Py prefix to names in 2.5.1?

2007-01-18 Thread Raghuram Devarakonda
On 1/18/07, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Neal Norwitz schrieb: > > http://python.org/sf/1637022 points out a problem caused by the lack > > of a _Py prefix on Ellipsis. Most (all?) of the new AST names are not > > prefixed. These are all meant to be internal names. Are there an