[issue40832] hi param in bisect module should not accept negative values

2020-05-31 Thread Vikash Raja Samuel Selvin
Vikash Raja Samuel Selvin added the comment: Thanks for your comments. Just to make sure I understood correctly, even though something like bisect.bisect_right(l, 5.1, 0, -2) [This returns 0 which is wrong] is allowed, since it is not common / intended it is ok to not check for negative

[issue40832] hi param in bisect module should not accept negative values

2020-05-31 Thread Vikash Raja Samuel Selvin
New submission from Vikash Raja Samuel Selvin : >>> bisect.bisect_right(l, 5.1, -1) Traceback (most recent call last): File "", line 1, in ValueError: lo must be non-negative >>> l [0, 1, 2, 3, 4, 5, 5, 5, 6, 7, 8, 9] >>> bisect.bisect_right(l, 5.1

How to connect Python3.4.1 to Mysql 5.1 ?

2014-06-25 Thread Raja Sekhar
Can any body tell how to access data from mysql using python. I am using python version 3.4.1 and Mysql version 5.1 -- https://mail.python.org/mailman/listinfo/python-list

Surf Traffic Exchange

2011-03-04 Thread Raja
http://www.surftrafficexchange.com/?refid=5979 -- http://mail.python.org/mailman/listinfo/python-list

Big Cash

2011-03-04 Thread Raja
http://bigcash.zipnadazilch.com/index.php?referral=87081 -- http://mail.python.org/mailman/listinfo/python-list

Big Extra Cash

2011-03-04 Thread Raja
http://www.bigextracash.com/aft/3e8b26c3.html -- http://mail.python.org/mailman/listinfo/python-list

Best Online Currency Trading

2011-03-04 Thread Raja
http://www.etoro.com/B520_A26094_TClick.aspx -- http://mail.python.org/mailman/listinfo/python-list

Re: Python cx_Oracle and Apache

2008-08-25 Thread Raja
On Aug 25, 1:53 pm, Cousin Stanley [EMAIL PROTECTED] wrote: def generate_output():         print 'htmlbody/body/html' generate_output()   Raja     You might try adding a  Content-type  header followed by     a  blank line  to your  generate_output()  function

Python cx_Oracle and Apache

2008-08-24 Thread Raja
rownum 10') return cur cursor = test_dbconnect() def generate_output(): print 'htmlbody/body/html' generate_output() Thanks, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Re: for x,y in word1, word2 ?

2008-08-12 Thread Raja Baz
On Sun, 10 Aug 2008 21:40:55 -0700, Mensanator wrote: On Aug 10, 11:18�pm, ssecorp [EMAIL PROTECTED] wrote: Is there a syntax for looping through 2 iterables at the same time? for x in y: � � for a in b: is not what I want. I want: for x in y and for a in b: Something like this? a

Looking for a New Job?

2008-08-12 Thread raja
Apply to Over 2,00,000 High Paying Jobs. Register Free Now! http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Learn Web Design

2008-08-12 Thread raja
Learn Web Design Online or in SF w/ Academy of Art. Free Info Packet. http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Free Web Design Templates

2008-08-12 Thread raja
Start B2B storefronts on Alibaba, Show products to all buyers - Free! http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Monte Carlo Simulation

2008-08-12 Thread raja
Download Latest Simulation Software Try Risk Solver Free for 15 Days. http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Creating a Site?

2008-08-12 Thread raja
Don't Forget Your Own Toolbar Keep The User a Step Away. Act Now http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

DreamTemplate.com

2008-08-12 Thread raja
DreamTemplate.com World's Largest Web Template Store 3000+ CSS, Website, Flash, Logos http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Fault Seal Analysis

2008-08-12 Thread raja
Fault Seal Analysis Analyse Reservoir Fault, Lateral Top Seal quickly and efficiently http://finance4u.synthasite.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: raw_input on several lines

2008-08-03 Thread Raja Baz
On Sat, 02 Aug 2008 21:58:09 +0200, TP wrote: Hi everybody, When using raw_input(), the input of the user ends when he types Return on his keyboard. How can I change this behavior, so that another action is needed to stop the input? For example, CTRL-G. It would allow the user to input

Re: very large dictionary

2008-08-01 Thread Raja Baz
On Fri, 01 Aug 2008 14:47:17 +0100, Sion Arrowsmith wrote: Simon Strobl [EMAIL PROTECTED] wrote: I tried to load a 6.8G large dictionary on a server that has 128G of memory. I got a memory error. I used Python 2.5.2. How can I load my data? Let's just eliminate one thing here: this server is

Re: very large dictionary

2008-08-01 Thread Raja Baz
On Fri, 01 Aug 2008 14:47:17 +0100, Sion Arrowsmith wrote: Simon Strobl [EMAIL PROTECTED] wrote: I tried to load a 6.8G large dictionary on a server that has 128G of memory. I got a memory error. I used Python 2.5.2. How can I load my data? Let's just eliminate one thing here: this server is

Re: Newbie having issues with threads

2008-08-01 Thread Raja Baz
On Thu, 31 Jul 2008 14:09:12 -0700, James Calivar wrote: I'm a newbie trying to write a script that uses threads. I'm right now a little bit stuck in understanding why the code snippet I wrote doesn't seem to be entering the function defined in the start_new_thread() call. If I run it as

EZ Recipe Menu Costing

2008-07-26 Thread raja
Customized Excel Workbook to Cost All Your Recipes Menu Items http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Weinhaus Weiler

2008-07-26 Thread raja
Historical half-timbered house with excellent cuisine in Oberwesel http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Gain 700% More Muscle

2008-07-26 Thread raja
How To Gain Freaky Muscle Mass. As Seen On CNN. http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

How I Lost My Belly Fat

2008-07-26 Thread raja
I fought with excess belly fat for years until I found this 1 trick. http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Parmigiano Reggiano DOP

2008-07-26 Thread raja
Eccelsa Qualità di Montagna per Rivenditori, Ristoranti e Privati. http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Traditional cuisine

2008-07-26 Thread raja
with italian regional recipes with italian master chefs http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Superfruit strategy

2008-07-26 Thread raja
Six Elements of Superfruit Success Buy new book of expert insights! http://food-drinks.page.tl/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python GDB Wrapper

2008-03-07 Thread Raja
Hi All, Thanks for replies. Daniel- I am looking at just a wrapper around GDB. I dont want to emulate the functionalities of GDB but instead use them in python scripting. Martin - Misc/gdbinit looks promising. Thanks a lot. Thanks, Raja. On Mar 7, 12:43 pm, Martin v. Löwis [EMAIL PROTECTED

Re: Python GDB Wrapper

2008-03-07 Thread Raja
On Mar 7, 1:21 pm, Raja [EMAIL PROTECTED] wrote: Hi All, Thanks for replies. Daniel- I am looking at just a wrapper around GDB. I dont want to emulate the functionalities of GDB but instead use them in python scripting. Martin - Misc/gdbinit looks promising. Thanks a lot. Thanks

Python GDB Wrapper

2008-03-06 Thread Raja
Hi, I am trying to develop a a GDB wrapper script in python which is able to extract a stack trace and all relevant data. Has anyone does this before ? Even some basic idea or code as to how to proceed would be great. Thanks, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Multithreaded Python Mysql MAC Problems

2007-11-12 Thread Raja
print statements. Can anyone please provide me with a insight into this problem and solution to it ? What might be the cause of this problem or how to go about further debugging it ? Thanks, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Multithreaded Python Mysql MAC Problems

2007-11-12 Thread Raja Pradeep Rokkam
print statements. Can anyone please provide me with a insight into this problem and solution to it ? What might be the cause of this problem or how to go about further debugging it ? Thanks, Raja. -- http://mail.python.org/mailman/listinfo/python-list

[issue1354] windows installer problem

2007-10-29 Thread Raja R
New submission from Raja R: Hi, I downloaded the python-2.5.msi yesterday and tried installing it but i am getting the following error This installation package could not be opened . cOntact the application vendor to verify that this is a valid WIndows Installer package. I was able

Re: override settrace

2007-04-26 Thread Raja
On Apr 25, 8:10 pm, Steve Holden [EMAIL PROTECTED] wrote: Raja wrote: Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution

Overriding Sys.Settrace

2007-04-24 Thread Raja
Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution of the program and output a simplified call graph to standard out. Can anyone please

Overriding Sys.Settrace

2007-04-24 Thread Raja
Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution of the program and output a simplified call graph to standard out. Can anyone please

Override sys.settrace()

2007-04-24 Thread Raja
Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution of the program and output a simplified call graph to standard out. Please help me in

Overide settrace

2007-04-24 Thread Raja
Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution of the program and output a simplified call graph to standard out. Please help me in

override settrace

2007-04-24 Thread Raja
Hi, I want to override the sys.settrace() call, create a way to trace the execution of a python program. Keep track of all objects created and destroyed. Keep track of the call pattern throughout the execution of the program and output a simplified call graph to standard out. Please help me in

Printing Using Python

2007-04-16 Thread Raja
) dc.StartDoc('My Python Document') dc.StartPage() dc.EndPage() dc.EndDoc() del dc You help is greatly appreciated. Thank You, Raja. -- http://mail.python.org/mailman/listinfo/python-list

WxPython

2006-12-03 Thread Raja
Your Reply, Thank You , Raja. -- http://mail.python.org/mailman/listinfo/python-list

Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
that get the attribute values of objects stored in the database and I do not want to manually change the way of DB access in those files. I rather prefer a centralized way to achieve this. Good inputs are always appreciated. :-) Raja -- http://mail.python.org/mailman/listinfo/python-list

