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://starship.python.net/crew/atuining
What's new?
1) Added preliminary support for fetching Oracle
David Bear schrieb:
Diez B. Roggisch wrote:
David Bear schrieb:
I'm looking to see if there are any examples or prewritting fifo queue
classes. I know this is a broad topic. I'm looking to implement a simple
application where a web server enqueue and pickle using a local socket on
to a
MonkeeSage a écrit :
On Mar 7, 4:58 pm, Bruno Desthuilliers
[EMAIL PROTECTED] wrote:
except_retry: # the missing(???) keyword you're after
What is 'except_retry'?
A totally imaginary statement that would do what the OP is looking for.
To the OP, with the loop and the callables you
C Barr Leigh a écrit :
Help! Have I found a serious bug?
No. This is a FAQ. Default arguments of functions are evaled only once -
when the def statement is eval'd and the function object constructed.
This seems like highly undesired behaviour to me.
Possibly, but this is unlikely to change
Gabriel Genellina typed:
See
http://effbot.org/pyfaq/why-are-default-values-shared-between-objects.htm
Thanks for the link, Gabriel. I didn't know about this.
--
Ayaz Ahmed Khan
Falling in love makes smoking pot all day look like the ultimate in
restraint.
-- Dave Sim,
Hello,
what algo do you use, when you want to find the dict values from d, with
members
of l. Following example:
d = {1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9,9:10}
l = [7,8]
found_dic_members = yourCode
print found_dict_members
[8,9]
Thanks
Alexander
--
On Wed, 07 Mar 2007 23:34:20 -0800, Nick Vatamaniuc wrote:
From the standard library docs:
Keys and values are listed in an arbitrary order which is non-random,
varies across Python implementations, and depends on the dictionary's
history of insertions and deletions.
i.e. the
Brian Adkins wrote:
Ken Tilton wrote:
John Nagle wrote:
Turns out John is having quite a tough time with Python web hosting (the
thread has split off to a c.l.p only fork), so I'm going to cut him some
slack. Maybe with some lovin' we can woo him over to c.l.l ;)
Been there, done
En Thu, 08 Mar 2007 05:20:20 -0300, Alexander Eisenhuth
[EMAIL PROTECTED] escribió:
what algo do you use, when you want to find the dict values from d, with
members
of l. Following example:
d = {1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9,9:10}
l = [7,8]
found_dic_members = yourCode
print
It appears that you forgot the basic rule: a package is a directory with
an __init__.py file (even if empty).
Exactly right. I didn't know that __init__.py is a mandatory one.
Thanks for pointing out.
my_apps
|
|-- mod3.py
|-- dir1/dir1_1/mod1.py
|-- dir2/dir2_2/mod2.py
You need 4
On Thu, 08 Mar 2007 09:20:20 +0100, Alexander Eisenhuth wrote:
Hello,
what algo do you use, when you want to find the dict values from d, with
members
of l. Following example:
d = {1:2,2:3,3:4,4:5,5:6,6:7,7:8,8:9,9:10}
l = [7,8]
found_dic_members = yourCode
print
Carsten Haese [EMAIL PROTECTED] wrote:
Here is a simple counterexample that breaks the ordering, at least for
the version I'm running:
d = {}
for i in range(0,6): d[10**i] = []
...
d
{10: [], 1: [], 100: [], 1000: [], 10: [], 1: []}
Here's another counterexample which shows
On Thu, 08 Mar 2007 05:26:22 -0300, Gabriel Genellina wrote:
En Thu, 08 Mar 2007 05:20:20 -0300, Alexander Eisenhuth
[EMAIL PROTECTED] escribió:
what algo do you use, when you want to find the dict values from d, with
members
of l. Following example:
d =
Raymond Hettinger wrote:
Any trick in the book (metaclasses, descriptors, etc) is fair game.
So you are asking for a serious hack, right?
As soon as I saw your challenge I thought That's difficult. Very
difficult.
No way I can solve that with a simple descriptor/decorator. I need
more POWER.
Dear,
I have wrote a script and want to group some functions of the script
in a separate modulo so that I can import the module in other scripts
and use the same functions there..
The problem is that the common functions need access to some global
variables defined in the script. Python uses
En Thu, 08 Mar 2007 05:26:45 -0300, Srikanth [EMAIL PROTECTED] escribió:
It appears that you forgot the basic rule: a package is a directory with
an __init__.py file (even if empty).
Exactly right. I didn't know that __init__.py is a mandatory one.
Thanks for pointing out.
You may want to
En Thu, 08 Mar 2007 05:45:24 -0300, [EMAIL PROTECTED] escribió:
I have wrote a script and want to group some functions of the script
in a separate modulo so that I can import the module in other scripts
and use the same functions there..
The problem is that the common functions need access
On Mar 7, 7:32 pm, Arnaud Delobelle [EMAIL PROTECTED] wrote:
Hi all,
Imagine I have three functions a(x), b(x), c(x) that each return
something or raise an exception. Imagine I want to define a function
that returns a(x) if possible, otherwise b(x), otherwise c(x),
otherwise raise CantDoIt.
En Thu, 08 Mar 2007 05:37:39 -0300, Michele Simionato
[EMAIL PROTECTED] escribió:
The code to enable recognition of CurrentClass is short enough to be
includede here, but I will qualify it as a five star-level hackery:
You forgot the standard disclaimer: This is extremely dangerous stuff,
En Thu, 08 Mar 2007 05:37:48 -0300, Steven D'Aprano
[EMAIL PROTECTED] escribió:
On Thu, 08 Mar 2007 05:26:22 -0300, Gabriel Genellina wrote:
found_dic_members = [d[key] for key in l]
*self stares at the line of code*
*self thinks about what he just posted*
*self realises with acute
En Thu, 08 Mar 2007 06:17:37 -0300, Gerard Flanagan
[EMAIL PROTECTED] escribió:
@onfail(False)
def a(x):
if x == 1:
return 'function a succeeded'
else:
raise
I know it's irrelevant, as you use a bare except, but such raise looks a
bit ugly...
--
Gabriel
Probably you have already discussed this topic, but maybe you can
stand touching it again briefly.
Maybe properties aren't used so often to deserve a specific syntax,
but I don't like their syntax much. Here I show some alternative
solutions that work with the current Python, followed by a syntax
[EMAIL PROTECTED] a écrit :
Dear,
I have wrote a script and want to group some functions of the script
in a separate modulo so that I can import the module in other scripts
and use the same functions there..
The problem is that the common functions need access to some global
variables
Steve Williams wrote:
The data is an 8-byte 2s complement binary integer stored in a MSSQL
2005 CHAR column. (COBOL did that, not me). I'm using zxJDBC to read
the data and Jython to process.
I could extract the integer if it wasn't returned in the resultset as
unicode. Things like
On Mar 8, 10:20 am, Gabriel Genellina [EMAIL PROTECTED]
wrote:
You forgot the standard disclaimer: This is extremely dangerous stuff,
only highly trained professionals can do that! Kids, never try this at
home!
;)
Yep, the only good use case for this kind of games is for prototyping
in
sturlamolden wrote:
[...]
If you want to utilize the computing power of multiple CPUs, you
should use multiple processes instead of threads. On Python this is
mandatory due to the GIL. In any other language it it highly
recommended. The de-factor standard for parallel multiprocessing (MPI)
On 7 Mar, 16:45, Gregor Mosheh [EMAIL PROTECTED] wrote:
Giles Brown wrote:
Yeah. You've cleverly decided to simplify the smallest
possible python service by removing the
if __name__ == '__main__':
Ha ha. :)
Seriously, though, I removed that long after it was failing to work, and
have
Paddy3118 schreef:
Assuming that only space characters are allowed
for indenting, is their a way to yank a Python
block like y% works for C , or a way to move to
the end of a block defined by indentation?
I have tried help indent but could not find
anything.
I don't know either, but if
On Thu, Mar 08, 2007 at 01:22:25PM +1100, Steven D'Aprano wrote:
On Wed, 07 Mar 2007 16:02:05 +0100, egbert wrote:
My impression is that you can do everything you want to
by making your instance callable, and not using a but a().
You can't do this:
a() = some value
I didn't say that
On 8 mrt, 10:36, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] a écrit :
Dear,
I have wrote a script and want to group some functions of the script
in a separate modulo so that I can import the module in other scripts
and use the same functions there..
The
En Thu, 08 Mar 2007 06:34:12 -0300, [EMAIL PROTECTED] escribió:
Probably you have already discussed this topic, but maybe you can
stand touching it again briefly.
Maybe properties aren't used so often to deserve a specific syntax,
but I don't like their syntax much. Here I show some
Steven D'Aprano [EMAIL PROTECTED] wrote:
If they are better-than
average, they might try this:
D = {1: None, 4: None, 3:None} # keys out of order
D
{1: None, 3: None, 4: None}
Still ordered, right? It's actually quite hard to get a dict with purely
integer keys out of order.
It isn't
John [EMAIL PROTECTED] writes:
I am coding a radix sort in python and I think that Python's dictionary may
be a choice for bucket.
Why are you coding a radix sort?
The only problem is that dictionary is a mapping without order. But
I just found that if the keys are numeric, the keys
In [EMAIL PROTECTED], jonkersbart
wrote:
- wrapping the functions as methods of a class, passing the whole state
as args to the class initializer.
I already considerate this one, but I don't like it because it is not
correct in terms of the object-oriented concept.
Why? I thought combining
Hi there,
is it possible to create a rewrite rule to send every server-request
to the directory /py? But only if the file does not exists on the
server.
This is my mod_python section of the apache config-file.
Location /py
SetHandler python-program
PythonHandler
[EMAIL PROTECTED] a écrit :
On 8 mrt, 10:36, Bruno Desthuilliers bruno.
(snip)
- wrapping the functions as methods of a class, passing the whole state
as args to the class initializer.
I already considerate this one, but I don't like it because it is not
correct in terms of the
Gabriel Genellina:
You miss this common way, that does not depend on metaclasses,
nor base classes, nor custom decorators...
My purpose was to discuss a new syntax. The other stuff is mostly for
reference, to show that lot of (some) people has tried to find
alternative solutions to a problem
On 8 Mar, 10:48, Bryan Olson [EMAIL PROTECTED] wrote:
That doesn't really work in Python. There have been projects to
allow Pythonic coordination of processes -- POSH had some good
ideas -- but none have reached fruition.
What makes all of the following not Pythonic...?
On Mar 8, 9:50 pm, Danilo [EMAIL PROTECTED] wrote:
Hi there,
is it possible to create a rewrite rule to send every server-request
to the directory /py? But only if the file does not exists on the
server.
This is my mod_python section of the apache config-file.
Location /py
On 7 mar, 21:07, Joshua J. Kugler [EMAIL PROTECTED] wrote:
awalter1 wrote:
Hi,
I have a Python application that runs under HPUX 11.11 (then unix). It
uses threads :
from threading import Thread
# Class Main
class RunComponent(Thread):
My application should run under Linux (red hat
Gabriel Genellina wrote:
En Thu, 08 Mar 2007 05:37:48 -0300, Steven D'Aprano
[EMAIL PROTECTED] escribió:
On Thu, 08 Mar 2007 05:26:22 -0300, Gabriel Genellina wrote:
found_dic_members = [d[key] for key in l]
*self stares at the line of code*
*self thinks about what he just posted*
Yes it was the silly on-liner ... it was a bit ago I used it last time ...
thanks
Gabriel Genellina schrieb:
En Thu, 08 Mar 2007 05:37:48 -0300, Steven D'Aprano
[EMAIL PROTECTED] escribió:
On Thu, 08 Mar 2007 05:26:22 -0300, Gabriel Genellina wrote:
found_dic_members = [d[key] for key in
On 2007-03-05, Andrew Koenig [EMAIL PROTECTED] wrote:
[EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi, I have the following functions, but ' dx = abs(i2 - i1)/min(i2,
i1)' always return 0, can you please tell me how can i convert it from
an integer to float?
I don't think
On 8 Mrz., 12:18, [EMAIL PROTECTED] wrote:
On Mar 8, 9:50 pm, Danilo [EMAIL PROTECTED] wrote:
Hi there,
is it possible to create a rewrite rule to send every server-request
to the directory /py? But only if the file does not exists on the
server.
This is my mod_python section of the
Hi,
I have 'n' number of dictionaries with the same name but different values
( DorC means debit or credit)
some={'DorC':'D', 'amount':200,'name':'xxx'}
some={'DorC':'C', 'amount':200,'name':'xxx'}
some={'DorC':'D', 'amount':300,'name':'yyy'}
some={'DorC':'C',
Thanks a lot Gabriel.
ctypes is working!
Regards,
Ros
--
http://mail.python.org/mailman/listinfo/python-list
Gabriel Genellina a écrit :
If you want to review the original discussion on how to spell a
generator expression (called accumulator display by that time) see
http://mail.python.org/pipermail/python-dev/2003-October/038868.html
That's a long discussion... and it seem I'm not alone to dislike
[F-ups set to comp.editors]
Paddy3118 wrote:
Not python:
but python type
indented text
Notice the blank line above.
It could have several
spaces or tabs, and still
be a part of the block
beginning 'Not python:':
The block ends at the
I wanted to have a heap of custom objects, and in different heaps I
wanted to have the weights for my elements differently. So, I modified
the heapq module to accept key arguments also.
The untested code is here. Please let me know if you find any bug or
if there is an easy way to do this.
-
I am using pymssql for storing data into MS SQL. (I am using pymssql
first time so dont know much about it)
I wish to write/create XML file from database.
There are few examples available for mysql but not much information
about pymssql and MS SQL.
I have worked with cElementTree with SAX and I
[EMAIL PROTECTED] writes:
alright, i'm coding a program that will log me into yahoo.com (so
far), now, the problem i have is that once i've submitted by login
password, the program doesn't know whether yahoo.com accepted it.
response = ClientCookie.urlopen(form.click())
now, when i
Ros wrote:
I am using pymssql for storing data into MS SQL. (I am using pymssql
first time so dont know much about it)
I wish to write/create XML file from database.
There are few examples available for mysql but not much information
about pymssql and MS SQL.
I have worked with
In [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I wanted to have a heap of custom objects, and in different heaps I
wanted to have the weights for my elements differently. So, I modified
the heapq module to accept key arguments also.
I would have just used tuples of the form (weight, obj) with
In the python-ideas mailing list
http://mail.python.org/pipermail/python-ideas/2007-March/thread.html there
was a discussion about the fact that python has opeartors 'and', 'or' and
'not' (keywords of the language) but 'bool' is a type. Naturally we have
(not not x) == bool(x) # always True
I am trying to copy a geodatabase (.mdb) file from source to destination
using
shutil.copyfile(src, dest)
It is working fine but the main problem when the destination (.mdb) file
is locked by other users then it's bumped out and not copied over.
Is there any way to copy the locked .mdb
On Mar 8, 5:23 am, John Nagle [EMAIL PROTECTED] wrote:
Brian Adkins wrote:
Ken Tilton wrote:
John Nagle wrote:
Turns out John is having quite a tough time with Python web hosting (the
thread has split off to a c.l.p only fork), so I'm going to cut him some
slack. Maybe with some lovin'
I am using a script with a single file containing all data in multiple
sections. Each section begins with #VS:CMD:command:START and ends
with #VS:CMD:command:STOP. There is a blank line in between each
section. I'm looking for the best way to grab one section at a time.
Will I have to read the
Il Wed, 07 Mar 2007 14:13:28 -0300, Gabriel Genellina ha scritto:
__iadd__, in general, is not *required* to modify the instance in place
(but should try to do that, if possible). After this code:
b = a
a += c
you can't assert than a and b both refer to the *same* object, as
[EMAIL PROTECTED] wrote:
If I take into account the fact that 'True' and 'False' are singletons
(guaranteed ?) :
(not not x) is bool(x) # should be always True.
[snip code and results of code]
Consider the following:
def ok1(x):
return (not not x) is bool(x)
def ok2(x):
[EMAIL PROTECTED] wrote:
After much head scrating and experimenting with dis.dis() I have found
that chaining comparisons (with is or ==) a == b == c in Python is
never a good idea. It is interpreted as
( a == b ) and ( b == c)
Such a magic is fine when we write:
if 0.0 = x 1.0:
but
In article [EMAIL PROTECTED],
Gordon Messmer [EMAIL PROTECTED] wrote:
Aahz wrote:
Assuming you have correctly tracked down the problem area, I would call
that a thread bug in Python. But my experience is that you simply have
run into a problem with the socket. I would suggest that using
In article [EMAIL PROTECTED],
Paul Sijben [EMAIL PROTECTED] wrote:
in a worker thread setup that communicates via queues is it possible to
catch exceptions raised by the worker executed, put them in an object
and send them over the queue to another thread where the exception is
raised in that
Hi Ed,
Some more info about your environment will be helpful here.
What OS version, apache version, etc.
-Josh
On 7 Mar 2007 15:05:54 -0800, edfialk [EMAIL PROTECTED] wrote:
Hi all, I'm completely new to Python, but fairly experienced in PHP
and few other languages.
Long story short: The
I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?
Larger question:
where is the config file format documented?
Thanks,
Alan Isaac
PS This is a wonderful tool.
--
http://mail.python.org/mailman/listinfo/python-list
On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote:
I am using a script with a single file containing all data in multiple
sections. Each section begins with #VS:CMD:command:START and ends
with #VS:CMD:command:STOP. There is a blank line in between each
section. I'm looking for the best way to grab
Alan Isaac wrote:
I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?
Advice: Don't. IIRC it's planned in future Python versions that TABs
aren't supported for indentation.
Regards,
Björn
--
BOFH excuse #401:
Sales staff sold a product we don't offer.
--
Gigs_ wrote:
I'm writing text editor.
How to enable/disable (cut, copy etc.) when text is selected/not selected
Btw it is cut copy ... in edit menu
--
http://mail.python.org/mailman/listinfo/python-list
I'm writing text editor.
How to enable/disable (cut, copy etc.) when text is selected/not selected
--
http://mail.python.org/mailman/listinfo/python-list
Duncan Booth [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
After much head scrating and experimenting with dis.dis() I have found
that chaining comparisons (with is or ==) a == b == c in Python is
never a good idea. It is interpreted as
( a == b )
On Mar 8, 11:52 am, Rune Strand [EMAIL PROTECTED] wrote:
On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote:
I am using a script with a single file containing all data in multiple
sections. Each section begins with #VS:CMD:command:START and ends
with #VS:CMD:command:STOP. There is a blank line in
Ahmed, Shakir wrote:
I am trying to copy a geodatabase (.mdb) file from source to destination
using
shutil.copyfile(src, dest)
It is working fine but the main problem when the destination (.mdb) file
is locked by other users then it's bumped out and not copied over.
Is there any way to
I am wondering what happens to a thread in python in relation to
win32com extensions.
If I create a new thread, that uses the Dispatch method from win32com,
what happens to the memory allocated in that thread when the thread is
done. Will the Dispatch release the memory it created, or will the
On Mar 8, 12:46 pm, Jordan [EMAIL PROTECTED] wrote:
On Mar 8, 11:52 am, Rune Strand [EMAIL PROTECTED] wrote:
On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote:
I am using a script with a single file containing all data in multiple
sections. Each section begins with #VS:CMD:command:START and
On Friday 09 March 2007 12:04, Gigs_ wrote:
Gigs_ wrote:
I'm writing text editor.
How to enable/disable (cut, copy etc.) when
text is selected/not selected
Btw it is cut copy ... in edit menu
state = 'diabled' ## no change allowed
## to Text Wiget
state
John [EMAIL PROTECTED] writes:
I am coding a radix sort in python and I think that Python's dictionary may
be a choice for bucket.
The only problem is that dictionary is a mapping without order. But I just
found that if the keys are numeric, the keys themselves are ordered in the
On 3/8/07, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Thu, 08 Mar 2007 06:13:15 GMT, John Nagle [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
When starting out with this project, I'd made the assumption that
Python was a stable, working, well-supported technology,
On Mar 8, 12:50 pm, Jordan [EMAIL PROTECTED] wrote:
On Mar 8, 12:46 pm, Jordan [EMAIL PROTECTED] wrote:
On Mar 8, 11:52 am, Rune Strand [EMAIL PROTECTED] wrote:
On Mar 8, 5:12 pm, [EMAIL PROTECTED] wrote:
I am using a script with a single file containing all data in multiple
Chris Mellon [EMAIL PROTECTED] writes:
Any *real* hosting provider is going to support whatever
language and environment I tell them to, because I'm going to pay them
a lot of money for excellent support and if they give me any trouble I
will go with someone who provides what I want.
Hosting
Hi!
If I have two files .py such as
m.py
from c import *
...
x=c()
...
os.any_method ...
...
c.py
class c:
def __init__(self, ...):
...
os.any_method ...
Paulo da Silva [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| Hi!
|
| If I have two files .py such as
|
| m.py
| from c import *
| ...
| x=c()
| ...
| os.any_method ...
| ...
|
| c.py
| class c:
| def __init__(self, ...):
| ...
| os.any_method ...
| ...
| ...
|
| both using os
jim-on-linux wrote:
On Friday 09 March 2007 12:04, Gigs_ wrote:
Gigs_ wrote:
I'm writing text editor.
How to enable/disable (cut, copy etc.) when
text is selected/not selected
Btw it is cut copy ... in edit menu
state = 'diabled' ## no change allowed
## to
Hi Simon,
iam till here:
dorc=some['DorC']
amount=some['amount']
f=open(logfile.txt, w)
if dorc =='C':
a = -(amount)
if dorc == 'D':
b = amount
sum=a + b
if sum == 0:
f.writelines(name:)
f.writelines(%s %some['name'])
f.writelines(credit:)
Duncan Booth wrote :
francois.petitjean at bureauveritas.com wrote:
After much head scrating and experimenting with dis.dis() I have found
that chaining comparisons (with is or ==) a == b == c in Python is
never a good idea. It is interpreted as
( a == b ) and ( b == c)
Such a magic is
Paulo da Silva a écrit :
Hi!
If I have two files .py such as
m.py
from c import *
avoid this kind of import except in an interactive interpreter and
eventually in a package __init__.py. Better to use either:
from c import c
or
import c
...
x = c.c()
...
Adam Atlas a écrit :
Doesn't seem to work. I guess zipimport doesn't support that by
default... but if I remember correctly, Setuptools adds that. Maybe
I'll take a look at how it does it (I think by extracting the .so to /
tmp?)
or to another known location, IIRC.
and see how easy it
both using os module where should I put the import os? In both files?
You don't really have a choice, you have to import os in both files.
Python will only load the os module into memory once, but the import
statements are needed to add the os module to the c and m module
namespaces. The code in
Gigs_ wrote:
jim-on-linux wrote:
On Friday 09 March 2007 12:04, Gigs_ wrote:
Gigs_ wrote:
I'm writing text editor.
How to enable/disable (cut, copy etc.) when
text is selected/not selected
Btw it is cut copy ... in edit menu
state = 'diabled' ## no change allowed
Gigs_ wrote:
as I write my first gui program (text editor) I wanna ask you guys how
to separate code in classes.?
Should I put in one class my menu and in another class text and
scorllbars etc?
or something else?
thanks
Check out Grayson: http://www.manning.com/grayson/
Its $25 for
Hi all,
I have a directory with a bunch of python classes each uniquely named
such that the file name (dropping .py) is also the class name of the
file in question. So for example
foo.py
class foo:
def __init__(self):
print Hi I am %s % self.__class__.__name__
Now I have a bunch of
I have a need to call an Oracle function, which is not the same thing
as a stored procedure. Can SQLAlchemy do this directly? Indirectly?
If so, an example would be appreciated. If not, how do I obtain the
raw cx_Oracle cursor so I can use that directly?
Thanks,
Greg
--
Hi,
i am using red hat enterprise 4. It has python 2.3 installed. What is
the best way to upgrade to python 2.4?
I think one way is to compile python 2.4 from the source, but I can't
remove the old one since when i do 'rpm -e python', i get error like
'failed dependencies'.
Thank you for any
Bjoern Schliessmann [EMAIL PROTECTED] writes:
Alan Isaac wrote:
As a tab user, I want the tabs warning turned off.
Advice: Don't.
Agreed. Sticking to spaces for indentation avoids the ambiguity of
interpretation that ASCII TAB characters are subject to. In addition,
PEP 8 (which many people
En Thu, 08 Mar 2007 13:31:14 -0300, Aahz [EMAIL PROTECTED] escribió:
In article [EMAIL PROTECTED],
Paul Sijben [EMAIL PROTECTED] wrote:
in a worker thread setup that communicates via queues is it possible to
catch exceptions raised by the worker executed, put them in an object
and send
Paulo da Silva [EMAIL PROTECTED] writes:
Hi!
If I have two files .py such as
m.py
from c import *
Best done as either
import c# then use 'x = c.c()'
or
from c import c
Using 'from foo import *' leads to names appearing in your current
namespace that are difficult to
I'm using SQLAlchemy and have a need to call an Oracle function; which
is not the same as a stored procedure. Can this be done directory or
indirectly with SQLAlchemy? If so, can someone please provide an
example? If not, how do I obtain the raw cx_Oracle cursor so I can
use callfunc directly
Helpful Links
http://sourceforge.net/projects/cx-oracle
http://www.python.net/crew/atuining/cx_Oracle/html/cursorobj.html
==
Example:
Replace the data types as appropriate.
v_Vars = v_Cursor.setinputsizes(p_Result = cx_Oracle.NUMBER)
v_Cursor.execute(
begin
Alan Isaac wrote:
I am brand new to pylint.
As a tab user, I want the tabs warning turned off.
How?
Larger question:
where is the config file format documented?
doc/features.txt
examples/pylintrc
--
Robert Kern
I have come to believe that the whole world is an enigma, a harmless enigma
Paul Boddie [EMAIL PROTECTED] writes:
What makes all of the following not Pythonic...?
http://wiki.python.org/moin/ParallelProcessing
I'd say mainly that they don't allow sharing data between processes
except through expensive IPC mechanisms involving system calls.
I'm sure one could define
On Mar 8, 8:20 am, Steven D'Aprano [EMAIL PROTECTED]
wrote:
...
And the problem with a dictionary is that some people want to make sense
of its order, just like in this case, and the fifty thousand previous
times people have asked this newsgroup how they can sort a dictionary.
...
What makes
Kiran,
You should look into Twisted Python and their Twisted Python Conch
package. You might not need to reinvent the wheel.
http://twistedmatrix.com/trac/wiki/TwistedConch
Ravi
kadarla kiran kumar wrote:
Hi Everybody,
I have to implement SFTP conection from client to the server using
1 - 100 of 184 matches
Mail list logo