Hello All,
I still shaking out my last few bugs in my tile matching game:
I am now down to one stumper for me:
1) when I initialize wxPython
2) from an exe that I have created with py2exe
3) when the executable is located on the desktop as opposed to
somewhere on C or D directly
4) when My
srry I needed some sleep.
it works oke.
But if you want to answer a question.
I use this code:
--
import StringIO
import re
import urllib2,htmllib, formatter
class mvbHTMLParser(htmllib.HTMLParser):
def __init__(self, formatter,
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] wrote:
I had a look at the new reference implementation of PEP 246
(Object Adaptation) and I feel uneasy with one specific point
of this new version. I don't fully understand why it checks
if *the type of* the protocol has a method __adapt__:
[EMAIL PROTECTED] wrote:
class mvbHTMLParser(htmllib.HTMLParser):
def __init__(self, formatter, verbose=0):
htmllib.HTMLParser.__init__(self,formatter,verbose)
def anchor_end(self):
self.anchor = None
[...]
then the output is:
text_text
a_link[1]
that's
Hi !
I'd like to init curses and still have working Python interactive
command line. I found that you can replace stdin/stdout/stderr
like this:
#!/usr/bin/python -i
import curses
import sys
import atexit
# this doesn't help, anyway
#del sys.modules['readline']
# global variable (curses
Peter wrote:
I released a new version of the Windows installer for Python 2.3 that
includes the missing _TTSFast.pyd file.
Unfortunenately, the file TTSFast.py is missing, not _TTSFast.pyd.
Hans Georg
--
http://mail.python.org/mailman/listinfo/python-list
Dear NG,
I'm looking for a fast way to produce 2d-noise images with 1/f or 1/f^2
spectrum. I currently generate the noise via inverse FFT, but since I
need lots of data (~10^7 for a monte carlo simulation) it needs to be
really fast. Does someone know a faster way than my approach?
-
Gary Nutbeam wrote:
I count zpt as xml because page templates can operate in html or xml mode.
I can understand this, but from a practical POV, ZPT are mainly (x)html
templates. A valid (x)html page is a valid ZPT too. This has nothing in
common with the hundreds of complicated XML conf files
Peter Hansen wrote:
Unfortunately, Google makes it hard to search for such things,
but after a while I was able to dig up this master reference:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddoc
s/en-us/percent.mspx
You will find even more information if you try 'set
Heiko Wundram wrote:
Am Dienstag, 1. März 2005 21:54 schrieb Chris:
Is there a preferred method for having different scripts on different
computers communicate with each other?
snip
You have several options at your disposal.
6) do something else which doesn't come to my mind just now. ;)
The main
Hi,
I have a strange problem.
I´m developing a small python-program wiht the mysql-python-module.
The program should run on a server without any mysql-installation.
Is there any posibility to kompile a python with static libaries?
thanx
Daniel
--
hello,
I wrote a small tute for my brother to teach him python + glade,
plz see, and suggest to make it more professional ,
In tute I discussed on Glade + Python for developing Applications too
rapidly as ppls used to work on win32 platform with VB.
Hello Folks,
I recently started working on a graph-algorithms library in Python. What
makes this one different from the other couple of libs that are
available is a heavy influence from the C++ Boost Graph Library. There
are IMO a lot of good ideas there, so I am attempting to translate the
What do i need to add to the path? I have already tried the same with
the PYTHONPATH variable.
Thanks in advance,
-Eduardo
[otto:eduardo/ 501]$ python
Python 2.3.5 (#2, Feb 9 2005, 00:38:15)
[GCC 3.3.5 (Debian 1:3.3.5-8)] on linux2
Type help, copyright, credits or license for more information.
Good call. I was just trying to be generic in my quickly put-together
example. It's been a while since I've used Python so these things I
easily forget :)
'object' here would be more aptly named 'MyObject'.
--
http://mail.python.org/mailman/listinfo/python-list
Erik Bethke wrote:
Hello All,
I still shaking out my last few bugs in my tile matching game:
I am now down to one stumper for me:
1) when I initialize wxPython
2) from an exe that I have created with py2exe
3) when the executable is located on the desktop as opposed to
somewhere on C
nice start!
screenshots would improve it a lot
greetz,
Dimitri
On 4 Mar 2005 03:31:34 -0800, somesh [EMAIL PROTECTED] wrote:
hello,
I wrote a small tute for my brother to teach him python + glade,
plz see, and suggest to make it more professional ,
In tute I discussed on Glade + Python for
Greetings, fellow Pythonistas!
I'm about to create three modules. As an avid TDD fan I'd like to create
typical 'use-cases' for each of these modules. One of them is rather large,
and I wondered if it would be easy enough to create a code skeleton out of
unit test module.
Consider the
somesh wrote:
hello,
I wrote a small tute for my brother to teach him python + glade,
plz see, and suggest to make it more professional ,
In tute I discussed on Glade + Python for developing Applications too
rapidly as ppls used to work on win32 platform with VB.
Edvard Majakari schrieb:
Greetings, fellow Pythonistas!
I'm about to create three modules. As an avid TDD fan I'd like to create
typical 'use-cases' for each of these modules. One of them is rather large,
and I wondered if it would be easy enough to create a code skeleton out of
unit test module.
John Leslie wrote:
Or does anyone have a python script which takes a standard unix
command as an argument and runs the pyton/windows equivalent on
windows?
This would seem to be a request of overkill of the worst kind, given the
existing availability of tools like Cygwin (www.cygwin.com) and,
Dear NG,
I'm looking for a fast way to produce 2d-noise images with 1/f or 1/f^2
spectrum. I currently generate the noise via inverse FFT, but since I
need lots of data (~10^7 for a monte carlo simulation) it needs to be
really fast. Does someone know a faster way than my approach?
-
Hello everybody,
i wonder how the win32 COM extension handles different C-int types
(short, int, long). Another question for me is weather the
out-direction of parameter is supported out of the box ?
To clarify look at the methode FunWithTwoInts
John Leslie wrote:
Or does anyone have a python script which takes a standard unix
command as an argument and runs the pyton/windows equivalent on
windows?
There's not always an equivalent command.
-pu
--
http://mail.python.org/mailman/listinfo/python-list
I think that the best approach I saw to this was in the Eclipse java
ide... You can basically go on the declaration of
self.obj = player.Player('Fred the Adventurer')
press Ctrl+1 and it adds a suggestion to create the class Player.
Then go to
assert self.obj.name == 'Fred the Adventurer'
press
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 2005-03-04, somesh [EMAIL PROTECTED] wrote:
hello,
I wrote a small tute for my brother to teach him python + glade,
plz see, and suggest to make it more professional ,
In tute I discussed on Glade + Python for developing Applications too
hello,
I would certainly want to collaborate on writing Python tutorial for
kids (I've got a small kids myself (7, 5, 3)). I already wrote some
tutorials that make heavy use of screenshots (serpia.com) but they are
for big kids like us ;-)
Please contact me, maybe we can work something out. I'd be
Daniel Frickemeier wrote:
Hi,
I have a strange problem.
I´m developing a small python-program wiht the mysql-python-module.
The program should run on a server without any mysql-installation.
Is there any posibility to kompile a python with static libaries?
MySQL distributions (at least
hi...
i currently have a rh8.0 server that is a little messed up!! i need to know
what's the best/right process to upgrade to the latest python/mod_python,
and any associated libs
i need to make sure that i don't break the gnome/httpd, or any other python
dependent app...
currently i have
On 2005-03-04, Patrick Useldinger [EMAIL PROTECTED] wrote:
John Leslie wrote:
Or does anyone have a python script which takes a standard unix
command as an argument and runs the pyton/windows equivalent on
windows?
There's not always an equivalent command.
If you install cygwin there
Hi
Using Python 2.4 I am trying to procduce a generator which will return
the results of dbi SQL statement using fetchmany for performance.
So instead of fetching one record for each call, I will fetch batches
of X (eg 100) and yeild each record in turn.
For reasons of pure asthetics and my own
Steve Holden wrote:
There's always a way:
def test():
... print hello
...
var = test
eval(%s() % var)
hello
I'd go with locals() for the simple case of a name lookup:
Py def test():
... print Hi there!
...
Py var = test
Py locals()[var]()
Hi there!
Cheers,
Nick.
--
Nick Coghlan |
Not to make light of your tutorial but it can use some editing (the
English grammar and spelling is below par). I understand that most
likely English is not your first language. Given that, I think you did
a great job. If you like, email me back and I'll be glad to help out
with that, but I can
Eric, your tagline doesn't parse correctly on my Python 2.4 shell.
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
I did a small benchmark of matrix-vector multiply operation using
Numeric module. I'm a bit suprised to find matrix*col-vector is much
faster than row-vector*matrix. I wonder whether other people have
observed this fact too, and why?
Below is the code I used, with output from my machine.
Grant Edwards wrote:
On 2005-03-04, Patrick Useldinger [EMAIL PROTECTED] wrote:
John Leslie wrote:
Or does anyone have a python script which takes a standard unix
command as an argument and runs the pyton/windows equivalent on
windows?
There's not always an equivalent command.
If you install
#! rnews 2494
Newsgroups: comp.lang.python
Path:
news.xs4all.nl!newsspool.news.xs4all.nl!transit.news.xs4all.nl!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wns13feed!worldnet.att.net!12.120.4.37!attcg2!ip.att.net!xyzzy!nntp
From: Jeff Sandys [EMAIL PROTECTED]
Subject: Re: Delete first line
ChaosKCW wrote:
For reasons of pure asthetics and my own learning I wanted it to look
like this:
/B
def resultsetbatchgen(cursor, size=100):
for results in (recordbatch for recordbatch in
cursor.fetchmany(size)):
for rec in results:
yield rec
/B
Note that this is equivalent
Is there a better, more FP style, more Pythonic way to
write this:
def compute_vectors(samples, dset):
vectors = {}
for d in dset:
vectors[d] = [sample.get_val(d) for sample in
samples]
return vectors
Namely, I'd like to get rid of the initilization
gf gf wrote:
Is there a better, more FP style, more Pythonic way to
write this:
def compute_vectors(samples, dset):
vectors = {}
for d in dset:
vectors[d] = [sample.get_val(d) for sample in
samples]
return vectors
Namely, I'd like to get rid of the
gf gf wrote:
Is there a better, more FP style, more Pythonic way to
write this:
def compute_vectors(samples, dset):
vectors = {}
for d in dset:
vectors[d] = [sample.get_val(d) for sample in
samples]
return vectors
Namely, I'd like to get rid of the
On Fri, 4 Mar 2005 08:36:49 -0800 (PST), gf gf
[EMAIL PROTECTED] wrote:
Is there a better, more FP style, more Pythonic way to
write this:
def compute_vectors(samples, dset):
vectors = {}
for d in dset:
vectors[d] = [sample.get_val(d) for sample in
samples]
Hi
Thanks this was very helpfull.
Your final solution seems like the best (most elegant). I was trying to
avoid the ugly while loops with breaks and this final one certainly
does that.
Thanks for your help .
--
http://mail.python.org/mailman/listinfo/python-list
Grant Edwards wrote:
If you install cygwin there almost always is.
If you install cygwin there's no need for what the OP describes.
-pu
--
http://mail.python.org/mailman/listinfo/python-list
I suggest using minidom or pxdom [1] rather than 4DOM. If you insist
on using 4DOM, xml.dom.ext.Print(node) or xml.dom.ext.PrettyPrint(node)
does what you want.
--Uche
--
http://mail.python.org/mailman/listinfo/python-list
I suggest using minidom or pxdom [1] rather than 4DOM. If you insist
on using 4DOM, xml.dom.ext.Print(node) or xml.dom.ext.PrettyPrint(node)
does what you want.
[1] http://www.doxdesk.com/software/py/pxdom.html
--Uche
--
http://mail.python.org/mailman/listinfo/python-list
Steve Holden wrote:
return dict([(d, sample.getval(d)) for d in dset for sample in samples])
That won't do what the original code does. This sets dict[d] to
samples[-1].getval(d) instead of [sample.getval(d) for sample in samples].
--
Michael Hoffman
--
Michael Hoffman wrote:
Steve Holden wrote:
return dict([(d, sample.getval(d)) for d in dset for sample in samples])
That won't do what the original code does. This sets dict[d] to
samples[-1].getval(d) instead of [sample.getval(d) for sample in samples].
My bad, I didn;t look closely enbough to
Yes; it seems that the advance post by effbot messed up the
archiving.
If you get
http://mail.python.org/pipermail/python-dev/2005-February.txt (without
the .gz suffix), you'll get the whole archive.
--
http://mail.python.org/mailman/listinfo/python-list
So I went digging through the documentation more and found the following:
http://docs.python.org/ref/types.html
There's a section titled User-defined methods which covers all the
im_self, im_class attributes and what they are responsible for.
vic
On 25 Feb 2005 10:42:06 -0800, [EMAIL
Peter Otten wrote:
Perhaps your configuration files contain bad data:
# IDLE reads several config files to determine user preferences.
This
# file is the default config file for general idle settings.
...
# On Windows2000 and Windows XP the .idlerc directory is at
# Documents and
Startup company in Fairhope, AL is seeking a strong python programmer
in the Mobile, AL or Eastern Shore, AL area to assist in the
development of legal practice management systems. Candidate must
reside in the area. Position will be initially part time. Must be
proficient with
Steve Holden wrote:
[EMAIL PROTECTED] wrote:
Eric, your tagline doesn't parse correctly on my Python 2.4 shell.
So, are you using Windows?
If you interchange single and double quotes it works on Windows too
python -c print ''.join([chr(154 - ord(c)) for c in
Given some Python source, is there any tool which can tell the mimimum
level of Python required to run that source? If I distribute some code,
I need to be able to say which level of Python users require to run it.
--
Steve Toledo-Brown
Speaking for myself only.
Humans please use domain
you might also want to take a look at
http://unxutils.sourceforge.net/
where are the tools are available in a single zip file.
max
--
http://mail.python.org/mailman/listinfo/python-list
Disclaimer #1: I am a Python newbie, and I appreciate the vast
documentation at python.org -- some of which I expect has the answer to
my question if I can find it.
I am working on a custom computational fluid dynamics code. I will
create one or more compiled Python modules in C/C++ to provide
I do not think there's a direct way of telling it - but you can try to
catch a DeprecationWarning, that is issued by most code deprecated
modules
--
http://mail.python.org/mailman/listinfo/python-list
Thanks, I'll try your solution.
Alex.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
Peter Otten wrote:
Perhaps your configuration files contain bad data:
# IDLE reads several config files to determine user preferences.
This
# file is the default config file for general idle settings.
...
# On Windows2000 and Windows XP the .idlerc directory is at
#
Hello
I have been developing a code that works pretty well on my python 2.3
and now when i am running it on my server where it is programmed to run
it's giving me errors. I have been using __contains__ method and it
fails on python 2.2
For example
(Python 2.3)
x=Hello World
print
Anand S Bisen wrote:
For example
(Python 2.3)
x=Hello World
print x.__contains__(Hello)
True
(Python 2.2)
x=Hello world
print x.__contains__(Hello)
Traceback (most recent call last):
File stdin, line 1, in ?
TypeError: 'in string' requires character as left operand
Is there any woraround
Anand S Bisen wrote:
Hello
I have been developing a code that works pretty well on my python 2.3
and now when i am running it on my server where it is programmed to run
it's giving me errors. I have been using __contains__ method and it
fails on python 2.2
For example
(Python 2.3)
x=Hello
Zhang Le [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hi,
I did a small benchmark of matrix-vector multiply operation using
Numeric module. I'm a bit suprised to find matrix*col-vector is much
faster than row-vector*matrix. I wonder whether other people have
observed this fact
does python support a C-like enum statement where one can define a
variable with prespesified range of values?
thanks
m.smadi
--
http://mail.python.org/mailman/listinfo/python-list
Another reason NOT to use XML-RPC:
PSF-2005-001 - SimpleXMLRPCServer.py allows unrestricted traversal
http://python.org/security/PSF-2005-001/
--
http://mail.python.org/mailman/listinfo/python-list
Alexander Eisenhuth [EMAIL PROTECTED] writes:
Hello everybody,
i wonder how the win32 COM extension handles different C-int types
(short, int, long). Another question for me is weather the
out-direction of parameter is supported out of the box ?
To clarify look at the methode
TerminateProcess doesn't give it a chance to exit normally
and do any cleanup that would happen if it exited itself.
It may not have been able to flush its file buffers, etc.
Does the executable have any way to signal it to exit ?
Roger
[EMAIL PROTECTED] wrote in message
news:[EMAIL
Hello NG,
I was wondering if there is a way to obtain, from a list of floats,
a list of integers without loops. Probably is a basic question, but I can't
find an answer... I have had my eyes blinded by Matlab for years, but now
that I discovered Python+wxPython there seems to be no limit on
On Fri, 4 Mar 2005 22:35:48 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello NG,
I was wondering if there is a way to obtain, from a list of floats,
a list of integers without loops. Probably is a basic question, but I can't
find an answer... I have had my eyes blinded by Matlab
everything I post to this list bounces awaiting moderator
approval, due to suspicious header.
COuld someone tell me what's wrong. I'm on lots of list
with no problem.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED]
I just read in the 'What's New in Python 2.4' document that the None
data type was converted to a constant:
http://python.org/doc/2.4/whatsnew/node15.html
# None is now a constant; code that binds a new value to the name
None is now a syntax error.
So, what's the
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I just read in the 'What's New in Python 2.4' document that the None
data type was converted to a constant:
http://python.org/doc/2.4/whatsnew/node15.html
# None is now a constant; code that binds a new value to the name
This was happening to me for a while but stopped. I think it has to do with
your mail server. Perhaps you could find another. If you are at a company,
you might want to talk to your sysadmin and see if he can change the mail
program. How did you get this latest message through? You know, with
Hello All,
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
Thanks
Dave
__
Celebrate Yahoo!'s 10th Birthday!
Yahoo! Netrospective: 100
Hi everybody
I am searching for a possibility, to find out, what the index for a
certain lettyer in a string is.
My example:
for x in text:
if x == ' ':
list = text[: # There I need the index of the space the
program found during the loop...
Is there and possibility to find the
Hi:
PrettyPrint or Print return the value to the console, and i need keep this
value in a string variable to work with it, how can i do this?
thanks to Uche
Frank Abel
-Original Message-
From: [EMAIL PROTECTED]
To: python-list@python.org
Date: 4 Mar 2005 09:23:07 -0800
Subject: Re:
Svennglenn wrote:
I have a problem with a program i'm
making in Tkinter.
The code is avaliable at:
http://paste.plone.org/943
When i'm running the program and enters a value and press the
button in the dialog window that comes up when a press the
button Lägg till spelare (add a player in swedish)
Fred wrote:
I am searching for a possibility, to find out, what the index for a
certain lettyer in a string is.
My example:
for x in text:
if x == ' ':
list = text[: # There I need the index of the space the
program found during the loop...
Is there and possibility to find the index
Fred wrote:
Hi everybody
I am searching for a possibility, to find out, what the index for a
certain lettyer in a string is.
My example:
for x in text:
if x == ' ':
list = text[: # There I need the index of the space the
program found during the loop...
Is there and possibility to
[EMAIL PROTECTED] (Svein Brekke) writes:
Has anyone else succeded in using McMillans installer on 2.4?
Thanks for any help.
I have a feeling that it may be related to the fact that the starter
modules (run*.exe) were built with VC6, which matches with Python
builds up to 2.3, but not 2.4
Warren Postma wrote:
[EMAIL PROTECTED] wrote:
I just read in the 'What's New in Python 2.4' document that the None
data type was converted to a constant:
http://python.org/doc/2.4/whatsnew/node15.html
Implication: A long standing wart in Python now gone. Its time to
gloat. Are there any really
Use the index method, e.g.: text.index(' ').
What exactly do you want to do?
That was exactely what I was searching for. I needed a program, that
chopped up a string into its words and then saves them into a list. I
think I got this done...
Thanks for the help
--
In article [EMAIL PROTECTED],
[EMAIL PROTECTED] [EMAIL PROTECTED] wrote:
I just read in the 'What's New in Python 2.4' document that the None
data type was converted to a constant:
http://python.org/doc/2.4/whatsnew/node15.html
# None is now a constant; code that binds a new value to the
Guy Robinson [EMAIL PROTECTED] writes:
Can anyone confirm if there is a python library that can allow me to
create .NET clients in python.
My understanding is both IronPython and python for .NET can't create
python .net clients?
IIUC, IronPython can, but it's not ready for production work
Dave Zhu [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Hello All,
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
Thanks
Dave
After a little googling, that's what I found:
You can use the textvariable option for the Entry widget. Set a bind event
for this widget that when any key pressed the StringVar() will be polled via
StringVar().get(). You do some checking for certain chars you don't want
entered and then delete them as they occur.
Harlin
phil [EMAIL
On 4 Mar 2005 10:18:08 GMT, Duncan Booth
[EMAIL PROTECTED] wrote:
You will find even more information if you try 'set /?' or 'for /?' at a
command prompt. As you say, you can now do quite complicated scripting in
command files but it needs masochism second only to Perl programming.
And using
I think the bottom line on this is using your own sense of risk/reward with
each given module imported. Some modules (Tkinter comes to mind) it makes
sense to pollute while others it doesn't.
Harlin
Peter Hansen [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
Peter Mayne wrote:
Not completely sure I understand (my C is weak).
But you can do:
x=range(9)
x's contents will be
[0,1,2,3,4,5,6,7,8]
or
x=range(12,25)
x's conetnst will be
[12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24]
if you mean a way to limit x's contents to a predefined
list of values, you need to
On Fri, 4 Mar 2005 14:14:05 -0800 (PST), Dave Zhu
[EMAIL PROTECTED] wrote:
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
There are several such comparisons on the web but most will
naturally
Gary Nutbeam [EMAIL PROTECTED] writes:
D H wrote:
[...]
Check out Castle on Rails for .NET/Mono. It is still in early
development, but you can use it with C#, VB, or boo, and I'm sure
eventually with IronPython as well.
Thanks for the feedback. I should have been more specific though
JanC [EMAIL PROTECTED] writes:
Artificial Life schreef:
urllib2 does not seem to be able to handle META-REFRESH in an html
document. I just get back the html to the page that is supposed to
forward me to the intended page. Any way around this?
Have a look at the HTTPRefreshProcessor
Bill Mill [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
On Fri, 4 Mar 2005 22:35:48 +0100, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:
Hello NG,
I was wondering if there is a way to obtain, from a list of floats,
a list of integers without loops. Probably is a basic
Another math problem easier to solve by hand, but, IMHO, difficult to
program in a concise way like the solution of Bill Mill
(linalg_brute.py) to the problem of engsol.
I appreciated very much the Bill Mill's solution and that inspired in
a certain way the solution for my problem.
# Problem and
Mathias wrote:
Dear NG,
I'm looking for a fast way to produce 2d-noise images with 1/f or 1/f^2
spectrum. I currently generate the noise via inverse FFT, but since I
need lots of data (~10^7 for a monte carlo simulation) it needs to be
really fast. Does someone know a faster way than my
If I have:
a = (1,2,3)
how do I ended up with:
res=[(1), (2), (3), (4), (5)]
without doing:
res=[(a[0]), (a[1]), (a[2]), (4), (5)]
???
ps: This is just a nobrainer example of what my real code is trying to do.
a might have many many elements. That's why the explicit indexing
[EMAIL PROTECTED] wrote:
I just read in the 'What's New in Python 2.4' document that the None
data type was converted to a constant:
http://python.org/doc/2.4/whatsnew/node15.html
# None is now a constant; code that binds a new value to the name
None is now a syntax error.
So, what's
It's me wrote:
If I have:
a = (1,2,3)
how do I ended up with:
res=[(1), (2), (3), (4), (5)]
without doing:
res=[(a[0]), (a[1]), (a[2]), (4), (5)]
If by (x) you really mean a tuple with 1 element i.e. (x,) then you
need something like this:
a = (1, 2, 3)
b = [(4,),
Duncan Booth wrote:
Peter Hansen wrote:
Unfortunately, Google makes it hard to search for such things,
but after a while I was able to dig up this master reference:
http://www.microsoft.com/resources/documentation/windows/xp/all/proddoc
s/en-us/percent.mspx
You will find even more information if
Dave Zhu wrote:
Hello All,
Is there any survey on scripting languages? I would
like to get information on several scripting languages
including Python, Perl, Ruby, Tcl, etc.
What kind of information? ...
--
http://mail.python.org/mailman/listinfo/python-list
1 - 100 of 123 matches
Mail list logo