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
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
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
http://www.surftrafficexchange.com/?refid=5979
--
http://mail.python.org/mailman/listinfo/python-list
http://bigcash.zipnadazilch.com/index.php?referral=87081
--
http://mail.python.org/mailman/listinfo/python-list
http://www.bigextracash.com/aft/3e8b26c3.html
--
http://mail.python.org/mailman/listinfo/python-list
http://www.etoro.com/B520_A26094_TClick.aspx
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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 Online or in SF w/ Academy of Art. Free Info Packet.
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Start B2B storefronts on Alibaba, Show products to all buyers - Free!
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
Download Latest Simulation Software Try Risk Solver Free for 15 Days.
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
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
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
Analyse Reservoir Fault, Lateral Top Seal quickly and efficiently
http://finance4u.synthasite.com/
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
Customized Excel Workbook to Cost All Your Recipes Menu Items
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
Historical half-timbered house with excellent cuisine in Oberwesel
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
How To Gain Freaky Muscle Mass. As Seen On CNN.
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
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
Eccelsa Qualità di Montagna per Rivenditori, Ristoranti e Privati.
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
with italian regional recipes with italian master chefs
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
Six Elements of Superfruit Success Buy new book of expert insights!
http://food-drinks.page.tl/
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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
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
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
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
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
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
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
)
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
Your Reply,
Thank You ,
Raja.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
in this regard. How to modify the headers ? ie. all in 35 bytes .
Thank You, Raja.
--
http://mail.python.org/mailman/listinfo/python-list
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.
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
Hi Tim,
Thanks for your PyRTF suggestion. I am checking it out now
:-)
/R
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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:.',
try this. maybe this is what you want?
reg = re.compile('Name:.*\\n', re.IGNORECASE)
--
http://mail.python.org/mailman/listinfo/python-list
?
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
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
Yes, reportlad is a good tool for creating pdf and images
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
64 matches
Mail list logo