<[EMAIL PROTECTED]> wrote:
> I have inheirted some existing code, that i will explain in a moment,
> have needed to extend and ultimately should be able to run in threads.
> I've done a bunch of work with python but very little with threads and
> am looking for some pointers on how to implement, an
"Fredrik Lundh" <[EMAIL PROTECTED]>wrote:
8<---
> 'a man a plan a canal panama' is not a palindrome
>
> ?
not if spaces count -
able was I ere I saw elba - is one - but its a tougher test...
- Hendrik
--
http://mail.python.org/mailman/listinfo/python-list
At Friday 20/10/2006 02:38, [EMAIL PROTECTED] wrote:
it's handy for doing things like validation of parameter and return
types. Like...
@accepts(int,int)
@returns(int)
def add(a,b):
return a+b
So, it's handy for converting Python into another language :)
--
Gabriel Genellina
Softlab SRL
Wow,
That's great, James.
Thanks. I shall put it together.
Appreciate it.
rd
--
http://mail.python.org/mailman/listinfo/python-list
BartlebyScrivener wrote:
> I am a mere hobbyist. Spent several hours trying to make a class,
> because I think this is an occasion where I need one. But I can't make
> it work.
>
> This code "works" (only because of the global c, which I know I'm
> supposed to avoid, by using a Class). I edited th
BartlebyScrivener wrote:
> I am a mere hobbyist. Spent several hours trying to make a class,
> because I think this is an occasion where I need one. But I can't make
> it work.
>
> This code "works" (only because of the global c, which I know I'm
> supposed to avoid, by using a Class). I edited the
Whoah. At least I got the connection. I think. Maybe I can figure more
on my own. Any help appreciated.
Thanks
-
class Connection:
def __init__(self, aDatasource):
self.db = aDatasource
self.conn = odbc.DriverConnect(self.db)
self.conn.cursor()
def random_quo
Announcing: compiler2
-
For all you bytecode enthusiasts: 'compiler2' is an alternative to the
standard
library 'compiler' package, with several advantages.
Improved pure-python compiler
- Produces identical bytecode* to the built-in compile function for all /Lib
and L
[EMAIL PROTECTED] schrieb:
> I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need
> to uninstall python 2.4.3 first ?
>
> I'd rather not to do so, because I have installed some other python
> packages for python2.4.3.
You don't have to uninstall. Installing "on top" will work ju
[EMAIL PROTECTED] wrote:
> I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need
> to uninstall python 2.4.3 first ?
afaik, no.
--
http://mail.python.org/mailman/listinfo/python-list
Christopher Taylor schrieb:
> This basically means to me that Python2.4 is loading gloab.py from
> /usr/lib64/Python2.3 insead of /usr/lib/Python2.4 (even thought I
> wanted to install the related files in /usr/lib64/Python2.4)
>
> Can someome please help!
Can you please report what sys.path is?
>
> there's a page on the py2exe site about tweaks necessary for specific
> modules:
>
> http://www.py2exe.org/index.cgi/WorkingWithVariousPackagesAndModules
>
> look for:
>
> If you're getting File "xml\sax\saxexts.pyc", line 77, in
> make_parser; xml.sax._exceptions.SAXReaderNotAv
Hi,
I just want to upgrade my python version from 2.4.3 to 2.4.4,do I need
to uninstall python 2.4.3 first ?
I'd rather not to do so, because I have installed some other python
packages for python2.4.3.
Thanks.
xiaojf
--
http://mail.python.org/mailman/listinfo/python-list
I am a mere hobbyist. Spent several hours trying to make a class,
because I think this is an occasion where I need one. But I can't make
it work.
This code "works" (only because of the global c, which I know I'm
supposed to avoid, by using a Class). I edited the rest to leave out
the irrelevant fo
Jerry wrote:
> even though I've read the PEP
even the examples section?
http://www.python.org/dev/peps/pep-0318/#examples
if you want more examples, see the cookbook
http://www.google.com/search?q=+site%3Aaspn.activestate.com+decorator+cookbook
--
http://mail.python.org/mailman/listin
[EMAIL PROTECTED] wrote:
> it's handy for doing things like validation of parameter and return
> types. Like...
>
> @accepts(int,int)
> @returns(int)
> def add(a,b):
> return a+b
using Python decorators to turn Python into something that's not Python
doesn't seem very handy to me, though.
Kevin Walzer wrote:
> Coming from Tcl/Tk, where there are a huge number of extension packages
> to enhance the Tk widgets and which allow you to make really polished
> GUI's, I'm struck mainly by how little of this stuff has made it over
> into Tkinter/Python. For instance, I've developed several
it's handy for doing things like validation of parameter and return
types. Like...
@accepts(int,int)
@returns(int)
def add(a,b):
return a+b
On Oct 19, 2:04 pm, "Jerry" <[EMAIL PROTECTED]> wrote:
> I have just started to do some semi-serious programming (not one-off
> specialized scripts) and
Kevin Walzer <[EMAIL PROTECTED]> writes:
> Am I better off biting the bullet and learning wxPython--a different GUI
> paradigm to go with the new language I'm trying to learn? I had hoped to
> reduce my learning curve, but I'm very concerned that I simply can't do
> what I want to do with Tkinter.
On Oct 20, 1:10 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> daniel wrote:
> > well, I'm trying to use ftplib to upload data that received from
> > socket, and the application is required to restart the transfer at a
> > specific interval so as to generate a different target file on the
> > se
Bernard Lebel wrote:
> That's because I'm using Python through another application, via the
> pywin32 extensions. When that other application starts, it performs
> several thousands of file requests (we're talking 4,500, roughly) in
> the Python installation, locations where there are Python files
wxPython is much more powerful and flexible. I would suggest moving
more in that direction.
On Oct 19, 3:29 pm, Kevin Walzer <[EMAIL PROTECTED]> wrote:
> I'm a Tcl/Tk developer who has been working, slowly, at learning Python,
> in part because Python has better support for certain kinds of
> appl
Kirt wrote:
> ---
> When i run this as python setup.py py2exe. I get an main.exe file in
> dist folder. But when i run the file i get an error --
> Traceback (most recent call last):
> File "main.py", line 7, in ?
> Fi
daniel wrote:
> well, I'm trying to use ftplib to upload data that received from
> socket, and the application is required to restart the transfer at a
> specific interval so as to generate a different target file on the
> server to store subsequent data.
> the problem is 'storbinary' accepts on
well, I'm trying to use ftplib to upload data that received from
socket, and the application is required to restart the transfer at a
specific interval so as to generate a different target file on the
server to store subsequent data.
the problem is 'storbinary' accepts only file-like object, I ha
I have a simple scrips that Parses a XML file and prints its element.
1)Main.py
2)Handler.py
3)test.xml
The scripts works fine from comand prompt.
Now i wanted to convert it to an exe. So i wrote a setup.py scripts as
folows:
#-Setup.py--
On Oct 20, 11:24 am, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Friday 20/10/2006 00:08, Johnny wrote:
>
> >doc.Workbooks.Open(excelFile, ReadOnly=True)
>
> >But the problem is when I only pass the filename to the Open()
> >method, and of course the file is in the current directory, it
Brad wrote:
> John Salerno wrote:
> > rick wrote:
> >> Why can't Python have a reverse() function/method like Ruby?
> >
> > I'm not steeped enough in daily programming to argue that it isn't
> > necessary, but my question is why do you need to reverse strings? Is it
> > something that happens ofte
At Friday 20/10/2006 00:08, Johnny wrote:
doc.Workbooks.Open(excelFile, ReadOnly=True)
But the problem is when I only pass the filename to the Open()
method, and of course the file is in the current directory, it will
throw an exception that the specified file can't be found. When I use
os.p
At Thursday 19/10/2006 23:19, Bernard Lebel wrote:
I'm affraid this step has already been done. I was not being pedantic
when I said "locations that don't make sense", I *really* meant it.
You would have to see the Filemon log!
Python searches modules along the directories in sys.path - if you
Hi,
As you know, I can use this to open an Excel file:
"""
import win32com.client
doc = win32com.client.Dispatch("Excel.Application")
doc.Workbooks.Open(excelFile, ReadOnly=True)
"""
But the problem is when I only pass the filename to the Open()
method, and of course the file is in the curr
Diez,
I get what that accomplishes now, but I'm having problems in my
implementation. I was able to write a standalone class that worked
correctly. However, in my code the class that I need to exhibit this
functionality inherits from another class. This seems to cause
problems when I attempt to
alex23 wrote:
> Emma wrote:
>
>>5. Please provide us with a comparison of the following music discovery
>>
>>sites:
>>
>>http://www.blogmusik.net
>>http://www.seeqpod.com/music
>>http://www.finetune.com
>>http://www.webjay.com
>>
>>For each of these we like to know:
>>A) What you like and dislike
I'm affraid this step has already been done. I was not being pedantic
when I said "locations that don't make sense", I *really* meant it.
You would have to see the Filemon log!
Anyway, then is there a way to tell Python not to look for pyd/dll and
others in certain locations? In locations were you
Mitko Haralanov <[EMAIL PROTECTED]> writes:
> On Thu, 19 Oct 2006 08:16:57 +0200
> Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> > why are you writing functions that needs to output their own name
> > a 100 times? why should the program's *external* behaviour depend
> > on such an irrelevant detai
John Salerno wrote:
> I apologize for the slightly off-topic nature, but I thought I'd just
> throw this out there for anyone working on text editors or IDEs with
> auto-completion.
>
> I think it should be a feature, when an item is selected for
> auto-completion in a drop-down box, that press
At Thursday 19/10/2006 22:38, Bernard Lebel wrote:
That's because I'm using Python through another application, via the
pywin32 extensions. When that other application starts, it performs
several thousands of file requests (we're talking 4,500, roughly) in
the Python installation, locations wher
Hi,
That's because I'm using Python through another application, via the
pywin32 extensions. When that other application starts, it performs
several thousands of file requests (we're talking 4,500, roughly) in
the Python installation, locations where there are Python files, and
in some other locat
At Thursday 19/10/2006 21:07, Brad wrote:
> Gah!!! That's *awful* in so many ways.
It has been my experience that Python has discouraging forums with
someone always calling someone else an idiot or telling them they are
awful in some way. I love Python, but the community is way too negative,
up
On 18 Oct 2006 21:01:36 -0700
"George Sakkis" <[EMAIL PROTECTED]> wrote:
> from inspect import getframeinfo,currentframe
>
> class test(object):
> def a_method(self,this,that):
> print getframeinfo(currentframe())[2]
Thanx for the reply! This about the most useful one I've gotten so
On Thu, 19 Oct 2006 08:16:57 +0200
Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> why are you writing functions that needs to output their own name a
> 100 times? why should the program's *external* behaviour depend on
> such an irrelevant detail of its internal design? sounds like lousy
> design t
Fuzzyman schreef:
> Shame as it is a *very* nice IDE, but it had too many quirks (with
> little chance of them being fixed it seemed) to use it for commercial
> development at Resolver.
I've never head from a company called Resolver. A commercial company
can not assume if it picks up a free proje
Hi Fuzzy,
I think you refer to pyxides (http://pyxides.stani.be). Pyxides turned
out to be more like an exchange between different IDE developpers,
rather than a common project. There are a lot of reasons for that:
different GUI toolkits, geographical distances rendering physical
sprints almost im
Hello,
Is there any add on python modules suitable for finite element 3D mesh
such as to create (beam, plate, etc) ?
Best Regards,
ajikoe
--
http://mail.python.org/mailman/listinfo/python-list
WakeBdr schrieb:
> Diez,
> What does the function._marked accomplish?
Its a decorator that tells the metaclass which functions to provide with
a *XML/*FOO variant as well. I thought that was pretty obvious, given
the name "mark" and all that.
Diez
--
http://mail.python.org/mailman/listinf
Steven D'Aprano wrote:
> Gah!!! That's *awful* in so many ways.
Thanks... I'm used to hearing encouragement like that. After a while you
begin to believe that everything you do will be awful, so why even
bother trying?
It has been my experience that Python has discouraging forums with
someo
Emma wrote:
> 5. Please provide us with a comparison of the following music discovery
>
> sites:
>
> http://www.blogmusik.net
> http://www.seeqpod.com/music
> http://www.finetune.com
> http://www.webjay.com
>
> For each of these we like to know:
> A) What you like and dislike about each of these.
>
Emma wrote:
> Successful candidates meet the following requirements:
> · A burning desire to build rock-solid apps that people will be
> unable
> to live without
I use to have a burning desire to cleverly answer questionnaires for
companies which either don't exist or, if they do, don't tell you
[Please don't top-post your responses.]
"kelin,[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I just can't find a good tool to do Unit Test with Python. Could you
> please tell me any?
Python comes with batteries included.
http://docs.python.org/lib/module-unittest>
--
\ "I went
Steven D'Aprano <[EMAIL PROTECTED]> writes:
> >>> ''.join(list(reversed("some string")))
> 'gnirts emos'
''.join(reversed('some string')) should work, without building the
intermediate list.
I generally don't remember the ::-1 syntax so the above would occur to
me sooner.
--
http://mail.python.o
Laurent Pointal wrote:
> gel a écrit :
> > I would like to write some data recovery software as a learning thing.
> > The sort of thing that you would use to recover data from a currupt HDD
> > or floppy etc. I would like to be pointed in the right direction as
> > far as modules to use and sugges
"kelin,[EMAIL PROTECTED]" <[EMAIL PROTECTED]> writes:
> I just can't find a good tool to do Unit Test with Python. Could you
> please tell me any?
Python comes with batteries included.
--
\ "Two rules to success in life: 1. Don't tell people everything |
`\
On Thu, 19 Oct 2006 12:38:55 -0400, Brad wrote:
> John Salerno wrote:
>> rick wrote:
>>> Why can't Python have a reverse() function/method like Ruby?
>>
>> I'm not steeped enough in daily programming to argue that it isn't
>> necessary, but my question is why do you need to reverse strings? Is i
Gabriel Genellina <[EMAIL PROTECTED]> writes:
> So you almost have to be Tim Berners-Lee to qualify... Who were
> developing "high volume web applications" on 1996?
Amazon.com was founded in 1995 and IPO'd in 1997, but yeah, things
were sparse back then.
--
http://mail.python.org/mailman/listinfo
Diez,
What does the function._marked accomplish?
Diez B. Roggisch wrote:
> WakeBdr schrieb:
> > I'm writing a class that will query a database for some data and return
> > the result to the caller. I need to be able to return the result of
> > the query in several different ways: list, xml,
"Emma" <[EMAIL PROTECTED]> writes:
> Successful candidates meet the following requirements:
Um, who is asking?
--
http://mail.python.org/mailman/listinfo/python-list
At Thursday 19/10/2006 19:06, Emma wrote:
>Successful candidates meet the following requirements:
>· 10+ years experience designing and implementing high volume web
>applications
So you almost have to be Tim Berners-Lee to
qualify... Who were developing "high volume web applications" on 1996?
from pyparsing import Word, printables,ZeroOrMore,cStyleComment
expr = ZeroOrMore(Word(printables))
expr.ignore(cStyleComment)
for line in expr.parseString('#include \n\nint
main()\n{/*interesintg\ncomment*/\nstd::cout << "hello world";\n}'):
print line
outputs
#include
int
main()
{/*interes
Bryan wrote:
> hi,
>
> i have a multithreaded c server that calls process_method in a different
> c thread per each call. process_method calls a python function bar in
> module foo. function bar calls back into c. i've removed all the type
> error handling and simplified the code to hopefull
Successful candidates meet the following requirements:
· A burning desire to build rock-solid apps that people will be
unable
to live without
· Detail-oriented
· Superb written and verbal communication skills
· Self-directed, highly motivated, and eager to make a positive
impact
· 10+ years experie
At Thursday 19/10/2006 18:38, Bernard Lebel wrote:
By default, when I import a module in Python, Python looks for pyd,
dll, py, then pyw and finally pyc file.
In our company we do not use pyd and dll for Python stuff. Is there
any chance to disable Python from looking at these? Perhaps a flag w
Hi,
initially I had the same idea before I started writing a SQL Formatter.
I was sure that coding a few "change" commands in a script would
reformat my SQL statements. But step by step I recognized that SQL
statements can not be formatted by regular expressions. Why not?
Because there is a risk th
Stephen Eilert wrote:
> Hi all,
>
> There has been much hype lately about web "megaframeworks", like
> TurboGears, Django and Rails(Ruby side). Those are all fantastic
> frameworks, nicely integrated so that the user can focus on solving his
> problem, instead of doing all the scaffolding and fram
John Salerno wrote:
> Hi guys. I was wondering if someone could suggest some possible
> structures for an "Education" table in a database. It will contain at
> minimum university names, years of attendance, and degrees earned. My
> problem is that I don't know quite how to set this up for people wh
Gabriel Genellina wrote:
> At Thursday 19/10/2006 17:07, John Salerno wrote:
>
> >Hi guys. I was wondering if someone could suggest some possible
> >structures for an "Education" table in a database. It will contain at
> >minimum university names, years of attendance, and degrees earned. My
> >pro
Hello,
Running Python 2.4.0 on Windows. I have run a series of tests using
Filemon (SysInternals), which logs the file system requests performed
by the computer.
By default, when I import a module in Python, Python looks for pyd,
dll, py, then pyw and finally pyc file.
In our company we do not u
Hi all,
There has been much hype lately about web "megaframeworks", like
TurboGears, Django and Rails(Ruby side). Those are all fantastic
frameworks, nicely integrated so that the user can focus on solving his
problem, instead of doing all the scaffolding and framework integration
by hand.
Now, I
When you want to repeatedly apply a certain ALGORITHM to arbitrary sets
of DATA, you write a FUNCTION.
When you want to add a certain BEHAVIOR to arbitrary sets of FUNCTIONS,
you write a DECORATOR.
An excellent use of decorators is in Django, the web programming
framework. Django keeps track of
Christopher Taylor wrote:
> RHEL comes with Python2.3 installed. A program I need to install
> requires Python2.4
ActivePython has a 2.4 build for Linux/x86_64:
http://www.activestate.com/Products/ActivePython/
Cheers,
Trent
--
Trent Mick
[EMAIL PROTECTED]
--
http://mail.python.org/mailman/l
James> I guess while I'm at it, this thread wouldn't have so much steam
James> were these idioms seemingly unpythonic:
James>"".join(reverse(x))
James>alist[::-1]
James> The latter, while more terse than alist.reversed(), is unnatural
James> and ugly compa
Brian Blais <[EMAIL PROTECTED]> writes:
> I want to set up a system where I can have my family members write
> comments about a number of pictures, as part of a family tree project.
> ...Any suggestions would be greatly appreciated!
How about a wiki?
--
http://mail.python.org/mailman/listinfo/pyt
Neil Cerutti wrote:
> On 2006-10-19, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
>>James Stroud wrote:
>>
>>
>>>without requiring an iterator
>>
>>can we perhaps invent some more arbitrary constraints while
>>we're at it?
>
>
> No letter G. I don't like them. They wet their nests.
>
The requi
John Salerno a écrit :
> Hi guys. I was wondering if someone could suggest some possible
> structures for an "Education" table in a database.
Wrong newsgroup, then. comp.database.* is right next door...
--
http://mail.python.org/mailman/listinfo/python-list
Kevin Walzer wrote:
> I'm a Tcl/Tk developer who has been working, slowly, at learning Python,
> in part because Python has better support for certain kinds of
> applications that I want to develop than Tcl/Tk does. Naturally, I
> thought that I would use Tkinter as the GUI for these programs. Howe
Fredrik Lundh wrote:
> James Stroud wrote:
>
> > without requiring an iterator
>
> can we perhaps invent some more arbitrary constraints while we're at it?
>
>
>
I guess while I'm at it, this thread wouldn't have so much steam were
these idioms seemingly unpythonic:
"".join(reverse(
Both Python 2.4.4 and 2.5 built just fine on my Opteron box with RHEL
(release 3 update 7). There are no test failures, only 35 skipped
tests (which are expected on Linux).
/Jean Brouwers
Christopher Taylor wrote:
> Has anyone been able to get python 2.4 to compile properly for x86_64 RHEL?
>
Thank you both for your help. I don't know why I didn't think of that
before. I had the expect mindset, and was determined to get it working
that way.
I added an entry for sudo for the script and it works without a hitch.
I'm still curious to know what was going on to disallow the
authentication
At Thursday 19/10/2006 17:07, John Salerno wrote:
Hi guys. I was wondering if someone could suggest some possible
structures for an "Education" table in a database. It will contain at
minimum university names, years of attendance, and degrees earned. My
problem is that I don't know quite how to
Hi guys. I was wondering if someone could suggest some possible
structures for an "Education" table in a database. It will contain at
minimum university names, years of attendance, and degrees earned. My
problem is that I don't know quite how to set this up for people who
have attended multiple
That is actually> not an apostrophe, but ASCII char 180: ´It's actually Unicode char #180, not ASCII. ASCII characters are in
0..127 range.Yep, that's what I ment... :D > In the Itunes library it is encoded as: Don%E2%80%99t
Looks like a utf-8 encoded string, then encoded like an url.It is. I just
On 2006-10-19, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
> James Stroud wrote:
>
> > without requiring an iterator
>
> can we perhaps invent some more arbitrary constraints while
> we're at it?
No letter G. I don't like them. They wet their nests.
--
Neil Cerutti
You only get a once-in-a-lifeti
Fredrik Lundh wrote:
> James Stroud wrote:
>
> > without requiring an iterator
>
> can we perhaps invent some more arbitrary constraints while we're at it?
>
>
>
Why does it seem to me that you are confusing convienience with
constraint, or are the two equivalent?
James
--
James Stroud
U
Take a look at the "wxSashWindow" example in the wxPython demo. That
is located under the Core Windows/Controls item.
/Jean Brouwers
MatthewWarren wrote:
> Hi, I'm wondering if anyone can tell me here, or point to a specific
> tutorial ( I have searched for 1/2hour, but can find only referenc
Thanks for all of the help guys. I am still new to Python so this is
part of the learning curve I guess. I will look at the glob module and
see if that will do what I need to better.
On Oct 19, 3:34 pm, Gabriel Genellina <[EMAIL PROTECTED]> wrote:
> At Thursday 19/10/2006 15:43, elake wrote:
>
> >
At Thursday 19/10/2006 15:43, elake wrote:
I have a piece of code that I need some help with. It is supposed (in
my mind at least) take two arguments, a start path and a file
extension. Then when called it should return each of the file paths
that are found matching the criteria. It is only retu
I'm a Tcl/Tk developer who has been working, slowly, at learning Python,
in part because Python has better support for certain kinds of
applications that I want to develop than Tcl/Tk does. Naturally, I
thought that I would use Tkinter as the GUI for these programs. However,
in doing research into
"elake" (if that's supposed to be swedish, that should be "elak") wrote:
> I have a piece of code that I need some help with. It is supposed (in
> my mind at least) take two arguments, a start path and a file
> extension. Then when called it should return each of the file paths
> that are found ma
rick wrote:
>> Well, there you go! Apparently, your wet paper bag has no "detect a
>> palendrome" exit. While you're installing such an egress to your soggy
>> dead-tree satchel, you could also provide similar "write a binary
>
> Glad you guys are enjoying this. We're getting off-topic and I
James Stroud wrote:
> without requiring an iterator
can we perhaps invent some more arbitrary constraints while we're at it?
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] schrieb:
> ISSUE: COM Excel Sort works with Early Binding, but not Late Binding,
> but py2exe only does Late Binding
>
> I have code similar to this (type from notes, so there may be a
> typo...)
>
> import win32com.client
> xl = win32com.client.Dispatch("Excel.Application")
> x
Gabriel Genellina wrote:
> A VNC server is about 400K in size...
Yea, VNC is not an option in my case.
thanks anyway, perhaps I'll look into generating a slideshow using
HTML/javascript which can load the images.
--
http://mail.python.org/mailman/listinfo/python-list
James Stroud wrote:
> Of course, I think str.join can operate on iterators, as Paul Rubin
> suggests:
>
> > print ''.join(reversed(x))
>
> This latter approach still seems a little clunky, though.
>
> James
Slices can be named so you could do...
>>> reverser = slice(None, None, -1)
>>>
>
Paul Boddie wrote:
> James Stroud wrote:
>>(1,2,3).reversed()
>>
>>"123".reversed()
>>
>>[1,2,3].reversed()
>
> I guess Python 2.5 has the reversed method of which you speak.
Not that I could find (as methods of any built in sequence type). 2.5
just has the "reversed" function that returns and i
> I have a piece of code that I need some help with. It is
> supposed (in my mind at least) take two arguments, a start
> path and a file extension. Then when called it should return
> each of the file paths that are found matching the criteria.
> It is only returning the first file that it finds.
Fulvio wrote:
> ***
> Your mail has been scanned by InterScan MSS.
> ***
>
>
> On Wednesday 18 October 2006 15:32, Ron Adam wrote:
>
>> |Instead of using two separate if's, Use an if - elif and be sure to test
>
> Thank you, Ron, for the input :)
> I'll e
I have a piece of code that I need some help with. It is supposed (in
my mind at least) take two arguments, a start path and a file
extension. Then when called it should return each of the file paths
that are found matching the criteria. It is only returning the first
file that it finds. What am I
James Stroud wrote:
>
> It would provide symmetry for reversing any sequence (without requiring
> an iterator).
>
> (1,2,3).reversed()
>
> "123".reversed()
>
> [1,2,3].reversed()
That might infuriate those who regard strings as "mischievous"
sequences (ie. things which cause errors because you thi
J.Clifford Dyer wrote:
>To my mind that would be the exact opposite of shuffling a deck
>of cards. In your case, each time, you know exactly which stack
>the card comes from, but not which card out of the stack. When
>you shuffle cards, it's more like you know exactly which card is
> coming n
On 2006-10-19, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Suggestion: shouldn't an error raise already when I try to
> assign s2?
There's been discussion on pydev about changing this, but for now
I believe a str is a sequence of bytes in Python, rather than a
string of characters. My current p
Announcing
--
The 2.7.1.1 release of wxPython is now available for download at
http://wxpython.org/download.php. This release is the first offical
release in the 2.7.x development series, and includes a lot of new
features, enhancements and fixes. Source and binaries are available
for bo
1 - 100 of 209 matches
Mail list logo