On 2/17/2011 6:31 PM, Matt Chaput wrote:
Does anyone know the "right" way to write a unit test for code that uses
multiprocessing on Windows?
I would start with Lib/test/test_multiprocessing.
--
Terry Jan Reedy
--
http://mail.python.org/mailman/listinfo/python-list
On Fri, Feb 18, 2011 at 12:43:37AM EST, John Nagle wrote:
> On 2/17/2011 6:55 PM, Cor Gest wrote:
[..]
>> At least it should try to mimick a space-cadet keyboard, shouldn't
>> it?
> I've used both the "MIT Space Cadet" keyboard on a Symbolics LISP
> machine, and the Stanford SAIL keyboard. The
Dear Pythoners,
I have a list of dictionaries. Here i have a variable which should gather
input from Checkbutton widget in Tkinter. The Problem that I'm facing is
that I'm unable to set or reset the key in every dictionary using the
checkbutton widget.
Here is what i have been doing.
list_of_di
On Fri, Feb 18, 2011 at 01:30:04AM EST, Westley Martínez wrote:
> On Thu, 2011-02-17 at 22:28 -0500, Chris Jones wrote:
> > On Thu, Feb 17, 2011 at 09:55:47PM EST, Cor Gest wrote:
> > > Some entity, AKA Cthun ,
> >
> > [..]
> >
> > > > And you omitted the #1 most serious objection to Xah's propos
On Feb 17, 10:25 pm, SMERSH009 wrote:
> On Feb 17, 9:51 pm, Stefan Behnel wrote:
>
>
>
> > SMERSH009, 17.02.2011 22:46:
>
> > > am still stuck with the following error when I try to
> > > print self.count_css_matches('css=[id="listGuests"]')
> > > I've also included the Selenium code below. Any f
SMERSH009, 18.02.2011 07:25:
On Feb 17, 9:51 pm, Stefan Behnel wrote:
SMERSH009, 17.02.2011 22:46:
class Untitled(unittest.TestCase):
def count_css_matches(self, css_locator):
java_script_code = '''
var cssMatches = eval_css("%s", window.document);
cs
On Fri, Feb 18, 2011 at 11:40 AM, tom z wrote:
> Hi all~
> My script can't work.I've changed my defaultencoding from 'ascii' to
> 'utf-8',but Python also raises a 'UnicodeEncodeError' error.
>
> the error likes this:
>
> >>> s=u'La Pe\xf1a'
> >>>print s
> UnicodeEncodeError: 'ascii' codec can't e
On Thu, 2011-02-17 at 22:28 -0500, Chris Jones wrote:
> On Thu, Feb 17, 2011 at 09:55:47PM EST, Cor Gest wrote:
> > Some entity, AKA Cthun ,
>
> [..]
>
> > > And you omitted the #1 most serious objection to Xah's proposal,
> > > rantingrick, which is that to implement it would require unrealistic
On Feb 17, 9:51 pm, Stefan Behnel wrote:
> SMERSH009, 17.02.2011 22:46:
>
>
>
> > am still stuck with the following error when I try to
> > print self.count_css_matches('css=[id="listGuests"]')
> > I've also included the Selenium code below. Any further help would be
> > appreciated.
>
> > Traceba
On Thu, 2011-02-17 at 21:38 -0800, rantingrick wrote:
>
That was a very insightful point-of-view. Perhaps you should write a
book or blog, as I'd be very interested in reading more about what you
have to say.
--
http://mail.python.org/mailman/listinfo/python-list
Hi Ppl,
I'm trying to launch IDLE from another application. For this I need the
python directory path. I have been trying to get the Active Python versions
path from the Windows registry. However, these registry entries seem not be
consistent across various stations, that i checked. I'm reading th
SMERSH009, 17.02.2011 22:46:
am still stuck with the following error when I try to
print self.count_css_matches('css=[id="listGuests"]')
I've also included the Selenium code below. Any further help would be
appreciated.
Traceback (most recent call last):
File "D:\Temp\1TestingApps\Selenium\Sc
On 2/17/2011 6:55 PM, Cor Gest wrote:
Some entity, AKA Cthun,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
And you omitted the #1 most serious objection to Xah's proposal,
rantingrick, which is that to implement it would require unrealistic
things such as replacing every 101
When the sun expands into a red giant and destroys the remaining life
left on this pathetic rock and the entire puny human species have been
transcended by the *next* evolution of intelligent agents (hopefully
before going extinct!) do you really think any advanced lifeforms are
going to look back
On Thu, Feb 17, 2011 at 09:55:47PM EST, Cor Gest wrote:
> Some entity, AKA Cthun ,
[..]
> > And you omitted the #1 most serious objection to Xah's proposal,
> > rantingrick, which is that to implement it would require unrealistic
> > things such as replacing every 101-key keyboard with 10001-key
On Feb 17, 10:04 pm, alex23 wrote:
> rantingrick wrote:
> > Cthun wrote:
>
> > > What does your aversion to cultural diversity have to do with Lisp,
> > > rantingrick? Gee, I do hope you're not a racist, rantingrick.
>
> > Why must language be constantly "connected-at-the-hip" to cultural
> > di
Hi Malcolm,
On 17 February 2011 19:20, wrote:
> Hi Andrea,
>
> Have you tried temporarily turning off your Windows firewall software
> and/or any locally installed internet security software like Norton,
> Avast, etc? You don't need to turn off your entire security package,
> just the component
On 02/17/2011 12:27 AM, Werner wrote:
I have a trivially simple piece of code called timewaster.py:
while True:
i = 0
for i in range(10):
break
_
It runs fine with Eric bu
Hello, i am using py-postgresql as the driver the database, when make a
select to a string with non-ASCII characters, the response replace the
character with "�" what can i make to change this to the correct character?
This is my code:
class decodify:
def __init__(self):
db = pgDrive
rantingrick wrote:
> Cthun wrote:
>
> > What does your aversion to cultural diversity have to do with Lisp,
> > rantingrick? Gee, I do hope you're not a racist, rantingrick.
>
> Why must language be constantly "connected-at-the-hip" to cultural
> diversity? People have this irrational fear that i
Hey
I'm working inhouse for two top games companies who are looking for top lamp
engineers. If you are interested in knowing more about the details, please
feel free to call or email me.
Cheers,
Marta Daglow
President - Games (Social, Online & Console)
Daglow Consulting Group
PO Box 948
Ross,
On 17/02/2011 10:29 PM, rantingrick wrote:
On Feb 17, 8:40 pm, Cthun wrote:
What does your aversion to cultural diversity have to do with Lisp,
rantingrick? Gee, I do hope you're not a racist, rantingrick.
Why must language be constantly "connected-at-the-hip" to cultural
diversity?
Langua
>My intention was to educate him on the pitfalls of multiplicity.
O. that's what you call that long-winded nonsense? Education? You must
live in America. Can I hazard a guess that your universal language might
be english? Has it not ever occured to you that people take pride in
their language?
Hi all~
My script can't work.I've changed my defaultencoding from 'ascii' to
'utf-8',but Python also raises a 'UnicodeEncodeError' error.
the error likes this:
>>> s=u'La Pe\xf1a'
>>>print s
UnicodeEncodeError: 'ascii' codec can't encode character u'\xf1' in position
5: ...
And in my script, the
On Fri, 2011-02-18 at 02:25 +, Steven D'Aprano wrote:
> On Thu, 17 Feb 2011 15:53:14 -0800, Westley Martínez wrote:
>
> >> > Python 3 removed longs because they were ... cryptonic!
> >> >
> >> Strictly speaking, they weren't removed. ints were removed and long was
> >> renamed int.
> > My poin
On Feb 17, 8:40 pm, Cthun wrote:
> What does your aversion to cultural diversity have to do with Lisp,
> rantingrick? Gee, I do hope you're not a racist, rantingrick.
Why must language be constantly "connected-at-the-hip" to cultural
diversity? People have this irrational fear that if we create
Some entity, AKA Cthun ,
wrote this mindboggling stuff:
(selectively-snipped-or-not-p)
> And you omitted the #1 most serious objection to Xah's proposal,
> rantingrick, which is that to implement it would require unrealistic
> things such as replacing every 101-key keyboard with 10001-key
> key
I prefer special symbol "congestion" to special symbol proliferation. A
lot. A language with few special symbols looks less like line noise, is
easier to read and write, and is easier to google for answers about.
I guess nothing's perfect.
On Wed, Feb 16, 2011 at 2:07 PM, Xah Lee wrote:
> mig
On Thu, Feb 17, 2011 at 5:46 PM, Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
> What causes the exception?
On 17/02/2011 9:11 PM, rantingrick wrote:
. On Feb 16, 4:07 pm, Xah Lee wrote:
.> Vast majority of computer languages use ASCII as its character set.
.> This means, it jams multitude of operators into about 20 symbols.
.> Often, a symbol has multiple meanings depending on contex.
.
. I think in t
On Thu, 17 Feb 2011 15:53:14 -0800, Westley Martínez wrote:
>> > Python 3 removed longs because they were ... cryptonic!
>> >
>> Strictly speaking, they weren't removed. ints were removed and long was
>> renamed int.
> My point stands.
Your point is wrong. Ints and longs weren't unified because i
On Feb 16, 4:07 pm, Xah Lee wrote:
> Vast majority of computer languages use ASCII as its character set.
> This means, it jams multitude of operators into about 20 symbols.
> Often, a symbol has multiple meanings depending on contex.
I think in theory the idea of using Unicode chars is good, howe
Quoting Matt Chaput :
Does anyone know the "right" way to write a unit test for code that
uses multiprocessing on Windows?
The problem is that with both "python setup.py tests" and
"nosetests", when they get to testing any code that starts Processes
they spawn multiple copies of the testi
Jean-Michel Pichavant wrote:
> You simply don't return inconsistent types with a return statement. This
> is a general rule in programming that has probably exceptions but
> regarding what you're saying, you clearly don't want to do that.
I don't think they were intended to be inconsistent types,
On Fri, Feb 18, 2011 at 11:46 AM, Philip Winston wrote:
> We have a multiprocess Python program that uses Queue to communicate
> between processes. Recently we've seen some errors while blocked
> waiting on Queue.get:
>
> IOError: [Errno 4] Interrupted system call
>
> What causes the exception?
We have a multiprocess Python program that uses Queue to communicate
between processes. Recently we've seen some errors while blocked
waiting on Queue.get:
IOError: [Errno 4] Interrupted system call
What causes the exception? Is it necessary to catch this exception
and manually retry the Queue
On Thu, 2011-02-17 at 15:56 +, MRAB wrote:
> On 17/02/2011 14:39, Westley Martínez wrote:
> > On Thu, 2011-02-17 at 11:43 +, Steven D'Aprano wrote:
> >> On Thu, 17 Feb 2011 12:02:28 +0100, Jean-Michel Pichavant wrote:
> >>
> >>> Karim wrote:
> [snip]
> > If you don't want to use a
On 02/16/2011 04:00 PM, Steven D'Aprano wrote:
> You should read about bottom-up and top-down programming. You'll probably
> end up doing some of both, but mostly top-down.
Most of my development is done by designing top-down and then coding
bottom-up. Coding top down is fine, but I'd expect to
Does anyone know the "right" way to write a unit test for code that uses
multiprocessing on Windows?
The problem is that with both "python setup.py tests" and "nosetests",
when they get to a multiprocessing test they spawn multiple copies of
the testing suite. The test runner in PyDev works pr
Does anyone know the "right" way to write a unit test for code that uses
multiprocessing on Windows?
The problem is that with both "python setup.py tests" and "nosetests",
when they get to testing any code that starts Processes they spawn
multiple copies of the testing suite (i.e. the new proc
On 18Feb2011 08:40, I wrote:
| On 17Feb2011 18:40, Alister Ware wrote:
| | On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote:
| | > On 17/02/11 16:39, Chris Rebert wrote:
| | >> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote:
| | >>> I have a trivially simple piece of code called timewaster.py:
|
On 18/02/11 02:40, Alister Ware wrote:
> On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote:
>
>> On 17/02/11 16:39, Chris Rebert wrote:
>>> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote:
I have a trivially simple piece of code called timewaster.py:
__
On Thu, 17 Feb 2011 13:02:08 -0800, Tim wrote:
> But. The server may encounter a problem
> during the process and ask the user for more information like
> 'abort/retry' or something like that.
>
Servers never ask the client for information: they are strictly request/
response handlers. To do what
In article ,
Jorgen Grahn wrote:
> - Write user documentation and build/installation scripts. Since I'm
> on Unix, that means man pages and a Makefile.
Wow, I haven't built a man page in eons. These days, user documentation
for me means good help text for argparse to use. If I need somethi
As a general rule, I group all my imports in the beginning of the module's
source, even if it is only used a handful of times by a few functions.
However, on such cases as the import is only needed by specific function(s)
zero or once, then I do the import in the function itself. Importing
argpars
> Come to think of it, I would first consider creating a 'cctv' user that owns
> the cameras and storage directories, and files and only do anything as root
> if absolutely necessary.
>
You can run 'sudo -g [group] ...', so no need to go near root.
>
> Running any kind of script sudo'd is a bad i
On Wed, 2011-02-16, peter wrote:
> I am writing a small Tkinter utility to control archive files in
> multiple formats (mainly for my own amusement and education).
> Basically it presents the user with two adjacent listboxes, one with
> the contents of the target directory and one with the contents
>
> Could restarts and cleanups be done with a root daemon separate from user
> scripts?
>
I like the idea of a user creating a login as you do typically with
client/server progs, no need to have the root password all the time:
http://www.python.org/dev/peps/pep-3143/
http://pypi.python.org/pypi/
On Thu, 17 Feb 2011 19:44:20 +, Katie T wrote:
> Running any kind of script sudo'd is a bad idea, it's very very hard (in
> many cases impossible) to do securely. Root permissions in general
> should only be used for what they're needed for and nothing else (that
> means getting the permission
On Feb 2, 7:03 am, Duncan Booth wrote:
> Stefan Behnel wrote:
> > You are using Selenium RC here. I have no idea if there is a Python
> > API to it or what that API looks like. The rest is just trivial code
> > that you can map 1:1 to Python:
>
> > def count_css_matches(css_locator):
> >
On 2/17/2011 12:27 PM, andrea crotti wrote:
Well no I wasn't really worried about performances.
I just thought that if an external module is really almost never used,
it might make sense to import it only when it's really needed.
If the module is only used in one function and the function may
On Wed, 2011-02-16, snorble wrote:
> I use Python a lot, but not well. I usually start by writing a small
> script, no classes or modules. Then I add more content to the loops,
> and repeat. It's a bit of a trial and error learning phase, making
> sure I'm using the third party modules correctly, a
On 17Feb2011 18:40, Alister Ware wrote:
| On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote:
|
| > On 17/02/11 16:39, Chris Rebert wrote:
| >> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote:
| >>> I have a trivially simple piece of code called timewaster.py:
| >>>
On 2/17/2011 1:39 PM, Adam Skutt wrote:
On Feb 17, 10:32 am, GSO wrote:
I'm having a awfully hard time figuring out why a home CCTV
application might need privilege at all. Are you sure you really need
privilege? It sounds to me like there may be some larger design
issues mandating the need f
On Feb 17, 2:41 pm, Martin Gregorie
wrote:
> On Thu, 17 Feb 2011 08:14:36 -0800, Tim wrote:
> > Hi, I have an inetd service on freebsd that calls a program (daemon.py)
> > with which I want the remote user to communicate. I can call daemon.py
> > from the command line on the host machine and it w
Il giorno 17/feb/2011, alle ore 16.14, andrea crotti ha scritto:
> Not ready yet but the structure of the python and elisp files is more or less
> there:
> git://github.com/AndreaCrotti/empathy.git
>
> Feel welcome for any comments/hints.
>
> About the communication between the processes I thi
On Feb 17, 2:41 pm, Martin Gregorie
wrote:
> On Thu, 17 Feb 2011 08:14:36 -0800, Tim wrote:
> > Hi, I have an inetd service on freebsd that calls a program (daemon.py)
> > with which I want the remote user to communicate. I can call daemon.py
> > from the command line on the host machine and it w
On Thu, 17 Feb 2011 08:14:36 -0800, Tim wrote:
> Hi, I have an inetd service on freebsd that calls a program (daemon.py)
> with which I want the remote user to communicate. I can call daemon.py
> from the command line on the host machine and it works fine.
>
> What I don't understand is how to m
On Wed, Feb 16, 2011 at 9:26 PM, GSO wrote:
> I'm sure this question is as old as time, but what is the best way to
> gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk
> v2.18.9, on RHEL6.)
>
Running any kind of script sudo'd is a bad idea, it's very very hard
(in many cases imposs
On Thu, Feb 17, 2011 at 1:27 PM, Cousin Stanley wrote:
>
> usenet.digi...@spamgourmet.com wrote:
>
> > Ok, I've decided that Boa Constructor is too buggy to be useful
> > under Ubuntu, so what would the team recommend for developing
> > Python projects with wxPython? Preferably with some GUI desig
On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote:
> On 17/02/11 16:39, Chris Rebert wrote:
>> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote:
>>> I have a trivially simple piece of code called timewaster.py:
>>>
>>>
>>> while True:
>>>i = 0
On Feb 17, 10:32 am, GSO wrote:
> > I'm having a awfully hard time figuring out why a home CCTV
> > application might need privilege at all. Are you sure you really need
> > privilege? It sounds to me like there may be some larger design
> > issues mandating the need for privilege when it's not
Good point, pardon the assumption :)
I'm reading more about RESTful and it looks like its a web based API.
Oh well, I'll figure it out, I mean, my job depends on it, lol.
On Thu, Feb 17, 2011 at 1:19 PM, Cousin Stanley wrote:
>
> Matty Sarro wrote:
>
>>
>> I am in charge of deploying a platf
usenet.digi...@spamgourmet.com wrote:
> Ok, I've decided that Boa Constructor is too buggy to be useful
> under Ubuntu, so what would the team recommend for developing
> Python projects with wxPython? Preferably with some GUI design capability?
perhaps python-wxglade
GUI designer w
Matty Sarro wrote:
>
> I am in charge of deploying a platform to allow people
> across my company to access a variety of crunched metrics
> using splunk.
>
For the convenience of others
that may not be familar with splunk
http://en.wikipedia.org/wiki/Splunk
http://
In article , a...@pythoncraft.com (Aahz)
wrote:
> In article
> <6cde71c6-5c56-40ea-9849-50fc44e5d...@o14g2000prb.googlegroups.com>,
> Santiago Caracol wrote:
> >
> >a server program of mine uses data which are compiled to a Python
> >module for efficiency reasons. In some module of the server
In article <6cde71c6-5c56-40ea-9849-50fc44e5d...@o14g2000prb.googlegroups.com>,
Santiago Caracol wrote:
>
>a server program of mine uses data which are compiled to a Python
>module for efficiency reasons. In some module of the server program I
>import the data:
>
>from data import data
>
>As the
Matt Chaput wrote:
> Are there any editors/IDEs with good support for line-coloring from
> Python test coverage results? (I normally use Eclipse + PyDev but
> PyDev's current coverage support isn't much better than nothing.)
>
> Thanks,
>
> Matt
eric4 (Python2) and eric5 (Python3) do have this
On 2/17/2011 10:17 AM, andrea crotti wrote:
2011/2/17 Matty Sarro mailto:msa...@gmail.com>>
This may be kind of a stupid question, so please be gentle.
I've only ever used most programming in the past when shell scripting
couldn't handle what I needed done. So, I rarely dabble with
On 2/17/2011 10:32 AM, GSO wrote:
I'm having a awfully hard time figuring out why a home CCTV
application might need privilege at all. Are you sure you really need
privilege? It sounds to me like there may be some larger design
issues mandating the need for privilege when it's not really
necess
On 17/02/2011 17:11, Tim Hanson wrote:
Okay, I solved my problem with Python finding modules:
I put the following into a file in my home directory, on the good advice of
Andrea Crotti:
import sys
sys.path.append('/home/foo/mypath'
I named the file "~/pypath.py", so now, in idle:
import pypath
Ok, I've decided that Boa Constructor is too buggy to be useful under
Ubuntu, so what would the team recommend for developing Python projects
with wxPython? Preferably with some GUI design capability?
--
http://mail.python.org/mailman/listinfo/python-list
2011/2/17 Chris Rebert
> Yes, of course. Importing a module multiple times (as would happen if
> fun() is called multiple times) is obviously slower than just
> importing it once, although the 2nd and subsequent imports will be
> faster as Python will just return another reference to the previous
On 2/17/11 11:11 AM, Tim Hanson wrote:
import pypath
import intersect #the name of a file that contains the above short function.
intersect('spam','spmmer')
Traceback (most recent call last):
File "", line 1, in
intersect('spam','spmmer')
TypeError: 'module' object is not callable
H
How do I use wxPython or wxGlade in the context of Eclipse?
A link to a howto would be great!
Thanks,
Fred
--
http://mail.python.org/mailman/listinfo/python-list
Okay, I solved my problem with Python finding modules:
I put the following into a file in my home directory, on the good advice of
Andrea Crotti:
import sys
sys.path.append('/home/foo/mypath'
I named the file "~/pypath.py", so now, in idle:
import pypath
No errors.
I'm still getting a little
On Thu, Feb 17, 2011 at 8:44 AM, andrea crotti
wrote:
> Suppose I have a function which uses a few external libraries,
> and this function is only called once every 10 executions.
>
> Does it make sense to import these libraries for the whole module?
Yes. Having all the imports in one place keeps
On Thu, Feb 17, 2011 at 8:14 AM, Tim wrote:
> Hi, I have an inetd service on freebsd that calls a program
> (daemon.py) with which I want the remote user to communicate. I can
> call daemon.py from the command line on the host machine and it works
> fine.
>
> What I don't understand is how to ma
Suppose I have a function which uses a few external libraries,
and this function is only called once every 10 executions.
Does it make sense to import these libraries for the whole module?
import sys
def fun():
import x, y, z
Something like this is acceptable/good practice in the scenario I
Hi, I have an inetd service on freebsd that calls a program
(daemon.py) with which I want the remote user to communicate. I can
call daemon.py from the command line on the host machine and it works
fine.
What I don't understand is how to make my remote client script
actually communicate. If I'm u
On 17/02/2011 14:39, Westley Martínez wrote:
On Thu, 2011-02-17 at 11:43 +, Steven D'Aprano wrote:
On Thu, 17 Feb 2011 12:02:28 +0100, Jean-Michel Pichavant wrote:
Karim wrote:
[snip]
If you don't want to use a factory function I believe you can do this:
class MyNumber(object):
de
On Feb 16, 6:21 am, Eric Brunel
wrote:
> In article
> <6849fd3f-5116-4b35-b274-dc76ae39f...@a11g2000pro.googlegroups.com>,
>
>
>
>
>
> RJB wrote:
> > On Feb 16, 12:48 am, Eric Brunel
> > wrote:
> > > In article ,
> > > Doug Epling wrote:
>
> > > > hey, does anyone find the UML useful during P
Santiago Caracol wrote:
Hello,
a server program of mine uses data which are compiled to a Python
module for efficiency reasons. In some module of the server program I
import the data:
from data import data
As the data often changes, I would like to reimport it every n (e.g.
10) seconds.
Unfor
> I'm having a awfully hard time figuring out why a home CCTV
> application might need privilege at all. Are you sure you really need
> privilege? It sounds to me like there may be some larger design
> issues mandating the need for privilege when it's not really
> necessary.
>
A user login shoul
Hello,
a server program of mine uses data which are compiled to a Python
module for efficiency reasons. In some module of the server program I
import the data:
from data import data
As the data often changes, I would like to reimport it every n (e.g.
10) seconds.
Unfortunately, it is rather dif
2011/2/17 Matty Sarro
> This may be kind of a stupid question, so please be gentle.
> I've only ever used most programming in the past when shell scripting
> couldn't handle what I needed done. So, I rarely dabble with things
> like API's, or even python-isms. I just program to get things done.
>
Not ready yet but the structure of the python and elisp files is more or
less there:
git://github.com/AndreaCrotti/empathy.git
Feel welcome for any comments/hints.
About the communication between the processes I think I'll use stdin/out
too, since it comes quite natural using emacs sub-processes.
Apart from that, you could also use a shorter format which is a
correction over what you were trying with earlier.
Here..
uid = "scott"
pwd = "tiger"
service = "//10.5.1.12:1521/PR10"
db = cx_Oracle.connect(uid + "/" + pwd + "@" + service)
Please let us know how it goes.
Regards,
Anurag
On
Try this please and it should work.
Connection_String =
'scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.1.12)(PORT=1521)))(CONNECT_DATA=(SID=PR10)))'
db = cx_Oracle.connect(Connection_String)
I'm sorry i missed a bracket there.
Regards,
Anurag
On Thu, Feb 17, 2011 at
On Thu, 2011-02-17 at 11:43 +, Steven D'Aprano wrote:
> On Thu, 17 Feb 2011 12:02:28 +0100, Jean-Michel Pichavant wrote:
>
> > Karim wrote:
> >> [snip]
> >>> If you don't want to use a factory function I believe you can do this:
> >>>
> >>> class MyNumber(object):
> >>> def __new__(cls, n
Could you try by using a connecting string in the standard format as below?
Connection_String =
'scott/tiger@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.5.1.12(PORT=1521)))(CONNECT_DATA=(SID=PR10)))'
db = cx_Oracle.connect(Connection_String)
Regards,
Anurag
On Thu, Feb 17, 2011 a
This may be kind of a stupid question, so please be gentle.
I've only ever used most programming in the past when shell scripting
couldn't handle what I needed done. So, I rarely dabble with things
like API's, or even python-isms. I just program to get things done.
Well, that's about to change :)
Hi Andrea,
Have you tried temporarily turning off your Windows firewall software
and/or any locally installed internet security software like Norton,
Avast, etc? You don't need to turn off your entire security package,
just the component that controls internet access.
If the problem can not be re
Why Tkinter on Linux dont support other format of logo picture except of
.xbm format ?
here logo Picture means an image which comes on top left of window .
--
http://mail.python.org/mailman/listinfo/python-list
Steven D'Aprano wrote:
On Thu, 17 Feb 2011 12:02:28 +0100, Jean-Michel Pichavant wrote:
Karim wrote:
[snip]
If you don't want to use a factory function I believe you can do this:
class MyNumber(object):
def __new__(cls, n):
if n<= 100:
cls = SmallNum
On Feb 16, 10:43 pm, GSO wrote:
> OK, so I'm heading towards sudo then, aiming to make sure I don't
> screw up the configuration. This is a home CCTV application, so I
> want things as secure as possible. A setgid wrapper would require the
> kind of skilled programming that I couldn't do myself
On Thu, Feb 17, 2011 at 2:12 AM, Dan Stromberg wrote:
>
> On Wed, Feb 16, 2011 at 6:59 PM, Adam Skutt wrote:
>> On Feb 16, 9:00 pm, Dan Stromberg wrote:
>>> So yeah, whether you use perl or anything else invoked with #!, you're
>>> pretty much better off with sudo, or a tiny C wrapper that's so
Hi all,
Finacial Information Exchange (FIX) Protocol module is what I am looking
for.Using it I would like to pump and listen to the FIX messages--(hard
coded values). Please guide me through the relevant module (windows
installer) and anything that you foresee as a potential bottleneck.
So far I
On 01/-10/-28163 02:59 PM, andrea crotti wrote:
2011/2/17 Chris Rebert
Actually, so long as you specify a bit more specific versions, e.g.:
python2.7 empathy.py
python3.1 empathy3.py
it should be fine on most *nixes. Windows would of course require a
separate, but analogous, batch file or si
On Thu, 17 Feb 2011 12:02:28 +0100, Jean-Michel Pichavant wrote:
> Karim wrote:
>> [snip]
>>> If you don't want to use a factory function I believe you can do this:
>>>
>>> class MyNumber(object):
>>> def __new__(cls, n):
>>> if n<= 100:
>>> cls = SmallNumbers
>>>
1 - 100 of 117 matches
Mail list logo