Peter Hansen wrote:
> It appears the correct approach might be something along the lines of
> reading the registry to find what application is configured for the
> "HTTP" protocol (HKCR->HTTP->shell->open->command) and run that, passing
> it the URL. I think that would do what most people expect,
Blair P. Houghton wrote:
> Which makes it no security hole at
> all, it would seem...
Well, no, that's a little strong. No *new* security hole, maybe. It
would be on the order of having ./ in the PATH for root, and getting
trapped by a hacker who named his rootkit "ls" or
Image would be a superclass to JPGImage, BMPImage, PNGImage, etc...
But which to use could only be determined AFTER opening the file,
because "file.jpg" doesn't have type JPG, it has type string and
semantic value "maybe a jpeg file or maybe something misnamed as a jpeg
file".
So Image.open(filen
bruno at modulix wrote:
> Blair P. Houghton wrote:
> > So Image.open(filename) seems right as a factory function that opens
> > the file, figures out what it really is, constructs the appropriate
> > subclass object (likely by passing a string to the constructor, e.g.,
Avi Kak wrote:
> Hello:
>
> Does Python support a peek like method for its file objects?
>
> I'd like to be able to look at the next byte in a disk file before
> deciding whether I should read it with, say, the read() method.
> Is it possible to do so in Python?
>
> Your answer would be m
Here's a version that should work in text mode as well:
fp = file("some file on disk", "r")
b = ""
while 1:
p = fp.tell()
# peek at the next byte; moves file position only if a byte is read
c = fp.read(1)
# decide whether to read it
if c == &
Alex Martelli wrote:
> As you see, static methods have a small extra lookup cost (a couple
> hundred nanoseconds on my oldish laptop);
I would've expected the opposite effect...I guess the runtime
considers instances more active than the static portion of
a class.
> "Premature
> optimization is
Xavier Morel wrote:
> Where the hell did you get the idea of stacking input on a raw_input in
> the first place?
I'm guessing it goes something like: "input is a verb, but raw_input
is a noun, so raw_input looks like a cast or conversion or stream
constructor, and input looks like an action..."
unix time field.
example:
unix time inserted at first row: 1138839839.64456
unix time as retrieved in psql: 1.13884e+09
unix time retrieved by psycopg2: 113884.0
Is this a bug?
I'm using:
Python 2.3.5
in a Debian Sarge box
PostgreSQL 7.4.7
psycopg2-2.0b6
Luis P. Mendes
-BEGIN PGP
e the Unix time?
Thank you for your answer.
In python, I use float data type to deal with time values (from
time.time()), for example.
In Postgresql, the unix time field was set up as real. I've changed it
to double precision and it runs fine, now.
Luis P. Mendes
-BEGIN PGP SIGNATURE
Steven wrote:
>Do you think your users might enter something Evil and break their own system?
That's not usually how it works.
How it usually works is:
1. Innocent code-monkey writes nifty applet, posts on usenet.
2. Innocent but dull-witted framework manufacturer includes nifty
applet in Next
[EMAIL PROTECTED] wrote:
> What do you bet the server software was written by someone
> who thought ASCII STX meant literally the characters "STX"?
Wouldn't explain the "ENX" instead of "ETX".
> I've seen stupider things.
I give it 25% probability of being what you said, and 75% probability
that
Steven wrote:
>Do you think your users might enter something Evil and break their own system?
That's not usually how it works.
How it usually works is:
1. Innocent code-monkey writes nifty applet, posts on usenet.
2. Innocent but dull-witted framework manufacturer includes nifty
applet in Next
John Pote wrote:
> So my request:
> 1. Are there any python modules 'out there' that might help in securely
> writing such files.
> 2. Can anyone suggest a book or two on this kind of file management. (These
> kind of problems must have been solved in the financial world many times).
>
I can't a
Rene Pijlman wrote:
> dirvine:
>> I would like to create a dictionary based on a variable [...]
>
> And what seems to be the problem?
>
I think that this is his problem:
>>> 'somename'={}
SyntaxError: can't assign to literal
But I'm puzzled why he wants that route, while I'm still pretty new t
[EMAIL PROTECTED] wrote:
> so. how do i make 200 occupy 4 bytes ?
Did you double-check that they didn't want "0200" in ascii
in the message?
As in:
STX0200ENX
Because that's always possible. And, if you're _lucky_, they designed
the innards of the message so that "ENX" ca
dirvine wrote:
> Yes I did
>
> I was trying to do something like (pseudo code)
>
> write:
> get files in path
> for each filename get size, type
> create dic called filename assign size:xx,type:y
> pickle to file
>
> read:
> open pickled file
> read dict name and contents (hoping unpickling file
Paul Rubin wrote:
> "VSmirk" <[EMAIL PROTECTED]> writes:
>> I am needing to synchronize the file on a remote folder, and my current
>> solution, which simply copies the file if a date comparison or a
>> content comparison, becomes a bit unmanageable for very large files.
>> Some of the files I'm wo
Roy Smith wrote:
> Erik Max Francis <[EMAIL PROTECTED]> wrote:
>> (A 2-tuple is an "ordered pair" in mathematics.) If a 2-tuple is a
>> pair, then it would seem to follow that a 1-tuple is a single.
>
> Yeah, but an *ordered* single :-)
>
> A more interesting question is what do you call ()? A
David Hirschfield wrote:
> An xmlrpc client/server app I'm writing used to be super-simple, but now
> threading has gotten into the mix.
>
> On the server side, threads are used to process requests from a queue as
> they come in.
> On the client side, threads are used to wait on the results of r
David Hirschfield wrote:
> My question was whether this is allowed? Can two calls be made via the
> same ServerProxy instance while a request is already underway?
>
> Clearer?
> -Dave
>
Much, and my preliminary answer is, I have no clue :-)
But knowing that python will throw an exceptions whe
D wrote:
> Nope, quite the contrary..I'm looking to write a simple program for a
> client of mine that will, among other things, verify that their
> clients' email servers do not have open relays.
>
I usually test it like this:
[EMAIL PROTECTED]:~> telnet mail.huygenslyceum.nl smtp
Trying 172.16.
DannyB wrote:
> I'm just learning Python.
So am I :-)
> I've created a simple coin flipper program -
> here is the code:
>
> [source]
> #Coin flipper
> import random
>
> heads = 0
> tails = 0
> counter = 0
>
> coin = random.randrange(2)
>
> while (counter < 100):
> if (coin ==
r
I do a ^C, and even then, the socket doesn't start to acquire new input.
Any clues you can give me about this?
Luis P. Mendes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFECEF8Hn4UHCY8r
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
| Try setting a default timeout on the socket, and if it times out
| recontact the other system on a new socket. See socket.setdefaultimeout()
|
| regards
| Steve
Thank you for your answers.
I'm beggining to suspect that the problem has to do with
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Thank you all for your suggestions.
Luis P. Mendes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFECb5AHn4UHCY8rB8RAmeLAKCmSVfTvgQ94NPnJlD2QqdbMwVFXACdGFAh
In <[EMAIL PROTECTED]> Ville Vainio <[EMAIL PROTECTED]> writes:
>> "Bruce" == Bruce Stephens <[EMAIL PROTECTED]> writes:
>Bruce> Nick Craig-Wood <[EMAIL PROTECTED]> writes:
>Bruce> [...]
>>> You could try Mercurial
>>>
>>> http://www.selenic.com/mercurial/
>Bruce> Or
Hi,
do you know if is there any 'Dive into Python' equivalent for the java
language?
DiP is the best I've seen and I would need to learn some basics of Java
and also ways to interact between the two languages. (I'm already aware
of Jpype and Jython)
Luis
--
http://mail.python.org/mailman/lis
Hi,
I have a 1000 line python script that takes many hours to finish. It is
running with six inside 'for' loops.
I've searched the net for ways to speed up the proccess.
Psyco improves performance around 3% in this case which is not good enough.
How can I dramatically improve speed?
I tried
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I have a 1000 line python script that takes many hours to finish. It is
running with six inside 'for' loops.
I've searched the net for ways to speed up the proccess.
Psyco improves performance around 3% in this case which is not good enough.
H
I am looking for a specific "game" that is really a programming
environment for young kids.
I believe it implements PyGame, and presents two windows: one is a grid
with some obstacles, and a character that must traverse the grid;
another is an interactive editor that encourages a learner to wri
Greg Krohn wrote:
> Michael P. Nugent wrote:
>
>> I am looking for a specific "game" that is really a programming
>> environment for young kids.
>>
>> I believe it implements PyGame, and presents two windows: one is a
>> grid with some obstacle
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
The reason why I'm using six nested for loops is because I need to find
the best output using those six variables as input.
Here's the simplified code:
for per in range():
~for s in range():
~for t in range():
for v in range()
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
I appreciate everyone's help!
I got some ideas that I'll try to put into practice.
Regards,
Luis
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFCi7QQHn4UHCY8
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I'm just transforming a Python module into Pyrex, and I get the
following error:
File "indicadorPyrex.pyx", line 37, in indicadorPyrex.volatilidade
~h1 = precoMax[barra]
I made no changes to this module except including 'int' for two
variable
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Hi,
I'm trying to improve speed in a module and substituted the pythonic
'for in range()' for 'for i from min < i < max:'
But, I need to define a step for the i variable. How can I do it?
for example, how do I iterate through 8 to 14 with s
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
| so it's
|
| for i in range(8, 14, 1): ...
|
| http://enigmail.mozdev.org
iD8DBQFClkmlHn4UHCY8rB8RAlUqAKCxSEkEKVIcoshTwmL7GQNK6d/j0wCgoC67
jOhuXQpnDt23SEAM9huKTQA=
=8XO0
-END PGP SIGNATURE-
--
http://mail.python.org/mailman/
Question
please:
In the post, "How to
operate the excel by python," where did you find the codes for
HorizontalAlignment and VerticalAlignment (Center = -4108 and Bottom =
-4107)? I need the code for HorizontalAlignment = xlRight. Is there
a table somewhere that shows these codes?
Tha
I'm new to Python, but I've been thrown into coding a pretty
complicated regression testing script. I need to email the log of the
daily test to the code owners. I thought I could use SMTPHandler for
this, but our email system requires authentication. I have not been
able to figure out how to lo
Dustan wrote:
> On May 6, 8:20 am, Steven D'Aprano
> <[EMAIL PROTECTED]> wrote:
>> On Sun, 06 May 2007 04:53:23 -0700, Dustan wrote:
>>> SPAM!
>>> SPAM!
>>> SPAM!
>>> SPAM!
>>> SPAM!
>>> SPAM!
>>> SPAM!
>>> SPAM!
>> Gosh, you think so? I'm glad we had you around to tell us, otherwise we
>> might ha
Hi,
I've installed psycopg2 under Slacware 11.0 along with PostgreSQL 8.2.4.
When I run the python shell I get the following error: [EMAIL PROTECTED] ~$
python
Python 2.4.3 (#1, Jul 26 2006, 20:13:39) [GCC 3.4.6] on linux2 Type
"help", "copyright", "credits" or "license" for more information.
>>>
Hello Martin,
Em Wed, 09 May 2007 06:17:09 +0200, Martin v. Löwis escreveu:
>> ImportError: libpq.so.5: cannot open shared object file: No such file or
>> directory
>>
>> libpq files are readable by the world: [EMAIL PROTECTED] pgsql # ll lib/ -d
>> drwxr-xr-x 3 postgres postgres 1528 2007-05-07
Kenneth Love wrote:
> That should teach me not to change working code at the same time I am
> writing unit tests. Even so, I realize it won't be the last time I
> do something so silly. Yes, I know about TDD's "write the test first",
> but I'm not comfortable with the philosophy of these new fan
Martin v. Löwis wrote:
> If I extrapolate my experience with German IT language, I
> think people often use terminology they have not fully
> understood. I often ask my students what the difference
> between "eingeben", "ausgeben", "übergeben" und
> "zurückgeben" is when they start saying that "di
Andi Clemens wrote:
>
> It's working!!!
> Yeah!
> I don't know why I didn't get this the first time I tried dnspython, but now
> its working! And it's so easy, 3 lines of code:
>
> def make_dns_entry(pix):
> update = dns.update.Update(_DOMAIN)
> update.replace(pix.name, 3600, 'a', pix.
bmit an abstract to:
[EMAIL PROTECTED]
by December, 31th 2007 for consideration.
If you have any special presentation needs, let us know.
For more details check our site:
http://www.rupy.eu
Best regards,
--
Jakub P. Nowak
RuPy Committee
--
http://mail.python.org/mailman/listinfo/python-list
Jim wrote:
> On Sep 30, 6:16 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote:
>> On Sun, 30 Sep 2007 07:42:56 -0700, Jim <[EMAIL PROTECTED]>
>> declaimed the following in comp.lang.python:
>>
>>> What else could be wrong?
>>> Thanks,
>> Possibly those associations are only defined for your
This bug about a urllib2 urlopen memory leak is still present but I don't
see it in the new bug tracker anywhere:
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1208304&group_id=5470
If this one is missing, presumably there are others?
-gps
--
http://mail.python.org/mailman/listi
Stef Mientki wrote:
> [EMAIL PROTECTED] wrote:
>> Got a note about a new page on the Python Wiki:
>>
>>> "Wade" == Wade McDaniel <[EMAIL PROTECTED]> writes:
>>
>> http://wiki.python.org/moin/Selcuk_Altun
>>
>> I suspect it's junk since it doesn't seem to mention Python and the
>> website
>
Stef Mientki wrote:
> [EMAIL PROTECTED] wrote:
>> Got a note about a new page on the Python Wiki:
>>
>>> "Wade" == Wade McDaniel <[EMAIL PROTECTED]> writes:
>>
>> http://wiki.python.org/moin/Selcuk_Altun
>>
>> I suspect it's junk since it doesn't seem to mention Python and the
>> website
>
Hi all,
I've been toying with python for about two years now. Not every day,
just when I encounter something in my job (sysadmin) repetitively dull.
The amazing thing is that like any other language (natural or not)
learning it more gives you power to express your thoughts better and
create som
Hi all,
I'm thinking to speed up a process, I like to use multiple threads to
get data fractions from multiple servers and place those data fragments
into a local dictionary for further processing, the dictionary will look
like this:
self.dic = {'thread_a':dict(),
'thread_b':dict()
e's a bit cagey in what he says and what he leaves
unsaid). Circumlocution didn't help Kalugin, though - he's
on Putin's hit list anyway. He can look forward to reading
by his own light at bedtime if he's not careful from now on.
--
Vance P. Frickey
remove "safe
[EMAIL PROTECTED] wrote:
> [EMAIL PROTECTED] wrote:
>> Hi all,
>>
>> I'm interested in Parallel Python and I learned from the website of
>> Parallel Python
>> that it can run on SMP and clusters. But can it run on a our muti-CPU
>> server ?
>> We are running an origin3800 server with 128 CPUs.
>>
azrael wrote:
> On Feb 7, 3:13 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]>
> wrote:
>> Hi all,
>>
>> I'm interested in Parallel Python and I learned from the website of
>> Parallel Python
>> that it can run on SMP and clusters. But can it run on a our muti-CPU
>> server ?
>> We are running an origi
Andy Dingley wrote:
> I'm trying to write rot13, but to do it in a better and more Pythonic
> style than I'm currrently using. What would you reckon to the
> following pretty ugly thing? How would you improve it? In
> particular, I don't like the way a three-way selection is done by
> nesting t
[EMAIL PROTECTED] wrote:
> Martin P. Hellwig
>> for me (personal) being Pythonic means that I should
>> separate the logic and variables, etc...
>
> Well, for me me Pythonic means using built-in functionalities as much
> as possible (like using encode("rot13")
Andi Clemens wrote:
> Hi,
>
> I want to update our DNS servers periodically with some IP addresses. But I
> don't know how to do this.
> I searched the Internet quite a while but I haven't found a good example how
> to do this.
> I want to change the A-Record for some IPs, this shouldn't be too ha
Terry Reedy wrote:
> "Ron Provost" <[EMAIL PROTECTED]> wrote in message
> news:[EMAIL PROTECTED]
> But here's my problem, most of my coworkers, when they see my apps and
> learn that they are written in Python ask questions like, "Why would you
> write that in a scripting language?" Whenever I
Steven D'Aprano wrote:
> On Mon, 24 Dec 2007 17:14:58 +0100, Martin P. Hellwig wrote:
>
>> As Dennis already pointed out I like to use dictionaries in these cases,
>> so I would use sand = dict() instead of sands = list() and would do
>> sand[i] = pygame.image.
Title: namespace question
Hi all,
I'm confused by namespaces in python, specifically using the global keyword. I'm able to access and modify a global variable from a function if the function is defined in the same module but not if the function is defined in a different module:
//File t2.
Paul Sijben wrote:
> I am stumped by the following problem. I have a large multi-threaded
> server accepting communications on one UDP port (chosen for its supposed
> speed).
>
> I have been profiling the code and found that the UDP communication is
> my biggest drain on performance! Communication
John Salerno wrote:
Most FTP servers do allow to use chmod in a ftp session, although you're
client must support it. See for example a cli ftp client (and server) on
FreeBSD.
> [EMAIL PROTECTED]:~$ ftp ftp.xs4all.nl
> Connected to ftp2.xs4all.nl.
> 220 XS4ALL ftpd DCLXVI
> Name (ftp.xs4all.nl:
Hi all,
I created a class which creates a relative unique id string, now my
program just works fine and as expected but somehow I get the feeling
that I misused the __repr__ since I guess people expect to 'execute' a
function in an instance instead of using it's representation string of
the in
Bruno Desthuilliers wrote:
>
> Why not just use the call operator instead ? ie:
>
> >>> id = IDGenerator(...)
> >>> id()
> 01_20060424_151903_1
> >>> id()
> 01_20060424_151905_2
>
Because of:
id = IDGenerator("01",99)
id()
> Traceback (most recent call last):
> File "", line 1,
keirr wrote:
> Martin P. Hellwig wrote:
>> Hi all,
>>
>> I created a class which creates a relative unique id string, now my
>> program just works fine and as expected but somehow I get the feeling
>> that I misused the __repr__ since I guess people expect to '
bruno at modulix wrote:
> Martin P. Hellwig wrote:
>> Bruno Desthuilliers wrote:
>>
>>
>>> Why not just use the call operator instead ? ie:
>>>
>>> >>> id = IDGenerator(...)
>>> >>> id()
>>> 01_2006
Thanks for the input folks!
I adapted my script to the given suggestions and it's now far more
'logical', for reference I added it below.
--
mph
- script -
> import string
> import time
>
> class IDGenerator(object):
> """(leading_id, subversion_length, tz) # tz = 'local' or 'gm'
san wrote:
> Hi
>
> I am using windows xp and have installed python and win32. I am
> familiar with basic Python. I wanted to control some of the
> applications via python script.
>
> I would like to write a python script to say:
> 1. Open firefox and log on to gmail
> 2. Another firefox window t
Bill Atkins wrote:
>
> How do you define scalability?
>
http://www.google.com/search?hl=en&q=define%3Ascalability&btnG=Google+Search
;-)
--
mph
--
http://mail.python.org/mailman/listinfo/python-list
Bill Atkins wrote:
> "Martin P. Hellwig" <[EMAIL PROTECTED]> writes:
>
>> Bill Atkins wrote:
>>
>>> How do you define scalability?
>>>
>> http://www.google.com/search?hl=en&q=define%3Ascalability&btnG=Google+Search
>>
>&
Paul Rubin wrote:
> "Martin P. Hellwig" <[EMAIL PROTECTED]> writes:
>> and clients make it quite scalable. For example, I'm creating a
>> xmlrpcserver that returns a randomized cardlist, but I because of
>> fail-over I needed some form of scalability ,
Paul Rubin wrote:
> "Martin P. Hellwig" <[EMAIL PROTECTED]> writes:
>>> This is a weird approach. Why not let the "ticket" by the (maybe
>>> encrypted) PRNG seed that generates the permutation?
>> Because the server that handles the generate r
guese) is successful.
So, instead of only one search, there will be several used.
Is there anything already coded, or will I have to try to do it all by
myself?
Luis P. Mendes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linu
ve to do a search and substitute using regular
expressions for these cases. Or is there a better way to do it?
Luis P. Mendes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFEYINaHn4UHCY8rB8RAqLKAJ0cN7yRlzJS
"latin1_to_ascii.py", line 22, in converter
print linha_ascii.encode("ascii")
UnicodeEncodeError: 'ascii' codec can't encode character u'\xba' in
position 11: ordinal not in range(128)
The script converted the ÇÃ from the first line, but not the º
on't want such
> a fuzzy matching, keep it.
>
Thank you all for your help.
That was what I did. That symbol 'º' is not needded for the field.
It's working fine, now.
Luis P. Mendes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.1 (GNU/L
Hi,
I would like to know whether it is possible to develop web based application
using Python.
If yes, what are the challenges or areas I've to concentrate.
How would be the performance, handling hits, scalability etc?
What are the pros and cons of using python in place of JAVA or J2EE?
Thank Y
Sybren Stuvel wrote:
> Heiko Wundram enlightened us with:
> > And: the web is a platform to offer _information_. Not to offer
> > shiny graphics/sound [...]
>
> Many would disagree...
>
> Not me, but I know a lot of people that would.
I would. Most people would, once they realize that shiny/flas
[EMAIL PROTECTED] wrote:
> SamFeltus wrote:
> > Here is a visual argument,
> > http://samfeltus.com/swf/contact_globes.swf
>
> Here's a text-based argument.
>
> If I search Golge for "gardener, Athens, GA" then Google's spiders
> won't have recorded your contact page. So I don't find you as a loca
Hi,
I'm new to python.
I would like to know whether is it possible to access Java/C++ APIs from
python.
I have two applications written in Java and API, I wanted to call the APIs
of these applications from Python.
I'm developing web-based application using Zope.
Thanks in advance.
-Manoj-
"SAS
Torsten Bronger wrote:
> Hallöchen!
>
> [EMAIL PROTECTED] writes:
>
>> I am all about using the right tool for the right purposes, [...]
>
> Which purpose?
>
>> I dug up one article from Google that talked about comparison but
>> that was about it.
>>
>> http://www.simple-talk.com/sql/database-
[EMAIL PROTECTED] wrote:
> On Jan 8, 1:57 pm, "Martin P. Hellwig" <[EMAIL PROTECTED]> wrote:
>> And adding to that, if you don't care about cross platform anyway, why
>> even bother with python? I am sure that MS has tools that can do in a
>> point and
Giampaolo Rodola' wrote:
> Hi all,
> I'm trying to use the pywin32 extension to find out the user's home
> directory but currently I didn't find a solution yet.
> What I'd need to do is not getting the home directory of the currently
> logged in user but something like:
>
get_homedir("frank")
Steven D'Aprano wrote:
> On Wed, 06 Feb 2008 10:14:10 -0600, Reedick, Andrew wrote:
>
'c' is also the speed of light.
>>> 'c' is the speed of light _in_a_vacuum_.
>> True.
>>
>>
And since nothing can travel faster than light...
>>> Nothing can travel faster than the speed of light _in_a_
Bjoern Schliessmann wrote:
> Jeff Schwab wrote:
>
>> The only "dream hardware" I know of is the human brain.
>
> Nah. Too few storage capacity, and too slow and error-prone at
> simple calculations. The few special but very advanced features are
> all hard-wired to custom hardware, it's a real ni
Larry Bates wrote:
> brad wrote:
>> I'd like to send email directly from within python without having to
>> rely on an external smtp server. You know, something like the good,
>> old Unix...
>>
>> echo My_message | mail -s Subject [EMAIL PROTECTED]
>>
>> Can Python do something similar in a porta
brad wrote:
> Martin P. Hellwig wrote:
>
>> The tricky part is how to resolve the mail server for a mail address.
>> Usually you have to query the mx record of that domain. I solved that
>> by looking if I can find the nslookup binary.
>
> The from and to are
Martin P. Hellwig wrote:
> I already wrote a command line mailer that can do attachments too, no
> need to write it again. If anybody is interested I can open-source it.
>
To reply on my own post ;-)
Even if nobody is interested in case you change your mind it is hosted
Guilherme Polo wrote:
> I hope to not disappoint you, but mail will invoke a smtp server to
> send your mail.
>
I disagree. If you really want to, all you need is telnet. You connect
to port 25 of the mail server that handles the mail of the domain for
that mail address and do the helo, mail f
Dennis Lee Bieber wrote:
> The first response to the query was to invoke the command line
> "mail" utility of a Unix type OS. THAT program is, what I believe, was
> meant by "mail will invoke a smtp server"... Not "mail" as a general
> concept, but the utility command...
Ah yes I see that n
[EMAIL PROTECTED] wrote:
> Hi Python Enthusiasts,
>
> I am hoping one or two members of this list might help me locate in Europe
> to begin a small team of developers with a focus on python for the central
> part of the server development.
>
> My personal first choice is Spain only because I lik
Hi
I tried building Python 2.5.2 using gcc 4.3.0. The build completes with no
problems but when I run 'make test', I get a
segfault part way through the test run.
here is the last part of the output from make test
test_softspace
test_sort
test_sqlite
test_sqlite skipped -- no sqlite availab
Andrew MacIntyre wrote:
> David P. Riedel wrote:
>
>> I tried building Python 2.5.2 using gcc 4.3.0. The build completes
>> with no problems but when I run 'make test', I get a segfault part
>> way through the test run.
>>
>> here
Hi,
I like C#'s style of defining a property in one place. Can the
following way
to create a property be considered reasonable Python style (without
the
print statements, of course)?
class sample(object):
def __init__(self):
sample.y = self._property_y()
def _property_y(self):
On 18 Mrz., 21:59, "Diez B. Roggisch" <[EMAIL PROTECTED]> wrote:
> Joe P. Cool schrieb:
> > def _property_y(self):
> > def _get(self):
> > [...]
>
> There are a few recipies, like this:
>
> class Foo(object):
>
>
jmDesktop wrote:
> For students 9th - 12th grade, with at least Algebra I. Do you think
> Python is a good first programming language for someone with zero
> programming experience? Using Linux and Python for first exposure to
> programming languages and principles.
>
> Thank you.
I for one can
koranthala wrote:
This does sounds more to me like a windows/hardware problem, what you
could do is check the windows log for errors, especially look for read
errors from the hard disk.
Windows sometimes can behave very strangely especially if the external
libs don't behave well on a multi
Roy Smith wrote:
In article ,
Steve Holden wrote:
Roy Smith wrote:
In article
<6264e675-ddd4-446a-822a-cc82e8f87...@w1g2000prk.googlegroups.com>,
v4vijayakumar wrote:
I saw some code where someone is really managed to import braces from
__future__. ;)
def test():
#{
print "hell
Tim Rowe wrote:
2009/1/23 Kay Schluehr :
Whatever sufficiently sophisticated topic was the initially discussed
it ends all up in a request for removing reference counting and the
GIL.
Well, maybe, but it seems to me that the real issue here is that we
need to remove reference counting and the
701 - 800 of 1684 matches
Mail list logo