WHAT IS IT:
The Sybase module provides a Python interface to the Sybase relational
database system. It supports all of the Python Database API, version
2.0 with extensions.
** This version is a pre-release not intended for production use **
The module is available here:
Jeff Schwab wrote:
Erik Max Francis wrote:
Jeff Schwab wrote:
Erik Max Francis wrote:
Robert Bossy wrote:
I'm pretty sure we can still hear educated people say that free fall
speed depends on the weight of the object without realizing it's a
double mistake.
Robert Bossy wrote:
In my mind, the second mistake was the confusion between weight and mass.
I see. If so, then that sounds like another terminology gotcha. The
distinction between weight and mass is all but irrelevant for everyday
activities, since the acceleration due to gravity is so
On Feb 11, 10:58 am, Bill Davy [EMAIL PROTECTED] wrote:
Writing a quick and dirty assembler and want to give the user the location
of an error. The assembly language is Python. If the user wants to
generat some object code they write something like:
Label(LoopLable)
Load(R4)
Michael Robertson:
I'm guessing sage has this, but shouldn't something like this be part of
the standard library (perhaps in C)?
My answer is positive. As a reference point you can look at the
combinatorics module of Mathematica.
Bye,
bearophile
--
Jon wrote:
Can someone tell me an idiom to choose the right one?
You can check the size of a void pointer with ctypes:
import ctypes
ctypes.sizeof(ctypes.c_void_p) * 8
32
Christian
--
http://mail.python.org/mailman/listinfo/python-list
Cruxic a écrit :
Is it possible to tack on arbitrary attributes to a python object?
Depends on the object's class. In the common case it's possible but
there are a couple cases - mostly builtin immutable types - where it's not.
For example:
s = 'nice 2 meet you'
s.isFriendly = True
In
Christian Heimes wrote:
You can check the size of a void pointer with ctypes:
import ctypes
ctypes.sizeof(ctypes.c_void_p) * 8
And Matt Nordhoff wrote:
import platform
platform.architecture()
Thanks guys! Exactly what I was after.
-Jon
--
Will a écrit :
I have a small python script with a callback in it that receives data
from another app. Everytime the callback gets data, I'd like to send it
into a webpage w/o refreshing the entire webpage.
Anyone know of a tutorial that would help do that?
The best thing to do would be
On Mon, 11 Feb 2008 23:52:31 -0800
Michael Robertson [EMAIL PROTECTED] wrote:
Am I wishing on a star?
for i in xrange(10**10):
print i
OverflowError: long int too large to convert to int
The problem seems to be that although python supports arbitrary long
integers, all the internal loop
I am a teacher and need to set up a computer with a bluetooth dongle
to poll for mobile phones with bluetooth switched on in the area then
send them a jpg file.
I understand that python is capeable of this.
1.) is it worth learning python to do this or can someone out there do
it for me for a v
I did just try to post, but it doesn't look like it has appeared?
I've used your advice Andrew and tried to use the CSV module, but now
it doesn't seem to pick up the startswith command?
Is this because of the way the CSV module is reading the data in?
I've looked into the module description but
Dennis Lee Bieber wrote:
On Tue, 12 Feb 2008 00:18:38 -0800, Erik Max Francis [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
equivalence for everyday usage and make no requirement of using the
proper units for mass (kg) vs. weight (N) for, say, buying things at
WHAT IS IT:
The Sybase module provides a Python interface to the Sybase relational
database system. It supports all of the Python Database API, version
2.0 with extensions.
** This version is a pre-release not intended for production use **
The module is available here:
Gabriel Genellina wrote:
En Tue, 12 Feb 2008 14:41:20 -0200, Jeff Schwab [EMAIL PROTECTED]
escribi�:
def line():
try:
raise Exception
except:
return sys.exc_info()[2].tb_frame.f_back.f_lineno
def file():
I'll add a couple more. I forgot to mention that it seems impossible to do a
Ctrl-F for a Find within the Help text. Is there another way? Is it
possible to set IDLE so that it goes to another folder other than the
install folder when I start it? Why doe both close and exit do the same
thing?
What is dream hardware for the Python interpreter?
The only dream hardware I know of is the human brain. I have a
slightly used one myself, and it's a pretty mediocre Python interpreter.
the human brain may be a pretty mediocre Python interpreter, but
darn if I don't miss
import dwim
Hi...
I'm trying to guess how to access attributes of an existing object
given the attribute name in a string. I mean:
class Object:
self.x = 12
self.y = 20
self.name = blah
def ChangeAttribute( object, attribute, value ):
# Insert here the code for object.attribute = value
Hi all,
I have this unicode string:
string = u'Macworld » Jobs 1 - Twitter 0'
and I want to replace the '»' (aka \xbb) char to 'raquo'.
I've tried 2 ways:
1.
string2 = string.replace('\\xbb','raquo;')
u'Macworld \xbb Jobs 1 - Twitter 0'
2.
import cgi
string2 =
On 12 fév, 21:35, Dennis Kempin [EMAIL PROTECTED] wrote:
Santiago Romero schrieb:
(snip - others already answered)
PS: I need it for a concrete case in a game scripting language I'm
writing, so that I can call functions like CHANGE_PLAYER_VALUES( x,
100 ).
You are using a scripting
Santiago Romero schrieb:
Hi...
I'm trying to guess how to access attributes of an existing object
given the attribute name in a string. I mean:
class Object:
self.x = 12
self.y = 20
self.name = blah
def ChangeAttribute( object, attribute, value ):
# Insert here the
Paul Hankin [EMAIL PROTECTED] writes:
def genDescendants(self):
return chain([self], *[child.genDescendants()
for child in self.children])
That is scary. It generates an in-memory list the size of the
whole subtree, at every level. Total memory consumption is maybe
even
On Feb 12, 2:18 pm, W. Watson [EMAIL PROTECTED] wrote:
After simply trying to write a program with help(MakeQTE), a module, and
having it fail with socket errors, I decided to restart IDLE, thinking I
knew the cause. I'm now getting msgs like: IDLE's subprocess didn't make
connection. ...
On 12/02/2008, W. Watson [EMAIL PROTECTED] wrote:
PHP. Well, that's a new one on me. Google gave me some idea of what it's
about, and I found some code on how to do it. It requires yet another
programming language, which means finding the editor, etc.
Any text editor will do PHP. I
This is faster:
http://www.sromero.org/python/zx_parseexec.py
http://www.sromero.org/python/test.par
XD
--
http://mail.python.org/mailman/listinfo/python-list
And the rest of the code:
#
def ExecParser_Exec( exec_type, code, game, debug=0 ):
Execute the previously compiled code:
code_level = 0
#player = game.player
#world = game.world
# Take only opcodes for
On 12 Feb, 22:11, Michael Goerz [EMAIL PROTECTED]
wrote:
How about this?
string.replace(u'\xbb', u'raquo;')
Thanks, it works!!!
DiMar
--
http://mail.python.org/mailman/listinfo/python-list
DiMar wrote, on 02/12/2008 09:54 PM:
Hi all,
I have this unicode string:
string = u'Macworld » Jobs 1 - Twitter 0'
and I want to replace the '»' (aka \xbb) char to 'raquo'.
I've tried 2 ways:
1.
string2 = string.replace('\\xbb','raquo;')
u'Macworld \xbb Jobs 1 - Twitter 0'
How
On Feb 12, 7:49 pm, [EMAIL PROTECTED] wrote:
Fuzzyman:
Another interesting little benchmark of CPython and IronPython. Can't
see the code, but it looks like an implementation of the 11 queens
problem and IronPython comes out a clear winner on this one. (Looks
like no benchmark for
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 nightmare
Paul Rubin:
In 3.0 you may be able to say {,} but there is a contingent that would
just as soon get rid of all that special syntax, so you'd say list()
instead of [], dict() instead of {}, etc.
For Python 3.0 I'd like {} for the empty set and {:} for the empty
dict, but that idea was refused
Double-underscore names and methods are special to Python. Developers are
prohibited from creating their own (although the language doesn't enforce
that prohibition). From PEP 0008, written by Guido himself:
__double_leading_and_trailing_underscore__: magic objects or
attributes
On Feb 12, 4:10 pm, maehhheeyy [EMAIL PROTECTED] wrote:
Hi, right now I'm using Python and Multicast. I have the code for
Multicast receiver on Python but I keep getting this error;
File string, line 1, in bind
error: (10049, Can't assign requested address)
The error is coming from this
On Feb 12, 10:17 pm, Ben C [EMAIL PROTECTED] wrote:
On 2008-02-12, Paul Rubin wrote:
Paul Hankin [EMAIL PROTECTED] writes:
def genDescendants(self):
return chain([self], *[child.genDescendants()
for child in self.children])
That is scary. It generates an in-memory list
Ben Finney:
I often use these myself. They're slightly more explicit, which can
help when I want the reader not to have to think too much, and they're
not particularly verbose because the names are well-chosen and short.
I'd like list be called array ;-)
Note that '()' is syntactically
Ben Finney:
Generator literals do not require the
parens at all. However, the syntax of where the generator literal
*appears* can make it necessary to explicitly group the expression
using parens.
Have you taken a look at Boo?
In Python this isn't possible:
s = char for char in string.digits
On Feb 12, 7:15 am, W. Watson [EMAIL PROTECTED] wrote:
I thought I try to step through some simplePythoncode I wrote with IDLE
using Debug. I'm at the early stages of learningPython. I used the shell to
Run, then clicked on Debug-Debugger. That brought up a window with Stack
and Locals
En Mon, 11 Feb 2008 23:26:14 -0200, Steve Holden [EMAIL PROTECTED]
escribió:
Gabriel Genellina wrote:
En Mon, 11 Feb 2008 13:31:56 -0200, Manikandan R [EMAIL PROTECTED]
escribió:
I am working in Python scripting. I an need to find out all the
device
connected in the network. Just I
[EMAIL PROTECTED] writes:
In Python ( ) denote:
- expression grouping
- they are very often used to denote tuples (despite being necessary
only for the empty one)
- generators (x for x in ...).
The Boo language shows that () aren't that necessary for the
generators.
Now, that one I *am*
Ben Finney wrote:
[...]
Note that '()' is syntactically null. Parentheses don't declare a
tuple literal, commas do. Parentheses are for grouping within
expressions, not specifying type.
Tell that to the interpreter:
type(())
type 'tuple'
tuple() is ()
True
regards
Steve
--
Steve
Jeff Schwab [EMAIL PROTECTED] writes:
*Oven-roasted* garlic? OK, that's just weird.
Why, where do you roast your garlic?
--
\Crime is contagious ... if the government becomes a |
`\lawbreaker, it breeds contempt for the law. -- Justice Louis |
_o__)
[EMAIL PROTECTED] writes:
Ben Finney:
Generator literals do not require the parens at all. However, the
syntax of where the generator literal *appears* can make it
necessary to explicitly group the expression using parens.
Have you taken a look at Boo?
In Python this isn't possible:
s
Hi,
The man page for python says:
-u Force stdin, stdout and stderr to be totally unbuffered.
However, when I try:
$ ssh localhost python -u
print 'hello, world'
[^D]
hello, world
$
Nothing happens until I send that EOF. I'm pretty sure it's not SSH
that's buffering because when I try:
$
On Feb 11, 9:10 pm, Gabriel Genellina [EMAIL PROTECTED]
wrote:
En Mon, 11 Feb 2008 21:57:00 -0200, ibloom [EMAIL PROTECTED] escribió:
My main problem is, I don't know where to find the file:
File string, line 628
As in I don't know what code it is refering to by string ??
It isn't
On Feb 12, 7:31 pm, Jeff Schwab [EMAIL PROTECTED] wrote:
Steven D'Aprano wrote:
On Tue, 12 Feb 2008 10:05:59 -0800, castironpi wrote:
What is dream hardware for the Python interpreter?
I'm not sure that the Python interpreter actually does dream, but if it's
anything like me, it's
Steven D'Aprano wrote:
Double-underscore names and methods are special to Python. Developers are
prohibited from creating their own (although the language doesn't enforce
that prohibition). From PEP 0008, written by Guido himself:
__double_leading_and_trailing_underscore__: magic
greg wrote:
Carl Banks wrote:
In C you can use the mmap call to request a specific physical location
in memory (whence I presume two different processes can mmap anonymous
memory block in the same location)
Um, no, it lets you specify the *virtual* address in the process's
address space at
On Feb 11, 11:52 pm, Michael Robertson [EMAIL PROTECTED]
wrote:
Where is the python equivalent of:
http://search.cpan.org/~fxn/Algorithm-Combinatorics-0.16/Combinatoric...
combinations (with and without repetition)
variations (with and without repetition)
permutations
partitions
ibloom wrote:
Of course I didn't understand that py2app was trying to compile my own
python source code and when I switched to Xcode as my new editor, I
started mixing in tabs. So string was in fact my code.
Seems like py2app could be a bit friendlier about reporting
syntax errors in the code
Carl Banks wrote:
In C you can use the mmap call to request a specific physical location
in memory (whence I presume two different processes can mmap anonymous
memory block in the same location)
Um, no, it lets you specify the *virtual* address in the process's
address space at which the
Oh, I know what you mean.
But that was exactly the reason for having a .DLLs folder, isn't it?
When you place an assembly into this folder, you avoid having to write
this boilerplate code, and simply import the assembly as you would
with a normal python module. At least, that´s how it worked
On Feb 12, 12:10 pm, [EMAIL PROTECTED] wrote:
On Feb 12, 12:05 pm, Gabriel Genellina [EMAIL PROTECTED]
wrote:
En Tue, 12 Feb 2008 15:20:32 -0200, [EMAIL PROTECTED] escribi�:
I assert it's easier to write:
start_new_thread( this_func )
def thrA():
normal_suite()
than
That does the trick. Thanks, Bruno.
On Feb 12, 1:23 am, Bruno Desthuilliers bruno.
[EMAIL PROTECTED] wrote:
Cruxic a écrit :
Is it possible to tack on arbitrary attributes to a python object?
Depends on the object's class. In the common case it's possible but
there are a couple cases -
George Sakkis [EMAIL PROTECTED] writes:
On Feb 12, 7:02 pm, Ben Finney [EMAIL PROTECTED]
wrote:
That makes it even more a violation of
principle-of-least-astonishment that the '(foo)' form doesn't give
a one-element tuple literal.
The reason being, of course, that in this case '(1+2) *
On Feb 12, 7:02 pm, Ben Finney [EMAIL PROTECTED]
wrote:
Steve Holden [EMAIL PROTECTED] writes:
Ben Finney wrote:
[...]
Note that '()' is syntactically null. Parentheses don't declare a
tuple literal, commas do. Parentheses are for grouping within
expressions, not specifying type.
On Feb 13, 12:31 pm, Jeff Schwab [EMAIL PROTECTED] wrote:
*Oven-roasted* garlic? OK, that's just weird.
Not weird -- delicious! Try doing it like this: Take a whole knob
unpeeled dribble on some olive oil and black pepper and bake in a
medium oven for 10-15 mins. Pull apart into individual
On Feb 12, 4:51 pm, Martin P. Hellwig [EMAIL PROTECTED] wrote:
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
Hello,
I'm looking for a way to get wireless signal strength on Windows XP
with Python. I see there's a library for Linux, but I can't find
anything for windows. However, I see that using WMI I can access it in
theory at least, using a query like select
Ndis80211ReceivedSignalStrength from
On 12 Feb, 10:50, chartsoft [EMAIL PROTECTED] wrote:
I am a teacher and need to set up a computer with a bluetooth dongle
to poll for mobile phones with bluetooth switched on in the area then
send them a jpg file.
I guess you'd use OBEX to send the file, specifically using the push
mode of
If you haven't registered for PyCon yet, now is the time! The
early-bird registration deadline is February 20, one week away. After
that, the price for registration will be going up.
http://us.pycon.org/2008/registration/
The deadline for hotel reservations at the conference rate is also
Steve Holden [EMAIL PROTECTED] writes:
Ben Finney wrote:
[...]
Note that '()' is syntactically null. Parentheses don't declare a
tuple literal, commas do. Parentheses are for grouping within
expressions, not specifying type.
Tell that to the interpreter:
type(())
type 'tuple'
Steven D'Aprano wrote:
So what do folks think? I believe the protocol idiom (look for a method
called __parrot__ and then do something with it) is too useful and
powerful to be ignored, but then if __parrot__ is reserved by Python,
what to do?
The Python core claims all rights for
/me no longer wishes to know about your dreams.
WMM
On Feb 12, 2008 4:56 PM, Steven D'Aprano
[EMAIL PROTECTED] wrote:
On Tue, 12 Feb 2008 10:05:59 -0800, castironpi wrote:
What is dream hardware for the Python interpreter?
I'm not sure that the Python interpreter actually does dream, but
En Tue, 12 Feb 2008 04:23:17 -0200, W. Watson [EMAIL PROTECTED]
escribió:
BTW, what's with the close and exit options on the File menu? They both
dump
me out of IDLE. Odd.
Try File|New
Any idea of whether I can glue the File-?Open to a
particular folder?
Mmm, no. But it remembers the
On Feb 12, 3:42 pm, Bjoern Schliessmann usenet-
[EMAIL PROTECTED] 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
I am using Python 2.5. I wonder how to use MatPy in this version of Python.
Xin
No virus found in this outgoing message.
Checked by AVG Free Edition.
Version: 7.5.516 / Virus Database: 269.20.2/1272 - Release Date: 2/11/2008 5:28
PM
--
http://mail.python.org/mailman/listinfo/python-list
Erik Max Francis wrote:
My point was, and still is, that if this question without further
context is posed to a generally educated laymen, the supposedly wrong
answer that was given is actually _correct_.
Except that they probably don't understand exactly how and
why it's correct. E.g. they
On Feb 12, 2:15 pm, Carl Banks [EMAIL PROTECTED] wrote:
On Feb 12, 1:05 pm, [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
A 10 GHz single core.
(Dual core if doing lots of I/O.)
Carl Banks
Handle a dual 6GHz core. Code sometimes happens in order. Other
Sun [EMAIL PROTECTED] writes:
I was wondering why can't I use a format as var = {} to var=list() in
set variable, and decided not to bother with it.
In 3.0 you may be able to say {,} but there is a contingent that would
just as soon get rid of all that special syntax, so you'd say list()
En Tue, 12 Feb 2008 12:04:43 -0200, Sun [EMAIL PROTECTED] escribió:
Chris [EMAIL PROTECTED] wrote
test = set()
test
set([])
yeah, that 's what I am looking for, thanks all for such prompt answers!
I was wondering why can't I use a format as var = {} to var=list()
in
set variable, and
May I ask why?
Of course! I have to find that string into a list of strings. This
list includes one, using raquo;
Thanks! :)
--
http://mail.python.org/mailman/listinfo/python-list
Thanks. That did the trick.
Mike Driscoll wrote:
On Feb 12, 2:18 pm, W. Watson [EMAIL PROTECTED] wrote:
After simply trying to write a program with help(MakeQTE), a module, and
having it fail with socket errors, I decided to restart IDLE, thinking I
...
I sometimes get this message when one
En Tue, 12 Feb 2008 18:18:20 -0200, W. Watson [EMAIL PROTECTED]
escribió:
After simply trying to write a program with help(MakeQTE), a module, and
having it fail with socket errors, I decided to restart IDLE, thinking I
knew the cause. I'm now getting msgs like: IDLE's subprocess didn't make
On 12/02/2008, Erik Max Francis [EMAIL PROTECTED] wrote:
Dennis Lee Bieber wrote:
On Tue, 12 Feb 2008 00:18:38 -0800, Erik Max Francis [EMAIL PROTECTED]
declaimed the following in comp.lang.python:
equivalence for everyday usage and make no requirement of using the
proper units
And the big functions:
I imagine that the following is HORRIBLE in the pythonic-vision and
surely can be rewriten with a single map+reduce+filter + 200 lambdas
functions X-D, but I come from C and any advice on how to implement my
simple scripting language without using lex or yacc is welcome
string = u'Macworld » Jobs 1 - Twitter 0'
None of them gives me 'Macworld raquo; Jobs 1 - Twitter 0'
Any idea?
So I assume you *want* it to produce raquo;. May I ask why?
I really recommend that you use #187; instead.
In any case, you need to define your own error handler, such as
the
Before I reinvent the wheel, I'm going to post the code.
Feel free to give any advice, and think that I'm new to python, it's
only 1 month since I began programming in python seriously (up to
that moment, I wrote just a few log-text parsing system administration
scripts to speed up some old
Santiago Romero wrote:
Hi...
I'm trying to guess how to access attributes of an existing object
given the attribute name in a string. I mean:
class Object:
self.x = 12
self.y = 20
self.name = blah
def ChangeAttribute( object, attribute, value ):
# Insert here the code
Well, you don't need to worry about code, you can just copy paste the
code of the hit counters available for free.
In my blog, http://love-python.blogspot.com/ I am using two type of
hit counters (both are free). You can try them. They generate code
that you just paste in the source code of your
On Feb 12, 10:25 pm, Santiago Romero [EMAIL PROTECTED] wrote:
Hi...
I'm trying to guess how to access attributes of an existing object
given the attribute name in a string. I mean:
class Object:
self.x = 12
self.y = 20
self.name = blah
def ChangeAttribute( object,
On Feb 12, 1:05 pm, [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
A 10 GHz single core.
(Dual core if doing lots of I/O.)
Carl Banks
--
http://mail.python.org/mailman/listinfo/python-list
On Feb 12, 1:52 am, Michael Robertson [EMAIL PROTECTED] wrote:
Where is the python equivalent of:
http://search.cpan.org/~fxn/Algorithm-Combinatorics-0.16/Combinatoric...
combinations (with and without repetition)
variations (with and without repetition)
permutations
partitions
On Feb 12, 9:38 pm, Dennis Kempin [EMAIL PROTECTED] wrote:
Hello,
I have a set of some objects. With these objects I want to call a Python
method. But the writer of the method shall have the option to select
from these objects as method parameter.
At the moment i use the following way to
Fuzzyman:
Another interesting little benchmark of CPython and IronPython. Can't
see the code, but it looks like an implementation of the 11 queens
problem and IronPython comes out a clear winner on this one. (Looks
like no benchmark for psyco.)
If you want a more reliable set of benchmarks,
On Feb 12, 1:03 pm, Tim Chase [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
The only dream hardware I know of is the human brain. I have a
slightly used one myself, and it's a pretty mediocre Python interpreter.
the human brain may be a pretty mediocre
On Feb 5, 5:31 pm, dmitrey [EMAIL PROTECTED] wrote:
Hi all,
the urlhttp://torquedev.blogspot.com/2008/02/changes-in-air.html
(blog of a game developers)
saysIronPythonis faster than CPython in 1.6 times.
Is it really true?
If yes, what areIronPythondrawbacks vs CPython?
And is it possible
On Feb 9, 3:04 pm, [EMAIL PROTECTED] wrote:
On Feb 9, 1:48 pm, [EMAIL PROTECTED] wrote:
To write quick C things that Python won't do up to speed. So it's got
a redundancy.
import ext
extA= ext.Ext()
extA[ 'enumfactors' ]= r
int enumfactors( int a, const char* sep ) {
On Feb 12, 12:31 pm, Jeff Schwab [EMAIL PROTECTED] wrote:
On Feb 12, 2008 1:05 PM, [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
Warren Myers wrote:
A Cray?
What are you trying to do? dream hardware is a very wide question.
The only dream hardware I
Gabriel Genellina wrote:
En Tue, 12 Feb 2008 16:20:12 -0200, Jeff Schwab [EMAIL PROTECTED]
escribió:
What about the following? Should the underscores be omitted from the
method names, for consistency with inspect?
I prefer the names_with_underscore, the current style recommended by
En Tue, 12 Feb 2008 16:20:12 -0200, Jeff Schwab [EMAIL PROTECTED]
escribió:
What about the following? Should the underscores be omitted from the
method names, for consistency with inspect?
I prefer the names_with_underscore, the current style recommended by
PEP8
On Feb 12, 2008 1:05 PM, [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
Warren Myers wrote:
A Cray?
What are you trying to do? dream hardware is a very wide question.
The only dream hardware I know of is the human brain. I have a
slightly used one myself,
Peter Otten wrote:
Roland Hedberg wrote:
I'm in the position that I have a bunch of classes defined before hand
and then in some special circumstances I need to dynamically create a
class that has a number of the static classes as parents.
So I thought I could use classobj() from the new
On Feb 12, 9:30 pm, Ben Finney [EMAIL PROTECTED]
wrote:
George Sakkis [EMAIL PROTECTED] writes:
On Feb 12, 7:02 pm, Ben Finney [EMAIL PROTECTED]
wrote:
That makes it even more a violation of
principle-of-least-astonishment that the '(foo)' form doesn't give
a one-element tuple
A Cray?
What are you trying to do? dream hardware is a very wide question.
WMM
On Feb 12, 2008 1:05 PM, [EMAIL PROTECTED] wrote:
What is dream hardware for the Python interpreter?
--
http://mail.python.org/mailman/listinfo/python-list
--
http://warrenmyers.com
God may not play dice
I am starting pdb.pm() in an embedded, multithreaded python PyCrust
shell (wx toolkit) -- but other than that it's COMPLETELY
vanilla :-)) and pdb is getting stuck in an infinite loop, sucking
down all CPU. I never get the pdb prompt. Anyone have any experience
with this? I'm pretty new at
What is dream hardware for the Python interpreter?
--
http://mail.python.org/mailman/listinfo/python-list
En Tue, 12 Feb 2008 15:20:32 -0200, [EMAIL PROTECTED] escribi�:
I assert it's easier to write:
start_new_thread( this_func )
def thrA():
normal_suite()
than
def thrA():
normal_suite()
start_new_thread( thrA )
If you don't, stop reading. If you do, accomplish it like this:
Bill Davy wrote:
[...]
What a lovely langauge.
+1 QOTW
--
Steve Holden+1 571 484 6266 +1 800 494 3119
Holden Web LLC http://www.holdenweb.com/
--
http://mail.python.org/mailman/listinfo/python-list
On 2008-02-12, Paul Rubin wrote:
Paul Hankin [EMAIL PROTECTED] writes:
def genDescendants(self):
return chain([self], *[child.genDescendants()
for child in self.children])
That is scary. It generates an in-memory list the size of the
whole subtree, at every level. Total
Hi, right now I'm using Python and Multicast. I have the code for
Multicast receiver on Python but I keep getting this error;
File string, line 1, in bind
error: (10049, Can't assign requested address)
The error is coming from this line;
sock.bind ((MCAST_ADDR, MCAST_PORT))
This is the code
1 - 100 of 203 matches
Mail list logo