Re: Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
Correction: I meant __builtin__.getattr method and not the other one I mentioned. :-) Thanks Raja Raja Raman Sundararajan skrev: Hello guys, I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser I

Re: Overriding builtin getattr method

2006-10-03 Thread Raja Raman Sundararajan
or the functional layer is unaffected as the default value returned by the __getattribute__ is the unencoded data from the DB. Raja Diez B. Roggisch skrev: I have data stored in the database which has special characters like , etc. Case 1: Whenever I wanted to present the output to a browser

Secure MultiRobot Management

2006-09-22 Thread Raja
links or resources in this regard. How to modify the headers ? ie. all in 35 bytes . Thank You, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Python Network Programming

2006-09-22 Thread Raja Rokkam
in this regard. How to modify the headers ? ie. all in 35 bytes . Thank You, Raja. -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-23 Thread Raja Raman Sundararajan
Hi paron, I am using PyRTF as of now and it seems to fit my need quite well and it works like a charm :-). I have made a wrapper around it so that it will easier for me to switch the backend for generating the word/RTF docs later. May be, it will be openoffice :-) I appreciate your input.

MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hello guys, Is there any nice library to generate word documents using Python. As of today I am generating a HTML document and then open it with MS Word. But the problem is that I am not able to control the pages in the document and as a result of it the output looks terrible. I have been

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi Tim, Thanks for your PyRTF suggestion. I am checking it out now :-) /R -- http://mail.python.org/mailman/listinfo/python-list

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi guys, Thanks for your note Grant. I had a look at the pyRTF and it seems to be quite impressive :-) I actually works for my needs except the below, concerning cells in a table For cells in a table, pyRTF does not support 1. ALIGN_RIGHT 2. Cell background Do you guys have any idea of how

