On 17 Dec 2005 23:14:33 -0800, [EMAIL PROTECTED] wrote:
>Hi to all,
>
>I am somewhat somewhat new to Python, but apart from this I am just not
>seeing lots of resources on what I am trying to do. I have seen them
>in other languages like PHP and ASP.
>
>I am building a simple MySQL news database,
Easy Fix...
import urllib
the_url = "http://www.google.com";
req = urllib.urlopen(the_url)
Does this work for you??
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] writes:
> I am building a simple MySQL news database, which would contain, a
> headline, a date, main story(body) and a graphic associated with each
> story. I would like to generate an index of the pages in this database
> ( ie a news index with links to the articles) an to hav
Hi to all,
I am somewhat somewhat new to Python, but apart from this I am just not
seeing lots of resources on what I am trying to do. I have seen them
in other languages like PHP and ASP.
I am building a simple MySQL news database, which would contain, a
headline, a date, main story(body) and
I tried using urllib2 and this is what i got:
>>import urllib2
>>the_url = 'http://www.google.com'
>>req = urllib2.Request(the_url)
>>handle = urllib2.urlopen(req)
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24\lib\urllib2.py", line 130, in urlopen
return _opener
> James wrote:
>> 2.) Auto List members implementation is great. But what about call
>> tips? Just as important and every other Python IDE has it.
Jonathan Ellis wrote:
> Wing shows calltip info in the Source Assistant panel. (Pro version
> only, IIRC.)
However it's not as useful as call tips.
On 17 Dec 2005 19:34:36 -0800, "Lars Rune Nøstdal"
<[EMAIL PROTECTED]> wrote, quoted or indirectly quoted someone who
said :
>hi,
>everyone thinks youreoay faggot and that youreh stupid .. now go
>fugkght yourselfes
If you want to insult someone, please spell it correctly and be
accurate. Your a
James wrote:
> >> I haven't used an IDE in a long time but gave wing ide a try because
> >> I wanted the same development platform on Linux and Windows.
> Then you owe it to yourself to also try SPE, PyDev and Boa Constructor
> (got off to a slow start, but it looks promising now). All are free,
>
YongYong Li wrote:
> I would like to unsubsrib python list, how do I do it?
http://mail.python.org/mailman/listinfo/python-list
Scroll to the bottom to see where you can unsubscribe.
--
Robert Kern
[EMAIL PROTECTED]
"In the fields of hell where the grass grows high
Are the graves of dreams al
Steven D'Aprano <[EMAIL PROTECTED]> wrote:
> If you think about Python
> as if it were C or Java, you will forever be confused about its behaviour.
Thinking of it as Java actually works great here.
> Understand Python's call by object behaviour, and it will all make sense.
Java's behavior is id
Steven D'Aprano wrote:
> On Wed, 14 Dec 2005 20:17:28 -0500, Andy Leszczynski wrote:
>
>
>>I can tell you what is not elegant in the if else: approach. It is
>>logically a one operation while you are forced to use varaible "a"
>>twice. Fundamental flaw IMO.
>
>
> "Logically" one operation?
>
I would like to unsubsrib python list, how do I do it? __Do You Yahoo!?Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --
http://mail.python.org/mailman/listinfo/python-list
hi,
everyone thinks youreoay faggot and that youreh stupid .. now go
fugkght yourselfes
peasse out .. yo!
--
http://mail.python.org/mailman/listinfo/python-list
j883376> As of this post, CodingCache doesn't have very many members or
j883376> posts because its just beginning. Don't let that discourage you
j883376> from registering and posting though. There will eventually be
j883376> more sources of new registrations. Once there is a decent
robic0 wrote in news:[EMAIL PROTECTED]:
> On 16 Dec 2005 16:52:43 -0800, "Xah Lee" <[EMAIL PROTECTED]> wrote:
>
>>Responsible Software Licensing
>>
I worship you, Xah.
--
Eric
`$=`;$_=\%!;($_)=/(.)/;$==++$|;($.,$/,$,,$\,$",$;,$^,$#,$~,$*,$:,@%)=(
$!=~/(.)(.).(.)(.)(.)(.)..(.)(.)(.)..(.)..(
Roedy Green wrote:
> On Sat, 17 Dec 2005 10:34:21 -0500, "Matt Garrish"
> <[EMAIL PROTECTED]> wrote, quoted or indirectly quoted
> someone who said :
>
>>Please do us all the favour of taking a basic literacy course. You aren't
>>even close half the time, which just confirms you're a halfwit.
>
On Sat, 17 Dec 2005 10:34:21 -0500, "Matt Garrish"
<[EMAIL PROTECTED]> wrote, quoted or indirectly quoted
someone who said :
>Please do us all the favour of taking a basic literacy course. You aren't
>even close half the time, which just confirms you're a halfwit.
are you bawling out robico or X
What is the recommended way to change the icon of the exe ExeMaker* produces?
(I tried replacing the exemaker.ico file, and indeed removing it; but that had
no effect.)
Thanks
Michael
*http://effbot.org/zone/exemaker.htm
--
http://mail.python.org/mailman/listinfo/python-list
vinjvinj wrote:
> I haven't used an IDE in a long time but gave wing ide a try because
> I wanted the same development platform on Linux and Windows.
>
> I'm currently using Ultraedit and it works fine but needed something
> more portable as I'm moving my main platform over to Ubuntu.
This is also
On Sat, 17 Dec 2005 12:38:00 -0800, LocaWapp wrote:
> "class Server" has a big error: what is?
>
> http://groups.google.it/group/comp.lang.python/browse_thread/thread/de458cb7675ff4b6/f333453b0dc1aab6?q=locawapp&rnum=1#f333453b0dc1aab6
Is this a game of Twenty Questions? We guess what the error
On Sat, 17 Dec 2005 03:27:11 -0500, Tim Peters wrote:
> While the C99 standard defines such a function (several, actually),
> the C89 standard does not, so Python can't rely on one being
> available. In general, Python's `math` module exposes only standard
> C89 libm functions, plus a few extras
On Sat, 17 Dec 2005 09:26:39 +, Bengt Richter wrote:
> I wonder if this won't work (for IEEE 754 double that is)
>
> from math import frexp
> def nextf(x, y):
> f,e = frexp(x)
> if (f==0.5 or f==-0.5) and x>=y: eps = 2.0**-54
> else: eps = 2.0**-53
> if x else: return (f-
Daniel Nogradi wrote:
> I have class 'x' with member 'content' and another member 'a' which is an
> instance of class '_a'. The class '_a' is callable and has a method 'func'
> which I would like to use to modify 'content' but I don't know how to
> address 'content' from the class '_a'. Is it pos
JabaPyth wrote:
> Hello,
> I'm trying to use the urllib module, but when i try urllib.urlopen, it
> gives me a socket error:
>
> >>import urllib
> >>print urllib.urlopen('http://www.google.com/').read()
> Traceback (most recent call last):
> File "", line 1, in ?
> File "C:
[David MacKay, having fun with doctest]
...
> I've got a follow-up question motivated by my ugly backslash continuations.
[Tim]
>> When Python doesn't "look clean", it's not Python -- and backslash
>> continuation & semicolons often look like dirt to the experienced
>> Python's eye.
> The reason
I have class 'x' with member 'content' and another member 'a' which is an instance of class '_a'. The class '_a' is callable and has a method 'func' which I would like to use to modify 'content' but I don't know how to address 'content' from the class '_a'. Is it possible?
Here is the code that
cm012b5105 wrote:
> Hello i am fairly new to python,
> I have written an interactive programme a small example of it is here.
> s = raw_input ("Do you have any children? ")
> if s== 'yes':
>print "Thats great"
> elif s=='no':
>print "Well my boss has 2"
>
>
> Now i have also been looking
but socket will raise an exception if it'll be in cp1251
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
I'm trying to use the urllib module, but when i try urllib.urlopen, it
gives me a socket error:
>>import urllib
>>print urllib.urlopen('http://www.google.com/').read()
Traceback (most recent call last):
File "", line 1, in ?
File "C:\Python24\lib\urllib.py", line
Pelmen napisał(a):
> as i understood, better way is base64 encoding on my side, and decoding
> on server side?
No, just encode the texts in what encoding the other side expects. If
this should be CP1251, not decoding would be enough.
--
Jarek Zgoda
http://jpa.berlios.de/
--
http://mail.python.
thanks ... it seems to me best way will be b16encode, to prevent sax
parser errors
--
http://mail.python.org/mailman/listinfo/python-list
"class Server" has a big error: what is?
http://groups.google.it/group/comp.lang.python/browse_thread/thread/de458cb7675ff4b6/f333453b0dc1aab6?q=locawapp&rnum=1#f333453b0dc1aab6
--
http://mail.python.org/mailman/listinfo/python-list
CodingCache is an new and upcoming forum dedciated to all sorts of
programming. From HTML to C/C++ to Perl and PHP.
As of this post, CodingCache doesn't have very many members or posts
because its just beginning. Don't let that discourage you from
registering and posting though. There will eventua
as i understood, better way is base64 encoding on my side, and decoding
on server side?
--
http://mail.python.org/mailman/listinfo/python-list
>> I haven't used an IDE in a long time but gave wing ide a try because
>> I wanted the same development platform on Linux and Windows.
>> I'm currently using Ultraedit and it works fine but needed something
>> more portable as I'm moving my main platform over to Ubuntu. I first
>> tried jedit and
"class Server" has a big error: what is?
--
http://mail.python.org/mailman/listinfo/python-list
Pelmen wrote:
> what to do, to encode it properly? UTF-8?
You're the one sending it through a socket; only you know what the other
side expects.
--
Erik Max Francis && [EMAIL PROTECTED] && http://www.alcyone.com/max/
San Jose, CA, USA && 37 20 N 121 53 W && AIM erikmaxfrancis
Could it be /
what to do, to encode it properly? UTF-8?
--
http://mail.python.org/mailman/listinfo/python-list
Pelmen wrote:
> UnicodeEncodeError: 'ascii' codec can't encode characters in position
> 161-168: ordinal not in range(128)
>
> How can i force this problem.
The problem is that you're trying to write a Unicode string to a socket.
In order to do that properly, you have to encode it to a string
Sybren Stuvel wrote:
> vinjvinj enlightened us with:
>
>>I haven't used an IDE in a long time but gave wing ide a try because
>>I wanted the same development platform on Linux and Windows.
>
>
> I use gvim for that :)
>
>
>>- Ability to double click on the project plan and it hides and you
>>d
in short
>>> doc = SOAPpy.SOAPProxy('localhost:8000', 'urn:Server', encoding='cp1251')
>>> doc.invoke('НомерДок'.decode('cp1251'), ())
*** Outgoing SOAP
**
http://schemas.xmlsoap.org/soap/encoding/";
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/s
vinjvinj enlightened us with:
> I haven't used an IDE in a long time but gave wing ide a try because
> I wanted the same development platform on Linux and Windows.
I use gvim for that :)
> - Ability to double click on the project plan and it hides and you
> double click on it and it becomes visab
SPE will be reviewed by the same person for the next PyCon against
WingIDE, Komodo and Pydev. Maybe you say which features you want to
give a better answer. I don't know about WingIDE but I do know about
SPE ;-)
Things which we want to have ready for the review:
- integrated debugger (now WinPdb r
Hi,
My program requires copying thousands of composite new-class objects. I
found that the following: objCopy=cPickle.loads(cPickle.dumps(obj,
protocol=2)) works about 4 times faster than
copyObj=copy.deepcopy(obj). Is there any way to do it even faster?
All objects have slots, __getstate__ and _
In article <[EMAIL PROTECTED]>,
catsup <[EMAIL PROTECTED]> wrote:
>
>It was actually quite a minor adjustment in the application to follow
>the oft repeated advice here on this subject to share only the
>Queue object between threads. Making the update of the dictionary
>just another queued command
I haven't used an IDE in a long time but gave wing ide a try because
I wanted the same development platform on Linux and Windows.
I'm currently using Ultraedit and it works fine but needed something
more portable as I'm moving my main platform over to Ubuntu. I first
tried jedit and was reasonably
It was actually quite a minor adjustment in the application to follow
the oft repeated advice here on this subject to share only the Queue
object between threads. Making the update of the dictionary just
another queued command request caused both the dictionary read and
write to be performed by th
Your mail to 'theseptemberproject' with the subject
hi, ive a new mail address
Is being held until the list moderator can review it for approval.
The reason it is being held:
Post by non-member to a members-only list
Either the message will get posted to the list, or you will receive
n
Isaac T Alston ([EMAIL PROTECTED]) wrote:
: Thanks for everyone's tips and hints. I WILL MAKE THIS WORK! I think I'll
: take your advice and use the serial port instead of the parallel port - I
: won't have that much data to send (in comparison with, for example,
: industrial level applications). A
wrote in message news:[EMAIL PROTECTED]
> On 16 Dec 2005 16:52:43 -0800, "Xah Lee" <[EMAIL PROTECTED]> wrote:
>
> physocopic drugs!
>
Please do us all the favour of taking a basic literacy course. You aren't
even close half the time, which just confirms you're a halfwit.
Matt
--
http://mai
I'm the founder and lead developer of Subway.
I am all for it. TG would have to change a couple of things IMHO, but I
think it would be a great idea.
If we were to merge projects, we would have to get a serious
TurbowaySubgears blogging hype train going.
- Peter Hunt
--
http://mail.python.org/
On 16 Dec 2005 08:45:01 -0800, Rob Cowie <[EMAIL PROTECTED]> wrote:
> Excellent... just the thing I was looking for. Thanks.
>
> Does anyone know of a unix app that could be used to monitor the
> duration of processes etc.?
If you have control over starting the program then "time" will probaby suf
David wrote:
> linuxfreak wrote:
>
>> Which is a better python IDE SPE or WingIDE in terms of features
>>
>
> You might want to look at a review of Python IDEs at
> http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html
>
> david lees
Thanks, this is an excellent review. It mentions bu
nige,
as you are a begginer is better to you to use the: http://www.ferg.org/easygui/
module. it is a very easy module to make guis.
the use of tkinter envolves some more advanceds topics, as Classes, Event-Handlers, it is better you learn the basic of Python and so you go to Tkinter.
cheers!
On 13 Dec 2005 14:27:48 -0800, "chuck" <[EMAIL PROTECTED]> wrote:
>
>After some use the problems have re-appeared with the "ActivePython
>2.3.5.236" distro. I think the problem is related to some sort of
>shell hook as it goofs up not only PythonWin, but other windows
>applications and windows it
Yeah but is it 'fast'. What is Komodo written in?
--
http://mail.python.org/mailman/listinfo/python-list
Hello i am fairly new to python,
I have written an interactive programme a small example of it is here.
s = raw_input ("Do you have any children? ")
if s== 'yes':
print "Thats great"
elif s=='no':
print "Well my boss has 2"
Now i have also been looking at Tkinter if we take the basic "hello
robic0 wrote:
> Xah, please admit to me that your under the influence of
> physocopic drugs!
He could be schizophrenic.
Seekers of all things wierd on the internet can do no better than Gene
Ray's Timecube:
http://www.timecube.com/
His outpourings are so well known that he even gets a menti
On 17 Dec 2005 01:16:31 -0800, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>>>from functional import curry
>
>>I'm not familiar with that module, but I wrote a byte-code-munging curry
>>as a decorator that actually modified the decorated function to eliminate
>>parameter(s) from the signature a
Do Re Mi chel La Si Do wrote:
> That depends on what we call "console".
>
> Python console?
> or
> Windows console?
AFAICT, it works in both: if I start Python 2.4 (command line)
from the start menu, and have it import a module that prints
# -*- coding: iso-8859-1 -*-
print u"Martin v. L
Thanks everyone! Silly me :-)
* Tim Peters <[EMAIL PROTECTED]> [2005-12-17 12:01]:
> [David MacKay]
> > Hello, I'm a python-list newbie. I've got a question about doctest; perhaps
> > a bug report.
>
> As things will turn out, it's just a question. That's common for newbies :-)
I've got a foll
[EMAIL PROTECTED] writes:
> Mike Meyer wrote:
>> It's conceivable that a change might make Python more popular and also
>> detract from the language in some way. For a ridiculous example,
>> making Python interpret Perl 6 would certainly make it more popular,
>> but I would argue that would seiousl
On Sat, 17 Dec 2005 02:50:29 +, Michael wrote:
> I must admit personally I wouldn't be interested in python on a PSP because
> you never know when homebrew code on a PSP is going to be locked out...
Yes, but it only concerns new buyers and people who upgrade their
firmware. Upgrading the firm
David MacKay wrote:
> I really like doctest, but sometimes doctest gives a failure when the
> output looks absolutely fine to me -- indeed, even after I have gone to
> considerable effort to make my documentation match the output perfectly.
> The piece of source code concerned is here:
>
> >
[David MacKay]
> Hello, I'm a python-list newbie. I've got a question about doctest; perhaps
> a bug report.
As things will turn out, it's just a question. That's common for newbies :-)
> I really like doctest, but sometimes doctest gives a failure when the output
> looks absolutely fine to me -
On Sat, 17 Dec 2005 14:23:38 +1100, Steven D'Aprano <[EMAIL PROTECTED]> wrote:
>I'm looking for some way to get the next floating point number after any
>particular float.
>
>(Any mathematicians out there: I am aware that there is no "next real
>number". But floats are not real numbers, they only
Hello, I'm a python-list newbie. I've got a question about doctest; perhaps
a bug report.
I really like doctest, but sometimes doctest gives a failure when the output
looks absolutely fine to me -- indeed, even after I have gone to considerable
effort to make my documentation match the output p
>>from functional import curry
>I'm not familiar with that module, but I wrote a byte-code-munging curry
>as a decorator that actually modified the decorated function to eliminate
>parameter(s) from the signature and preset the parameter values inside the
>code.
>I mention this because pure-pytho
On Sat, 17 Dec 2005 09:55:10 +0100, Gunnar Hjalmarsson
<[EMAIL PROTECTED]> wrote:
>robic0 wrote:
>> Xah Lee wrote:
>>>
>>>
>>
>>
>
>So, at last they found one another. :(
Thanks for the coaching Gunnar !!!
--
http://mail.python.org/mailman/listinfo/python-list
>Note that NotImplemented is not the same as NotImplementedError -- and I
>wasn't suggesting
>raising an exception, just returning a distinguishable "True" value, so that
>a test suite (which I think you said the above was from) can test that the
>"when"
>guard logic is working vs just passing ba
robic0 wrote:
> Xah Lee wrote:
>>
>>
>
>
So, at last they found one another. :(
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
--
http://mail.python.org/mailman/listinfo/python-list
On 16 Dec 2005 16:52:43 -0800, "Xah Lee" <[EMAIL PROTECTED]> wrote:
>Responsible Software Licensing
>
>Xah Lee, 200307
>
>Software is a interesting invention. Software has this interesting
Soft, like your head
>property, that it can be duplicated without cost, as if like copying
it costs to dup, d
[Steven D'Aprano]
> I'm looking for some way to get the next floating point number after any
> particular float.
...
> According to the IEEE standard, there should be a routine like next(x,y)
> which returns the next float starting from x in the direction of y.
>
> Unless I have missed something, P
73 matches
Mail list logo