zxo102 schrieb:
> Hi,
>I would like to combine two python applications into a single one
> with two threadings. Both of them have a "while 1:" loop respectively.
> For example, one application is to monitoring serial port 'com1' and
> another application is a TCP/IP server which has used thread
Stef Mientki <[EMAIL PROTECTED]> writes:
> I want to have a (dynamically) list of all classes defined in a py-file.
> Is there a way of getting this list, without manually parsing the file ?
>>> import random
>>> for name in dir(random):
... obj = getattr(random, name)
...
Paul Boddie <[EMAIL PROTECTED]> wrote:
> However, this ambiguous usage of * and ** is one thing I don't recall
> appearing on any of the "Python warts" lists
It is true that the same punctuation character is used in more than one
context, but that is also true for many other punctuation character
[EMAIL PROTECTED] a écrit :
> Hello,
> How can we organize development team with code source control policy,
> that limit access to some portion of code ?
The question may be of interest, but I'm afraid I don't understand how
it relates to Python ???
--
http://mail.python.org/mailman/listinfo/p
Steve Holden <[EMAIL PROTECTED]>:
>I'm happy you are proceeding with so little trouble. Without wishing to
>confuse you, however, I should point out that this aspect of Python has
>very little to do with its object-orientation. There was a language
>called Icon, for example, 20 years ago, that
marduk <[EMAIL PROTECTED]> wrote:
> By design, %s "converts any python object using str()". OTOH it does
> not specify that %d, for example, calls int().
No, but it does say that the 'd' is a conversion type meaning 'signed
integer decimal', and indeed anything which has an __int__ method may b
[EMAIL PROTECTED] wrote:
> On 16 juil, 21:10, Erik Jones <[EMAIL PROTECTED]> wrote:
>> On Jul 16, 2007, at 3:46 PM, [EMAIL PROTECTED] wrote:
>>
>>> Hello,
>>> How can we organize development team with code source control policy,
>>> that limit access to some portion of code ?
>> The specifics large
Daniel a écrit :
> Bruno Desthuilliers wrote:
>>> Another way is to use the 'types' module:
>> True - and that's somewhat cleaner since it doesn't expose the internals
>> of the descriptor protocol. OTHO, it can lead to strange results with
>> callables not implementing the descriptor protocol:
>
> I haven't compiled it myself, but I'm told that the installation I
> work with was compiled with:
>
> export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
> ./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
> ipv6 AR="ar -X64"
> make
> make install
I've tried with the followong c
On Tue, 17 Jul 2007 08:08:45 +0200, Hendrik van Rooyen wrote:
> I heard a rumour once that a "hello world" string takes something like
> 10k bytes in XMLRPC - have never bothered to find out if its BS...
Just try it out:
In [8]: import xmlrpclib
In [9]: a = xmlrpclib.dumps(('hello world',))
In
Ah, thanks I get it now!
--Shabda
On Jul 17, 7:52 am, Steven D'Aprano
<[EMAIL PROTECTED]> wrote:
> On Mon, 16 Jul 2007 14:45:48 +,shabdaraaj wrote:
> > On Jul 16, 5:53 pm, Steve Holden <[EMAIL PROTECTED]> wrote:
> >>shabdaraaj wrote:
> >> > I was going through the docs for module-random
> >>
Hi,
could you actually help me further?
I thought it will quite easy but I've been programming in python just
for a month.
I need to add extra items in new list.
So here is example:
I have a list of dictionaries.
e.g.
[{'index': 0, 'ip_addr': '1.2.3.4', 'server-name':'Asterisk', 'transport':
'ud
Gabriel Genellina wrote:
> En Mon, 16 Jul 2007 20:13:19 -0300, Alex Popescu
> <[EMAIL PROTECTED]> escribió:
>
>> On Jul 17, 1:44 am, Stef Mientki <[EMAIL PROTECTED]>
>> wrote:
>>> I want to have a (dynamically) list of all classes defined in a py-file.
>>> Is there a way of getting this list, wit
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> In the case of CPython, the current implementation uses the Mersenne
> Twister, which has a huge period of 2**19937. However, 2081! is
> larger than that number, which means that at best a list of 2081
> items or longer can't be perfectly shuffled (not
Morning Gabriel,
I'm looking for a little more advice on this dictionary/list to
defaultdict/set conversion that we were talking about, there were a few
things I was looking to clarify. Firstly, what is the difference between a
standard dict and a default dict? Is it purely a performance issue?
Problem:
how to get binary from integer and vice versa?
The simplest way I know is:
a = 0100
a
64
but:
a = 100 (I want binary number)
does not work that way.
a.__hex__ exists
a.__oct__ exists
but where is a.__bin__ ???
What`s the simplest way to do this?
Thank you very much.
--
http://mail
[EMAIL PROTECTED] wrote:
>> I haven't compiled it myself, but I'm told that the installation I
>> work with was compiled with:
>>
>> export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
>> ./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
>> ipv6 AR="ar -X64"
>> make
>> make install
On Jul 17, 9:09 pm, mosi <[EMAIL PROTECTED]> wrote:
> Problem:
> how to get binary from integer and vice versa?
> The simplest way I know is:
> a = 0100
> a
> 64
>
> but:
> a = 100 (I want binary number)
> does not work that way.
>
> a.__hex__ exists
> a.__oct__ exists
>
> but where is a.__bin__
On Tue, 17 Jul 2007 14:09:35 +0300, mosi <[EMAIL PROTECTED]> wrote:
>
> Problem:
> how to get binary from integer and vice versa?
> The simplest way I know is:
> a = 0100
> a
> 64
>
> but:
> a = 100 (I want binary number)
> does not work that way.
>
> a.__hex__ exists
> a.__oct__ exists
>
> but
mosi a écrit :
> Problem:
> how to get binary from integer and vice versa?
> The simplest way I know is:
> a = 0100
> a
> 64
>
> but:
> a = 100 (I want binary number)
> does not work that way.
>
> a.__hex__ exists
> a.__oct__ exists
>
> but where is a.__bin__ ???
>
>
> What`s the simplest wa
On Tue, 17 Jul 2007 14:09:35 +0300, mosi <[EMAIL PROTECTED]> wrote:
>
> Problem:
> how to get binary from integer and vice versa?
> The simplest way I know is:
> a = 0100
> a
> 64
Also that is not binary - that is octal, binary would be: '0100'
(denoted as a string, since 0100 in octal
Thank you,
this is great,
I thought that this should be standard in python 2.4 or 2.5 or in some
standard library (math ???)
Didn`t find anything.
On Jul 17, 2:05 pm, John Machin <[EMAIL PROTECTED]> wrote:
> On Jul 17, 9:09 pm, mosi <[EMAIL PROTECTED]> wrote:
>
>
>
> > Problem:
> > how to get bin
On 17 Jul, 01:16, [EMAIL PROTECTED] wrote:
>
> Thanks for your response,
> But I want to know if there is a process or best practices, to give
> not the access to all of the project. in other words, must every
> developer work on the entire copy of the project locally ?
You probably want to split
On Tue, 17 Jul 2007 10:57:29 +0100, Robert Rawlins - Think Blue wrote:
> Morning Gabriel,
>
> I'm looking for a little more advice on this dictionary/list to
> defaultdict/set conversion that we were talking about, there were a few
> things I was looking to clarify. Firstly, what is the differenc
On Jul 16, 7:54 pm, [EMAIL PROTECTED] wrote:
> On Jul 16, 3:23 pm, Grant Edwards <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > On 2007-07-16, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> > >> Have you tried to open the file in "wb" mode?
>
> > > The data is coming from a record set selection from th
On 2007-07-17, mosi <[EMAIL PROTECTED]> wrote:
> Thank you,
> this is great,
> I thought that this should be standard in python 2.4 or 2.5 or in some
> standard library (math ???)
> Didn`t find anything.
Support is built-in for string representations of numbers in other
than base 10, but conversio
John Machin <[EMAIL PROTECTED]> wrote:
> Here's a sketch; I'll leave you to fill in the details -- you may wish
> to guard against interesting input like b < 2.
>
def anybase(n, b, digits='0123456789abcdef'):
> ...tmp = []
> ...while n:
> ... n, d = divmod(n, b)
> ... tmp
On Jul 17, 4:41 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
wrote:
> En Mon, 16 Jul 2007 20:13:19 -0300, Alex Popescu
> <[EMAIL PROTECTED]> escribió:
>
> > On Jul 17, 1:44 am, Stef Mientki <[EMAIL PROTECTED]>
> > wrote:
> >> I want to have a (dynamically) list of all classes defined in a py-file.
In article <[EMAIL PROTECTED]>,
Wolfgang Strobl <[EMAIL PROTECTED]> wrote:
>
>SNOBOLs powerfull patterns still shine, compared to Pythons clumsy
>regular expressions.
Keep in mind that Python regular expressions are modeled on the
grep/sed/awk/Perl model so as to be familiar to any sysadmin -- b
[EMAIL PROTECTED] (Aahz) writes:
>In article <[EMAIL PROTECTED]>,
>Wolfgang Strobl <[EMAIL PROTECTED]> wrote:
>>
>>SNOBOLs powerfull patterns still shine, compared to Pythons clumsy
>>regular expressions.
>Keep in mind that Python regular expressions are modeled on the
>grep/sed/awk/Perl model
[EMAIL PROTECTED] (Aahz) writes:
> .So adding SNOBOL patterns to another library would be a wonderful
> gift to the Python community...
Snobol patterns were invented at a time when nobody knew anything
about parsing. They were extremely powerful (recursive with arbitrary
amounts of backtracking)
Hello Mr. Golawala,
I am glad to spot this on the web search - "python and Test Director",
However can you or anyone tell me more specifically how this COM objects
works
in between Python and "Test Director" or to where should I refer??
Thanks. Solon Lee
E-mail confidentiality.
shabda raaj wrote:
> The code for shuffle is
>
> if random is None:
> random = self.random
> for i in reversed(xrange(1, len(x))):
> # pick an element in x[:i+1] with which to exchange x[i]
> j = int(random() * (i+1))
> x[i], x[
Hello!
As far as I can see os.chmod() doesn't adjust permissions on directories
recusively. Is there any other possibility to achieve this aim except for
calling os.system('chmod -R /dir') directly?
Thanks,
Fabian
--
http://mail.python.org/mailman/listinfo/python-list
(I thought I'd follow up on this post so as not to send unsuspecting
readers down a hopeless path)
duh!
I've obviously spent too much time with dynamic languages. The problem
with what I'm trying to do is obvious: In C++ you simply can't pass
pointers to call a particular instance of a C++ class
Fabian Steiner wrote:
> Hello!
>
> As far as I can see os.chmod() doesn't adjust permissions on directories
> recusively. Is there any other possibility to achieve this aim except for
> calling os.system('chmod -R /dir') directly?
>
> Thanks,
> Fabian
Check out os.path.walk.
James
--
http://ma
On Jul 16, 4:50 am, Stefan Behnel <[EMAIL PROTECTED]> wrote:
> Diez B. Roggisch wrote:
> > John Nagle wrote:
> >>I'm reading the PhishTank XML file of active phishing sites,
> >> at "http://data.phishtank.com/data/online-valid/"; This changes
> >> frequently, and it's big (about 10MB right now
I have two ranges of numbers and I need to determine if they overlap
or adjacent and if so return a new range containing the values. The
values are low and high for each pair, such that the first value of
the tuple is always less than or equal to the second value in the
tuple.
for example:
a = (0
Dears,
It's about Pyhton for Linux X86.
First, I would like to know if it's possible to build a fully static
python binary, something that does not depends on others libraries
when using 'ldd python', e.g. If so, how?
Second, I would like to build a python for distribution that would
include (st
I have two ranges of numbers and I need to determine if they overlap
or adjacent and if so return a new range containing the values. The
values are low and high for each pair, such that the first value of
the tuple is always less than or equal to the second value in the
tuple.
for example:
a = (0
En Tue, 17 Jul 2007 11:05:17 -0300, Alex Popescu
<[EMAIL PROTECTED]> escribió:
> On Jul 17, 4:41 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> wrote:
>> > On Jul 17, 1:44 am, Stef Mientki <[EMAIL PROTECTED]>
>> > wrote:
>> >> I want to have a (dynamically) list of all classes defined in a
>> p
Hey guys, I know this is a really stupid question, but I've tried
googling and nothing came up. I also tried IRC, but it was too crowded
and I didn't get much useful information.
I'm using Python 2.5 on WinXP, and I'm trying to do a relative import.
Here's the package structure
A/
__init__.
On Tue, 17 Jul 2007 17:29:41 +, anoweb wrote:
> I have two ranges of numbers and I need to determine if they overlap
> or adjacent and if so return a new range containing the values. The
> values are low and high for each pair, such that the first value of
> the tuple is always less than or e
Jennifer Thacher wrote:
> Fabian Steiner wrote:
>> As far as I can see os.chmod() doesn't adjust permissions on directories
>> recusively. Is there any other possibility to achieve this aim except for
>> calling os.system('chmod -R /dir') directly?
>>
>> Thanks,
>> Fabian
>
> Check out os.path.w
I did some more experimenting and came up with the code below. It
shows several methods. When run, the script tests the robustness of
each method (roughly), and profiles it using timeit. The results from
running on my laptop are shown below the code.
seqs = [# Original:
[0xF0, 1, 2, 3, 0
On 7/16/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Hello,
>
> I'm a Python beginner and I'm trying to open, write and close a file
> in a
> correct manner. I've RTFM, RTFS, and I've read this thread:
> http://groups.google.ca/group/comp.lang.python/browse_thread/thread/73bbda2c920521c/98c73
Today I needed to install python from source on linux to a custom path.
/usr/lib/libtk8.3.so existed, but I wanted python to link to
/my/custom/path/lib/libtk8.4.so.
I had LDFLAGS set:
LDFLAGS="-L/my/custom/path/lib -Wl,-rpath,$base/lib -Wl,--enable-new-dtags"
configure looked like this:
./c
On Jul 17, 2:19 am, Paddy <[EMAIL PROTECTED]> wrote:
> On Jul 17, 1:10 am, Karthik Gurusamy <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > The string format operator, %, provides a functionality similar to the
> > snprintf function in C. In C, the function does not know the type of
> > each of
On Jul 17, 3:58 am, [EMAIL PROTECTED] wrote:
> > I haven't compiled it myself, but I'm told that the installation I
> > work with was compiled with:
>
> > export PATH=$PATH:/usr/vacpp/bin:/usr/vacpp/lib
> > ./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-
> > ipv6 AR="ar -X64"
Bruno Desthuilliers wrote:
> mosi a écrit :
>
>> Problem:
>> how to get binary from integer and vice versa?
>> [snip]
>> What`s the simplest way to do this?
>>
>
> [EMAIL PROTECTED]:~$ python
> Python 2.5.1 (r251:54863, May 2 2007, 16:56:35)
> [GCC 4.1.2 (Ubuntu 4.1.2-0ubuntu4)] on linux2
JamesHoward wrote:
> I am looking for a way of performing inter process communication over
> XML between a python program and something else creating XML data.
What is that "something else"?
--irmen
--
http://mail.python.org/mailman/listinfo/python-list
Matimus wrote:
> I did some more experimenting and came up with the code below. It
> shows several methods. When run, the script tests the robustness of
> each method (roughly), and profiles it using timeit. The results from
> running on my laptop are shown below the code.
Try this one...
def g
On Jul 17, 5:57 am, "Robert Rawlins - Think Blue"
<[EMAIL PROTECTED]> wrote:
> Morning Gabriel,
>
> I'm looking for a little more advice on this dictionary/list to
> defaultdict/set conversion that we were talking about, there were a few
> things I was looking to clarify. Firstly, what is the diffe
Hi,
I have been looking into making my file cleaning script more
intelligent. The goal of the script is to delete everything on a
drive except for a couple of folders which are skipped by the script.
Recently, I noticed that some files where not being deleted because a
process was using them. Is
Hello,
Is there any real easy example for loading an texture in your directpython
window???
For example this is my code:
# loading directpython modules
import d3dx
import d3d
from d3dc import *
import d3dgui
import time
#making a window
fr=d3dx.Frame(u"Bok kaj ima")
# trying to load an texture
Hello all,
So I'm setting up a script that runs when CVS wants to connect to an ext type
server by setting CVS_RSH to my script so I can log in with a password. IE
CVS_RSH=/etc/projects/blah.py. Which runs when I type say "cvs -d:ext:[EMAIL
PROTECTED]:/cvsroot co module". I need this because of
Hello everybody,
I want to create a script which reads files in a
current directory and renames them according to some
scheme. The file names are in Russian - sometimes
the names encoded as win-1251, sometimes as koi8-r etc.
I want to read in file name and convert it to list for
further proces
On Jul 16, 8:16 pm, [EMAIL PROTECTED] wrote:
> import gtk and Tkinter modules. Those don't seem to be included when
> I use the default ./configure or python setup.py.
Tkinter is supposed to be included by default, although that depends
on who's Python you are using and ./configure. You have to
Hello,
I need to convert PDF to ODT or PDF to DOC using python!
I was taking a look at
http://www.kde-apps.org/content/show.php/show.php?content=18638&vote=bad&tan=6679097&PHPSESSID=a342d14ea5b9afdfe38580e29ff8bdd9
and this project is outdated.
So any idea?
Thank you!
--
http://mail.pyt
I have a class called Users that provides a higher level of
abstraction to an underlying "users" table in a pgsql database. It
has methods like "addUser()" and "deleteUser()" which, obviously, wrap
the corresponding SQL statements. My question is would it better to
let any exceptions thrown by th
Wolfgang Strobl wrote:
> Steve Holden <[EMAIL PROTECTED]>:
>
>> I'm happy you are proceeding with so little trouble. Without wishing to
>> confuse you, however, I should point out that this aspect of Python has
>> very little to do with its object-orientation. There was a language
>> called Ico
Chris Carlen wrote:
> Hi:
>
> From what I've read of OOP, I don't get it. I have also found some
> articles profoundly critical of OOP. I tend to relate to these articles.
>
> However, those articles were no more objective than the descriptions of
> OOP I've read in making a case. Ie., what
Josiah Carlson wrote:
> shabda raaj wrote:
[...]
>
>> Anyway, is there some test harness we can run to test the robustness
>> of shuffle? We can run that test harness for large values and see at
>> what point all permutations are not possible or come with unequal
>> probability.
>
> Shuffle works
On Jul 17, 5:35 am, Bruno Desthuilliers wrote:
> mosi a écrit :
>
>
>
> > Problem:
> > how to get binary from integer and vice versa?
> > The simplest way I know is:
> > a = 0100
> > a
> > 64
>
> > but:
> > a = 100 (I want binary number)
> > does not work that way.
>
> > a.__hex__ exists
> > a._
I am fairly new to Python and am trying to get to grips with pysqlite2.
>From what I have read data is returned as a list of tuples when using
SELECT via connection.cursor. But I have not, despite frantic googling,
found how to INSERT a list of tuples into a sqlite table. If I convert
the tuple to
That certainly is fast, unfortunately it doesn't pass all of the tests. I
came up with those tests so I don't know how important they are to the
original poster. I modified it and came up with a generator and a
non-generator version based (roughly) on your algorithm, that are almost as
quick, and
On Tue, 17 Jul 2007 21:22:03 +0300, Wildemar Wildenburger
<[EMAIL PROTECTED]> wrote:
>
> Bruno Desthuilliers wrote:
>> mosi a écrit :
>>
>>> Problem:
>>> how to get binary from integer and vice versa?
>>> [snip]
>>> What`s the simplest way to do this?
>>>
>>
>> [EMAIL PROTECTED]:~$ python
>> Pyt
In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How
do I get it to give me back my tiny value?
Thanks!
Dee
"The most exciting phrase to hear in science, the one that
heralds new discoveries, is not 'Eureka!' but 'That's funny...'"
- Isaac Asimov
--
http://mai
asincero wrote:
> I have a class called Users that provides a higher level of
> abstraction to an underlying "users" table in a pgsql database. It
> has methods like "addUser()" and "deleteUser()" which, obviously, wrap
> the corresponding SQL statements. My question is would it better to
> let a
Multiple categories including literature, business, home & garden,
computers & internet, and more! Learn how to make money at home, start
your own business, try new recipes, etc. Complete resell rights
included!
http://www.grandgold.net
--
http://mail.python.org/mailman/listinfo/python-list
On Tue, 2007-07-17 at 21:49 +0100, John K Masters wrote:
> I am fairly new to Python and am trying to get to grips with pysqlite2.
> >From what I have read data is returned as a list of tuples when using
> SELECT via connection.cursor. But I have not, despite frantic googling,
> found how to INSER
Steve Holden wrote:
> It took a little bit more careful planning to get Icon pattern-matching
> structures right, but there was much more explicit control of
> backtracking. I only wish they'd grafted more OO concepts into it, then
> I might never have bothered with Python! Someone did do an OO
On 17:30 Tue 17 Jul , Carsten Haese wrote:
> On Tue, 2007-07-17 at 21:49 +0100, John K Masters wrote:
> > I am fairly new to Python and am trying to get to grips with pysqlite2.
> > >From what I have read data is returned as a list of tuples when using
> > SELECT via connection.cursor. But I h
In article <[EMAIL PROTECTED]>,
"Evan Klitzke" <[EMAIL PROTECTED]> wrote:
...
> > How do I ensure that the close() methods in my finally clause do not
> > throw an exception?
> You should take a look at the man pages for close(2) and write(2) (not
> fclose). Generally you will only get an error
I'm working on a distributed computing program and need to send Python
objects over a TCP socket. Specifically, the objects that I'm working with
subclass the builtin list type (I don't know whether or not that matters),
but also include other data fields. These objects are put into dictionaries
a
In article <[EMAIL PROTECTED]>,
Paul Boddie <[EMAIL PROTECTED]> wrote:
>On 17 Jul, 01:16, [EMAIL PROTECTED] wrote:
>>
>> Thanks for your response,
>> But I want to know if there is a process or best practices, to give
>> not the access to all of the project. in other words, must every
>> developer
"Evan Klitzke" <[EMAIL PROTECTED]> writes:
> You should take a look at the man pages for close(2) and write(2) (not
> fclose). Generally you will only get an error in C if you try to close
> a file that isn't open. In Python you don't even have to worry about
> that -- if you close a regular file
Dee Asbury wrote:
> In multiplying a value of xe^-325 with ye^-4, Python is returning zero. How
> do I get it to give me back my tiny value?
>
> Thanks!
> Dee
>
>
>
Of course, Python is doing no such thing. The floating point
arithmetic hardware on your machine is doing the multiplication a
Hello All:
Is is possible to compile a code object and single-step through its
execution?
Craig
--
http://mail.python.org/mailman/listinfo/python-list
dmoore <[EMAIL PROTECTED]> wrote:
> I've obviously spent too much time with dynamic languages. The problem
> with what I'm trying to do is obvious: In C++ you simply can't pass
> pointers to call a particular instance of a C++ class method so there
> is no way to initialize the PyMethodDef with
On 18/07/2007 4:11 AM, ddtl wrote:
> Hello everybody,
>
> I want to create a script which reads files in a
> current directory and renames them according to some
> scheme. The file names are in Russian - sometimes
> the names encoded as win-1251, sometimes as koi8-r etc.
You have a file system
Donn Cave <[EMAIL PROTECTED]> wrote:
> I don't think there's any remedy for it, other than the obvious -
> either always flush, or wrap an explicit close in its own exception
> handler.
Even if you have flushed, close() can give an error with some filesystems.
-M-
--
http://mail.python.org/mai
Craig Howard schrieb:
> Hello All:
>
> Is is possible to compile a code object and single-step through its
> execution?
import pdb; pdb.set_trace()
Look up the pdb module documentation.
Diez
--
http://mail.python.org/mailman/listinfo/python-list
> I want to create a script which reads files in a
> current directory and renames them according to some
> scheme. The file names are in Russian - sometimes
> the names encoded as win-1251, sometimes as koi8-r etc.
> I want to read in file name and convert it to list for
> further processing. T
On 18/07/2007 7:13 AM, Dee Asbury wrote:
> In multiplying a value of xe^-325 with ye^-4, Python is returning zero.
> How do I get it to give me back my tiny value?
>
It is difficult to understand what you mean by xe^-325 etc ... in
Python, ^ is the bitwise exclusive-or operator. The power opera
My program creates new XML files (not through the DOM, but just by
simple file.write calls.) It would be nice if said files would
be in the default system encoding. So in Python 2.5 I use
ENCODING = codecs.lookup(locale.getdefaultlocale()[1]).name
locale.getdefaultlocale()[1] sometimes returns a
Forget about that--I then found /usr/lib/python2.5/encodings/aliases.py,
which is also in Python 2.4. Sorry for the silly question!
On Tue, Jul 17, 2007 at 07:04:59PM -0400, Omari Norman wrote:
> My program creates new XML files (not through the DOM, but just by
> simple file.write calls.) It woul
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
pysqlite 2.3.5 released
===
I'm pleased to announce the availability of pysqlite 2.3.5. This is
a bugfix release.
Go to http://pysqlite.org/ for downloads, online documentation and
reporting bugs.
What is pysqlite?
pysqlite
A new Classifieds Website has been Launched.
Place Full page Ad for free at Anmolads.com http://www.Anmolads.com
Get your desired Job from our Job Portal... www.Anmoljobs.com/forum
Logon to www.anmolads.com for further details.
Place Full Page For Free at www.Anmolads.com , www.earnyourcash.com
coldpizza wrote:
> Thanks a lot, Roel, adding a single commit() at the end did solve the
> speed problem.
>
> Another question is do I have to explicitly close the DB connection,
> or is it automatically garbage collected? Is it Ok to no have any
> cleanup code?
>
> Another question would be how
>>Craig Howard schrieb:
>> Hello All:
>>
>> Is is possible to compile a code object and single-step through its
>> execution?
>import pdb; pdb.set_trace()
>
>Look up the pdb module documentation.
>
>Diez
Sorry, I didn't give enough detail. Is it possible to single-step
through a
code
On Jul 17, 7:40 am, mosi <[EMAIL PROTECTED]> wrote:
> Thank you,
> this is great,
> I thought that this should be standard in python 2.4 or 2.5 or in some
> standard library (math ???)
> Didn`t find anything.
You can also look up the gmpy module (not part of standard library).
It contains a lot o
Hello all,
Question: Is there any way to access a javascript variable from
within psp code?
I'm aware of how to do the reverse of this (js_var='<%=psp_var%>').
Here's a non-working example of what I'm trying to do:
- - - (begin example) - - -
function Test(txt)
{
a = confirm('Are you sure
Pat O'Hara wrote:
> Hey guys, I know this is a really stupid question, but I've tried
> googling and nothing came up. I also tried IRC, but it was too crowded
> and I didn't get much useful information.
>
> I'm using Python 2.5 on WinXP, and I'm trying to do a relative import.
> Here's the pack
I'm writing a search engine in Python with wxPython as the GUI. I have
the actual searching preformed on a different thread from Gui thread.
It sends it's results through a Queue to the results ListCtrl which
adds a new item. This works fine or small searches, but when the
results number in the hun
Matt McCredie wrote:
> That certainly is fast, unfortunately it doesn't pass all of the tests.
> I came up with those tests so I don't know how important they are to the
> original poster. I modified it and came up with a generator and a
> non-generator version based (roughly) on your algorith
On 7/17/07, Hrvoje Niksic <[EMAIL PROTECTED]> wrote:
> "Evan Klitzke" <[EMAIL PROTECTED]> writes:
>
> > You should take a look at the man pages for close(2) and write(2) (not
> > fclose). Generally you will only get an error in C if you try to close
> > a file that isn't open. In Python you don't e
On Jul 17, 5:38 pm, Duncan Booth <[EMAIL PROTECTED]> wrote:
> indeed anything which has an __int__ method may be
> passed to the %d formatter:
Anything?! Sorry to be persnickety here, but what about this:
class C :
def __int__ (self) : pass
'%d' % C()
or this:
def foo (val) : return val
foo
* John J Lee <[EMAIL PROTECTED]> [2007-07-16 20:17:40]:
> > I spent a little time thinking about a solution and figured out that the
> > following changes to HTTPRedirectHandler, might be helpful in implementing
> > this.
>
> Did you post it on the Python SF patch tracker?
>
> If not, please do,
* John Nagle <[EMAIL PROTECTED]> [2007-07-16 12:34:00]:
> That assumes you're reusing the same object to reopen another URL.
>
> Is this thread-safe?
I don't know. I looked into few other cache requests (cache ftp) and saw how it
was
implemented. I am not getting as how this wont be thr
1 - 100 of 112 matches
Mail list logo