> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Ratko
> Sent: Thursday, July 17, 2008 12:27 PM
> To: [email protected]
> Subject: properly delete item during "for item in..."
>
> Say you have something like this:
>
> for item in myLis
oj wrote:
On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote:
On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote:
On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote:
Hi,
Hi,
I am taking a string as an input from the user and it should only
contain the chars
Andrew Freeman wrote:
oj wrote:
On Jul 18, 12:10 pm, John Machin <[EMAIL PROTECTED]> wrote:
On Jul 18, 9:05 pm, oj <[EMAIL PROTECTED]> wrote:
On Jul 18, 11:33 am, [EMAIL PROTECTED] wrote:
Hi,
Hi,
I am taking a string as an input from the user an
kj wrote:
I just came across an assignment of the form
x, = y
where y is a string (in case it matters).
1. What's the meaning of the comma in the LHS of the assignment?
2. How could I have found this out on my own?
(Regarding (2) above, I consulted the index of several Python
reference boo
>> def match(var):
>>> if re.search(r'^[LRM]*$', var):
... print 'Valid'
... else:
... print 'Invalid'
>>>
>>> eg = 'LRLRLRLRLM'
>>> match(eg)
Valid
>>> fg = 'LRLRLRNL'
>>> match(fg)
Invalid
--
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
John Machin wrote:
On Jul 19, 12:04 pm, Andrew Freeman <[EMAIL PROTECTED]> wrote:
To show if valid:
if re.search(r'^[LRM]*$', 'LM'):
print 'Valid'
A couple of points:
(1) Instead of search(r'^blahblah', ...) use match(r'bla
Andrew Freeman wrote:
John Machin wrote:
A couple of points:
(1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...)
(2) You need to choose your end-anchor correctly; your pattern is
permitting a newline at the end:
I forgot to change search to match. This sh
John Machin wrote:
On Jul 20, 5:00 am, Andrew Freeman <[EMAIL PROTECTED]> wrote:
Andrew Freeman wrote:
John Machin wrote:
A couple of points:
(1) Instead of search(r'^blahblah', ...) use match(r'blahblah', ...)
(2) You need to choose your end-anchor
John Machin wrote:
On Jul 20, 11:14 am, Andrew Freeman <[EMAIL PROTECTED]> wrote:
John Machin wrote:
(4) I highly doubt that this code was actually to be used in an
interactive session,
The offending code is a nonsense wherever it is used.
the False/True outp
9 0
...: """
In [3]:
In [4]: d = t.split("\n")
In [5]: for x in range(1,len(d)-1):
...: a.append(d[x].split(" "))
...:
...:
In [6]: a
Out[6]: [['1', '2'], ['3'], ['4', '5', '6'], ['7', '8', '9', '0']]
In [7]: n = [[int(i) for i in k] for k in a]
In [8]: n
Out[8]: [[1, 2], [3], [4, 5, 6], [7, 8, 9, 0]]
--
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
Samir wrote:
On Jul 21, 6:15 pm, Andrew Freeman <[EMAIL PROTECTED]> wrote:
Samir wrote:
On Jul 21, 3:20 pm, Gary Herron <[EMAIL PROTECTED]> wrote:
Samir wrote:
Hi Everyone,
I am relatively new to Python so please forgive me for what seems l
ery time you use it.
--
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Brett Ritter
> Sent: Thursday, July 24, 2008 9:54 AM
> To: [email protected]
> Subject: New to Python, familiar with Perl - Seeking info sources
>
> After many years happily coding Perl,
How do I determine the order of definition of class attributes?
For example, if I have a class
class Test(object):
y = 11
x = 22
How do I tell that y was defined before x?
Thanks,
-a
--
http://mail.python.org/mailman/listinfo/python-list
Basically, I'd like to use the ctypes module as a much more descriptive
"struct" module.
Is there a way to take a ctypes.Structure-based class and convert it
to/from a binary string?
Thanks,
-a
--
http://mail.python.org/mailman/listinfo/python-list
even i am trying to generate this curve.
are you able to generate this curve using matplotlib, because i was thinking to
write a library for it.
--
Andrew.
>Thanks everyone for your earlier help.
>I have to plot a histogram of values lets say [0.5,0.6,0.8,0.9].I guess the
>histog
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of m
> Sent: Wednesday, August 06, 2008 1:25 PM
> To: [email protected]
> Subject: Monitor and compare two log files in real time
>
> I have a script I would like to write but I am not sure
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Rui Maciel
> Sent: Monday, March 31, 2008 12:41 PM
> To: [email protected]
> Subject: Is this a good time to start learning python?
>
> Recently I woke up inclined to take up the task of l
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Ant
> Sent: Monday, March 31, 2008 5:58 PM
> To: [email protected]
> Subject: Re: Is this a good time to start learning python?
>
> On Mar 31, 5:40 pm, Rui Maciel <[EMAIL PROTECTED]> wrot
[EMAIL PROTECTED] wrote:
>which is the best way to check if a string is an number or a char?
>could the 2nd example be very expensive timewise if i have to check a
>lot of strings?
>
>this
>
>value = raw_input()
>
>try:
>value = int(value)
>except ValueError:
>print "value is not an intege
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
> Sent: Wednesday, April 09, 2008 3:38 PM
> To: [email protected]
> Subject: Stripping scripts from HTML with regular expressions
>
> Hey everyone,
>
> I'm trying to stri
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
> Sent: Wednesday, April 09, 2008 3:38 PM
> To: [email protected]
> Subject: Stripping scripts from HTML with regular expressions
>
> Hey everyone,
>
> I'm trying to stri
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jmDesktop
> Sent: Wednesday, April 09, 2008 4:51 PM
> To: [email protected]
> Subject: basic python question about for loop
>
> >From the Python.org tutorial:
>
> >>> for n in range(2, 1
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jmDesktop
> Sent: Wednesday, April 09, 2008 5:04 PM
> To: [email protected]
> Subject: Re: basic python question about for loop
>
> >
> > > >>> for n in range(2, 10):
> > > ... for x
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of jeffself
> Sent: Wednesday, April 09, 2008 5:11 PM
> To: [email protected]
> Subject: How can I use quotes without escaping them using CSV?
>
>
> If I put an escape character in, it work
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Michel Bouwmans
> Sent: Wednesday, April 09, 2008 5:44 PM
> To: [email protected]
> Subject: RE: Stripping scripts from HTML with regular expressions
>
>
> Thanks! That did the trick. :) I
[EMAIL PROTECTED] wrote:
> In Python, is it possible to add classes to a module at run-time?
>
> Say I have a module foo and a module bar. Foo has class A and B, and
>bar has class C. I want to add class C to foo so I can access it as
>foo.C, but i want to do it without modifying foo's source.
>
I am trying to write a matching engine for a matching language for a
filtering proxy compatible with that of The Proxomitron. The matching
language is basically an extended superset of shell-style globs, with
functionality comparable to regexps (see
http://www.proxomitron.info/45/help/Matching%
Hi All:
I am currently having a problem updating a GUI.
I am using PyGTK and Glade to design an interface for a project. This
interface contains no buttons, just images, labels, and a progress
bar. The code for the project is small, and it basically does some
things independent of the GUI in an
one)
assertEqual(dao.name, "value")
I get a failure because lookup of the attribute is returning
"".
That is quite reasonable, but I was under the expression that some
magic was supposed to happen, as described in the document referenced
above!
Please can someone explain why there
values but class
properties, so i'll rethink things. thanks very much!
> __special__ names are reserved for Python internal usage; don't use them.
> Implementation-only attributes ("private" ones) are spelled with a single
> underscore.
ah, yes, sorry about that.
th
g was that the descriptor is only called in the class
context, so would be called if, say, a subclass tried to redefine
age. but maybe i am still confused.
i am about to go to sleep. i guess i will try your code exactly
tomorrow, but it looks very close to mine which showed this problem.
are you sure your solution works?
thanks,
andrew
--
http://mail.python.org/mailman/listinfo/python-list
ignore that - i was mistaken (my test was too complex).
the problem seems to be that the attribute is deleted even though
__delete__ is defined.
i'll look at it tomorrow.
thanks again,
andrew
On Apr 15, 4:50 am, andrew cooke <[EMAIL PROTECTED]> wrote:
> i tried code very similar
OK, fixed my bug - it does work. Now sleep... Thanks again, Andrew
--
http://mail.python.org/mailman/listinfo/python-list
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Tim Chase
> Sent: Wednesday, April 16, 2008 9:53 AM
> To: [EMAIL PROTECTED]
> Cc: [email protected]
> Subject: Re: vary number of loops
>
> >
> > If n=3, I want to have 3 sets of elements
mming task
that uses metaclasses and descriptors.
I'd also appreciate further feedback if I've done anything stupid or
if there's some interesting approach I've missed that might work
better.
Thanks again,
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
(and I'm unsure now why I didn't write it that way myself). Is there
some common Python standard that prefers "foo == False" to "not foo"?
Thanks,
Andrew
PS Is there anywhere that explains why Decorators (in the context of
functions/methods) are so good? I've read
[EMAIL PROTECTED] wrote:
>> Yuck! No way!! If you *want* to make your code that hard to read, I'm
>> sure you can find lots of ways to do so, even in Python, but don't
>> expect Python to change to help you toward such a dubious goal.
>>
>
> Well, my actual code doesn't look like that. Trust me,
at python was a disaster, rather that the "iceberg" is
still there (i am not 100% sure what the iceberg is, but it's
something
to do with making namespaces explicit in some places and not others).
anyway, it was only a small point. thanks for all the replies.
didn't
respond earli
have a clear argument - something just feels
"odd".
at the same time, i know that language design is a practical business
and so this is probably not important.
finally, thank you for pointing me to sql alchemy (i think it was
you?).
it really is excellent.
andrew
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Greetings!
>
> I've just started learning python, so this is probably one of those
> obvious questions newbies ask.
>
> Is there any way in python to check if a text file is blank?
>
> What I've tried to do so far is:
>
> f = file("friends.txt", "w")
>
David wrote:
>> import os
>> print os.lstat("friends.txt")[6]
>>
>
> I prefer os.lstat("friends.txt").st_size
MUCH easier to remember
Thanks!
--
http://mail.python.org/mailman/listinfo/python-list
'this is a test string pattern'
>>> z2 = 'this is a test string pattern'
>>> z1 is z2
False
Careful use of interning can get a double boost: cutting memory
consumption and allowing comparisons to short circuit on identity. It
does cost in maintainin
good OOD.
Does that make any sense?
Seriously -- I have not had any coffee yet and I am still new at Python.
-- Andrew
My question is: can it be done using inheritance ?
I recall that I need three distinct objects:
the basic (non-oriented) body, the same body with positive
ori
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of azrael
> Sent: Tuesday, April 22, 2008 6:26 AM
> To: [email protected]
> Subject: Python Success stories
>
> Hy guys,
> A friend of mine i a proud PERL developer which always keeps making
>
he config file, are
called.
Is this a bug? Am I doing something stupid? To me the above seems
like a natural way of using the system...
Thanks,
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
n, in some module:
from acooke.util.log import Log
log = Log(__name__)
[...]
class Foo(object):
def my_method(self):
log.debug("this works as expected")
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
Thomas Philips wrote:
I have just started using MatPlotLib, and use it to generate graphs
from Python simulations. It often happens that the graph is generated
and a Visual C++ Runtime Library error then pops up: Runtime Error!
Program C:\Pythin25\Pythonw.exe This application has requested the
I have tried a few methods of executing ffmpeg from within python and it has
hanged every time. Two of the configurations I tried are:
def convertFileToFlash(filename):
commandString = "./convertasftoswf.sh " + getSaveDirectory() + " " +
filename
logging.debug("RUNNING: " + commandString)
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> I'm parsing a simple file and given a line's keyword, would like to call
> the equivalently named function.
No, actually, you woudn't :-) Doing so means that if your programs input
specification ever changes, you have to rename all
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of grbgooglefan
> Sent: Friday, May 09, 2008 9:41 AM
> To: [email protected]
> Subject: How to modify meaning of builtin function "not" to "!"?
>
> I am creating functions, the return result o
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Kurien Mathew
> Sent: Saturday, August 16, 2008 5:21 PM
> To: [email protected]
> Subject: Good python equivalent to C goto
>
> Hello,
>
> Any suggestions on a good python equivalent for
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Lie
> Sent: Monday, August 18, 2008 11:04 AM
> To: [email protected]
> Subject: Re: how many nested for can we utilize?
>
> On Aug 17, 4:23 pm, Fredrik Lundh <[EMAIL PROTECTED]> wrote:
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of Lave
> Sent: Tuesday, August 19, 2008 10:06 AM
> To: [email protected]
> Subject: How to use win32com to convert a MS WORD doc to HTML ?
>
> Hi, all !
>
> I'm a totally newbie huh:)
>
>
out the power or other characteristics of programming
languages. Certainly anyone who's programmed a machine in assembly
language has a pretty fair understanding of what the machine and the
machine language is doing, even though they don't choose to bang the bits
together manually.
Hope you get better.
--
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
Excel object model:
http://msdn.microsoft.com/en-us/library/bb149081.aspx
I think the Sheets object is where you add more sheets to a workbook.
You can google for code examples on how to use COM with Excel. You
don't have to limit yourself to Python code examples since COM
Bart van Deenen wrote:
Hi all.
I've stumbled onto a python behavior that I don't understand at all.
Python 2.5.2 (r252:60911, Jul 31 2008, 17:28:52)
# function
def X(l=[]):
l.append(1)
print l
# first call of X
X()
[1]
#second call of X
X()
[1, 1]
Where does the list parameter 'l'
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:python-
> [EMAIL PROTECTED] On Behalf Of
> [EMAIL PROTECTED]
> Sent: Wednesday, October 01, 2008 12:54 PM
> To: [email protected]
> Subject: decent interactive python shell on MS Windows?
> Is there an interactive Python shell
On Mar 7, 2006, at 10:00 PM, [EMAIL PROTECTED] wrote:
> ah.. ok.
> gnome it is.
>
> are there py commands for gnome?
>
Since gnome uses gtk, you're best bet would be to check the pygtk
documentation
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
e
(as of VC7.0) changes. The standard installers for Python 2.1, 2.2 &
2.3 were all built with VC6, while Python 2.4 is built with VC7.1.
-----
Andrew I MacIntyre "These thoughts are mine alone...&quo
en struggling with this problem for about a week now.
Having been seduced by Python's power and beauty I'd hate to
have to abandon it and switch to Perl or some other crappy
scripting language! Please help...
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
fect? That's the way I'm about
> to go.
I couldn't get the PyRun_*File* calls to work on Windows, presumably
because of the FILE* problem mentioned in the docs.
I'll be very surprised if it makes any difference to the memory
leak problem. Let me know how you get on!
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
me. Python has a ton of good projects and a ton of users. What we
don't have is
ruby on rails and the web 2.0 crowd, and I say, who the hell cares? We
have everything
else.
--
Andrew Gwozdziewycz <[EMAIL PROTECTED]>
http://ihadagreatview.org
http://plasticandroid.org
--
http://mail.python.org/mailman/listinfo/python-list
g something with Ruby On Rails knows that ruby is the language
behind it. Does
some non programmer care? No. If some non-programmer decided to
create a new web
app, and his friend said, 'I hear django is quick and oh, it use's
this really cool easy to learn
language python,' What's the difference? Is calling it Python on Trees
any different? The
guy doesn't know what python on is, let alone why it's on trees?
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--
http://mail.python.org/mailman/listinfo/python-list
Torsten Bronger <[EMAIL PROTECTED]> wrote:
> [EMAIL PROTECTED] (Andrew Trevorrow) writes:
>
> > [...]
> >
> > I couldn't get the PyRun_*File* calls to work on Windows, presumably
> > because of the FILE* problem mentioned in the docs.
>
> Whi
n which Python is embededded.
Even worse, if a script has a (Python) memory leak then there's
nothing the app can do about it. It would be great if wrapping
each script inside Py_Initialize/Py_Finalize could avoid all that.
I've been told that the next version of Python will release memory,
so that's good news. You can get it now if you're willing to build
Python from the latest source code.
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
s the intended name... If the community then decides on some
standardized automated package management, I'm sure PyPI (cheese shop)
would probably be the definitive repository.
$ pypi install hello
is much better than
$ bluecheese install hello
--
Andrew Gwozdziewycz
http://www.python.org/community/pycon/dc2004 seems to have vanished...
--
http://mail.python.org/mailman/listinfo/python-list
he main reason I am answering your mail is because you may have
> intended to
> post on c.l.py]
>
> Regarding your enhancement, I don't see any use cases that aren't
> handled by
> random.sample() already.
>
> Regards,
> Peter
I can see a us
> Try here:
>
> http://us.pycon.org/zope/original/pycon/pastevents/dc2004
>
I see summaries of the paper, but when I follow the link for the papers
themselves, it leads to the same dead end.
--
http://mail.python.org/mailman/listinfo/python-list
a healthy language. I can read it and write it without going blind
or crazy.
Ok, maybe I'm pushing it here.
>Better eggs.python.org. Would support the spread of the new file
>format, too.
eggs.python.org actually seems quite good to me. It'd be even cooler
if we cou
ity though). gzip is available
for most systems, and the approach is easily modified to use bzip2 as
well (though Python's bz2 module is implemented totally in C, and so
probably doesn't have the performance issues that gzip has).
--
"Christoph Zwerschke" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Anyway this would be an argument only against the variant of typecasting a
> float with a fractional part. But what about the other variant which
> raises an error if there is a fractional part, but works if the
grams( for linux or windows )
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--
http://mail.python.org/mailman/listinfo/python-list
easiest way to do that is to just check to see if
the probestring starts a string at the current index of the string...
def count_proper_substrings_equal_to(target, probe):
i = 0
count = 0
while i < len(target):
if target[i:].startswith(probe):
-
> http://mail.python.org/mailman/listinfo/python-list
Surely, this is a task for http://nltk.sourceforge.net/ . Especially
if you want high accuracy.
---
Andrew Gwozdziewycz
[EMAIL PROTECTED]
http://ihadagreatview.org
http://and.rovir.us
--
http://mail.python.org/mailman/listinfo/python-list
mably that's not a good long-term solution.
This is my first project using gcc, makefiles, frameworks, Python, etc,
so I'm still somewhat foggy about lots of things. Any advice would be
much appreciated!
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
d.
This would fail if (and this too my knowledge is proper CSV):
"Col 1 data 2,000", Col 2 data 3000, "Col 3 data 4,000"
Since the second element doesn't have a comma, it doesn't have to be
quoted.
It's probably best to use the built in CSV parser assuming your
e root.mainloop() call?
I've read Fredrik Lundh's excellent tutorial on Tkinter and done a lot
of googling but haven't been able to find a solution.
I can probably add some Mac-specific code to detect a menu change after
a script ends and then rebuild our menus, but I'm hoping
have read the documents on embedding Python and I can give my
application a command line, but I am having issues exposing my C/C++
functions to Python.
Does anyone know of any tutorials or example code that show how to do
this?
Thanks,
Andrew McCall
--
http://mail.python.org/mailman/listinfo/p
\DOCUME~1\ANDY~1.MCC\LOCALS~1\Temp/cckhbaaa.o(.text+0x1c2):main.cpp:
undefined reference to `_imp__PyImport_AddModule'
C:\DOCUME~1\ANDY~1.MCC\LOCALS~1\Temp/cckhbaaa.o(.text+0x1f0):main.cpp:
undefined reference to `_imp__Py_InitModule4'
collect2: ld returned 1 exit status
Execution terminated
Can anyone help me please?
Thanks,
Andrew.
--
http://mail.python.org/mailman/listinfo/python-list
erring to? Have some
functions been changed to pass buffer objects instead of strings? How
can I fix the source code to make it run?
Any help appreciated
Andrew
(Python newbie)
--
http://mail.python.org/mailman/listinfo/python-list
port the buffer API (I am guessing a conflict between split and
read?)
Sorry, I am new to Python, so how do I get a Traceback?
Thanks
Andrew
On 07/01/2010, at 7:13 PM, Chris Rebert wrote:
On Thu, Jan 7, 2010 at 12:19 AM, Andrew Gillanders
wrote:
I have run into a problem running a Pyth
Waddle, Jim wrote:
Is there a policy concerning getting functions like ctypes working on AIX.
If you can get it working, post a patch on the bug tracker.
--
-
Andrew I MacIntyre "These thought
eturn 7
...
>>> foo.__name__ = 'bar'
>>> foo(123)
Traceback (most recent call last):
File "", line 1, in
TypeError: foo() takes no arguments (1 given)
Thanks,
Andrew
--
http://mail.python.org/mailman/listinfo/python-list
i'm just reading through at the
moment and this is the first one i've got to that will help me solve
it, but i don't mean to exclude anything later...!)
andrew
--
http://mail.python.org/mailman/listinfo/python-list
in the standard
lib, but couldn't find it.
andrew
--
http://mail.python.org/mailman/listinfo/python-list
e how
the same functionality is available in the types module for 3 - am i
missing something obvious?
http://docs.python.org/library/new.html
http://docs.python.org/3.1/library/types.html#module-types
thanks,
andrew
--
http://mail.python.org/mailman/listinfo/python-list
On Jan 30, 7:17 pm, andrew cooke wrote:
> On Jan 29, 5:37 pm, "Gabriel Genellina"
> wrote:
>
> > The decorator module is a very fine addition to anyone's tool set -- but
> > in this case it is enough to use the wraps() function from the functools
>
On Jan 29, 1:09 pm, Michele Simionato
wrote:
> On Jan 29, 2:30 pm, andrew cooke wrote:
>
> > Is there any way to change the name of the function in an error
> > message? In the example below I'd like the error to refer to bar(),
> > for example (the motivation i
On Sep 25, 1:16 pm, Wanderer wrote:
> execfile(x) does what I'm looking for.
>
Perhaps you are looking for Python import hook:
http://www.python.org/dev/peps/pep-0302/
In you import hook you can do everything (and locate/import file with
any extension :)
--
http://mail.python.org/mailman/listi
python 2.6+ only, and while i have quite a
few users (or, at least, downloads), i doubt that many use these more
advanced features, and everything is pure python with little
performance tuning so far.
andrew
--
http://mail.python.org/mailman/listinfo/python-list
x27;t kick in.
To get a deeper understanding of your issue will require deeper
debugging. I have done this at times by building Python with a wrapper
around malloc() (& friends) to log memory allocation activity.
--
---
When I run this little test program on Linux:
import subprocess
subprocess.call(["python","-V"], stderr=open("log.tmp","a"))
the file log.tmp is appended to each time I run it.
When I run it on Windows, however, the file log.tmp gets
overwritten each time I run it.
Though I can make it append on
> wrote in message
>news:63dea9e7-97af-4b20-aa0a-c762d9944...@a21g2000yqc.googlegroups.com...
>On Oct 18, 4:20 pm, MRAB wrote:
>> Benjamin Middaugh wrote:
>> > Thanks to everyone who helped with my query on reversing integers. I
>> > have one more simple problem I'm having trouble solving. I want
ffect that
threshold.
--
-----
Andrew I MacIntyre "These thoughts are mine alone..."
E-mail: [email protected] (pref) | Snail: PO Box 370
[email protected] (alt) |Belconnen ACT 2616
Web:http://www.andymac.org/
hon 3.1.1 (r311:74480, Jan 31 2010, 23:07:16)
[GCC 4.2.1 (Apple Inc. build 5646) (dot 1)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import socket
>>> sock = socket.socket()
>>&
ught it was, but I don't know if this was a
deliberate choice or accidental.
BTW, 2.7 (freshly built from version control) also has the same
exception.
> You could open an issue on the bug tracker for this.
I've done that. It's http://bugs.python.org/issue7827 .
Cheers!
t's
being used with an array. Why shouldn't people use it
with Python 2.x?
Andrew
[email protected]
--
http://mail.python.org/mailman/listinfo/python-list
n submodule named
c:\users\ad\project\src\project.api.config.project.api.config
>>>
There is setup.py for project.api.config:
import os
from setuptools import setup, find_packages
name = "project.api.config"
install_requires = [
'zc.buildout',
'setuptools',
1601 - 1700 of 1814 matches
Mail list logo