Hi!
a friend and me are investigating how mother-tongue influences
programming productivity.
We need volunteers to take on a 3 minutes python language
programming test.
if you are interested please be so kind to visit:
http://test-iq.web.cern.ch/test-iq/step1.php?lang=en
On Nov 8, 6:53 am, gsal [EMAIL PROTECTED] wrote:
What would be the easiest way to go about offering 3D graphics for the
purpose of rendering geometry?
Suppose engineers (my co-workes) have to design some enclosure,
nozzle, bracket, or whatever physical part/component, I would like to
write a
Thank You!
Maybe we can get rid of this guy now... This is a python group...
On Nov 8, 2007 12:28 PM, philipp neulist [EMAIL PROTECTED]
wrote:
On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote:
911 carried out by evil jews and
mossadhttp://www.guba.com/watch/2000991770
911 truckload of
Hello,
Here is example of my ListCtrl items with image:
( filebox1 is ListCtrl )
il = wx.ImageList(16,16)
images=[file1.png,folder.png]
for i in images:
il.Add(wx.Bitmap(i))
img_list=filebox1.SetImageList(il, wx.IMAGE_LIST_SMALL)
j=1
Hi - I have been trying, but I need some help:
Here's my test code to parse an SVG path element, can anyone steer me right?
d1=
M 209.12237 , 172.2415
L 286.76739 , 153.51369
L 286.76739 , 275.88534
L 209.12237 , 294.45058
L 209.12237 , 172.2415
z
#Try it with no enters
d1=M
* Prabhu Gurumurthy (Wed, 07 Nov 2007 22:34:14 -0800)
I would like to parse IPv6 addresses and subnet using re module in
python.
Just don't: http://pypi.python.org/pypi?%3Aaction=searchterm=ipv6
submit=search
--
http://mail.python.org/mailman/listinfo/python-list
On 11/7/07, Cameron Walsh [EMAIL PROTECTED] wrote:
Amit Khemka wrote:
Cut image by m X m grid (bigger the m, the more varied shapes you
would be able to generate), this will give you m*m square pieces. With
each piece store a vector which represents the polygon (say by storing
On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote:
911 carried out by evil jews and mossadhttp://www.guba.com/watch/2000991770
911 truckload of Explosives on the George Washington
Bridgehttp://www.youtube.com/watch?v=J520P-MD9a0
[...]
I reported the first post in this thread (on Google groups) as
Hi,
I am working with C++ code that needs to be maintained both in debug
and release versions. The environment is Windows 32 bit with MSVC8.
I downloaded the python installation for Win32 and installed it.
When, however, I tried to compile my DLLs in debug mode i got link
errors specifying that
I'm storing 8-bit characters from the 128-256 range in Python
strings. They are Windows CP1251 Russian characters. When looking at
those strings in the Python interpreter, they come up as codes inside
the string. How can I teach Python to show those 8-bit characters in
the native encoding of
braver wrote:
I'm storing 8-bit characters from the 128-256 range in Python
strings. They are Windows CP1251 Russian characters. When looking at
those strings in the Python interpreter, they come up as codes inside
the string. How can I teach Python to show those 8-bit characters in
the
2007/11/6, Nicolas.Chauvat [EMAIL PROTECTED]:
Le Mon, 29 Oct 2007 20:39:29 -0700, sandipm a écrit:
seeing posts from students on group. I am curious to know, Do they teach
python in academic courses in universities?
I am teaching assistant for the course
On 2007-11-08 04:21:48 +0100, [EMAIL PROTECTED] said:
911 carried out by evil jews and mossad
http://www.guba.com/watch/2000991770
I'm glad it was carried out by evil jews and not by nice ones. That
rules me out.
simon
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 8, 6:53 am, gsal [EMAIL PROTECTED] wrote:
What would be the easiest way to go about offering 3D graphics for the
purpose of rendering geometry?
Suppose engineers (my co-workes) have to design some enclosure,
nozzle, bracket, or whatever physical part/component, I would like to
write a
Hello,
I configure the serial connection using:
self.port = serial.Serial(baudrate=57600,
timeout=0.06,
parity=serial.PARITY_EVEN,
stopbits=serial.STOPBITS_TWO,
I recommend taking a look at Blender 3D: http://www.blender.org/
Oh yeah, Blender is THE way to go. It's fantastic.
\d
--
http://mail.python.org/mailman/listinfo/python-list
On Nov 8, 3:14 am, Donn Ingle [EMAIL PROTECTED] wrote:
float = nums + dot + nums
Should be:
float = Combine(Word(nums) + dot + Word(nums))
nums is a string that defines the set of numeric digits for composing
Word instances. nums is not an expression by itself.
For that matter, I see in
Boris Borcic wrote:
Christian Meesters wrote:
Hoi,
I have the following data structure (of variable size actually, to make
things simple, just that one):
d = {'a': {'x':[1,2,3], 'y':[4,5,6]},
'b': {'x':[7,8,9], 'y':[10,11,12]}}
This can be read as a dict of possibilities: The entities
On 8 Nov., 08:52, Michel Albert [EMAIL PROTECTED] wrote:
In our company we are looking for one language to be used as default
language. So far Python looks like a good choice (slacking behind
Java). A few requirements that the language should be able cope with
are:
* Database access to
Paul McGuire wrote:
On Nov 8, 3:14 am, Donn Ingle [EMAIL PROTECTED] wrote:
float = nums + dot + nums
Should be:
float = Combine(Word(nums) + dot + Word(nums))
nums is a string that defines the set of numeric digits for composing
Word instances. nums is not an expression by
On Nov 8, 5:45 am, [EMAIL PROTECTED] wrote:
Hello,
Here is example of my ListCtrl items with image:
( filebox1 is ListCtrl )
il = wx.ImageList(16,16)
images=[file1.png,folder.png]
for i in images:
il.Add(wx.Bitmap(i))
Hello,
I'm using Tkinter to create widgets in Python 2.5 on OS X 10.5. When
I call root.quit or sys.exit in any way, the following traceback
appears, after which the application stops responding and just gives
the spinning rainbow cursor. The IDLE editor and the Python shell
remain responsive,
On Nov 8, 3:28 am, philipp neulist [EMAIL PROTECTED]
wrote:
On Nov 7, 4:08 pm, [EMAIL PROTECTED] wrote: 911 carried out by evil jews and
mossadhttp://www.guba.com/watch/2000991770
911 truckload of Explosives on the George Washington
Bridgehttp://www.youtube.com/watch?v=J520P-MD9a0
[...]
On Nov 8, 2:21 am, [EMAIL PROTECTED] wrote:
Hi!
a friend and me are investigating how mother-tongue influences
programming productivity.
We need volunteers to take on a 3 minutes python language
programming test.
if you are interested please be so kind to visit:
if you are interested please be so kind to visit:
http://test-iq.web.cern.ch/test-iq/step1.php?lang=en
Well, just out of curosity, i started the test, however, it seems a
little bugy. My answer to the first question one was:
[snipped]
getting the following error:
SYNTAX
Hello!
How to write portable (win32, unix) script that launches another
program and continues its execution?
I've looked at spawn*() but it doesn't look in PATH dirs on windows so
it's totally unusable when you don't know where exactly program is.
I've looked at fork() way but there's no fork
On 2007-11-03, Dennis Lee Bieber [EMAIL PROTECTED] wrote:
On Sat, 03 Nov 2007 17:30:45 -, Sullivan WxPyQtKinter
[EMAIL PROTECTED] declaimed the following in comp.lang.python:
Actually I am quite satisfied with and error, which is my expectation.
But the implicit global variable access
As an electronics engineer I use some very expensive EDA CAD tool
programs that are scriptable using Tcl. I was wondering why these
companies have choose to use Tcl instead of Python. Some of these
are:
Mentor Graphics ModelTech VHDL and Verilog simulator
Synopsys Design Compiler
Posted to the Optik list, but it seems defunct. Optik is now Python's
optparse.
I wonder how do you implement optional arguments to Optik. I.e., you
can have an option
-P [file]
-- the filename is optional, with a default data,pikl. It works as
follows:
-- if no -P is given, no pickle is
hello there,
a question that keeps me puzzled for some time now:
basically i want to fetch the output from an http page. The page exists out of
an input field and a button to calculate my data.
The problem is that I simply cannot get my hands on the output, but only on the
page itself.
I'm trying to implement some simple command line options. Some of the
'help' sections are long and I would like to control line breaks. How
do you do this?
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
ASIDE: I've started refactoring this bit out in my local
source...how would I go about contributing it back to the
Python code-base? I didn't get any feedback from posting to
the Optik site.
You can post a patch to bugs.python.org, but it will probably
just get forwarded to the optik
Tim Chase wrote:
ASIDE: I've started refactoring this bit out in my local
source...how would I go about contributing it back to the
Python code-base? I didn't get any feedback from posting to
the Optik site.
You can post a patch to bugs.python.org, but it will probably
just get forwarded
On Nov 8, 11:46 am, Tim Chase [EMAIL PROTECTED] wrote:
I'm trying to implement some simple command line options.
Some of the 'help' sections are long and I would like to
control line breaks. How do you do this?
I had this problem earlier and solved it here:
Tim Chase wrote:
ASIDE: I've started refactoring this bit out in my local source...how
would I go about contributing it back to the Python code-base? I didn't
get any feedback from posting to the Optik site.
You can post a patch to bugs.python.org, but it will probably just get
forwarded
On Nov 3, 10:49 am, Paul McGuire [EMAIL PROTECTED] wrote:
grammar ((word + grammar) | (word + Literal(end)))
which works.
[Clarifies that the common (and similar) solution doesn't work -- this
works only because the literal binds tightly to the word, so you can't
get a word that matches on
Hi,
I'm using an application that shows a standard (YES/NO) reconnect
MessageBox each time if loses conection with its server. It defaults to YES.
Is there any way to hook such a MessageBox a send a default action (yes)
from a Python Script?
All I've been able to do is to get a HWND with
braver wrote:
Posted to the Optik list, but it seems defunct. Optik is now Python's
optparse.
I wonder how do you implement optional arguments to Optik.
You may want to check out argparse:
http://argparse.python-hosting.com/
It supports optional arguments like this::
parser =
On Nov 8, 4:07 am, [EMAIL PROTECTED] wrote:
I tried to change the code above (just for fun) so in both cases i'll
use python25.lib and in debug compilation I got linker errors on
unresolved externals. seems like the debug version exports more
methods than the release version.
I usually just
I'm trying to implement some simple command line options.
Some of the 'help' sections are long and I would like to
control line breaks. How do you do this?
I had this problem earlier and solved it here:
thanks very much!
Grant Edwards wrote:
On 2007-11-07, Paul Sijben [EMAIL PROTECTED] wrote:
To automate/ease configuration in my app I am trying to find
out to which serial port a certain bluetooth device is
connected. With pybluez I can find out which bluetooth devices
I have, but it will
On Nov 8, 2007 11:02 AM, steven depret [EMAIL PROTECTED] wrote:
I get a lot of stuff in my output, but simply NOT the a=xx and the b = yy.
What the heck am I doing wrong ?
What kind of stuff are you getting? Are you getting all the contents
of the HTTP response and/or HTML?
--
Thanks for the help Tim. I just copied and pasted your code into a
file in my $PYTHONPATH (IndentedHelpFormatterWithNL.py), but I'm
getting the following error:
class IndentedHelpFormatterWithNL(IndentedHelpFormatter):
NameError: name 'IndentedHelpFormatter' is not defined
I tried
sqlalchemy gives the following error
message for sqlite:
C:\Python25\lib\site-packages\sqlalchemy\databases\sqlite.py:167:
RuntimeWarning: The installed version of
sqlite (3.3.4) is out-dated, and will
cause errors in some cases. Version
3.3.13 or greater is recommended.
I'm trying to get a list of messages from GMAIL using it's new IMAP
access.
So far I've tried running this command but it just hangs. Any ideas?
import imaplib
M=imaplib.IMAP4('imap.gmail.com',993)
I figured that's the first line to run from this example:
On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm trying to get a list of messages from GMAIL using it's new IMAP
access.
So far I've tried running this command but it just hangs. Any ideas?
import imaplib
M=imaplib.IMAP4('imap.gmail.com',993)
I figured that's the
The last argument to new.function takes a closure, which is a tuple of
cell objects. Does anybody know how to create those cell objects 'by
hand'?
Thanks!
Colin
NOTICE: If received in error, please destroy and notify sender. Sender does
How do you feel about multithreading support?
A multithreaded application in Python will only use a single CPU on
multi-CPU machines due to big interpreter lock, whereas the right
thing
happens in Java.
Note that this is untrue for many common uses of threading (e.g. using
threads
Frank Samuelson a écrit :
I love Python, and it is one of my 2 favorite
languages. I would suggest that Python steal some
aspects of the S language.
---
1. Currently in Python
def foo(x,y): ...
assigns the name foo to a function
On Nov 8, 2:09 pm, Michael Bacarella [EMAIL PROTECTED] wrote:
In our company we are looking for one language to be used as default
language. So far Python looks like a good choice (slacking behind
Java). A few requirements that the language should be able cope with
are:
How do you feel
On Nov 8, 2007 5:30 PM, Prepscius, Colin (IT)
[EMAIL PROTECTED] wrote:
The last argument to new.function takes a closure, which is a tuple of
cell objects. Does anybody know how to create those cell objects 'by
hand'?
Beyond copying them from an existing closure, you'll have to use the C
API
On Thu, 8 Nov 2007 18:30:15 -0500, Prepscius, Colin \(IT\) [EMAIL
PROTECTED] wrote:
The last argument to new.function takes a closure, which is a tuple of
cell objects. Does anybody know how to create those cell objects 'by
hand'?
Here's one approach:
def f():
... x = 10
...
On Nov 8, 2007 5:22 PM, Michael Bacarella [EMAIL PROTECTED] wrote:
How do you feel about multithreading support?
A multithreaded application in Python will only use a single CPU on
multi-CPU machines due to big interpreter lock, whereas the right
thing
happens in Java.
Note
Kay Schluehr wrote:
Could you please learn some parser theory 101 and then come back when
you have complaints about one or the other implemententation of a
particular Python parser? When some guy enters a forum with a newbie
question most of the time people are willing to give a fair and
[EMAIL PROTECTED] [EMAIL PROTECTED] writes:
Hello! Please feel free to forward this on to your network. All those
interested in this position, please email me at [...]
This forum is not an appropriate place to post job
advertisements. Instead, please use the Python Job Board
On Nov 8, 2007 4:59 PM, Nicholas Bastin [EMAIL PROTECTED] wrote:
Also, Apple distributes the standard library in a zip file, so you
won't find all the packages just lying around. They should all be
stored in /Library/Frameworks/Python.framework/Versions/2.5/lib/python25.zip.
I'll eat my
On Nov 8, 2007 4:13 PM, Chris [EMAIL PROTECTED] wrote:
Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was
excited that Python 2.5 was included, but this excitement was very short
lived. Almost nothing works. Upon startup I get this message:
'import site' failed; use -v
On Nov 8, 2:23 pm, Sean Peterson [EMAIL PROTECTED] wrote:
Has anyone had success using NetUseAdd() on shares that were replica links on
a Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
On Nov 8, 12:00 pm, Frank Samuelson
[EMAIL PROTECTED] wrote:
def foo(x,y): ...
assigns the name foo to a function object.
Why not use the = operator like most other assignments?
FWIW, the also binds the __name__ attribute:
foo = lambda(x,y): ...
foo.__name__ = 'foo'
Raymond
--
Any suggestions for a workaround?
You could silence the warning, using the warnings module.
Alternatively, I think you should be able to replace sqlite3.dll
with a newer version.
Regards,
Martin
--
http://mail.python.org/mailman/listinfo/python-list
Has anyone had success using NetUseAdd() on shares that were replica links on a
Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
Win2003 Server hosting DFS root #NTS-03
Hello,
I often build Python on Windows.
What I can say is it not so trivial to build debug libraries for Python:
each debug library must have the postfix *_d.dll/.pyd.
Another useful information. On Windows, a shared library is linked to
our application though a associated file with the .lib
On Nov 8, 12:40 pm, Tim Chase [EMAIL PROTECTED] wrote:
Thanks for the help Tim. I just copied and pasted your code into a
file in my $PYTHONPATH (IndentedHelpFormatterWithNL.py), but I'm
getting the following error:
class IndentedHelpFormatterWithNL(IndentedHelpFormatter):
On Nov 8, 2:22 pm, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote:
On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm trying to get a list of messages from GMAIL using it's new IMAP
access.
So far I've tried running
On Nov 8, 3:11 am, Thorsten Kampe [EMAIL PROTECTED] wrote:
* Prabhu Gurumurthy (Wed, 07 Nov 2007 22:34:14 -0800)
I would like to parse IPv6 addresses and subnet using re module in
python.
Just don't:http://pypi.python.org/pypi?%3Aaction=searchterm=ipv6
submit=search
And even if you do
In our company we are looking for one language to be used as default
language. So far Python looks like a good choice (slacking behind
Java). A few requirements that the language should be able cope with
are:
How do you feel about multithreading support?
A multithreaded application in Python
On Nov 8, 3:00 pm, Frank Samuelson
[EMAIL PROTECTED] wrote:
I know these ideas are not perfect, but I think they
may be better... Fire away.
Python isn't Lisp.
Carl Banks
--
http://mail.python.org/mailman/listinfo/python-list
Take a break from a stressful day, and educate yourself !!!
Below is the optimum browsing order.
http://novakeo.com/?p=151
http://www.youtube.com/watch?v=oEenyyiQGGQ
http://www.youtube.com/watch?v=tRfhUezbKLw
http://www.youtube.com/watch?v=PtpvLIpdXPQ
On Nov 8, 1:09 pm, Michael Bacarella [EMAIL PROTECTED] wrote:
In our company we are looking for one language to be used as default
language. So far Python looks like a good choice (slacking behind
Java). A few requirements that the language should be able cope with
are:
How do you feel
On Nov 7, 6:50 pm, Paul Rubin http://[EMAIL PROTECTED] wrote:
Colin J. Williams [EMAIL PROTECTED] writes:
Could you elaborate on lightweight please? I findPyScripterto be a
powerful editor/debugger combination.
What functionality does Eclipse have thatPyScripterdoes not?
While we're at
On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote:
On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm trying to get a list of messages from GMAIL using it's new IMAP
access.
So far I've tried running this command but it just hangs. Any ideas?
import imaplib
On Nov 8, 8:09 am, Dmitry Teslenko [EMAIL PROTECTED] wrote:
Hello!
How to write portable (win32, unix) script that launches another
program and continues its execution?
I've looked at spawn*() but it doesn't look in PATH dirs on windows so
it's totally unusable when you don't know where
On Nov 8, 1:52 pm, Jason [EMAIL PROTECTED] wrote:
On Nov 8, 11:41 am, [EMAIL PROTECTED] [EMAIL PROTECTED]
wrote:
I'm trying to get a list of messages from GMAIL using it's new IMAP
access.
So far I've tried running this command but it just hangs. Any ideas?
import imaplib
On Nov 8, 1:52 am, Michel Albert [EMAIL PROTECTED] wrote:
In our company we are looking for one language to be used as default
language. So far Python looks like a good choice (slacking behind
Java). A few requirements that the language should be able cope with
are:
* Database access to
I love Python, and it is one of my 2 favorite
languages. I would suggest that Python steal some
aspects of the S language.
---
1. Currently in Python
def foo(x,y): ...
assigns the name foo to a function object. Is this pythonic?
Why not use
So I decided to download and build the debug version of python2.5.1/
As it seems I also need to compile all relevant extension modules
(*.pyd) in debug as well - is this correct?
That's correct.
I tried to change the code above (just for fun) so in both cases i'll
use python25.lib and in
On Nov 8, 2:23 pm, Sean Peterson [EMAIL PROTECTED] wrote:
Has anyone had success using NetUseAdd() on shares that were replica links on
a Windows 2003 DFS root? In my code, I'm getting error:
pywintypes.error: (67, 'NetUseAdd', 'The network name cannot be found.')
This is my scenario:
Frank Samuelson pisze:
foo = function(x,y) x+y*2 # Example S language code
Ugly.
--
Jarek Zgoda
http://zgodowie.org/
--
http://mail.python.org/mailman/listinfo/python-list
Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was
excited that Python 2.5 was included, but this excitement was very short
lived. Almost nothing works. Upon startup I get this message:
'import site' failed; use -v for traceback
and sure enough, all of the built-in
Frank Samuelson schrieb:
I love Python, and it is one of my 2 favorite
languages. I would suggest that Python steal some
aspects of the S language.
---
1. Currently in Python
def foo(x,y): ...
assigns the name foo to a function object.
Frank Samuelson [EMAIL PROTECTED] writes:
I love Python, and it is one of my 2 favorite
languages. I would suggest that Python steal some
aspects of the S language.
I would suggest each of these be discussed in a separate thread, each
with a specific Subject field, rather than three
Chris schrieb:
Are others having fundamental issues on OSX 10.5 with python 2.5.1? I was
excited that Python 2.5 was included, but this excitement was very short
lived. Almost nothing works. Upon startup I get this message:
'import site' failed; use -v for traceback
and sure enough, all
Hello! Please feel free to forward this on to your network. All those
interested in this position, please email me at
[EMAIL PROTECTED] Thanks!-Amanda Papp
Python Developer
Job Description: Rackspace is a highly awarded and respected managed
web hosting company. We earned our place by approaching
On Behalf Of Xavier Homs
Is there any way to hook such a MessageBox a send a default
action (yes) from a Python Script?
A pure Python solution is pywinauto:
http://www.openqa.org/pywinauto/
Another solution is AutoIt
http://www.autoitscript.com/autoit3/
It has a COM server, which you can
CodeInvestigator version 0.6.0 was released on November 8.
This version adds support for input() and raw_input() functions.
The main changes:
* The 'Details' button on the file selection screen gives access
to statistics, stdin and stdout for the running program.
Control Z
On Thu, 08 Nov 2007 15:00:03 -0500, Frank Samuelson wrote:
1. Currently in Python
def foo(x,y): ...
assigns the name foo to a function object. Is this pythonic?
Why not use the = operator like most other assignments?
Why? What benefit do you gain?
Define function objects as functions,
A multithreaded application in Python will only use a single CPU
on
multi-CPU machines due to big interpreter lock, whereas the
right
thing
happens in Java.
Note that this is untrue for many common uses of threading (e.g.
using
threads to wait on network connections, or
Prepscius, Colin (IT) [EMAIL PROTECTED] writes:
NOTICE: If received in error,
If I've received it, it's not received in error, it's received
successfully.
If, instead, you're referring to the actual recipient being different
from the intended recipient, why are you putting this judgement onto
Hello Everyone,
I'm new to python. I have worked through some tutorials and played around
with the language a little bit but I'm stuck.
I want to know how I can make python run a program. More specifically, I
want to get python to work with SOX to record a sound through the
microphone, save
Wayne Brehaut wrote:
...
For learning DSA it's more important to have a clear, well-written and
well-documented implementation in a language of interest (again,
especially, the core language in one's programs) than just using or
even inspecting and trying to learn subtle details of some
gsal wrote:
What would be the easiest way to go about offering 3D graphics for the
purpose of rendering geometry?
Take a look at VPython. If you are pretty bright, give up a weekend
and do all you can in that one weekend. I think you will be amazed.
You will one day get to a point where it is
Frank Samuelson wrote:
I love Python, and it is one of my 2 favorite
languages. I would suggest that Python steal some
aspects of the S language.
I generally agree with the various naye-sayers, but find one
argument missing:
---
2. Allow
On Nov 9, 12:28 am, [david] [EMAIL PROTECTED] wrote:
Kay Schluehr wrote:
Could you please learn some parser theory 101 and then come back when
you have complaints about one or the other implemententation of a
particular Python parser? When some guy enters a forum with a newbie
question
Michael Bacarella [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
| It's pretty uncommon. There are relatively few CPU bound tasks that
| are a) highly parallel and b) can't be easily scaled between
| processes. Python is not (by itself) an especially good tool for those
| tasks.
|
hello all, is there a way to make wxpython frame to expand itself
as we add controls to it
--
http://mail.python.org/mailman/listinfo/python-list
Frank Aune Fran...park.no wrote:
Hello,
I configure the serial connection using:
self.port = serial.Serial(baudrate=57600,
timeout=0.06,
parity=serial.PARITY_EVEN,
Hallo,
could you explaint me the difference between the two following
statements.
Python 2.5 (r25:51908, Oct 7 2006, 23:45:05)
[GCC 3.3.5 20050117 (prerelease) (SUSE Linux)] on linux2
Type help, copyright, credits or license for more information.
(1).__cmp__(10)
-1
1.__cmp__(10)
File stdin,
[EMAIL PROTECTED] wrote:
(1).__cmp__(10)
-1
Integer object (1) followed by method call .__cmp__(10)
1.__cmp__(10)
File stdin, line 1
1.__cmp__(10)
^
SyntaxError: invalid syntax
Floating point number 1. followed by __cmp__(10).
STeVe
--
On Thu, 08 Nov 2007 22:53:16 -0800, r.grimm wrote:
(1).__cmp__(10)
-1
As the dot is an operator like ``+`` or ``/`` you can also add spaces to
avoid the ambiguity:
In [493]: 1 . __cmp__(10)
Out[493]: -1
In [494]: 1 .__cmp__(10)
Out[494]: -1
Ciao,
Marc 'BlackJack' Rintsch
--
Andres Riancho added the comment:
As mentioned in the RFC, and quoted by orsenthil, however, most
existing user agent implementations treat 302 as if it were a 303
response, which is true for urllib2.py too ( see line 585 ):
http_error_301 = http_error_303 = http_error_307 = http_error_302
1 - 100 of 175 matches
Mail list logo