At 01:39 PM 6/26/2011, Shashank Singh wrote:
On Sun, Jun 26, 2011 at 11:58 PM, Marc Aymerich wrote:
> Hi,
> I'm trying to define a function that has an optional parameter which
> should be an empty list whenever it isn't given. However, it takes as
> value the same value as the last time the fun
There is also
print(match_obj.string)
which gives you a copy of the string searched. See end of section
6.2.5. Match Objects
At 02:58 PM 6/23/2011, John Salerno wrote:
After I've run the re.search function on a string and no match was
found, how can I access that string? When I try to p
At 02:13 AM 6/17/2011, David Aldrich wrote:
Hi
I am building a 32-bit C++ application using Visual C++ Express 2008
on 64-bit Windows 7. The application links to Python, so I
installed 32-bit Python 2.7.2 by running python-2.7.2.msi.
When I run my app, I get error:
... python27.dll is miss
At 08:33 PM 3/22/2011, monkeys paw wrote:
When i open a file in python, and then print the
contents line by line, the printout has an extra blank
line between each printed line (shown below):
>>> f=open('authors.py')
>>> i=0
>>> for line in f:
print(line)
i=i+1
if i > 14:
At 07:46 PM 3/20/2011, Ken D'Ambrosio wrote:
Hey, all -- I know how to match and return stuff from a regex, but I'd
like to do an if, something like (from Perl, sorry):
if (/MatchTextHere/){DoSomething();}
How do I accomplish this in Python?
You say you've done matching and accessing stuff fr
At 11:39 PM 3/18/2011, Manatee wrote:
I hope this is the place to post this question. I am a really new
pythonista. I am studying Tkinter and when I run this basic code, I
get a syntax error on line 20, print "hi there, everyone". Its a
simple print line, but I can't see the problem. I am using
At 10:03 AM 3/8/2011, Tim Golden wrote:
On 08/03/2011 15:58, Tim Golden wrote:
On 08/03/2011 14:55, Edward Diener wrote:
I have multiple versions of Python installed under Vista. Is there any
easy way of switching between them so that invoking python and file
associations for Python extensions
At 08:12 PM 2/27/2011, you wrote:
On 28/02/2011 01:31, Laurent Duchesne wrote:
Hi,
I'm using python 3.2 and got the following error:
nntpClient = nntplib.NNTP_SSL(...)
nntpClient.group("alt.binaries.cd.lossless")
nntpClient.over((534157,534157))
... 'subject': 'Myl\udce8ne Farmer - Anamorpho
At 01:18 PM 2/13/2011, rantingrick wrote:
If any tutorial owners refuse to cooperate we need to remove their
tutorials (and/or links to their tutorials) from the official Python
website forever.
How many tutorials have you written?
In a city I used to live in, a long while ago, ...
You would
At 09:39 PM 2/9/2011, Rob Warnock wrote:
Harald Hanche-Olsen wrote:
[snip]
Years & years ago, right after I learned about "xargs", I got burned
several times on "find | xargs grep pat" when the file list was long
enough that "xargs" fired up more than one "grep"... and the last
invocation was
At 05:33 PM 2/3/2011, Westley MartÃnez wrote:
On Thu, 2011-02-03 at 23:11 +, Steven D'Aprano wrote:
On Thu, 03 Feb 2011 07:58:55 -0800, Ethan Furman wrote:
> Steven D'Aprano wrote:
[snip]
Yes. Is there a problem? All those paths should be usable from Windows.
If you find it ugly to see path
At 08:17 PM 1/26/2011, Chris wrote:
I have a class (A, for instance) that possesses a boolean (A.b, for
instance) that is liable to change over an instance's lifetime.
Many of the methods of this class (A.foo, for instance) should not
execute as long as this boolean is false, but should instead
At 10:39 PM 1/24/2011, Jason Swails wrote:
[snip]
Two valuable things I have taken away from this extended
argument: 1) This being my first super-high volume mailing list
with the occasional neurotically opinionated poster, MRAB introduced
me to Godwin's law for the first time. Considering it
At 02:52 PM 1/9/2011, Stefan Sonnenberg-Carstens wrote:
Am 09.01.2011 21:43, schrieb Thomas L. Shinnick:
Having (possibly) surveyed all the available pypi config file
modules, I still haven't seen one that allows an obvious and
familiar extension of the strict Windows INI format.
Eac
At 02:47 PM 1/9/2011, Corey Richardson wrote:
On 01/09/2011 03:43 PM, Thomas L. Shinnick wrote:
> Having (possibly) surveyed all the available pypi config file modules, I
> still haven't seen one that allows an obvious and familiar extension of
> the strict Windows INI format.
>
Having (possibly) surveyed all the available pypi config file
modules, I still haven't seen one that allows an obvious and familiar
extension of the strict Windows INI format.
Each INI-style config module seems to enforce the strict rule: each
option in a section must have a different name - n
At 03:46 PM 12/30/2010, harijay wrote:
Hi,
I am writing some multithreaded code which aims to automate three
sequential data processing applications and distribute the processing
on my 16GB RAM, 64 bit Ubuntu box running Python 2.6.5
The basic class that orchestrates these jobs use Queue.Queue()
17 matches
Mail list logo