What is cx_Oracle?
cx_Oracle is a Python extension module that allows access to Oracle and
conforms to the Python database API 2.0 specifications with a few
exceptions.
Where do I get it?
http://cx-oracle.sourceforge.net
What's new?
1) Fix creation of temporary NCLOB values and the writing
QOTW: Floating point is sort of like quantum physics: the closer you look,
the messier it gets. - Grant Edwards
The circular relationship between object and type explained:
http://comments.gmane.org/gmane.comp.python.general/623460
Floating point numbers don't behave
On Thu, May 21, 2009 at 11:05 PM, seanm...@gmail.com wrote:
The explaination in my introductory Python book is not very
satisfying, and I am hoping someone can explain the following to me:
4 / 5.0
0.80004
4 / 5.0 is 0.8. No more, no less. So what's up with that 4 at the end.
Here is the next problem. For boolean/logical fields, I can set their
value to True/False easily. However, setting NULL seems impossible:
rec = tbl.newRecord()
rec[SOMEFIELD1] = True # Works fine
rec[SOMEFIELD2] = False # Works fine
rec[SOMEFIELD3] = None # Will store False
rec[SOMEFIELD3] = 0
On Fri, 22 May 2009 08:34:17 +0200, Laszlo Nagy gand...@shopzeus.com
wrote:
Now I also tried to set -1. In any of the above cases, if I open that
dbf file with a commercial DBF editor application then I see that the
value is not null.
- Borland Database Desktop shows False value
- CDBF
En Thu, 21 May 2009 08:23:36 -0300, Srijayanth Sridhar
srijaya...@gmail.com escribió:
I am wondering if it is possible to have hexadecimal strings in a ini
file
and have configobj parse it correctly.
for eg:
moonw...@trantor:~/python/config$ cat foo
foo=\x96\x97
.
.
.
a=ConfigObj(foo)
a
On May 21, 5:09 pm, Duncan Booth duncan.bo...@invalid.invalid wrote:
rustom rustompm...@gmail.com wrote:
i suppose the question is entirely about setting properly (and
grokking) file associations -- why is a .py file associated with
pythonw and not python? And is making this association
On May 22, 6:56 am, AggieDan04 danb...@yahoo.com wrote:
The error in this example is roughly equivalent to the width of a red
blood cell compared to the distance between Earth and the sun. There
are very few applications that need more accuracy than that.
For a mathematician there are no
In message wxorl.328387$yx2.227...@en-nntp-06.dc1.easynews.com, Jive
Dadson wrote:
Gosh, you guys are slow. :-) I figured it out.
We were just waiting to see how long it would take you.
--
http://mail.python.org/mailman/listinfo/python-list
En Thu, 21 May 2009 02:31:02 -0300, Kalyan Chakravarthy
kalyanchakravar...@hyit.com escribió:
I am using above code to send an Email, for this i am not installed any
SMTP setup my local , I just given import smtplib
and I am getting following error
**Traceback (most recent call last):
En Wed, 20 May 2009 20:18:02 -0300, LittleGrasshopper
seattleha...@yahoo.com escribió:
New to the group, this is my first post...
It appears that either absolute imports (or my brain) aren't working.
Given a module string.py which is in the same directory as a.py:
#File a.py
from __future__
rustom wrote:
Thanks for this (and all other) tips.
Strangely now my m/c shows things exactly like so. A new .py file gets
associated with python but two days ago it was with pythonw?!
Any recos on where I could read up on this stuff?
I by all this stuff you mean: Windows file associations,
En Thu, 21 May 2009 10:34:09 -0300, s...@pobox.com escribió:
I want to modify my script to automatically zip or gzip files which
exceed
some size threshold. Doing the zip/gzip dance is no problem. I'm
concerned
about how to specify that properly with the email package. For example,
En Tue, 19 May 2009 14:06:04 -0300, Gökhan SEVER gokhanse...@gmail.com
escribió:
I will make double sure myself while using locals() to end up with valid
identifiers.
I would ask myself why I'm using locals() in the first place.
--
Gabriel Genellina
--
In message mailman.424.1242778866.8015.python-l...@python.org, Mitchell L
Model wrote:
However, COL2 might be NULL. I can't figure out a value for y that would
retrieve rows for which COL2 is NULL. It seems to me that I have to
perform an awkward test to determine whether to execute a query
*Google App Engine doesn't allow to use sockets directly *Then what could be
the solution for this ?
can any one Reply me
Regards
Kalyan
On Fri, May 22, 2009 at 1:05 PM, Gabriel Genellina
gagsl-...@yahoo.com.arwrote:
En Thu, 21 May 2009 02:31:02 -0300, Kalyan Chakravarthy
Yes, you maybe right. When use defaultdict, should not rely get() method
anymore, d[] is just enough. When a function return a defaultdict, but
people don't know it, so:
d = load_map()
# if she call d['a'], everything is OK but
# when call d.get('a'), she is always get None.
# Why she call
On Fri, May 22, 2009 at 2:20 PM, Kalyan Chakravarthy
kalyanchakravar...@hyit.com wrote:
Google App Engine doesn't allow to use sockets directly Then what could be
the solution for this ?
can any one Reply me
Did you try google?
Searching for google app engine email immediately gives
Hi all,
I have this piece of code
class progess():
def __init__(self, number, char):
total = number
percentage = number
while percentage 0 :
percentage = int(number/total*100)
number-=1
char+=*
print char
On 22 May, 05:17, Rhodri James rho...@wildebst.demon.co.uk wrote:
On Wed, 20 May 2009 09:19:50 +0100, jer...@martinfamily.freeserve.co.uk
wrote:
On 20 May, 03:43, Steven D'Aprano
ste...@remove.this.cybersource.com.au wrote:
On Tue, 19 May 2009 03:57:43 -0700, jeremy wrote:
As I wrote
Tim Roberts wrote:
Dave Angel da...@ieee.org wrote:
Anyway, now you can see two batch files you could use to make a
particular version of Python active. The first one uses assoc and ftype
to fix the asssociations. And the other changes the environment variable
PATHEXT to make the
On Fri, May 22, 2009 at 2:47 PM, Joel Ross jo...@cognyx.com wrote:
Hi all,
I have this piece of code
class progess():
def __init__(self, number, char):
total = number
percentage = number
while percentage 0 :
percentage = int(number/total*100)
On Fri, May 22, 2009 at 11:17 AM, Joel Ross jo...@cognyx.com wrote:
Hi all,
I have this piece of code
class progess():
def __init__(self, number, char):
total = number
percentage = number
while percentage 0 :
percentage = int(number/total*100)
This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates
its comeback. The tail of the strxfrm result is ambiguous.
Python 3.0.1 (r301:69556, Apr 14 2009, 14:30:31)
[GCC 4.1.2 20070925 (Red Hat 4.1.2-27)] on linux2
Type help, copyright, credits or license for more information.
Joel Ross wrote:
Hi all,
I have this piece of code
class progess():
def __init__(self, number, char):
total = number
percentage = number
while percentage 0 :
percentage = int(number/total*100)
number-=1
char+=*
Hi,
I would like to shrink a large list in the following way:
If the List has 1000 integers, we need only 100 averages such that the
1000 points are average for every 10 consecutive values. So p0 to p9
will be averaged to obtain t0. p10 to p19 will be averaged to obtain
t1 and so on. This is a
Andre Engels wrote:
On Fri, May 22, 2009 at 11:17 AM, Joel Ross jo...@cognyx.com wrote:
Hi all,
I have this piece of code
class progess():
def __init__(self, number, char):
total = number
percentage = number
while percentage 0 :
percentage =
Im using 2.6 python and when running this
class progess():
def __init__(self, number, total, char):
percentage = float(number/total*100)
percentage = int(round(percentage))
char = char * percentage
print char
progess(100, 999,
On May 22, 8:03 pm, Yash Ganthe yas...@gmail.com wrote:
Hi,
I would like to shrink a large list in the following way:
If the List has 1000 integers, we need only 100 averages such that the
1000 points are average for every 10 consecutive values. So p0 to p9
will be averaged to obtain t0. p10
just like ctrl + A,
I want to select all the text in a window, now , I operate right menu to
get it, but it can not work all the time.
so I want to send ctrl + a to the window
blow is my code
thanks
hWnd = win32gui.FindWindow(None, “中华会计网校”财税法规库下载版V1.09-法
规阅读器)
print hWnd
if hWnd 0:
print
just like ctrl + A,
I want to select all the text in a window, now , I operate right menu to
get it, but it can not work all the time.
so I want to send ctrl + a to the window
blow is my code
thanks
hWnd = win32gui.FindWindow(None, “中华会计网校”财税法规库下载版V1.09-法
规阅读器)
print hWnd
if hWnd 0:
print
Smart ass talking.
Why don't you do a thing then. Following an analogy of what you write.
Put youself in Kyran's and Ian's shoes.
*
You create a website to help people learn open source software and
open source programming. You start off with a few dozen of videos.
People start coming to the
Howdy, folks. I am using wxPython 2.8 on Windoze XP Pro. I want my
application to move the cursor and the mouse-point (the coordinates in
the mouse-click events) to the left when the user presses the left-arrow
key, up when they press the up-arrow key, etc.. I think I can figure
out how to
On 21 Mai, 21:43, Jorge Vargas jorge.var...@gmail.com wrote:
Hello.
Anyone knows what is the problem with this package? apparently the
author's site is down which prevents pip from installing it. I can
download the zip and go from there but It seems most of the docs are
gone with the site.
On Fri, May 22, 2009 at 12:35 PM, Joel Ross jo...@cognyx.com wrote:
Im using 2.6 python and when running this
class progess():
def __init__(self, number, total, char):
percentage = float(number/total*100)
percentage = int(round(percentage))
char = char *
I think you misspelled 'Content-Disposition'
Aahz wrote:
In article 04eacd56-5293-4553-bdb3-ad2e8266c...@z7g2000vbh.googlegroups.com,
Scooter slbent...@gmail.com wrote:
#!/usr/bin/python
import urllib
u = urllib.urlopen('https://myinternal.server/pdfs/pdfstreamer.aspx')
print 'Content-type:
Hi All,
Is there any way, I can disable one logging Handler, while other Log Handler
are still available for servicing.
Please see the below code. It explains my Problem better.
I actually reduce the size of problem, to make it understandable faster
Andre Engels wrote:
On Fri, May 22, 2009 at 12:35 PM, Joel Ross jo...@cognyx.com wrote:
Im using 2.6 python and when running this
class progess():
def __init__(self, number, total, char):
percentage = float(number/total*100)
percentage = int(round(percentage))
char
On Fri, 2009-05-22 at 13:19 +0200, Andre Engels wrote:
number/total = 998/999 = 0
number/total*100 = 0*100 = 0
float(number/total*100) = float(0) = 0.0
Change float(number/total*100) to float(number)/total*100 and it
should work:
I'd use:
(number * 100.)/total
- works because
int *
I use python 2.6.2 and i useing ubuntu 9.04 not windows.
--- On Thu, 5/21/09, Dave Angel da...@ieee.org wrote:
From: Dave Angel da...@ieee.org
Subject: Re: python question
To: Craig fasteliteprogram...@yahoo.com
Cc: python-list@python.org
Date: Thursday, May 21, 2009, 2:22 PM
Craig wrote:
On Fri, 2009-05-22 at 05:51 -0700, Craig wrote:
I use python 2.6.2 and i useing ubuntu 9.04 not windows.
What are you trying to install?
is it available in Synaptic package manager?
If it's a program written in python, then there may be a file called
setup.py. If there is then open a
On May 22, 5:40 am, bvidinli bvidi...@gmail.com wrote:
This is a good starting point i
think:http://pleac.sourceforge.net/pleac_python/index.html
(Also a non-related subject: for who want to do hosting freely on
linux:www.ehcp.net(hosting control panel), also contains an
experimental
http://web.archive.org/web/20071105095205/www.jorendorff.com/articles/python/path/
On Thu, May 21, 2009 at 4:10 PM, Kay Schluehr k...@fiber-space.de wrote:
On 21 Mai, 21:43, Jorge Vargas jorge.var...@gmail.com wrote:
Hello.
Anyone knows what is the problem with this package? apparently
Yash Ganthe wrote:
I would like to shrink a large list in the following way:
If the List has 1000 integers, we need only 100 averages such that the
1000 points are average for every 10 consecutive values. So p0 to p9
will be averaged to obtain t0. p10 to p19 will be averaged to obtain
t1 and so
On Wed, 2009-05-20 at 11:35 -0700, Jan wrote:
Wouldn't it be easy for Python to implement generating functions so
that the iterators they return are equipped with a __reset__() method?
Here is the context of this question.
Python documentation defines a iterator as an object ITERATOR
Tim Wintle wrote:
On Fri, 2009-05-22 at 13:19 +0200, Andre Engels wrote:
number/total = 998/999 = 0
number/total*100 = 0*100 = 0
float(number/total*100) = float(0) = 0.0
Change float(number/total*100) to float(number)/total*100 and it
should work:
I'd use:
(number * 100.)/total
Dave Angel wrote:
Tim Wintle wrote:
On Fri, 2009-05-22 at 13:19 +0200, Andre Engels wrote:
number/total = 998/999 = 0
number/total*100 = 0*100 = 0
float(number/total*100) = float(0) = 0.0
Change float(number/total*100) to float(number)/total*100 and it
should work:
I'd use:
QOTW: Floating point is sort of like quantum physics: the closer you look,
the messier it gets. - Grant Edwards
The circular relationship between object and type explained:
http://comments.gmane.org/gmane.comp.python.general/623460
Floating point numbers don't behave
Hello,
I use local() because I read a file which has many consecutive variables in
it. Like shown below: (I use numpy's txt reading function)
serialc = np.loadtxt(sys.argv[1], skiprows=skiprows).T
for i in range(20):
locals()['serialc_bin' + str(i+1)] = serialc[i+4]
I don't know easier way
On Fri, 2009-05-22 at 09:59 -0400, Dave Angel wrote:
Tim Wintle wrote:
On Fri, 2009-05-22 at 13:19 +0200, Andre Engels wrote:
Change float(number/total*100) to float(number)/total*100 and it
should work:
I'd use:
(number * 100.)/total
- works because
int * float =
On Thu, 21 May 2009 18:30:17 -0700, Gary Herron wrote:
In py3k Eric Smith and Mark Dickinson have implemented Gay's floating
point algorithm for Python so that the shortest repr that will round
trip correctly is what is used as the floating point repr
--David
Which won't change
On Thu, 21 May 2009 18:56:08 -0700, AggieDan04 wrote:
The error in this example is roughly equivalent to the width of a red
blood cell compared to the distance between Earth and the sun. There
are very few applications that need more accuracy than that.
Which is fine if the error *remains*
dbfpy is very old code.
Try setting up a CHAR(1) field and filling it with Y or N or
T or F.. indicating yes,no,true or false...
Unfortunately, my task is to import records into a database that is used
by an old foxpro program. I'm not allowed to change the database
structure in any
On Fri, May 22, 2009 at 10:27 AM, Gökhan SEVER gokhanse...@gmail.com wrote:
...
serialc = np.loadtxt(sys.argv[1], skiprows=skiprows).T
for i in range(20):
locals()['serialc_bin' + str(i+1)] = serialc[i+4]
I don't know easier way than using locals() to construct variable-like
identities
On May 21, 9:44 pm, Rhodri James rho...@wildebst.demon.co.uk
wrote:
Escaping the delimiting quote is the *one* time backslashes have a
special meaning in raw string literals.
If that were true, then wouldn't r'\b' be treated as two characters?
This calls re.sub with a pattern string object
Because in this case serialc is an numpy array. Since loadtxt returns a
numpy-array. Furthermore
locals()['serialc_bin' + str(i+1)] creates a dictionary key (that's what I
use the term variable-like) serialc_bin1, serialc_bin2, ... not
serialc_bin[0] with indexes.
Gökhan
On Fri, May 22, 2009
I have created a server and client that communicate via a TCP socket
connection. Everything runs great on 6 of the 6 boxes. However, when
I installed Sun's VirtualBox on one of the PC's I started getting:
error: (10061, 'Connection refused')
I tried restarting, stopping services, checking out a
TechieInsights was kind enough to say:
[cut]
You're giving very few details on your issue, which is most probably not
related to python itself. Which operating system? Which virtualbox version?
Which kind of connection? Is the port open for listen? Does the code fail
at listening or at
In article 4a15b88c$0$90265$14726...@news.sunsite.dk,
Timothy Madden terminato...@gmail.com wrote:
Aahz wrote:
In article 4a1281ef$0$90271$14726...@news.sunsite.dk,
Timothy Madden terminato...@gmail.com wrote:
[...]
Do you know if I can get dbus bindings for python3 and glib bindings for
On Fri, 2009-05-22 at 09:59 -0400, Dave Angel wrote:
Tim Wintle wrote:
On Fri, 2009-05-22 at 13:19 +0200, Andre Engels wrote:
number/total = 998/999 = 0
number/total*100 = 0*100 = 0
float(number/total*100) = float(0) = 0.0
Change float(number/total*100) to
On Fri, 22 May 2009 07:47:49 -0700, walterbyrd wrote:
On May 21, 9:44 pm, Rhodri James rho...@wildebst.demon.co.uk wrote:
Escaping the delimiting quote is the *one* time backslashes have a
special meaning in raw string literals.
If that were true, then wouldn't r'\b' be treated as two
On Fri, 22 May 2009 15:29:16 +, Steven D'Aprano wrote:
But if you forget that Python uses backslash escapes in strings, and
just write \b, then the compiler creates the string chr(8) (BEL),
which has no special meaning to the RE engine.
Correction: \b is BACKSPACE, not BELL. \a is BELL.
Steven D'Aprano wrote:
[snip]
But if you forget that Python uses backslash escapes in strings, and just
write \b, then the compiler creates the string chr(8) (BEL), which has
no special meaning to the RE engine.
\b or chr(8) is BS (backspace); \a or chr(7) is BEL (bell).
--
Top-posting corrected.
On Fri, 2009-05-22 at 10:00 -0500, Gökhan SEVER wrote:
On Fri, May 22, 2009 at 9:43 AM, David Robinow drobi...@gmail.com
wrote:
On Fri, May 22, 2009 at 10:27 AM, Gökhan SEVER
gokhanse...@gmail.com wrote:
...
serialc =
On Fri, May 22, 2009 at 11:00 AM, Gökhan SEVER gokhanse...@gmail.com wrote:
Because in this case serialc is an numpy array. Since loadtxt returns a
numpy-array. Furthermore
locals()['serialc_bin' + str(i+1)] creates a dictionary key (that's what I
use the term variable-like) serialc_bin1,
On 22 Mai, 17:05, Alan Franzoni alan.franzoni.x...@gmail.com wrote:
My first guess would be that you didn't specify the interface to bind to,
and the interface order changes once you install virtualbox since it
possibly adds a virtual interface of its own, but I can't tell unless you
tell
Hello,
I've posted about this before, but after reading the docs, I have a
few more questions
here are the docs: http://docs.python.org/tutorial/modules.html#packages
here is my previous post:
http://groups.google.com/group/comp.lang.python/browse_thread/thread/3a352159f6828eb9/cda8395d36827d20
I believe the glossary
http://wiki.python.org/moin/PythonGlossary
is missing the definition for 'generator'
and has used instead the definition for 'generator function',
which term is missing from the glossary.
Standard usage as I understand it is found here:
On Fri, 22 May 2009 16:38:40 GMT, Alan G Isaac alan.is...@gmail.com wrote:
I believe the glossary
http://wiki.python.org/moin/PythonGlossary
is missing the definition for 'generator'
and has used instead the definition for 'generator function',
which term is missing from the glossary.
Standard
Daniel wrote:
Hello,
I've posted about this before, but after reading the docs, I have a
few more questions
here are the docs: http://docs.python.org/tutorial/modules.html#packages
here is my previous post:
In article wxorl.328387$yx2.227...@en-nntp-06.dc1.easynews.com,
Jive Dadson notonthe...@noisp.com wrote:
Gosh, you guys are slow. :-) I figured it out.
Perhaps you could post the solution for posterity's sake?
--
Aahz (a...@pythoncraft.com) * http://www.pythoncraft.com/
A
On Fri, 22 May 2009 16:38:40 GMT, Alan G Isaac alan.is...@gmail.com
wrote:
I believe the glossary
http://wiki.python.org/moin/PythonGlossary
is missing the definition for 'generator'
and has used instead the definition for 'generator function',
which term is missing from the glossary.
Standard
On Fri, 22 May 2009 10:27:21 +0100, jer...@martinfamily.freeserve.co.uk
wrote:
I think this depends on whether we think that Python is a language for
people who we trust to know what they are doing (like Perl) or whether
it is a language for people we don't trust to get things right(like
On May 22, 9:46 am, J. Cliff Dyer j...@sdf.lonestar.org wrote:
You don't need a reset method. There is no hard and fast rule that
__iter__ must return the object itself. It just needs to return an
iterator.
I disagree.
If ITRATOR is a true iterator, ITRATOR.__iter__() must return
I asked you not to top-post. Please put your replies *below* the
messages you're quoting, not above. It's much easier to understand
the conversation that we're having if you do that, and much more
aggravating if you don't.
On Fri, 22 May 2009 09:53:04 +0100, Red Forks redfo...@gmail.com wrote:
On Fri, 22 May 2009 15:47:49 +0100, walterbyrd walterb...@iname.com
wrote:
On May 21, 9:44 pm, Rhodri James rho...@wildebst.demon.co.uk
wrote:
Escaping the delimiting quote is the *one* time backslashes have a
special meaning in raw string literals.
If that were true, then wouldn't r'\b'
On May 22, 11:29 am, Scott David Daniels scott.dani...@acm.org
wrote:
Daniel wrote:
Hello,
I've posted about this before, but after reading the docs, I have a
few more questions
here are the docs:http://docs.python.org/tutorial/modules.html#packages
here is my previous post:
On Fri, 22 May 2009 13:54:26 +0100, TerabyteST gabry...@gmail.com wrote:
Could you give me a link to a version that works?
Not with any confidence. The ffmpeg website (http://www.ffmpeg.org)
has a link to this page (http://ffmpeg.arrozcru.org/) which seems to
have binaries on it, but I don't
Hi, I've been trying to make a curses application that's resilient to having
the terminal resized (like 'top'). I've managed to make it capable of
adjusting when the screen's width is changed (using getmaxyx) but changing
the height is proving a little trickier. I'm using subwindows so I can
On 2009-05-22 08:50, Scott David Daniels wrote:
Yash Ganthe wrote:
I would like to shrink a large list in the following way:
If the List has 1000 integers, we need only 100 averages such that the
1000 points are average for every 10 consecutive values. So p0 to p9
will be averaged to obtain t0.
On May 22, 3:28 pm, Steven D'Aprano st...@remove-this-
cybersource.com.au wrote:
On Thu, 21 May 2009 18:30:17 -0700, Gary Herron wrote:
In py3k Eric Smith and Mark Dickinson have implemented Gay's floating
point algorithm for Python so that the shortest repr that will round
trip correctly
On 5/22/2009 11:38 AM Rhodri James said...
On Fri, 22 May 2009 13:54:26 +0100, TerabyteST gabry...@gmail.com wrote:
snip
@Emile: if I can access MEncoder from python and give it the images
one by one, using a stream like i'm doing in ffmpeg, or telling it a
sequence to make a video from, I
On Fri, 2009-05-22 at 10:54 -0700, Jan wrote:
On May 22, 9:46 am, J. Cliff Dyer j...@sdf.lonestar.org wrote:
You don't need a reset method. There is no hard and fast rule that
__iter__ must return the object itself. It just needs to return an
iterator.
I disagree.
If ITRATOR is a
On 5/22/2009 1:44 PM s...@pobox.com apparently wrote:
Note that the glossary page is on the wiki. Feel free to make corrections.
Well, ok, I've done so:
http://wiki.python.org/moin/PythonGlossary
But I'm just a user. Someone should check it.
Thanks,
Alan Isaac
--
Daniel wrote:
I'm on WinXP using Python 2.5 Sorry I didn't mention that at first.
Generally, you want the full version number (my 2.5 is 2.5.4).
However, I set up your demo setup, and found that 2.6.2 worked, and
2.5.4 failed in the same way you see. I also see that even inside
the effects
Evan Kroske wrote:
Sam Tregar wrote:
Greetings. I'm working on learning Python and I'm looking for good
books to read. I'm almost done with Dive into Python and I liked it a
lot. I found Programming Python a little dry the last time I looked at
it, but I'm more motivated now so I might return
On May 22, 3:37 pm, Scott David Daniels scott.dani...@acm.org wrote:
Daniel wrote:
I'm on WinXP using Python 2.5 Sorry I didn't mention that at first.
Generally, you want the full version number (my 2.5 is 2.5.4).
However, I set up your demo setup, and found that 2.6.2 worked, and
2.5.4
On 23/05/2009 12:32 AM, Laszlo Nagy wrote:
dbfpy is very old code.
Try setting up a CHAR(1) field and filling it with Y or N or
T or F.. indicating yes,no,true or false...
Unfortunately, my task is to import records into a database that is used
by an old foxpro program. I'm not
On May 17, 10:39 am, Matus mat...@gmail.com wrote:
Hallo pylist,
I searches web and python documentation for implementation of pushback
iterator but found none in stdlib.
problem:
when you parse a file, often you have to read a line from parsed file
before you can decide if you
Daniel wrote:
Thanks for doing the experiment. I'll begin to consider testing with
python 2.6 for a possible upgrade.
I hope you know you can have different minor versions installed
simultaneously.
--Scott David Daniels
scott.dani...@acm.org
--
On Sat, May 23, 2009 at 2:03 AM, Rhodri James
rho...@wildebst.demon.co.ukwrote:
I asked you not to top-post. Please put your replies *below* the
messages you're quoting, not above. It's much easier to understand
the conversation that we're having if you do that, and much more
aggravating if
On Fri, 2009-05-22 at 10:54 -0700, Jan wrote:
This produces an error because by definition of for-loops
it is executed the same way as:
temp_iterator = iter(y) # temp_iterator is y
while True:
try:
print(next(temp_iterator)) # temp_iterator does not support
__next__()
Hi,
I'm trying to do something as simple as this:
sleep 10; mail -s test dans communicate_with_process
which executes immediately because it is backgrounded with .
or more generically in english:
do some long process in the background; send me mail when it's done; allow
me to quit the tool
In message 8dc983db-b8c4-4897-
a58b-969ca5f8e...@g20g2000vba.googlegroups.com, Beni Cherniavsky wrote:
And yes, it's icky - not because of the ``else`` but because
aquisition-release done correctly is always an icky pattern.
Only in the presence of exceptions.
--
In message 27bd949f-80b5-44c9-8e3b-
c12b49c7e...@r34g2000vbi.googlegroups.com, thomas.vo...@likeabird.de wrote:
The only honest answer would be that I'm totaly unfamiliar with select
and also the documentation I found wasn't able to clear the picture.
So are there examples of using select
On Fri, 22 May 2009 13:05:59 -0700, Mark Dickinson wrote:
With a sigh of relief,
Yay! We now will have lots of subtle floating point bugs that people
can't see! Ignorance is bliss and what you don't know about floating
point can't hurt you!
Why do you think this change will give rise to
Thanks John,
The code u provided works for me. Indeed it is a simple requirement
and I am a complete novice to Python.
-Yash
--
http://mail.python.org/mailman/listinfo/python-list
En Fri, 22 May 2009 06:32:40 -0300, Tuomas Vesterinen
tuomas.vesteri...@iki.fi escribió:
This was fixed once in Python 2.5, but in Python 3.0 the bug celebrates
its comeback. The tail of the strxfrm result is ambiguous.
Python 3.0.1 (r301:69556, Apr 14 2009, 14:30:31)
[GCC 4.1.2 20070925
En Fri, 22 May 2009 08:26:49 -0300, VenkataRamaKrishna Boddu
bvrkchowd...@yahoo.co.in escribió:
Is there any way, I can disable one logging Handler, while other Log
Handler are still available for servicing.
import logging;
import sys;
thelog = logging.getLogger('app.scsi.cdb');
On Fri, 22 May 2009 21:33:05 +1000
Joel Ross jo...@cognyx.com wrote:
changed it to float(number)/total*100 and it worked thanks for all
your help appreciated
I believe operator.truediv function also deserves a mention here, since
line op.truediv(number, total) * 100 somehow seem to make more
1 - 100 of 145 matches
Mail list logo