Peter Otten <[EMAIL PROTECTED]> writes:
> Here's a variant that does performs only the necessary tests:
>
> >>> from itertools import izip
> >>> True not in (a == b for a, b in izip(range(3), range(3)))
Cute!
--
http://mail.python.org/mailman/listinfo/python-list
Hello Zoidberg,
> How would one compile python with Visual Studio 2005?
By reading the section "Building on non-UNIX systems" in the README
file (hint: chceck out the "PC" directory)
Miki
http://pythonwise.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Hi Jacky,
if you want make a good experiment, you can use:
LocaWapp - localhost web applications
http://cheeseshop.python.org/pypi/LocaWapp/09
Post here your feedback.
Bye and good work
D.
Jacky ha scritto:
> Hi all,
>
> I just started learning Python and would like to starting writing some
>
Hi, Jacky
Please find below a link to the tool you're looking for :
http://karrigell.sourceforge.net/
It's small, easy to install and work with, good documented (In english
an in french).
The developper is also very reactive on questions / remarks.
I'm using it since more than 1 year without tr
Jean Richelle schrieb:
> Hello,
>
> I installed version 2.4.1 (and I tried also with 2.4.3) of Python under
> 10.3.9 (and 10.4.6), and I trying to use Tkinter. For simplicity I'm
> testing the "hello world" that I found in the documentation.
> I first launch IDLE, write (cut and paste from the
Duncan Booth wrote:
> My other problem with this is that the decorator is very fragile although
> this may be fixable
This version should be more robust against exceptions:
class tail_recursive(object):
"""
tail_recursive decorator based on Kay Schluehr's recipe
http://aspn.activestat
Hi !
Yesterday I got a very interesting bug.
I don't understand, why I got it, because I thinking about this
function: that is safe.
But I was not.
The code:
import sys,os
UFN=u'%s\\xA\xff'%os.getcwd()
if os.path.exists(UFN):
os.remove(UFN)
f=open(UFN,'w')
f.write('%s\n'%('='*80))
f.close
[placid]
| Just wondering if anyone knows how to pop up the dialog that windows
| pops up when copying/moving/deleting files from one directory to
| another, in python ?
http://timgolden.me.uk/python/win32_how_do_i/copy-a-file.html#shell
TJG
___
I agree, use tabs.
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> Tabs versus Spaces in Source Code
>
> Xah Lee, 2006-05-13
>
> In coding a computer program, there's often the choices of tabs or
> spaces for code indentation. There is a large amount of confusion about
> which is better. It has become what's known as “religious war” —
> a heated
Byte wrote:
> OK, now I've managed to get it working, but when I run it the eric3
> splash screen pops up, and then it says (in terminal):
>
> [EMAIL PROTECTED]:~$ eric3
> Traceback (most recent call last):
> File "/usr/lib/site-python/eric3/eric3.py", line 147, in ?
> main()
> File "/usr/
Tim Golden wrote:
> [placid]
>
> | Just wondering if anyone knows how to pop up the dialog that windows
> | pops up when copying/moving/deleting files from one directory to
> | another, in python ?
>
> http://timgolden.me.uk/python/win32_how_do_i/copy-a-file.html#shell
thanks, thats what i was af
Gary Wessle wrote:
> Hi
>
> the second argument in the functions below suppose to retain its value
> between function calls, the first does, the second does not and I
> would like to know why it doesn't?
Fisrt thing to remember is that function's default args are eval'd only
once - when the def
I will shamelessly plug in my own decorator module:
http://www.phyast.pitt.edu/~micheles/python/decorator.zip and
http://www.phyast.pitt.edu/~micheles/python/documentation.html
--
http://mail.python.org/mailman/listinfo/python-list
Jacky enlightened us with:
> I just started learning Python and would like to starting writing
> some web-based applications with Python.
You could check out my web framework, the UnrealTower Engine. It uses
Cheetah as template engine, it's fast and small - it doesn't get in
your way.
http://www.
Considering that the current:
import pprint
pprint.pprint(x)
is hardly lengthy, I can't see how either of the alternatives proposed
are any better.
> python.pprint.pprint(x)
6 characters shorter, but considerably more keystrokes if you are using
pprint more than once. Is it worth adding the 'py
John Salerno wrote:
> I'd like to compare the values in two different sets to test if any of
> the positions in either set share the same value (e.g., if the third
> element of each set is an 'a', then the test fails).
>
> I have this:
>
> def test_sets(original_set, trans_letters):
> for pair
Jacky wrote:
> Hi all,
>
> I just started learning Python and would like to starting writing some
> web-based applications with Python.
>
> I did have pretty much experience with doing so with PHP and Java, but
> Python seems a bit different for me.
>
> Do you guys have some good web framework t
Hi Jacky,
Even though Turbogears and Django are focused from many people,
and I'm not so sure whether this the best or not,
but let's check at http://spyce.sourceforge.net,
you can embed Python script into the page just like JPS,ASP,PHP.
Hope this help.
Cheers!
--
http://mail.python.org/mailma
Hi,
Am I imagining it, or is there a switch or an environment variable to
make Python treat all string literals as unicode? I seem to recall
seeing it mentioned somewhere, but now I can't find it anywhere.
Thanks,
--
Richie Hindle
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/listinfo/p
> Edward Elliott <[EMAIL PROTECTED]> (EE) wrote:
>EE> Piet van Oostrum wrote:
[EMAIL PROTECTED] (T) wrote:
>>>
>T> As you can see, the "constant" A can be modified this easily. But if
>T> there were an intuitive mechanism to declare a symbol to be immutable,
>T> then there won't be t
Hello,
I'm using the NetworkX Python package (https://networkx.lanl.gov/).
Through this package I wrote the following code:
import networkx as NX
G=NX.Graph()
G.add_edge(1,2)
G.add_edge(2,3)
G.add_edge(3,4)
ddeg=G.degree(with_labels=True)
for (u,v) in G.edges():
print ddeg[u],ddeg[v]
As resul
Richie Hindle wrote:
> Hi,
>
> Am I imagining it, or is there a switch or an environment variable to
> make Python treat all string literals as unicode? I seem to recall
> seeing it mentioned somewhere, but now I can't find it anywhere.
>
> Thanks,
>
python -U
--
http://mail.python.org/mailma
Hi all,
Thanks all of you for your recommendations, I'll check them out one by one.
Besides, I'd like to say more about what I want to do. Since I'm
planning to write something for "backend", I might not focus very much
on the layout (HTML template) yet. Instead, I'd like to receive inputs
i
Jacky wrote:
> Hi all,
>
> Thanks all of you for your recommendations, I'll check them out one by one.
>
> Besides, I'd like to say more about what I want to do. Since I'm
> planning to write something for "backend", I might not focus very much
> on the layout (HTML template) yet. Instead, I'd
pykill32 is a small library that enable developers and users on Windows
2000/XP to send signals to a Python process.
It emulates the POSIX kill.
There is also a script, kill.py, with a minimal emulation of POSIX kill(1).
And a simple dumpbin.py script that list all modules (DLL) loaded by a
proce
Gerard Flanagan wrote:
> Interactive SQL tutorial: http://www.sqlcourse.com/ ;
> http://sqlcourse2.com/
>
> Indirectly helpful maybe:
> http://initd.org/tracker/pysqlite/wiki/basicintro
>
> HTH
>
> Gerard
There's also the TechBookReport SQL tutorial - which is geared to MySQL
(and, shudder, Acc
Nothing you have described sounds that complicated, and you never come
up with concrete objections to other peoples code (apart that it took
10 years to write in Lisp, so it must be really hard)
Why are you running a SoC project for PyCells if you dislike the
language so much. People who do like
hi
please i need your help .
how can i send sms from pc(windows xp)
to mobile symbian 60 6630 by python
i need your help please
i hope you answer me as fast as u can
thanks in advance..
--
http://mail.python.org/mailman/listinfo/python-list
Edward Elliott wrote:
>You need to find the exact algorithm the DESCryptoServiceProvider uses.
>CBC and CTR are common modes with IVs. Besides mode of operation, there's
>the issue of how it pads the data (in the cipher, not base64). There could
>also be differences in things like the key sche
Hi, this is my first mail to the list so please correct me if Ive done
anything wrong.
What Im trying to figure out is a good way to organise my code. One
class per .py file is a system I like, keeps stuff apart. If I do
that, I usually name the .py file to the same as the class in it.
File: Foo.
Hello Jacky,
I found CherryPy + Cheeta a good solution.
See (shameless plug)
http://www.unixreview.com/documents/s=10075/ur0604h/
Miki
http://pythonwise.blogspot.com
--
http://mail.python.org/mailman/listinfo/python-list
According to my reading of the source, the function you have called
expects an 8-bit string.
static PyObject *
PyGetShortPathName(PyObject * self, PyObject * args)
{
char *path;
if (!PyArg_ParseTuple(args, "s:GetShortPathName", &path))
If it is given Unicode, PyArg_ParseTu
huda ahmed wrote:
> hi
> please i need your help .
>
> how can i send sms from pc(windows xp)
> to mobile symbian 60 6630 by python
>
> i need your help please
> i hope you answer me as fast as u can
>
> thanks in advance..
Attach a Mobile to your computer using USB/Bluetooth, ope
Gerard Flanagan wrote:
> John Salerno wrote:
> > I'd like to compare the values in two different sets to test if any of
> > the positions in either set share the same value (e.g., if the third
> > element of each set is an 'a', then the test fails).
> >
> > I have this:
> >
> > def test_sets(origi
On 2006-05-15, Alex <[EMAIL PROTECTED]> wrote:
import Foo
Foo.Foo.bar()
> Traceback (most recent call last):
> File "", line 1, in ?
> TypeError: unbound method bar() must be called with Foo instance as
> first argument (got nothing instead)
>
> ...
>
> One thing that I tried that work
Hi,
I'm currently developing a SOAP client for the Zimbra collaboration
suite (www.zimbra.com). I'm writing a WSDL and using ZSI's "wsdl2py.py"
to export it to Python code. There are two things I can't get to work
and I cannot find any documentation on.
1. The Zimbra framework requires messages t
bruno at modulix wrote:
> for N:
> mylist = [mylist]
>
Right that!
> I'm afraid I don't understand. Could you forgive my stupidity and
> re-explain this a bit more clearly ?
>
No need to. Former solution worked fine. Thanks!
--
Ángel Gutiérrez Rodríguez - [EMAIL PROTECTED]
Instituto de Cienc
Announcing PyYAML-3.02
A new bug-fix release of PyYAML is now available:
http://pyyaml.org/wiki/PyYAML
Changes
===
* Fix win32 installer. Apparently bdist_wininst does not work well under
Linux.
* Fix a bug in add_path_resolver.
* A
John Machin írta:
> According to my reading of the source, the function you have called
> expects an 8-bit string.
>
> static PyObject *
> PyGetShortPathName(PyObject * self, PyObject * args)
> {
> char *path;
> if (!PyArg_ParseTuple(args, "s:GetShortPathName", &path))
>
> If
Robert Kern wrote:
> James Stroud wrote:
> http://numeric.scipy.org
>
Thanks! That's anotehr solution, yes!
--
Ángel Gutiérrez Rodríguez - [EMAIL PROTECTED]
Instituto de Ciencia de los Materiales de Madrid - CSIC
SpLine - European Syncrothorn Radiation Facility - Grenoble - France
Postal adress:
Alex wrote:
> Hi, this is my first mail to the list so please correct me if Ive done
> anything wrong.
>
> What Im trying to figure out is a good way to organise my code. One
> class per .py file is a system I like, keeps stuff apart. If I do
> that, I usually name the .py file to the same as the
John Machin írta:
> Looks like you need a GetShortPathNameW() but it's not implemented.
> Raise it as an issue on the pywin32 sourceforge bug register. Tell Mark
> I sent you :-)
> Another thought: try using ctypes.
>
Hi !
It seems to be I found a solution. A little tricky, but it is working:
> Some unbound method error. Have I missunderstood something or am I on
> the right track here?
You misunderstood that you'd have to create an instance first before
invoking a method on that very instance. That is the same in C++, btw.
> But in my opinion, this is very ugly. Especially if the cla
Yet another option:
Use web-service provided by your mobile operator
(by means of cookielib, urllib2, etc).
--
http://mail.python.org/mailman/listinfo/python-list
Hello Miki,
Many thanks for the support.
I tried to insert and execute the code, but the following error happens:
Traceback (most recent call last):
File "grafodna.py", line 10, in ?
edges.sort(key = lambda u, v: (ddeg(u), ddeg(v)))
TypeError: () takes exactly 2 arguments (1 given)
Do you
[Mauricio Tellez]
| Hi, I just want that a number like 1234.123 appear in excel
| as 1,234.12
| In excel I just select some cells, then right click on them
| and select "Cell Formatting" then select Number, and check
| "Use thounsands separator" and 2 decimal places. I can't find
| how to do t
Hi all.
I have the need to store a large (10M) number of keys in a hash table,
based on a tuple of (long_integer, integer). The standard python
dictionary works well for small numbers of keys, but starts to
perform badly for me inserting roughly 5M keys:
# keys dictionary metakit (both usin
Yet another option:
Use Python high level API for Symbian
(http://opensource.nokia.com/projects/pythonfors60/)
to write simple server which listen to desktop client (both in Python).
Server (phone side): accept requests, send SMS using mobile phone
capability
Client (desktop): send requests, speci
[Chris]
> Has anyone written a fast hash module which is more optimal for
> large datasets ?
PyJudy might be what you're looking for, though I've never used it:
http://www.dalkescientific.com/Python/PyJudy.html
"Judy's key benefits are scalability, high performance, and memory
efficiency. A J
Nic wrote:
> I tried to insert and execute the code, but the following error happens:
>
> Traceback (most recent call last):
> File "grafodna.py", line 10, in ?
> edges.sort(key = lambda u, v: (ddeg(u), ddeg(v)))
> TypeError: () takes exactly 2 arguments (1 given)
>
> Do you know how is it
In article <[EMAIL PROTECTED]>, Chris Foote <[EMAIL PROTECTED]>
wrote:
> Hi all.
>
> I have the need to store a large (10M) number of keys in a hash table,
> based on a tuple of (long_integer, integer). The standard python
> dictionary works well for small numbers of keys, but starts to
> perfo
DeepBlue wrote:
> can any1 please tell me how to install pyTrix?
Just putting the module into your site-packages directory might be
sufficient.
Peter
--
http://mail.python.org/mailman/listinfo/python-list
Chris Foote wrote:
> Hi all.
>
> I have the need to store a large (10M) number of keys in a hash table,
> based on a tuple of (long_integer, integer). The standard python
> dictionary works well for small numbers of keys, but starts to
> perform badly for me inserting roughly 5M keys:
>
> # keys
Is Plone analoguous to ASP.NET? Is it a python web developing platform?
I am confused on what Turbogears is aswell because of the lack of
documentation for it.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Is Plone analoguous to ASP.NET? Is it a python web developing platform?
No, if anything ZOPE is analogous to ASP.NET. Plone is an CMS (Conetent
Management System) application written on top of ZOPE.
> I am confused on what Turbogears is aswell because of the lack of
>
On 5/15/06, bruno at modulix <[EMAIL PROTECTED]> wrote:
> Alex wrote:
> > Hi, this is my first mail to the list so please correct me if Ive done
> > anything wrong.
> >
> > What Im trying to figure out is a good way to organise my code. One
> > class per .py file is a system I like, keeps stuff apa
On 2006-05-15, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Is Plone analoguous to ASP.NET? Is it a python web developing platform?
Plone is analoguous to something line Kentico CMS[1]. Plone runs on Zope
which is an application server, being to Python sort of what IIS is to
ASP.NET, I think. Do
Hi, I've got some DES encrypted data, for which I know the password.
The problem is that I have to generate an 8byte key from the password.
I use python-crypto-2.0.1.
I also know, that the C# way to do the decryption is:
PasswordDeriveBytes bytes1 = new
PasswordDeriveBytes("passwordString", null);
Thanks!
I ended up using the "-d" parameter.
I did try the zipfile module but I couldn't figure it out, nor could I
find any examples using it.
I also didn't have any luck changing the working dircectory and making
it work.
import subprocess, os
# Get all the zip files in the current directory.
f
> >
> > #! /usr/local/bin/python
> > # test_exec.py
> >
> > import os, sys, glob
> >
> > fileList = glob.glob('/data/*.ZIP')
> >
> > for f in fileList:
> > try:
> > globvars = {'infile' : f}
> > locvars = {}
> > execfile('/scripts/second.py', globvars(), loc
Merrigan escribió:
> Hi,
>
> I have now eventually finished my newbie-backup script and I'm very
> proud of the way it functions...
>
> Anyways, I am looking for an easy way to use smtplib to send an email
> with the output log of the script to multiple accounts. I need to use
> it with a smtp serv
Sven Suursoho wrote:
> Hi,
>
>
> I am working on project that has embedded python interpreter to run
> user-specified python procedures. Those procedures might return any
> iterable object with set of result data -- basically everything for which
> iter() returns valid object (list, tuple,
Hello. I got a little problem while using pythoncom to automate IE; for
some reason, changing the 'selectedIndex' on an instance of
IHTMLSelectElement doesn't fire the 'onchange' event (I guess this is a
bug in mshtml).
So, I tried to get the 'onchange' event handler and call it myself.
Accord
Using ActivePython 2.4.3 on Windows XP
While in the Pythonwin IDE, if I seek keyword help by issuing the
following command:
>>>help ('while')
I get:
Sorry, topic and keyword documentation is not available because the
Python HTML documentation files could not be found. If you have
installed the
Mon, 15 May 2006 16:53:12 +0300, Christian Tismer <[EMAIL PROTECTED]>:
>> I am working on project that has embedded python interpreter to run
>> user-specified python procedures. Those procedures might return any
>> iterable object with set of result data -- basically everything for
>> w
[EMAIL PROTECTED] wrote:
> Is Plone analoguous to ASP.NET?
Certainly not.
> Is it a python web developing platform?
No, it's a CMS. FWIW, it's written in bold on the project's home page:
"""
Plone: A user-friendly and powerful open source Content Management System
"""
(http://www.plone.org)
FW
Edward Elliott <[EMAIL PROTECTED]> writes:
> Eli Gottlieb wrote:
>
> > Actually, spaces are better for indenting code. The exact amount of
> > space taken up by one space character will always (or at least tend to
> > be) the same, while every combination of keyboard driver, operating
> > system
I want to use Python as an extension language in a package
which uses autoconf. That means its and Python's autoconf
#defines can conflict, so I can't safely #include both
and the package's own include files:-(
Do anyone have a safe way to #include at least
without ? E.g. copy the files (and '
hi all,
Im new to python and am in need of a little help
Im attempting to write a program that finds and replaces text in all files in a given directory.
example of running the program with arguments
>python far.py /home/lee/Documents/ find replace
I have managed to get it all working apar
Diez B. Roggisch wrote:
>
> Attach a Mobile to your computer using USB/Bluetooth, open it with a
> terminal program and use these AT-commands.
>
> http://www.cellular.co.za/hayesat.htm#SMS Command Set
>
> You can do that in python too, by opening the COM-port the handset is
> attached to and issuin
I should add that if I type:
>>>help ('sys')
It works fine. So it's finding the module documentation, but not the
keyword or topic.
Thanks
rick
--
http://mail.python.org/mailman/listinfo/python-list
Ant wrote:
> Considering that the current:
>
> import pprint
> pprint.pprint(x)
>
> is hardly lengthy, I can't see how either of the alternatives proposed
> are any better.
>
>> python.pprint.pprint(x)
>
> 6 characters shorter, but considerably more keystrokes if you are using
> pprint more tha
BartlebyScrivener wrote:
> Using ActivePython 2.4.3 on Windows XP
>
> While in the Pythonwin IDE, if I seek keyword help by issuing the
> following command:
>
help ('while')
>
> I get:
>
> Sorry, topic and keyword documentation is not available because the
> Python HTML documentation files
[Richie]
> is there a switch or an environment variable to
> make Python treat all string literals as unicode?
[Thomas]
> python -U
Ah! Thanks.
(I see it's deliberately omitted from the documentation because pieces
of the standard library don't work with it, which is quite reasonable
and expla
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Cameron Laird <[EMAIL PROTECTED]> wrote:
>
>> In article <[EMAIL PROTECTED]>,
>> Alex Martelli <[EMAIL PROTECTED]> wrote:
>> .
>> .
>> .
>> >My preference woul
Peter,
>>> import pydoc
>>> pydoc.help.docdir
yields no result for me
But adding the "break" into the pydoc module didn't work either.
Mmm.
I'll toy with this later. Thanks for pointing me to the right spot in
the module.
rick
--
http://mail.python.org/mailman/listinfo/python-list
Alex wrote:
> On 5/15/06, bruno at modulix <[EMAIL PROTECTED]> wrote:
>
(snip)
>
> Thanks for taking your time to help me out. :) You have cleared out
> many of my doubts. BTW, should I post "thank you" stuff here
Ain't that what you just did ?-)
> or does
> it just clutter?
Nope, 'thank you
Sven Suursoho wrote:
>>> Is there any way to rewrite following program to handle returned
>>> generator without hitting this bug?
The only way I can think of getting around this is to make
sure that there is always a running python frame.
This would be possible if you can control how the
exten
I'm making a small program which takes a folder with images and
generates optimized normal-sized images and thumbnails using Python
Imaging Lbrary (PIL). The problem is here:
os.mkdir(self.output)
img = Image.open(os.path.join(self.dir,file))
img = img.resize(self.imgSize)
# and here come
Have you checked the persmissions to the folder? You can look from the
properties of the folder to see.
--
http://mail.python.org/mailman/listinfo/python-list
The permission is OK I guess... I don't see anything about permission
there, but I tried to save to maany other catalogs even to C:\ and
D:\ and it raised the same error
--
http://mail.python.org/mailman/listinfo/python-list
In article <[EMAIL PROTECTED]>,
Alex Martelli <[EMAIL PROTECTED]> wrote:
.
.
.
>I'd be a bit worried about having len(x) change x's state into an
>unusable one. Yes, it happens in other cases (if y in x:), but adding
>more such
In article <[EMAIL PROTECTED]>,
Delaney, Timothy (Tim) <[EMAIL PROTECTED]> wrote:
.
.
.
>That's exactly my point. Assuming your test coverage is good, such an
>error would be caught by the MemoryError. An infinite loop should a
Kirill Simonov wrote:
>
> Announcing PyYAML-3.02
>
>
> A new bug-fix release of PyYAML is now available:
>
> http://pyyaml.org/wiki/PyYAML
Another fix provided for Python 2.5 and friends.
--
-Scott David Daniels
[EMAIL PROTECTED]
--
http:
Is there an easy way to determine the yesterday's date(year-month-day)
from the python datetime library if I know today's date?
Thanks
Thierry
--
http://mail.python.org/mailman/listinfo/python-list
Does anyone know if/how to go about using python on a windows mobile 5.0
PDA?
Kevin
--
http://mail.python.org/mailman/listinfo/python-list
Many thanks.
Both the cases are OK.
The only problem is that from:
12
22
21
In spite of writing
12 12 22
it writes
12 21 22
Do you know how is it possible to delete also this last trouble?
Thanks a bunch,
Nic
"Peter Otten" <[EMAIL PROTECTED]> ha scritto nel messaggio
news:[EMAIL PROTECTED]
> Nic
Try something like this...
HTH. A.
from datetime import *
d1 = datetime( year=2006, month=5, day=15)
d2 = datetime.now()
for d in [d1,d2]:
yest = d - timedelta(days =1 )
print "%s -> %s" % (d, yest)
--
http://mail.python.org/mailman/listinfo/python-list
Hey all,
I am trying to convert some old perl scripts I have to python.
Here is a snippit of the regex I used in perl. I am trying to
figure out the equivalent code in python. Can someone help?
my $file =$Word->ActiveDocument->Content->Text;
$file =~ /TABLE\s+1.*?JCP.*?MEAN.*?(?:(\d{1,3}\.\
Nic wrote:
> The only problem is that from:
> 12
> 22
> 21
> In spite of writing
> 12 12 22
> it writes
> 12 21 22
> Do you know how is it possible to delete also this last trouble?
I thought that the two 12 were a typo, but it seems you want to reorder the
nodes inside an edge, too. Here's a fix
Bell, Kevin escribió:
>Does anyone know if/how to go about using python on a windows mobile 5.0
>PDA?
>
>Kevin
>
>
>
>
Hi Bell,
Yes, there's PythonCE (Python 2.4.3 port) for Windows CE / ARM, and
seems to run with mobile 5. Please search in the pythonce mail list and
you'll got the answers a
On 5/15/06, Chris Klaiber <[EMAIL PROTECTED]> wrote:
> The problem comes when the author prefers a smaller tab width than what my
> editor is set to. Sure, I could change it for that file, but what if I'm
> reading a whole directory? Sure, I could change the default setting in my
> editor, but wha
In article <[EMAIL PROTECTED]>,
Roy Smith <[EMAIL PROTECTED]> wrote:
>In article <[EMAIL PROTECTED]>, Chris Foote <[EMAIL PROTECTED]>
>wrote:
>>
>> I have the need to store a large (10M) number of keys in a hash table,
>> based on a tuple of (long_integer, integer). The standard python
>> dicti
In article <[EMAIL PROTECTED]>,
"Thierry Lam" <[EMAIL PROTECTED]> wrote:
> Is there an easy way to determine the yesterday's date(year-month-day)
> from the python datetime library if I know today's date?
from datetime import datetime, timedelta
today = datetime.today()
yesterday = today - time
Harry George wrote:
> This has been discussed repeatedly, and the answer is "If you only
> work alone, never use anyone else's code and no one ever uses your
> codes, then do as you please.
The answer is "Do what works best for your project". Smart people can agree
on and use whatever conventio
Vancouver Python Workshop
=
Building on the huge success of the 2004 Vancouver Python Workshop, the
Vancouver Python and Zope User Group is pleased to announce the 2006
Vancouver Python Workshop.
The conference will begin with keynote addresses on August 4st. Further
talks
Ben wrote:
>
> Nothing you have described sounds that complicated, and you never come
> up with concrete objections to other peoples code (apart that it took
> 10 years to write in Lisp, so it must be really hard)
Oh, now I have to spend an hour dissecting any code you people toss-off
that doe
Aahz <[EMAIL PROTECTED]> wrote:
> Don't forget that adding keys requires resizing the dict, which is a
> moderately expensive operation.
My guess would be that each resize grows the table by a constant
factor, which IIRC, works out to amortized O(n). It's not as good as
creating the dict the righ
[EMAIL PROTECTED] wrote:
> I'm making a small program which takes a folder with images and
> generates optimized normal-sized images and thumbnails using Python
> Imaging Lbrary (PIL). The problem is here:
>
> os.mkdir(self.output)
>
> img = Image.open(os.path.join(self.dir,file))
> img =
1 - 100 of 187 matches
Mail list logo