pyRTF and cells

2006-03-15 Thread Raja Raman Sundararajan
Hello, I have been playing around with pyRTF module for generating rtf documents. Its a very nice tool that fits my basic needs. However I have a problem controlling cells in a table. I am not able to 1. do an align right of contents inside a cell 2. set backgroundcolor of a cell 3. I wonder

Re: pyRTF and cells

2006-03-15 Thread Raja Raman Sundararajan
Yeah, thats a good approach. I have been fiddling around to implement that feature in elements.py and RTF specification from msdn However, I have not been successful thus far. To answer my first question: 1. do an align right of contents inside a cell Its not possible by speficying alignment in

Re: MS word document generator

2006-03-15 Thread Raja Raman Sundararajan
Hi Michel, Well, Office 12 will have very many features. Thats true. But my document needs to work in all versions of Office. I hope that pyRtf generated file is fully rtf compatible. :-) But so far I think it is quite okay. To answer my first question: 1. do an align right of contents inside

Re: Regular Expression Syntax Help

2006-02-08 Thread Raja Raman Sundararajan
Oh! yes you can use re for that. You just need to change the pattern a bit I did not understand where the title will be so I have ignored it, but I got something below which will be helpful for you value = name:asasasasas\nrequest: play\ntitle reg = re.compile('Name:.*\\nrequest:.',

Re: Regular Expression Syntax Help

2006-02-07 Thread Raja Raman Sundararajan
try this. maybe this is what you want? reg = re.compile('Name:.*\\n', re.IGNORECASE) -- http://mail.python.org/mailman/listinfo/python-list

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-19 Thread Raja Raman Sundararajan
? There should be a wasy toa chieve this in ADO using python. C# has a way to do this using ADO.Net. Please keep providing inputs, in the mean time I will also do some research on this problem and get back to you if I find a solution. Thanks! /Raja Raman -- http://mail.python.org/mailman/listinfo/python

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-19 Thread Raja Raman Sundararajan
This does not seem to work well Roger value = '%raj%' cmd.CommandText = select * from table_name where firstname LIKE ? result is 0 where I expected 4 /Raja Raman -- http://mail.python.org/mailman/listinfo/python-list

Re: tools to manipulate PDF document?

2006-01-19 Thread Raja Raman Sundararajan
Yes, reportlad is a good tool for creating pdf and images -- http://mail.python.org/mailman/listinfo/python-list

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-19 Thread Raja Raman Sundararajan
inputs to improve the IN statement logic? My dream is to use just one create parameter for the SQL list so that the query looks like query = SELECT * FROM tb_name WHERE firstname IN ? Nice and easy... :-) Thanks in advance! /Raja Raman -- http://mail.python.org/mailman/listinfo/python-list

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-19 Thread Raja Raman Sundararajan
to fetch you fnames that == 'raj' Originally my problem was using the LIKE statement itself. But I guess you already know. /Raja Raman -- http://mail.python.org/mailman/listinfo/python-list

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-18 Thread Raja Raman Sundararajan
will have to wait for three seconds and will return all the rows in the table, which is unwanted. I am trying to use parameterized statements to avoid these sort of SQL injection problems and have not managed yet to fix the LIKE and IN statement problems. /Raja Raman -- http://mail.python.org/mailman

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-18 Thread Raja Raman Sundararajan
Yes, the statement you tried is a valid statement also name = %'WAITFOR DELAY '00:00:03'--% SELECT * FROM tb_name WHERE firstname LIKE '%s' % name is also valid. My question is how to use the LIKE statements using ADO.in python :-| -- http://mail.python.org/mailman/listinfo/python-list

Re: MSSQL LIKE and IN statements in ADO problem

2006-01-18 Thread Raja Raman Sundararajan
Hi Gregarican, I am the original poster and yes this is a production code level problem. Do u have inputs for a solution? /Raja Raman -- http://mail.python.org/mailman/listinfo/python-list