JR, 24.03.2010 03:51:
I was hoping I could get some help with this issue with getting Cython
to work. Earlier I had an issue that said "unable to find
vcvarsall.bat" and it turns out there is an active bug report that
covers that issue (I have a 64 bit windows system). I still hadn't
installed 3.
On Tue, 23 Mar 2010 11:46:33 -0700, nn wrote:
> Actually what I want is to write a particular byte to standard output,
> and I want this to work regardless of where that output gets sent to.
What do you mean "work"?
Do you mean "display a particular glyph" or something else?
In bash:
$ echo -e
Hello All,
I was hoping I could get some help with this issue with getting Cython
to work. Earlier I had an issue that said "unable to find
vcvarsall.bat" and it turns out there is an active bug report that
covers that issue (I have a 64 bit windows system). I still hadn't
installed 3.1.2, so I di
Antoine Pitrou writes:
>> See: http://www.cs.rice.edu/~scrosby/hash/ ...
> Certainly interesting in a purely academic point of view, but in real
> life if you want to cause a denial of service by overwhelming a server,
> there are far more obvious options than trying to guess the server's use
>
Hello,everybody,the good shoping place,the new year approaching, click
in. Let's facelift bar!
= HTTP://loveshopping.us
Air jordan(1-24)shoes $33
UGG BOOT $50
Nike shox(R4,NZ,OZ,TL1,TL2,TL3) $35
Handbags(Coach lv fendi d&g) $35
Tshirts (Polo ,ed hardy,lacoste) $16
Jean(True Religio
Jimbo wrote:
I have made a Python App(really script) that will check a stocks
current values from a website & save that data to a SQLite 3 database.
I am looking for any suggestions & criticisms on what I should do
better or anything at all but mainly in these areas:
[QUOTE]
- Correct Python Lay
On Tue, Mar 23, 2010 at 5:05 PM, Jimbo wrote:
> I have made a Python App(really script) that will check a stocks
> current values from a website & save that data to a SQLite 3 database.
>
> I am looking for any suggestions & criticisms on what I should do
> better or anything at all but mainly in
I have made a Python App(really script) that will check a stocks
current values from a website & save that data to a SQLite 3 database.
I am looking for any suggestions & criticisms on what I should do
better or anything at all but mainly in these areas:
[QUOTE]
- Correct Python Layout of code
- C
On 03/23/10 23:38, Tim Chase wrote:
Just in case you're okay with a regexp solution, you can use
>>> s = "\t\tabc def "
>>> import re
>>> r = re.compile(r'^(\s*)(.*?)(\s*)$')
>>> m = re.match(s)
>>> m.groups()
('\t\t', 'abc def', ' ')
>>> leading, text, trailing = m.groups()
Ahhh regex,
pyt...@bdurham.com wrote:
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace, save it, surround the
regex is not goto that you should always avoid using it. It have its own
use-case, here regex solution is intuitive although @emile have done this
for you via string manpulation.
On Wed, Mar 24, 2010 at 4:09 AM, Daniel Chiquito
wrote:
> As far as I know, I don't think there is anything that strip
Emile,
> target = 'spam and eggs '
> stripped = target.strip()
> replaced = target.replace(stripped,"%s" % stripped)
Brilliant! That's just the type of clever solution I was looking for.
Thank you!
Malcolm
- Original message -
From: "Emile van Sebille"
To: python-list@pytho
On Mar 23, 8:49 pm, Pascal Chambon wrote:
>
> Should I open an issue for this evolution of exceptiuon handling, or
> should we content ourselves of this "hacking" of frame stck ?
>
Possibly worth raising an issue (not logging-related), but perhaps
it's worth seeing if this has come up before crea
nn wrote:
>
> Stefan Behnel wrote:
>> nn, 23.03.2010 19:46:
>>> Actually what I want is to write a particular byte to standard output,
>>> and I want this to work regardless of where that output gets sent to.
>>> I am aware that I could do
>>> open('nnout','w',encoding='latin1').write(mychar) but
As far as I know, I don't think there is anything that strips it and returns
the material that was stripped. Regex's would be your best bet.
Daniel
On Tue, Mar 23, 2010 at 6:09 PM, wrote:
> I'm looking for a pythonic way to trim and keep leading whitespace in a
> string.
>
> Use case: I have a
On 3/23/2010 3:09 PM pyt...@bdurham.com said...
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace,
I am trying to obtain data on a https site, but everytime I try to
access the data that is behind the logon screen, I get the logon page
instead. I was able to successfully do a test problem:
import sys, urllib2, urllib
zipcode = "48103"
url = 'http://www.wunderground.com/cgi-bin/findweathe
On Tue, Mar 23, 2010 at 4:50 PM, Shashwat Anand
wrote:
> There is a project PyWhip (renamed as PyKata) which aims for the same
> purpose. Google AppEmgine + Django does the trick for that. May be you can
> take an inspiration or two from there especially because all code is open
> to/for you.
But
I'm looking for a pythonic way to trim and keep leading
whitespace in a string.
Use case: I have a bunch of text strings with various amounts of
leading and trailing whitespace (spaces and tabs). I want to grab
the leading and trailing whitespace, save it, surround the
remaining text with html tag
There is a project PyWhip (renamed as PyKata) which aims for the same
purpose. Google AppEmgine + Django does the trick for that. May be you can
take an inspiration or two from there especially because all code is open
to/for you.
~l0nwlf
On Wed, Mar 24, 2010 at 2:54 AM, Patrick Maupin wrote:
>
On Mar 23, 3:12 pm, Tim Golden wrote:
> I can't say I thought *very* hard before sending that but...
> The OP asked for "integrate Python in Web Pages with HTML"
> which I understood -- perhaps wrongly -- to mean: run Python
> in the browser. The only two ways I'm aware of doing that
> in Python a
Gabriel Genellina a écrit :
En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon
escribió:
Allright, here is more concretely the problem :
ERROR:root:An error
Traceback (most recent call last):
File "C:/Users/Pakal/Desktop/aaa.py", line 7, in c
return d()
File "C:/Users/Pakal/Desktop/
Jose Manuel wrote:
> Would it be easy to integrate Python in Web pages with HTML? I have
> read many info on Internet saying it is, and I hope so
Django is, among several other similar projects and frameworks, very
popular for generating web apps in Python. I have only used Django and
it wor
Stefan Behnel wrote:
> nn, 23.03.2010 19:46:
> > Actually what I want is to write a particular byte to standard output,
> > and I want this to work regardless of where that output gets sent to.
> > I am aware that I could do
> > open('nnout','w',encoding='latin1').write(mychar) but I am porting a
On 23/03/2010 20:04, geremy condra wrote:
On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden wrote:
On 23/03/2010 16:55, Jose Manuel wrote:
Would it be easy to integrate Python in Web pages with HTML? I have
read many info on Internet saying it is, and I hope so
You probably want to be looking
On Tue, Mar 23, 2010 at 1:07 PM, Tim Golden wrote:
> On 23/03/2010 16:55, Jose Manuel wrote:
>>
>> I have been learning Python, and it is amazing I am using the
>> tutorial that comes with the official distribution.
>>
>> At the end my goal is to develop applied mathematic in engineering
>> a
nn, 23.03.2010 19:46:
Actually what I want is to write a particular byte to standard output,
and I want this to work regardless of where that output gets sent to.
I am aware that I could do
open('nnout','w',encoding='latin1').write(mychar) but I am porting a
python2 program and don't want to rewr
Follow what god revealed to the Almighty
Peace be upon you
Those who wish to familiarized themselves after you click on the link
please wait a little until it opens the link
Miracles of the devil and beat of the revolution of religious reform
http://www.ushaaqallah.com/forum/viewtopic.php?f=
Alex Hall wrote:
On 3/23/10, MRAB wrote:
[snip]
Incidentally, you might want to change:
if(not action_to_take):
to:
if action_to_take is None:
in case any of the values happen to be 0 (if not now, then possibly at
some time in the future).
Sorry, could you explain why you sugges
DRUNK MOM AND BOY... HOT CLIP.
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
http://123sex4u.blogspot.com/
--
http://mail.python.org/mailman/listinfo/python-list
Gary Herron wrote:
> nn wrote:
> > I know that unicode is the way to go in Python 3.1, but it is getting
> > in my way right now in my Unix scripts. How do I write a chr(253) to a
> > file?
> >
>
> Python3 make a distinction between bytes and string(i.e., unicode)
> types, and you are still think
nn wrote:
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
Python3 make a distinction between bytes and string(i.e., unicode)
types, and you are still thinking in the Python2 mode that does *NO
Rami Chowdhury wrote:
> On Tuesday 23 March 2010 10:33:33 nn wrote:
> > I know that unicode is the way to go in Python 3.1, but it is getting
> > in my way right now in my Unix scripts. How do I write a chr(253) to a
> > file?
> >
> > #nntst2.py
> > import sys,codecs
> > mychar=chr(253)
> > print
On 3/23/10, MRAB wrote:
> Alex Hall wrote:
>> Hi all, but mainly Tim Golden:
>> Tim, I am using your wonderful message loop for keyboard input, the
>> one on your site that you pointed me to a few months ago. It has been
>> working perfectly as long as I had only one dictionary of keys mapping
>>
On Tuesday 23 March 2010 10:33:33 nn wrote:
> I know that unicode is the way to go in Python 3.1, but it is getting
> in my way right now in my Unix scripts. How do I write a chr(253) to a
> file?
>
> #nntst2.py
> import sys,codecs
> mychar=chr(253)
> print(sys.stdout.encoding)
> print(mychar)
The
Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary of functions, but now
I know that unicode is the way to go in Python 3.1, but it is getting
in my way right now in my Unix scripts. How do I write a chr(253) to a
file?
#nntst2.py
import sys,codecs
mychar=chr(253)
print(sys.stdout.encoding)
print(mychar)
> ./nntst2.py
ISO8859-1
ý
> ./nntst2.py >nnout2
Traceback (mo
Johny wrote:
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must contains only whole( not
Sorry about that, it is fixed now.
On 3/23/10, Tim Golden wrote:
> On 23/03/2010 17:01, Alex Hall wrote:
>> Hi all, but mainly Tim Golden:
>> Tim, I am using your wonderful message loop for keyboard input, the
>> one on your site that you pointed me to a few months ago. It has been
>> working per
On Mar 23, 6:12 am, "Gabriel Genellina"
wrote:
> En Mon, 22 Mar 2010 15:20:39 -0300, Pascal Chambon
> escribi�:
>
>
>
>
>
> > Allright, here is more concretely the problem :
>
> > ERROR:root:An error
> > Traceback (most recent call last):
> > File "C:/Users/Pakal/Desktop/aaa.py", line 7, in
On 23/03/2010 17:01, Alex Hall wrote:
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary o
On 23/03/2010 16:55, Jose Manuel wrote:
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official distribution.
At the end my goal is to develop applied mathematic in engineering
applications to be published on the Web, specially on app. oriented to
Hi all, but mainly Tim Golden:
Tim, I am using your wonderful message loop for keyboard input, the
one on your site that you pointed me to a few months ago. It has been
working perfectly as long as I had only one dictionary of keys mapping
to one dictionary of functions, but now I want two of each.
I have been learning Python, and it is amazing I am using the
tutorial that comes with the official distribution.
At the end my goal is to develop applied mathematic in engineering
applications to be published on the Web, specially on app. oriented to
simulations and control systems, I was ab
Le Tue, 23 Mar 2010 02:57:56 -0700, Paul Rubin a écrit :
>
> It is unlikely to happen by accident. You might care that it can happen
> on purpose. See: http://www.cs.rice.edu/~scrosby/hash/ that I cited in
> another post. The article shows some sample attacks on Python cgi's.
Certainly interes
I just downloaded the installer and tested it on my win xp machine. The
installer worked fine.
--
Allan Davis
Member of NetBeans Dream Team
http://wiki.netbeans.org/NetBeansDreamTeam
Lead Developer, nbPython
http://wiki.netbeans.org/Pyt
On Mar 23, 9:22 am, Tim Roberts wrote:
> Omer Ihsan wrote:
>
> >i have installed pyusb now and run the sample usbenum.pyi have 3
> >usb ports on my PC but the results show 6 outputs to
> >dev.filename..they are numbers like 001 or 005 etc and they
> >changed when i plugged in devices...(i
Thank you everyone for all the work that went into this update, but there may be
a small problem with the Windows x86 installer.
I've built and used python 2.6.5 on linux without any apparent problems, but the
Windows x86 binary installer stops after compiling a few python source files.
I've trie
2010/3/23 Gabriel Genellina :
> En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom
> escribió:
>
>> I guess, I am stuck here, as I use the precompiled version supplied in
>> the windows installer and can't compile python from source to obtain
>> the needed unicodedata.pyd.
>
> You can recompile Py
"jobs in usa for foreigners" "jobs in usa hotels" "jobs in usa for uk
citizens" "usa jobs" "usa jobs in afghanistan" "usa jobs application
manager" "usa jobs for non us citizens" on http://jobsinusa-net.blogspot.com/
"jobs in usa for foreigners" "jobs in usa hotels" "jobs in usa for uk
citizens" "u
On 5 mar, 13:19, lbolla wrote:
> On Mar 5, 10:01 am, BlueBird wrote:
>
>
>
>
>
> > On 3 mar, 20:35, Stefan Behnel wrote:
>
> > > BlueBird, 03.03.2010 17:32:
>
> > > > I am looking for aSOAP1.2 python client. To my surprise, it seems
> > > > that this does not exist. Does anybody know about this
On Monday 22 March 2010 18:38:07 Alexandre Fayolle wrote:
> .. _pylint bugs day: https://www.logilab.net/elo/blogentry/18781
Correct link is : http://www.logilab.org/blogentry/18781
Sorry for the inconvenience.
--
Alexandre Fayolle LOGILAB, Paris (France)
Formation
kj wrote:
Arguably, Knuth's "premature optimization is the root of all evil"
applies even to readability (e.g. "what's the point of making code
optimally readable if one is going to change it completely next
day?")
The guy who will change it will have to read it. The only waste would be
if the
This program simulates some colored balls moving around, changing color
according to certain rules. I think the most interesting is perhaps to not look
at this code but just try to run it and figure out the color changing rules from
observing the effect (extra mystery: why I wrote this). Sort of
On 23/03/2010 10:48, Johny wrote:
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must con
I have a text and would like to split the text into smaller parts,
say into 100 characters each. But if the 100th character is not a
blank ( but word) this must be less than 100 character.That means the
word itself can not be split.
These smaller parts must contains only whole( not split) words.
Stefan Behnel writes:
> While this is theoretically true, and it's good to be aware of this
> possibility, common string hash functions make it so rare in practice
> that a hash table will almost always outperform a trie for exact
> lookups. If it happens, it will either show up clearly enough in
Paul Rubin, 23.03.2010 06:05:
Antoine Pitrou writes:
"Orders of magnitude worse", in any case, sounds very exaggerated.
The worst case can lose orders of magnitude if a lot of values hash
to the same bucket.
While this is theoretically true, and it's good to be aware of this
possibility, co
On Tue, Mar 23, 2010 at 8:07 AM, Gabriel Genellina
wrote:
> En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund
> escribió:
>
>> Hi, I've recently begun experimenting with embedding python and i got
>> a small problem.
>>
>> The following line here is the ugly-hack I had to do to make it work,
>
John Posner a écrit :
On 3/22/2010 11:44 AM, Bruno Desthuilliers wrote:
Another (better IMHO) solution is to use a plain property, and store the
computed value as an implementation attribute :
@property
def foo(self):
cached = self.__dict__.get('_foo_cache')
if cached is None:
self._foo_cach
Steven D'Aprano wrote:
> On Mon, 22 Mar 2010 22:05:40 -0700, Paul Rubin wrote:
>
>> Antoine Pitrou writes:
>>> "Orders of magnitude worse", in any case, sounds very exaggerated.
>>
>> The worst case can lose orders of magnitude if a lot of values hash to
>> the same bucket.
>
>
> Well, perhap
Steven D'Aprano writes:
> Well, perhaps one order of magnitude.
for i in xrange(100):
> ... n = 32*i+1
> ... assert hash(2**n) == hash(2)
Try with much more than 100 items (you might want to construct the
entries a little more intricately to avoid such big numbers). The point
is tha
My apologies; I left out the heading on the last of the four
structures in the benchmark results. Here are those results again with
the missing heading (Stringy) inserted:
Regards,
Zooko
- Hide quoted text -
On Sun, Mar 21, 2010 at 11:09 PM, Zooko O'Whielacronx wrote:
>
> impl: StringChain
> t
On Mar 20, 8:36 am, Peter Otten <__pete...@web.de> wrote:
> Jean-Michel Pichavant wrote:
> > You are still accessing the private attribute of the modulelogging.
>
> Just reading it is a significantly more conservative approach than setting
> it to an object with an unusual notion of equality ;)
>
En Mon, 22 Mar 2010 21:19:04 -0300, Vlastimil Brom
escribió:
I guess, I am stuck here, as I use the precompiled version supplied in
the windows installer and can't compile python from source to obtain
the needed unicodedata.pyd.
You can recompile Python from source, on Windows, using the fr
En Mon, 22 Mar 2010 18:19:49 -0300, Krister Svanlund
escribió:
Hi, I've recently begun experimenting with embedding python and i got
a small problem.
The following line here is the ugly-hack I had to do to make it work,
nothing else I know of makes it possible to import modules from
startup
66 matches
Mail list logo