Adam pisze:
> Hi, everyone, I am using /usr/share/system-config-language/
> language_gui.py in Python.
> For some reason I have to bypass the firewall using a proxy. I read
> the urllib reference and set http_proxy="my proxy". But it didn't
> work. Is there anyway that we can set the proxy?
I did
AlFire <[EMAIL PROTECTED]> wrote:
>Diez B. Roggisch wrote:
>>>
>>> Q: why function got dictionary? What it is used for?
>>
>> because it is an object, and you can do e.g.
>>
>
>you mean an object in the following sense?
>
> >>> isinstance(g,object)
>True
>
>where could I read more about that?
Hi friends, I've been OFF-Python now for quite a while and am glad
being back. At least to some part as work permits.
Q:
What's a good way to encode and decode those entities like € or
€ ?
I need isolated functions to process lines. Looking at the xml and
sgmlib stuff I didn't really get a clue a
Martin Bless wrote:
> What's a good way to encode and decode those entities like € or
> € ?
Hmm, since you provide code, I'm not quite sure what your actual question is.
So I'll just comment on the code here.
> def entity2uc(entity):
> """Convert entity like { to unichr.
>
> Return (re
Michael Torrie schrieb:
> [EMAIL PROTECTED] wrote:
>> You didn't really write that at the Python's interpreter, did you?
>> It's wrong. The way that would really go at the interpreter is like
>
> I did actually run it through the interpreter, but I didn't copy and
> past it to the e-mail. Thought
Hello,
I would personally avoid using "type" as variable name, or key,
because built-in class type already exists. As I understand your code,
it was not your intention to override it.
++
Sam
--
http://mail.python.org/mailman/listinfo/python-list
erikcw a écrit :
> Hi,
>
> I'm working on a web application where each user will be creating
> several "projects" in there account, each with 1,000-50,000 objects.
> Each object will consist of a unique name, an id, and some meta data.
>
> The number of objects will grow and shrink as the user wo
[EMAIL PROTECTED] a écrit :
(snip - already answered)
>
> def fact(n):
> total = 0
> n = int(n)
> while n > 0:
> total *= n
> n -=1
> return total
You may be interested in a very different way to get the same result:
from operator import mul
d
Hi Guys,
I want to do server side scripting in python for one of my applications. So
after installing apache2, python lib for apache2 (libapache2), and doing
some changes in default file in /etc/apache2/sites-available i was able to
execute python scripts in /var/www/ directory from client side
Hi,
I have a client-server socket script in python. Something like this
http://ubuntuforums.org/showthread.php?t=208962
Now the problem I have is that I want to try to connect the client to
the server on the same machine, but it gives me a 'port already in use'
error. I just want the client to c
Server code:
import os, sys, socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = ''
port = 5602
s.bind((host,port))
try:
s.listen(1)
while 1:
conn, addr = s.accept()
print 'client is at', addr
data = conn.recv(100)
data = data * 10
z =
On 18/04/2008, Astan Chee <[EMAIL PROTECTED]> wrote:
> Server code:
>
> import os, sys, socket
> s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
> host = ''
> port = 5602
> s.bind((host,port))
> try:
> s.listen(1)
> while 1:
> conn, addr = s.accept()
> print
andrew cooke a écrit :
> bruno:
>> Ho, and yes : one day, you'll get why it's such a good thing to unite
>> functions and methods !-)
>
> me:
>> PS Is there anywhere that explains why Decorators (in the context of
>> functions/methods) are so good? I've read lots of things saying they
>> are good
We are the professional and serious wholesaler of brand
products,such
as shoes, clothing, handbags, sunglasses, hats, belts, and so on.We
have many brands such as nike,adidas,puma,Gucci,North face.All goods
are with best service,highest quality,competitive price,and safe
timely deliverry
If you a
On 18/04/2008, Astan Chee <[EMAIL PROTECTED]> wrote:
> Hi,
> I have a client-server socket script in python. Something like this
> http://ubuntuforums.org/showthread.php?t=208962
> Now the problem I have is that I want to try to connect the client to
> the server on the same machine, but it giv
[EMAIL PROTECTED] a écrit :
> On Apr 17, 12:34 pm, Michael Torrie <[EMAIL PROTECTED]> wrote:
>> Another thing to consider is that referencing a member of a class or
>> instance already *is* a dictionary lookup. It's how python works. Thus
>> dictionaries are optimized to be fast. Since strings a
Wierd. It works now. I must've changed something. Oh well, thanks anyway.
David Harrison wrote:
On 18/04/2008, Astan Chee <[EMAIL PROTECTED]> wrote:
Server code:
import os, sys, socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
host = ''
port = 5602
s.bind((host,port))
try
the idea of eg does not work for me because,
what i do:
get list of files,
check 1st file open ?
process 1st file, (this may take several seconds... )
check 2nd file open? i have to check it here, because 2nd file may be
opened while i process file 1
process 2nd file, (this may take several seco
On Thu, 17 Apr 2008 20:57:21 -0700 (PDT)
hdante <[EMAIL PROTECTED]> wrote:
> Don't use old 8-bit encodings. Use UTF-8.
Yes, I'll try. But is a problem when I only want to read, not that I'm trying
to write or create the content.
To blame I suppose is Microsoft's commercial success. They won't a
On Thu, 17 Apr 2008 22:00:21 GMT
John Machin <[EMAIL PROTECTED]> wrote:
> The empirical evidence from other recent postings is that you are
> mucking about with Spanish-language newspaper "articulos" on the web ...
> so why charset = "Windows-1251", which is Cyrillic (i.e. Russian etc)??
> Perh
Diez B. Roggisch schrieb:
>> And I have been benefiting from Python in general, so far. Thanks,
>> community.
>>
>> But now... I'll probably stop posting here for now, & I may stop other
>> things too.
>>
>> Just my 2c.
>
> You know what I was just wondering about? All these C-written
> cross-pla
On Thu, 17 Apr 2008 13:30:18 -0500, Grant Edwards wrote:
> When using Google Groups can one kill all posts made via Google Groups?
> Presuming he has no burning need to see his own posts (something that
> can't be said for everybody in the history of Usenet), it might still be
> a viable approach
Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> On Apr 17, 7:40 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> > I'd love to be wrong about that, but the GIL *has* been the subject of
> > extensive efforts to kill it over the last five years, and it has
> > survived despite the best efforts of the devel
Brand Watches CITIZEN Eco Drive Women's Black Dial 2-Hand Watch
SY2030-54E Discount, Replica, Fake
Browse our CITIZEN Eco Drive Women's Black Dial 2-Hand Watch
SY2030-54E replica watches, which is sure the watch you are looking
for at low price. There are more high quality designer watch replicas
On 2008-04-17, bvidinli <[EMAIL PROTECTED]> wrote:
> is there another way, any python command sequence that i can check if
> a file is open at the time of "before i process file"
>
> i am not interested in " the file may be written after i access it.."
> the important point is " the time at i first
On Apr 18, 12:23 am, I V <[EMAIL PROTECTED]> wrote:
> On Thu, 17 Apr 2008 19:30:33 -0700, erikcw wrote:
> > use some sort of data-structure (maybe
> > nested dictionaries or a custom class) and store the pickled
> > data-structure in a single row in the database (then unpickle the data
> > and quer
On 2008-04-18 05:37, erikcw wrote:
> Hi,
>
> I'm working on a web application where each user will be creating
> several "projects" in there account, each with 1,000-50,000 objects.
> Each object will consist of a unique name, an id, and some meta data.
>
> The number of objects will grow and shr
On Fri, 2008-04-18 at 10:28 +0100, [EMAIL PROTECTED] wrote:
> On Thu, 17 Apr 2008 20:57:21 -0700 (PDT)
> hdante <[EMAIL PROTECTED]> wrote:
>
> > Don't use old 8-bit encodings. Use UTF-8.
>
> Yes, I'll try. But is a problem when I only want to read, not that I'm trying
> to write or create the
On Fri, 2008-04-18 at 07:27 -0400, J. Clifford Dyer wrote:
> On Fri, 2008-04-18 at 10:28 +0100, [EMAIL PROTECTED] wrote:
> > On Thu, 17 Apr 2008 20:57:21 -0700 (PDT)
> > hdante <[EMAIL PROTECTED]> wrote:
> >
> > > Don't use old 8-bit encodings. Use UTF-8.
> >
> > Yes, I'll try. But is a problem
Ableton live 4.1.4 crack
--
http://mail.python.org/mailman/listinfo/python-list
hdante wrote:
>
> The character code in question (which is present in the page), 150,
> doesn't exist in ISO-8859-1.
Are you sure? Consider (re-)reading all of the Wikipedia article.
150 aka \x96 doesn't exist in ISO 8859-1. ISO-8859-1 (two hyphens) is a
superset of ISO 8859-1 (one hyphen) a
On Thu, 17 Apr 2008 12:25:51 +1000, Daniel Fetchinson
<[EMAIL PROTECTED]> wrote:
>> yes, there's a thread with the same title, but I believe mine is more
>> appropriate title.
>> so, as much as I search on the web, read manuals, tutorials, mail-lists
>> (including this one) I cannot figure it ou
Diez B. Roggisch wrote:
.
> You know what I was just wondering about? All these C-written
> cross-platform libraries (which Python users benefit from, most probably
> including evven you) that run on different unixes & windows, which are a
> much greater diversity to handle than the not-even-yet
Robin Becker schrieb:
> I'm in the process of attempting a straightforward port of a relatively
> simple package which does most of its work by writing out files with a
> more or less complicated set of possible encodings. So far I have used
> all the 2to3 tools and a lot of effort, but still do
Yet another SWIG question (YASQ!).
I'm having a problem with using an abstract base class. When
generating the Python bindings, SWIG thinks that all the concrete
classes that derive from this abstract class are abstract too and
won't create the correct constructor.
Abstract class:
[source lang="
On Apr 18, 1:39 am, Sverker Nilsson <[EMAIL PROTECTED]> wrote:
> Some whine. Some just don't care. Why not whine?
Whining and ranting is actually good for the psyche. It is better to
get it out of your system.
As for your original post, no doubt there are substantial downsides to
introducing Py3
Alexy>But in Python it's very slow...<
I'm the first one to say that CPython is slow, but almost any language
is slow if you use such wrong algorithms like you do.
There are many ways to solve your problem efficiently, one of such
ways, among the simpler ones is to to not modify the original list:
Jochen Schulz:
> Could you please send me an email with an existing From: address? I
> tried to reply to you but apparently your From: is forged.
Sorry for the delay, I'll send you an email.
In the meantime I have created a fast BK-tree implementation for
Psyco, on my PC it's about 26+ times faste
On Apr 17, 12:27 pm, Michael Torrie <[EMAIL PROTECTED]> wrote:
> What's the big deal?
The big deal is that I would love to see Django
become the standard platform for web development,
for example. That will be much less likely if
60% of the contributed tools for Django don't work
for Python 3000
> My very humble opinion - based on several years of working experience
> with both the Zodb and many RDBMS - is quite clear : use a RDBMS and use
> it properly.
Yes, somewhere down the line you will want
to get a report of all the customers in Ohio,
ordered by county and zip code, who have a
"ra
Hi;
If I grab an image in the database thus:
sql = "select pic1 from products where id='" + str(id) + "';"
cursor.execute(sql)
pic1 = cursor.fetchall()[0][0].tostring()
# pic1 = cursor.fetchall()[0][0] // either this or the above line
and try and re-insert it thus:
c
Thanks to some help I received on list the other day, I now have a very
nice windows-based application that implements multiple programs. This
is a very powerful tool. Now I am working to make this window pretty.
One problem I cannot find help on is how to make the windows a certain
size. For examp
I'm looping through a tab-delimited file to gather statistics on fill rates,
lengths, and uniqueness.
For the uniqueness, I made a dictionary with keys which correspond to the
field names. The values were originally lists, where I would store values
found in that field. Once I detected a duplicate
I was trying to delete rows in an existing .xls file using python. How
do I do that? I was using the following code, it seem to work if I
type in python window, but if I save it in text editor and drage and
drop the .py file, it doesnt work. What am I doing wrong here? Thanks
for your help!
impor
On Apr 1, 3:21 pm, [EMAIL PROTECTED] wrote:
> On Apr 1, 11:34 am, "Gabriel Genellina" <[EMAIL PROTECTED]>
> > En Tue, 01 Apr 2008 08:47:33 -0300, <[EMAIL PROTECTED]> escribió:
> >
> > >> c['0']= type('None',(),{})
> > >> > Traceback (most recent call last):
> > >> > pickle.PicklingError: Can't
I think I've found a bug in the wx Library.
I've created an event : EVT_IDLE that does something when the event is
triggered, however, if your mouse pointer is out-of-focus on the window, the
EVT_IDLE doesn't get called. It's only when the window is put into focus that
the IDLE event is ca
Krishna wrote:
> I was trying to delete rows in an existing .xls file using python. How
> do I do that? I was using the following code, it seem to work if I
> type in python window, but if I save it in text editor and drage and
> drop the .py file, it doesnt work. What am I doing wrong here? Thank
I've installed the developer tools package, but when running "python
setup.py build" I get the following error:
python setup.py build
running build
running build_py
copying MySQLdb/release.py -> build/lib.macosx-10.3-fat-2.5/MySQLdb
running build_ext
building '_mysql' extension
gcc -isysroot /Deve
[EMAIL PROTECTED] a écrit :
> so I’m trying to create a class that inherits from str, but I want to
> run some code on the value on object init. this is what I have:
Others already gave you the technical solution (use __new__, not
__init__). A couple remarks still:
1/
>
> class Path(str):
>
On Fri, 2008-04-18 at 17:25 +0200, [EMAIL PROTECTED] wrote:
> I really like developing in Python -- but it's hard
> to keep doing it when the growth curve is so slow
> and a so many people have deep reservations about it,
> inspired in part, justifiably, by nonsense
There are several problems with your SQL, but not all of them would be
caught by the computer. Your SELECT statement is not parameterized.
This is a security problem. *Always* parameterize your variables. Your
UPDATE statement has an extraneous comma at the end, and it also has
quotes around the
Info:
Python version: ActivePython 2.5.1.1
Platform: Windows
I wanted to install BeautifulSoup today for a small project and decided to use
easy_install. I can install other packages just fine. Unfortunately I get the
following error from BeautifulSoup installation attempt:
C:\Python25\Lib\S
I want to delete some rows (by creating a loop may be) using xlrd. Is
this possible, if not how do I do that with python? Please help
Thanks
Krishna
--
http://mail.python.org/mailman/listinfo/python-list
On 16 abr, 14:01, [EMAIL PROTECTED] wrote:
> What can we do about all the spam that comp.lang.python is getting?
> Things are getting pretty bad.
I'm reporting most spam, but I don't have high hopes Google cares. We
could start a new group (non-usenet Google Groups allow message
removal), but I gu
Hello everybody:
I'd like to use the pickle module to save the state of an object so to
be able to restore it later. The problem is that it holds a list of
other objects, say numbers, and if I modify the list and restore the
object, the list itself is not reverted to the saved one, but stays
with o
Why is the migration to py3k a concern?
For example I have libraries which use string%dictionary
substitution where the dictionary is actually an object
which emulates a dictionary. The __getitem__ for
the object can be very expensive and is only called when
needed by the string substitution.
In
On 16 Apr, 00:46, Bryan Oakley <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] wrote:
> > On 13 Apr, 19:19, Bryan Oakley <[EMAIL PROTECTED]> wrote:
> >> [EMAIL PROTECTED] wrote:
> >>> mapq = PhotoImage(file = 'C:\Users\saftarn\Desktop\elmapovic.gif')
> >>> w.create_image(10, 10, image = mapq, anchor
Larry Bates schrieb:
> Info:
>
> Python version: ActivePython 2.5.1.1
> Platform: Windows
>
> I wanted to install BeautifulSoup today for a small project and decided
> to use easy_install. I can install other packages just fine.
> Unfortunately I get the following error from BeautifulSoup ins
so i load a gif onto a canvas and when i click the canvs i want to get
the color of the pixel that is clicked.
so i need to ge the object im clicking.
i was told in another thread to use find_withtag or find_closest but
it is not working, maybe im using the
method on the wrong object.
how do i do t
On Apr 18, 12:31 pm, Adam <[EMAIL PROTECTED]> wrote:
> Hi, everyone, I am using /usr/share/system-config-language/
> language_gui.py in Python.
> For some reason I have to bypass the firewall using a proxy. I read
> the urllib reference and set http_proxy="my proxy". But it didn't
> work. Is there
Diez B. Roggisch wrote:
> Larry Bates schrieb:
>> Info:
>>
>> Python version: ActivePython 2.5.1.1
>> Platform: Windows
>>
>> I wanted to install BeautifulSoup today for a small project and
>> decided to use easy_install. I can install other packages just fine.
>> Unfortunately I get the follow
Larry Bates schrieb:
> Diez B. Roggisch wrote:
>> Larry Bates schrieb:
>>> Info:
>>>
>>> Python version: ActivePython 2.5.1.1
>>> Platform: Windows
>>>
>>> I wanted to install BeautifulSoup today for a small project and
>>> decided to use easy_install. I can install other packages just
>>> fine.
Larry Bates wrote:
> Info:
>
> Python version: ActivePython 2.5.1.1
> Platform: Windows
>
> I wanted to install BeautifulSoup today for a small project and decided
> to use easy_install. I can install other packages just fine.
> Unfortunately I get the following error from BeautifulSoup insta
On Apr 18, 4:30 am, Nick Craig-Wood <[EMAIL PROTECTED]> wrote:
> Rhamphoryncus <[EMAIL PROTECTED]> wrote:
> > On Apr 17, 7:40 am, Steve Holden <[EMAIL PROTECTED]> wrote:
> > > I'd love to be wrong about that, but the GIL *has* been the subject of
> > > extensive efforts to kill it over the last fi
On Fri, 18 Apr 2008 07:16:35 -0700, Aaron Watters wrote:
> The big deal is that I would love to see Django become the standard
> platform for web development, for example. That will be much less
> likely if 60% of the contributed tools for Django don't work for Python
> 3000 and 20% don't work fo
Thank you. That worked.
Victor
On Fri, Apr 18, 2008 at 10:48 AM, J. Cliff Dyer <[EMAIL PROTECTED]> wrote:
> There are several problems with your SQL, but not all of them would be
> caught by the computer. Your SELECT statement is not parameterized.
> This is a security problem. *Always* paramet
On Fri, Apr 18, 2008 at 11:55 AM, Mario Ceresa <[EMAIL PROTECTED]> wrote:
> Hello everybody:
> I'd like to use the pickle module to save the state of an object so to
> be able to restore it later. The problem is that it holds a list of
> other objects, say numbers, and if I modify the list and r
[EMAIL PROTECTED] wrote:
> is there a simple way in perl, python, or awk/shell/pipe, that gets
> the user agent field in a apache log?
>
> e.g. the typical line is like this:
>
> 189.139.109.235 - - [07/Apr/2008:00:00:16 -0400] "GET /
> Periodic_dosage_dir/lacru/manara.html HTTP/1.1" 200 1933 xah
On Fri, 2008-04-18 at 08:58 -0700, Aaron Watters wrote:
> Why is the migration to py3k a concern?
> For example I have libraries which use string%dictionary
> substitution where the dictionary is actually an object
> which emulates a dictionary. The __getitem__ for
> the object can be very expensi
On Apr 18, 8:36 am, John Machin <[EMAIL PROTECTED]> wrote:
> hdante wrote:
>
> > The character code in question (which is present in the page), 150,
> > doesn't exist in ISO-8859-1.
>
> Are you sure? Consider (re-)reading all of the Wikipedia article.
>
> 150 aka \x96 doesn't exist in ISO 8859-1.
On Apr 18, 11:36 am, Tim Golden <[EMAIL PROTECTED]> wrote:
> Krishna wrote:
> > I was trying to delete rows in an existing .xls file using python. How
> > do I do that? I was using the following code, it seem to work if I
> > type in python window, but if I save it in text editor and drage and
> >
On Apr 18, 11:55 am, "Mario Ceresa" <[EMAIL PROTECTED]> wrote:
> Hello everybody:
> I'd like to use the pickle module to save the state of an object so to
> be able to restore it later. The problem is that it holds a list of
> other objects, say numbers, and if I modify the list and restore the
> o
> Try coming up with a real standard for evaluation.
> How much of a performance hit will actually cause you trouble? 1% extra
> on string interpolation? 10%? 50%? 200%?
You misread my comment. I don't want function calls to support
dictionary emulation if there is a speed penalty because this
How widely adopted is python 2.5?
We are doing some development, and have a choice to make:
a) Use all the 2.5 features we want.
b) Maintain backwards compatability with 2.4.
So I guess the question is, does anyone have a sense of what percent
of python users don't have 2.5?
Thanks,
Joseph
--
Thank you all for posting insightful and useful comments.
Here is what I have based on your input:
def output_random_lesson_of_type(self, lesson_type=None):
"""Output a lesson of a specific type.
If no type is passed in then output all types."""
lessons = self.lesson_data["lessons
On Mon, Apr 14, 2008 at 04:10:48PM -0700, Sverker Nilsson wrote:
> do i dare to open a thread about this?
>
> come on you braver men
>
> we are at least not bought by g***le
>
> but why? others have said it so many times i think
>
> :-
>
> but why? a few syntactic 'cleanups' for the cost
On Apr 18, 1:08 pm, Joseph Turian <[EMAIL PROTECTED]> wrote:
> How widely adopted is python 2.5?
>
> We are doing some development, and have a choice to make:
> a) Use all the 2.5 features we want.
> b) Maintain backwards compatability with 2.4.
>
> So I guess the question is, does anyone have a se
On Tue, Apr 15, 2008 at 04:37:40PM -0700, agent E 10 wrote:
> On Apr 14, 8:37 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> > On Apr 14, 9:00 pm, agent E 10 <[EMAIL PROTECTED]> wrote:> Hi, I'm brand
> > new to programming. Have any suggestions? I'm young.
> > > Was it a good idea to start with pyth
On Wed, Apr 16, 2008 at 02:35:54AM -0300, Gabriel Genellina wrote:
> En Tue, 15 Apr 2008 20:37:40 -0300, agent E 10 <[EMAIL PROTECTED]>
> escribió:
> > On Apr 14, 8:37 pm, Benjamin <[EMAIL PROTECTED]> wrote:
> >> On Apr 14, 9:00 pm, agent E 10 <[EMAIL PROTECTED]> wrote:> Hi,
> >> I'm brand n
On Wed, Apr 16, 2008 at 07:48:37AM +0200, Paul Scott wrote:
>
> On Wed, 2008-04-16 at 02:35 -0300, Gabriel Genellina wrote:
> > I'm unsure if teaching Javascript, VBScript and Python at the same time is
> > a good thing, I'd think one would get a language soup and mix all the
> > concepts, but
On Fri, 18 Apr 2008 11:32:15 -0700, Nick Stinemates <[EMAIL PROTECTED]> wrote:
> [snip]
>
>Yo, no one here is a child
Hi Nick,
Actually, there are a number of young people on the list. So let's keep things
civil and try to avoid using harsh language.
Thanks!
Jean-Paul
--
http://mail.python.or
John Nagle wrote:
>easy_install usually seems to make things harder.
>
>BeautifulSoup is one single .py file. That's all you need.
> Everything else is excess baggage.
I wouldn't call the installation of a single module Python package a good
example for the "usual" case.
Stefan
--
http:
pyspread 0.0.1 is now available at:
http://pyspread.sourceforge.net
pyspread is a spreadsheet that accepts a pure python expression in
each cell.
Highlights:
+ No non-python syntax add-ons
+ Access to python modules from cells
+ 3D grid
+ Numpy object array for representation of string entry into
I am new to Python and I am trying to understand how to utilize the
RotatingFileHandler to rollover
when the file gets to a certain size. I followed some examples that I have
found for setting the size and
the number of files. However, I am finding that when the log file gets close
to the thre
On Tue, Apr 15, 2008 at 07:24:05AM -0700, shawn s wrote:
> Hi
>
> I am trying to modify a small program i found off the internet as follows...
> I can get the 'tracert' to work and it gives me all the info back. However,
> when i replace the tracert with 'ping', the commamd prompt shows 'testi
On Tue, Apr 15, 2008 at 03:14:39PM -0400, D'Arcy J.M. Cain wrote:
>
> However, do consider writing your tests so that order is irrelevant.
> If a test depends on a previous test running then it isn't a proprt
> self-contained test. For one thing, you can't run a single test that
> way if you want
On Tue, Apr 15, 2008 at 11:16:01PM +0200, David wrote:
> >
> > Still, about StringIO...
> >
>
> The module description says you can use it to read and write strings
> as files, not that you can use strings *everywhere* you can use files.
>
> In your specific case, StringIO doesn't work, because
which is the easiest module to use to just get started with webapps
quicklya nd starting getting things up and running, not advanced stuff
just basic.
--
http://mail.python.org/mailman/listinfo/python-list
On Wed, Apr 16, 2008 at 12:50:51PM +0530, ashish kamble wrote:
> hi,
> can anyone tell me hw to start with webapplication scripting(e.g login
> page..etc)
> if anyone has soln for this or simple e.g that mention above please send me
>
> by
>
>
> and have a nice day
> --
> http://mail.python.o
On Wed, Apr 16, 2008 at 01:41:13PM -0500, Larry Bates wrote:
> Prashant wrote:
> > I was wondering is there any way to do this:
> >
> > I have written a class in python and __init__ goes like this:
> >
> > def __init__(self):
> >
> > self.name = 'jack'
> > self.age = 50
> >
> > import data
> >
Joseph Turian wrote:
> How widely adopted is python 2.5?
>
> We are doing some development, and have a choice to make:
> a) Use all the 2.5 features we want.
> b) Maintain backwards compatability with 2.4.
>
> So I guess the question is, does anyone have a sense of what percent
> of python users
On Wed, Apr 16, 2008 at 01:35:29AM -0700, reetesh nigam wrote:
> hi.
> actually i have developed one small project but now i want to
> develope a project with the help of html..
> please help me out
> --
> http://mail.python.org/mailman/listinfo/python-list
OK. Done
--
Nick Stinemates ([EMAIL P
Basically, we're planning on releasing it as open-source, and don't
want to alienate a large percentage of potential users.
--
http://mail.python.org/mailman/listinfo/python-list
On Apr 17, 10:30 am, sturlamolden <[EMAIL PROTECTED]> wrote:
> On 17 Apr, 15:21, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
>
> > If not, what is the advantage above already present solutions?
>
> Well... I like the processing module. Except that Wintendo toy OS has
> no fork() availabe for the
--- Patrick Stinson <[EMAIL PROTECTED]>
escribió:
> Right on, that seemed to work, thanks.
> This is different than sys.path_hooks though, which
> requires a callable or
> string subclass?
Yes, it's different, meta_path is a generic mechanism
that doesn't depend on sys.path and is tried before
sy
On Apr 18, 2:08 pm, Joseph Turian <[EMAIL PROTECTED]> wrote:
> How widely adopted is python 2.5?
>
> We are doing some development, and have a choice to make:
> a) Use all the 2.5 features we want.
> b) Maintain backwards compatability with 2.4.
>
> So I guess the question is, does anyone have a se
On Apr 18, 12:06 pm, [EMAIL PROTECTED] wrote:
> which is the easiest module to use to just get started with webapps
> quicklya nd starting getting things up and running, not advanced stuff
> just basic.
web.py is probably the most reasonable small webapp framework to get
going (it's a very small d
I'm reading 3-byte numbers from a file and they are signed (+8 to
-8million). This seems to work, but I'm not sure it's right.
# Convert the 3-characters into a number.
Value1, Value2, Value3 = unpack(">BBB", Buffer[s:s+3])
Value = (Value1*65536)+(Value2*256)+Value3
if Value >= 0
On Apr 18, 2:06 pm, [EMAIL PROTECTED] wrote:
> which is the easiest module to use to just get started with webapps
> quicklya nd starting getting things up and running, not advanced stuff
> just basic.
cherrypy is also good for quick and dirty webapps without a lot of
bling.
Mike
--
http://mail.
I am writing a script which need's to convert an excel file to csv (text)
format. For that I am using the following code:
excel = win32com.client.Dispatch("Excel.Application","Quit")
workbook = excel.Workbooks.Open(xlsfile)
workbook.SaveAs(csvfile, FileFormat=24) # 24 represents xlCSV
1 - 100 of 166 matches
Mail list logo