Funny Christmas wallpapers, theme
Free Funny Christmas Wallpaper Software Downloads
Free Watch Software - StarBurn, Animated Funny Santa Clock
Funny Christmas videos / Crazy Christmas Kick - Watch Santa Claus!
http://funny-christmas-wallpaperws.blogspot.com/
--
http://mail.python.org/mailman/listin
cheap nike shoes: WWW(VOGUETOUCH)COM
We are wholesaler of Nike Jordan and Other Shoes in China. We are a
professional exporting company in china. We supply many kinds of
Shoes, such as Nike Shoes, Jordan 1-23, Air Jordan, AF1, DUNK, Air max
series etc. Most of them are in stock and can be supplied
On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> > Hi,
> > I retrieve some info in Chinese from postgresql and assign it to a
> > variable 'info' defined in javascript of a html page:
> > var info = ['\xd6\xd0\xce\xc4','\xd6\xd0\xce\xc4','\xd6\xd0
On Wed, Dec 24, 2008 at 10:54 AM, Dennis van Oosterhout <
de.slotenzwem...@gmail.com> wrote:
> I know that python is an Object Oriënted language but I was wondering if it
> gets used as a non-OOP also (by a good amount of people).
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>
>
I,
-On [20081225 08:30], zxo102 (zxo...@gmail.com) wrote:
> Anybody knows how to solve this problem?
You are assigning/pushing out Python byte sequences, not Unicode. Look at
u'' string variables, x.encode() and x.decode() to help you.
It's widely documented on the Internet, a qu
hello,
Is there a function to remove escape characters from a string ?
(preferable all escape characters except "\n").
thanks,
Stef
--
http://mail.python.org/mailman/listinfo/python-list
Hi there! I was searching for a way to clear the 'DOS screen'/command screen
etc. and found that os.system('cls') works for this. I was just wondering
where I can find al the commands which can be used for os.system(). I
searched with google but I didn't find an answer. In the official python
tutor
r wrote:
> 220 ratings and 1 star, WH!. I find this all quite amusing :D.
> Keep em coming. Oh, and FYI, I will always have 1 star! hahahahahha
>
>
>/"\
> |\./|
> | |
>| |
> |>~<|
>
Hi!
I have a small problem with my python embedded interpreter. I do some
stuff where two threads exists which do some pythons stuff in the same
stuff.
So bpoth call PyGILState_Ensure() which occurs a crash. What can I do,
that one thread waits until the other thread released the gil state?
Than
and merry christmas :)
--
http://mail.python.org/mailman/listinfo/python-list
> >On Dec 10, 2:47 pm, John W Kennedy wrote:
> >> C:
>
> >> #include
> >> #include
>
> >> void normal(int dim, float* x, float* a) {
> >> float sum = 0.0f;
> >> int i;
> >> float divisor;
> >> for (i = 0; i < dim; ++i) sum += x[i] * x[i];
> >> divisor = sqrt(sum);
> >> fo
Hello Arno,
thanks for the explanation! I have one more question: on the python
site it says it's better to replace the system commands by subprocess
and Popen.
Now I searched for some good example for my specific case (as I have
no idea how it should work and I don't get it any clearer by reading
Stef Mientki wrote:
hello,
Is there a function to remove escape characters from a string ?
(preferable all escape characters except "\n").
thanks,
Stef
import string
WANTED = string.printable[:-5] + "\n"
def descape(s, w=WANTED):
return "".join(c for c in s if c in w)
James
--
James
Btw...does that mean that system('cls') only works on Windows...or to
say it otherwise: the program isn't platform independant?
2008/12/25 Dennis van Oosterhout :
> Hello Arno,
>
> thanks for the explanation! I have one more question: on the python
> site it says it's better to replace the system
On 25 dec 2008, at 11:22, Dennis van Oosterhout wrote:
Hi there! I was searching for a way to clear the 'DOS screen'/
command screen etc. and found that os.system('cls') works for this.
I was just wondering where I can find al the commands which can be
used for os.system(). I searched with
On 25 dec 2008, at 12:56, Dennis van Oosterhout wrote:
Hello Arno,
thanks for the explanation! I have one more question: on the python
site it says it's better to replace the system commands by subprocess
and Popen.
Now I searched for some good example for my specific case (as I have
no idea h
On Thu, Dec 25, 2008 at 7:11 AM, Dennis van Oosterhout <
de.slotenzwem...@gmail.com> wrote:
> Btw...does that mean that system('cls') only works on Windows...or to
> say it otherwise: the program isn't platform independant?
>
>
Yes.
--
http://mail.python.org/mailman/listinfo/python-list
2008/12/25 Dennis van Oosterhout :
Hello Arno,
thanks for the explanation! I have one more question: on the python
site it says it's better to replace the system commands by subprocess
and Popen.
Now I searched for some good example for my specific case (as I have
no idea how it should work
On Thu, Dec 25, 2008 at 7:02 AM, James Stroud wrote:
> Stef Mientki wrote:
>
>> hello,
>>
>> Is there a function to remove escape characters from a string ?
>> (preferable all escape characters except "\n").
>>
>> thanks,
>> Stef
>>
>
>
>
import string
test = 'this\r is a test\t yeah\n'
for c i
On 25 дек, 03:35, "Diez B. Roggisch" wrote:
> NoName schrieb:
>
>
>
> > On 25 ÄÅË, 00:37, "Diez B. Roggisch" wrote:
> >> NoName schrieb:
>
> >>> i have 1.py in cp866 encoding:
> >>> # -*- coding: cp866 -*-
> >>> print ("ff")
> >>> It's not work in Python 3.0
> >>> Error:
> >>> File "", line 1
> >
On Dec 25, 9:00 pm, Stef Mientki wrote:
> hello,
>
> Is there a function to remove escape characters from a string ?
> (preferable all escape characters except "\n").
"\n" is not what most people would call an escape character. The "\"
is what most people would call an escape character when it is
Hi Dennis,
print dir(os.system)
print os.__dict__
might help
Bye,
Ron.
From: Dennis van Oosterhout [mailto:de.slotenzwem...@gmail.com]
Sent: Thursday, December 25, 2008 12:22
To: python-list@python.org
Subject: os.system('cls')
Hi there! I was searching
Hi,
When using seek() with a certain text file, I get strange results.
I looked at the text file with a binary editor and verified with 'file', and
it's an ASCII English text file.
Running the script on other text files gives the expected output.
Could you suggest the reason ?
In the outputs
On Dec 25, 11:36 pm, NoName wrote:
> On 25 дек, 03:35, "Diez B. Roggisch" wrote:
>
>
>
> > NoName schrieb:
>
> > > On 25 ÄÅË, 00:37, "Diez B. Roggisch" wrote:
> > >> NoName schrieb:
>
> > >>> i have 1.py in cp866 encoding:
> > >>> # -*- coding: cp866 -*-
> > >>> print ("ff")
> > >>> It's not wor
On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote:
>> Among my questions are:
>> """ A little thread we've added""" seems to be an isolated string. It
>> does not seem to be doing anything there, almost like a comment. Why is
>> it there?
>
>
> That's what some people call a doc string.
On Dec 25, 7:24 am, Steven D'Aprano wrote:
> On Wed, 24 Dec 2008 16:59:23 -0800, Mike Driscoll wrote:
> >> Among my questions are:
> >> """ A little thread we've added""" seems to be an isolated string. It
> >> does not seem to be doing anything there, almost like a comment. Why is
> >> it there?
couple de lesbienne cherche sex occasionnelle femme seulement
http://canada-lesbi.blogbugs.org/
--
http://mail.python.org/mailman/listinfo/python-list
Hello,
Do you know if there is a domainkey library for python ?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, 25 Dec 2008 13:11:09 +0100
"Dennis van Oosterhout" wrote:
> Btw...does that mean that system('cls') only works on Windows...or to
> say it otherwise: the program isn't platform independant?
Exactly - sort of. Unless, of course, you have a program called "cls"
installed on other platforms
> NoName, Asking people to download a zip file from a website written in
> a language and character set that they probably are not familiar with
> is liable to make them rather nervous and not bother. It's not a good
> way to ask for help.
sorry:)
Now i know where problem.
But i dont know how to
On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote:
> hello,
>
> Is there a function to remove escape characters from a string ?
> (preferable all escape characters except "\n").
Can you explain what you mean? I can think of at least four alternatives:
(1) Remove literal escape sequences (
Hi,
it seems the whole locking-theme has gone from PEP 3118 (PyBUF_LOCK is gone).
Yet the string and byte objects seem to provide locked buffers through
PyArg_Parse arguments s*, y* and z* (documentation says so).
Could someone please clarify the situation for me: Is it save to release the
GIL
Hi friends,
I have a C/C++ application and I wrote a .py file to extend it.
The .py file includes some simple functions without import any other
modules.
Today, I want to update my .py file and import SMTP library in the
file, but it seems fail to import SMTP library.
So I want to ask: when the
Electronics is the field of manipulating electrical currents and
voltages using passive and active components that are connected
together to create circuits. Electronic circuits range from a simple
load resistor that converts a current to a voltage, to computer
central-processing units (CPUs) that
Hi,
Problem solved when strip() is being replaced by strip('\n').
Happy holidays,
Ron.
From: Barak, Ron
Sent: Thursday, December 25, 2008 15:05
To: 'python-list@python.org'
Subject: seek() returns unexpected results
Hi,
When using seek() with a certain text fil
Celebrity wars,
BOLLYWOOD ACTRESSES (http://www.bestbollywoodwallpapers.blogspot.com)
Aishwarya Rai - http://www.hotandsexyaishwaryaraiwallpapers.blogspot.com
Katrina Kaif - http://www.sexykatrinakaifwallpapers.blogspot.com
PriyankaChopra - http://www.hotpriyankachoprawallpapers.blogspo
Depends on what operating system you are using. The list of possible
commands would be unbounded, if not truly infinite.
> From: Dennis van Oosterhout [mailto:de.slotenzwem...@gmail.com]
>
> Hi there! I was searching for a way to clear the 'DOS screen'/command
> screen etc. and found that os.s
Hello all,
I have made a python script to upload contact information from an excel
worksheet to an online database. One part of the program that really
tripped me up was when I wanted to call specific class methods that I
had made to deal with specific types of contact information (Parent's
On Dec 25, 4:22 am, pdora...@pas-de-pub-merci.mac.com (Pierre-Alain
Dorange) wrote:
> r wrote:
> > 220 ratings and 1 star, WH!. I find this all quite amusing :D.
> > Keep em coming. Oh, and FYI, I will always have 1 star! hahahahahha
>
> > /"\
> > |\./|
>
IDLE 3.0
>>> print "hello"
SyntaxError: invalid syntax (, line 1)
>>> 3+3
6
>>> var = 4
>>> var = var*4
>>> print var
SyntaxError: invalid syntax (, line 1)
>>>
Any idea on why I am getting this error.
I have just started learning python and I am stuck at first thing
itself.
Any help would be gr
Matthew Dubins:
> def parse(self, data, data_type)
> exec "self.__parse_%s(data)" % data_type
> For some reason, *it didn't work*.
You can try defining this class attribute:
data_types = set("nocall DOB gender Prematurity email languages phone
cname pname address duedate".split())
And then a
On Dec 25, 7:53 pm, jsm4...@gmail.com wrote:
> IDLE 3.0>>> print "hello"
>
> SyntaxError: invalid syntax (, line 1)>>> 3+3
> 6
> >>> var = 4
> >>> var = var*4
> >>> print var
>
> SyntaxError: invalid syntax (, line 1)
>
>
>
> Any idea on why I am getting this error.
> I have just started learning p
Thanks Bearophile.
I should have used a tutorial for Python 3.0
I was reading tutorial for Python 2.5
On Dec 25, 11:58 pm, bearophileh...@lycos.com wrote:
> On Dec 25, 7:53 pm, jsm4...@gmail.com wrote:
>
>
>
> > IDLE 3.0>>> print "hello"
>
> > SyntaxError: invalid syntax (, line 1)>>> 3+3
> > 6
jsm4...@gmail.com schrieb:
> Thanks Bearophile.
>
> I should have used a tutorial for Python 3.0
>
> I was reading tutorial for Python 2.5
Get Python 2.5 or 2.6, seriously. Python 3.0 is not (yet) supported by
most tutorials, third party extensions and books.
Christian
--
http://mail.python.or
Has anyone created any complex spreadsheets using odfpy?
The samples that come with odfpy are pretty simple and I need some
examples of more complex spreadsheets.
Thank you,
lance
--
http://mail.python.org/mailman/listinfo/python-list
En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
On 12月25日, 下午3时35分, "Chris Rebert" wrote:
On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> Hi,
> I retrieve some info in Chinese from postgresql and assign it to a
> variable 'info' defined in javascript of a html page:
> var info =
On Dec 25, 5:24 am, Xah Lee wrote:
> The JavaScript example:
>
> // Javascript. By William James
> function normalize( vec ) {
> var div=Math.sqrt(vec.map(function(x) x*x).reduce(function(a,b) a+b))
> return vec.map(function(x) x/div)
>
> }
>
> is also not qualified. (it is syntax error in Spid
En Thu, 25 Dec 2008 12:50:31 -0200, Hongtian
escribió:
I have a C/C++ application and I wrote a .py file to extend it.
The .py file includes some simple functions without import any other
modules.
And you embedded the Python interpreter into your application, I presume?
Today, I want to u
Xah Lee wrote:
>> >On Dec 10, 2:47 pm, John W Kennedy wrote:
>> >> C:
>>
>> >> #include
>> >> #include
>>
>> >> void normal(int dim, float* x, float* a) {
>> >> float sum = 0.0f;
>> >> int i;
>> >> float divisor;
>> >> for (i = 0; i < dim; ++i) sum += x[i] * x[i];
>> >> divis
Steven D'Aprano wrote:
On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote:
hello,
Is there a function to remove escape characters from a string ?
(preferable all escape characters except "\n").
Can you explain what you mean? I can think of at least four alternatives:
I have
http://yeba.pl/show/movies/6044/pucybutka
--
http://mail.python.org/mailman/listinfo/python-list
On Dec 25, 12:22 pm, Matthew Dubins wrote:
> Hello all,
>
> I have made a python script to upload contact information from an excel
> worksheet to an online database. One part of the program that really
> tripped me up was when I wanted to call specific class methods that I
> had made to deal wit
On Thu, Dec 25, 2008 at 1:22 PM, Matthew Dubins
wrote:
> Hello all,
>
> I have made a python script to upload contact information from an excel
> worksheet to an online database. One part of the program that really
> tripped me up was when I wanted to call specific class methods that I had
> made
Each type does contain its own parsing method. It's just that, as it
stands, one method is being used to shunt off the data to the correct
parsing method.
Matthew Dubins
David Stanek wrote:
On Thu, Dec 25, 2008 at 1:22 PM, Matthew Dubins
wrote:
Hello all,
I have made a python script to
On 12月26日, 上午4时58分, "Gabriel Genellina"
wrote:
> En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
>
>
>
> > On 12月25日, 下午3时35分, "Chris Rebert" wrote:
> >> On Wed, Dec 24, 2008 at 11:29 PM, zxo102 wrote:
> >> > Hi,
> >> > I retrieve some info in Chinese from postgresql and assign it to a
I use WX gui so the user doesn't actually need it, Is their any way to
hide it?
thanks
--
http://mail.python.org/mailman/listinfo/python-list
On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote:
> I use WX gui so the user doesn't actually need it, Is their any way to
> hide it?
Make sure your Python program is run by pythonw.exe as opposed to python.exe
pythonw.exe exists specifically for the purpose of suppressing the DOS
Box on Windows.
On Thu, Dec 25, 2008 at 6:22 PM, Matthew Dubins
wrote:
> Each type does contain its own parsing method. It's just that, as it
> stands, one method is being used to shunt off the data to the correct
> parsing method.
>
Not really. You have all of the parsing methods in a single class. Is
it possi
On Thu, 25 Dec 2008 21:50:29 +, Jon Harrop wrote:
>Xah Lee wrote:
>>> >On Dec 10, 2:47 pm, John W Kennedy wrote:
>>> >> C:
>>>
>>> >> #include
>>> >> #include
>>>
>>> >> void normal(int dim, float* x, float* a) {
>>> >> float sum = 0.0f;
>>> >> int i;
>>> >> float divisor;
>>>
On Thu, 25 Dec 2008 13:22:15 -0500
Matthew Dubins wrote:
> Hello all,
>
> I have made a python script to upload contact information from an
> excel worksheet to an online database. One part of the program that
> really tripped me up was when I wanted to call specific class methods
> that I had
On Thu, Dec 25, 2008 at 4:16 PM, J. Clifford Dyer wrote:
> and so forth. Then your if/else chain can be pulled out to the place where
> you instantiate each field:
>
> if data_type=='address':
>field=AddressDataField(data)
> elif data_type=='due_date':
>field=DueDateDataField(data)
> el
You won't need the dictionary at all if each type has a parse method.
On 12/25/08, Chris Rebert wrote:
> On Thu, Dec 25, 2008 at 4:16 PM, J. Clifford Dyer
> wrote:
>
>> and so forth. Then your if/else chain can be pulled out to the place
>> where you instantiate each field:
>>
>> if data_type=
s...@netherlands.com wrote:
On Thu, 25 Dec 2008 21:50:29 +, Jon Harrop wrote:
Xah Lee wrote:
On Dec 10, 2:47 pm, John W Kennedy wrote:
C:
#include
#include
void normal(int dim, float* x, float* a) {
float sum = 0.0f;
int i;
float divisor;
for (i = 0; i < dim; ++i) sum
NoName schrieb:
>> NoName, Asking people to download a zip file from a website written in
>> a language and character set that they probably are not familiar with
>> is liable to make them rather nervous and not bother. It's not a good
>> way to ask for help.
>
> sorry:)
>
> Now i know where prob
Chris Rebert wrote:
On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote:
I use WX gui so the user doesn't actually need it, Is their any way to
hide it?
Make sure your Python program is run by pythonw.exe as opposed to python.exe
pythonw.exe exists specifically for the purpose of suppressing the D
On Dec 26, 8:53 am, Stef Mientki wrote:
> Steven D'Aprano wrote:
> > On Thu, 25 Dec 2008 11:00:18 +0100, Stef Mientki wrote:
>
> >> hello,
>
> >> Is there a function to remove escape characters from a string ?
> >> (preferable all escape characters except "\n").
>
> > Can you explain what you mean
Hi everyone,
Recently I've started building a program that spawns new processes when
requested via http, since the http interface doesn't need to be fancy I've
just used the BaseHTTPServer module for this, but... it seems I'm running
into a little problem. When spawning a new process (which for
I am trying to find somebody who can give me a simple python program I can
use to "program by analogy". I just want to read two CSV files and match them
on several fields, manipulate some of the fields, and write a couple of output
files.
I come from 30 years of mainframe programming so I u
> It's a bug, please report it. I though we fixed all Windows path bugs
> for 3.0 but apparently one slipped through.
>
> Christian
It is too difficult for me. please help me=)
--
http://mail.python.org/mailman/listinfo/python-list
In article ,
Rick van Hattem wrote:
> Recently I've started building a program that spawns new processes when
> requested via http, since the http interface doesn't need to be fancy I've
> just used the BaseHTTPServer module for this, but... it seems I'm running
> into a little problem. When
On Friday 26 December 2008 03:24:41 mldspen...@aol.com wrote:
> I don't have time to work my way through the online Python tutorial. I've
> tried a couple of forums but nobody has answered my questions.
There are loads of Python tutorials on the net, some will teach you the basics
in 5 minutes, o
On Friday 26 December 2008 04:05:43 Roy Smith wrote:
> In article ,
>
> Rick van Hattem wrote:
> > Recently I've started building a program that spawns new processes when
> > requested via http, since the http interface doesn't need to be fancy
> > I've just used the BaseHTTPServer module for thi
Is it possible to catch in an event more that one key from keyboard? In
my code, I can handle always the only one, the first I press, the others
are omitted. Say, I press both "4" and "8" and only "4" is catched.
def movePlayer(event):
print (event.keysym)
Thank you.
--
geon
Pavel Kosina
>>> u = u'\u554a'
>>> print u
啊
>>> sys.stdout.write(u)
Traceback (most recent call last):
File "", line 1, in
UnicodeEncodeError: 'ascii' codec can't encode character u'\u554a' in
position 0: ordinal not in range(128)
>>> type(sys.stdout)
>>> sys.stdout.encoding
'UTF-8'
Quote from file object
On Dec 25, 6:35 pm, "David Stanek" wrote:
> You won't need the dictionary at all if each type has a parse method.
How do you know what type to use if you don't have a if...elif...,
dictionary, getattr, or some other sort of dispatching? Look at his
requirements: there is a variable called "data_
Hi again,
I've done some more playing around with socket and socketserver and
have discovered I can send strings or lists with socket.send() by
converting to bytes. But lists with strings in them or dicts can't be
converted by bytes(). How can I send those?
One idea I initially tried was to set
On Thu, Dec 25, 2008 at 10:08 PM, greyw...@gmail.com wrote:
> Hi again,
>
> I've done some more playing around with socket and socketserver and
> have discovered I can send strings or lists with socket.send() by
> converting to bytes. But lists with strings in them or dicts can't be
> converted b
"zxo102" wrote in message
news:979fdf6d-0500-47ba-87fd-0f0361ca3...@p2g2000prf.googlegroups.com...
On 12月26日, 上午4时58分, "Gabriel Genellina"
wrote:
En Thu, 25 Dec 2008 07:27:03 -0200, zxo102 escribió:
> On 12月25日, 下午3时35分, "Chris Rebert" wrote:
>> On Wed, Dec 24, 2008 at 11:29 PM, zxo102
On Dec 26, 2:52 am, Scott David Daniels wrote:
> Chris Rebert wrote:
> > On Thu, Dec 25, 2008 at 3:32 PM, Gandalf wrote:
> >> I use WX gui so the user doesn't actually need it, Is their any way to
> >> hide it?
>
> > Make sure your Python program is run by pythonw.exe as opposed to python.exe
> >
79 matches
Mail list logo