"Jonathan Amsterdam" <[EMAIL PROTECTED]> writes:
> No redesign necessary. I simply make M be the Queue's mutex, via the
> LQueue class I posted. I am making the modest suggestion that this
> feature be documented and exposed in the Queue class.
>
Even though LQueue is the correct sollution to th
Jeff Groves wrote:
> I'm writing a launcher that should do the following:
>
> 1. Activate a .bat file to set environmental variables.
> 2. Start 3 programs, using said environmental variables as arguments.
>
> However, I can't get the environmental variables to stick because all
> of Pythons' syste
[EMAIL PROTECTED] wrote:
> I'm coming from a Java background, so please don't stone me...
>
> I see that Python is missing "interfaces". The concept of an interface
> is a key to good programming design in Java, but I've read that they
> aren't really necessary in Python. I am wondering what techn
On 19/04/2006 3:09 PM, [EMAIL PROTECTED] wrote:
> hi, all. I need to process a file with the following format:
> $ cat sample
> [(some text)2.3(more text)4.5(more text here)]
> [(aa bb ccc)-1.2(kdk)12.0(xxxyyy)]
> [(xxx)11.0(bbb\))8.9(end here)]
> ...
>
> my goal here is for each line, extract
In article <[EMAIL PROTECTED]>,
Edward Elliott <[EMAIL PROTECTED]> wrote:
>ML has a
>very elegant system for nested comments with (* and *).
Which, if you mistype an opening or closing comment symbol, can lead to
some very mysterious syntax errors.
--
http://mail.python.org/mailman/listinfo/p
In article <[EMAIL PROTECTED]>,
"Jeff Groves" <[EMAIL PROTECTED]> wrote:
>How can I use the .bat file to set environmental vars from Python?
How about sourcing it from a shell, then using that same shell instance
to run the programs?
--
http://mail.python.org/mailman/listinfo/python-list
BartlebyScrivener wrote:
> >> More accurately, it *does* import it twice, into two separate
> >> namespaces;
>
> If it's in two different namespaces, how can they have the same id
> number?
they're mixing up the terminology. each loaded module has exactly one
namespace, no matter how many times
[EMAIL PROTECTED] wrote:
> pyconstruct looks cool. i dont know if the classes are using the plain
> berkely-ish code. i couldn't find anything in it that pointed to send()
> recv(), & such. i found other stuff like SetSocketOpt() and so on like
> this :
>
> long CClientSocket::ConnectToServer(LPCTS
Edward Elliott wrote:
> Ben Finney wrote:
>> Indeed. Using revision control means never needing to comment out
>> blocks of code.
>
> Typing (* and *) on a few line will always be quicker, easier, and
> less confusing than any rcs diffs/restores. Once you delete the code
> you can no longer see
First, note that form["date"] is all you need. form["date"].value is
redundant.
I would do this with sets:
import string
if set(form["date"]) & set(string.ascii_letters) != set([]): print "You
have to enter a date with numbers"
if set(form["purchases"]) & set(string.digits) != set([]): print
"P
Kay Schluehr:
>You won't find many deep class hierarchies and extensive frameworks.
Zope comes to mind.
>This has the advantage that a classification you have done once at
>the beginning of your project in the design phase is not considered
>to be carved in stone.
Zope 3 comes to mind.
--
ht
How about using the numbers as delimiters:
>>> pat = re.compile(r"[\d\.\-]+")
>>> pat.split("[(some text)2.3(more text)4.5(more text here)]")
['[(some text)', '(more text)', '(more text here)]']
>>> pat.findall("[(some text)2.3(more text)4.5(more text here)]")
['2.3', '4.5']
>>> pat.split("[(xxx)1
[EMAIL PROTECTED] wrote:
(snip)
> Everyone is getting off track here.
Not that much...
> Java has interfaces because it doesn't support multiple inheritance.
Java as interfaces because it relies on type declaration for subtyping
*and* doesn't support MI.
> Python supports MI, so you don't need
Rene Pijlman wrote:
> Kay Schluehr:
>
>>You won't find many deep class hierarchies and extensive frameworks.
>
>
> Zope comes to mind.
>
>
>>This has the advantage that a classification you have done once at
>>the beginning of your project in the design phase is not considered
>>to be carve
Steven Bethard wrote:
(snip)
> Guido has pronounced on this PEP:
>http://mail.python.org/pipermail/python-3000/2006-April/000936.html
> Consider it dead. =)
:(
--
bruno desthuilliers
python -c "print '@'.join(['.'.join([w[::-1] for w in p.split('.')]) for
p in '[EMAIL PROTECTED]'.split('@'
In article <[EMAIL PROTECTED]>, Chris Lambacher wrote:
> At least on windows. PySqlite is statically linked with the sqlite library.
> This can be done because it is quite small.
OK, well that makes sense, but why not on any other platform?
--
http://mail.python.org/mailman/listinfo/python-list
Tim Roberts wrote:
> Kun <[EMAIL PROTECTED]> wrote:
>>
>>i don't know what happened but all of a sudden, my cgi.fieldstorage has
>>two extra keys, 'x' and 'y', does anyone know how i can remove them in
>>python?
>
> If this is coming from a web site that you created, then you darned well
> better
bruno at modulix wrote:
> Rene Pijlman wrote:
> > Kay Schluehr:
> >
> >>You won't find many deep class hierarchies and extensive frameworks.
> >
> >
> > Zope comes to mind.
> >
> >
> >>This has the advantage that a classification you have done once at
> >>the beginning of your project in the desig
Duncan Booth schreef:
> Would you care to name a few languages which support nested block
> comments? There really aren't many: ML as you mentioned; Standard Pascal
> doesn't permit nesting of comments but *some* implementations do allow it.
>
> Want to comment out a block of code in C++? The onl
Title: namespace question
Hi all,
I'm confused by namespaces in python, specifically using the global keyword. I'm able to access and modify a global variable from a function if the function is defined in the same module but not if the function is defined in a different module:
//File t2.
In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote:
>> Apologies if I'm being obtuse, but how does including the pysqlite
>> wrapper module change anything? You still need to download and install
>> SQLite
>
> I'm pretty sure the distributors will do this for you, just as
> they've included zlib,
"Nugent, Pete (P.)" wrote:
> I'm confused by namespaces in python, specifically
> using the global keyword. I'm able to access and
> modify a global variable from a function if the function
> is defined in the same module but not if the function
> s defined in a different module:
"global" means
Hi,
I'm trying to distribute my application which also support some extra
libraries but does not require them to run. I set the "extra" option
but I don't know how could I specify that I want to install my
application with any of that extra packages.
So now I have in my setup.py like this:
Duncan Booth wrote:
> Want to comment out a block of code in C++? The only (nearly) reliable way
> is to insert single-line comments down the block. You can't use a block
> comment if there are any other block comments inside the code you want to
> block out.
As Roel said, #if 0 is the standard
Edward Elliott schrieb:
> On top of that, the expressive power of nested comments seems greater
> than an endless string of ^#s. Sometimes it's just easier to see what's
> going on.
not if you are using grep
--
Gregor
http://www.gregor-horvath.com
--
http://mail.python.org/mailman/listinfo/py
Ben Finney wrote:
> "Atanas Banov" <[EMAIL PROTECTED]> writes:
>
>> Edward Elliott wrote:
>>> Saying coders shouldn't use multiline comments to disable code
>>> misses the point. Coders will comment out code regardless of the
>>> existence of multiline comemnts. There has to be a better
>>> argu
Kun wrote:
> I have the following if statement that checks if a form is empty:
>
> if form.has_key("date") and form["date"].value != "":
> date=form['date'].value
>
> else:
> print "ERROR: No date entered!"
> raise Exception
>
> I would also like to add another
Edward Elliott wrote:
> Typing (* and *) on a few line will always be quicker, easier, and less
> confusing than any rcs diffs/restores. Once you delete the code you can
> no longer see it or add pieces back in without retrieving it from an
> external store.
Try using Subversion. You can work a
Edward Elliott wrote:
> Sure they can be abused. So can a thousand other language features. My
> point is you can't teach good coding through syntax, and trying to causes
> more problems than it solves.
I like the phrase: there are some languages that incentivates bad practices
in programming;
<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> I'm driving Excel from python, largely successfully. Now I'm trying to
> add errorbars to XY scatter plots. Keep getting a com_error. Can't
> track down the problem.
>
> I modified a simple example to duplicate the problem. Thanks to Mat
Peter Tillotson wrote:
> I'm not sure I agree, revision control is great but not the only answer.
> In multi-developer teams working on the trunk, it its kind of
> inconvenient if someone checks in broken code. It also blocks critical
This is something that should be a policy: no untested and wor
On Apr 18, 2006, at 9:06 PM, Alex Martelli wrote:
>
> Funny timing coincidence: your 1st draft of Python for Dummies going in
> now, my 2nd edition of Python in a Nutshell just went to production,
> AND
> Wesley Chun's 2nd ed is also being finished this week. Three
> Baypiggies
> (or whatever w
Edward Elliott wrote:
> And when the section I want to comment out contains a legit doc string in
> the middle, triple-quotes won't work. There are valid reasons to nest
You can use either """ or '''. I don't keep changing them in my code, so I
can always use the other type (usually I use " so
> Bob Greschke wrote:
>> Is there a list of all of the Python commands and modules that tell when
>> (what version) they were added to Python? I was hoping the new Essential
>> Reference would have it, but it doesn't.
The Library Reference page for a module or built-in often documents the
vers
On 18 Apr 2006 05:00:55 -0700, rumours say that "jelle"
<[EMAIL PROTECTED]> might have written:
>Hi Christos,
>
>Thanks for your pointers there, impressive to see
>-that a 12 year old thread still can make an interesting read
>-you being able to remember & trace it... impressive...
>
>Thanks for y
In article <[EMAIL PROTECTED]>,
[EMAIL PROTECTED] (Alex Martelli) wrote:
> Roy Smith <[EMAIL PROTECTED]> wrote:
>
> > Peter Maas <[EMAIL PROTECTED]> wrote:
> > > He probably means that with interfaces one could test compliance
> > > with the interface as a whole instead of testing each member a
Do you wand to install Pyrex on Windows ?
Here is a step-by-step guide explaining:
A) how to install Pyrex on Windows XP.
B) how to compile a Pyrex module.
Julien Fiore,
U. of Geneva
---
### A) Pyrex installation on Windows XP ###
# ste
itay_k wrote:
> Hi,
>
> I want to send a cookie on some http request (with urllib2),
> so I created a Cookie but I cant associate it with CookieJar object.
You have to use a cookielib.Cookie, not Cookie.SimpleCookie():
import cookielib, urllib2
cj = cookielib.CookieJar()
cookie = cookielib.Cook
[EMAIL PROTECTED] wrote:
> Hi,
> I have a bunch of strings like
> a53bc_531.txt
> a53bc_2285.txt
> ...
> a53bc_359.txt
>
> and I want to extract the numbers 531, 2285, ...,359.
>
> One thing for sure is that these numbers are the ONLY part that is
> changing; all the other characters are always f
bruno at modulix wrote:
> [EMAIL PROTECTED] wrote:
> > I suppose another idea is to rewrite entire Python app in C if compiled
> > C code
> > is harder to decompile.
>
> Do you really think "native" code is harder to reverse-engineer than
> Python's byte-code ?
Yes, until there's a native code equ
nice one Jorge :-)
Jorge Godoy wrote:
> Peter Tillotson wrote:
>
>> I'm not sure I agree, revision control is great but not the only answer.
>> In multi-developer teams working on the trunk, it its kind of
>> inconvenient if someone checks in broken code. It also blocks critical
>
> This is some
Damjan <[EMAIL PROTECTED]> writes:
>Now I've been thinking that it might be pretty easy to implement a
>authorization layer with mod_python (but living handling of the web-dav
>protocol to apache)... So, has anyone already done something similar?
Yup. I'm in the process. I'm using mod_python to
Damjan <[EMAIL PROTECTED]> writes:
>I wouldn't use Zope as file storage. The ZODB is inefficient for storing big
>files.
It sounds like you're describing Zope FileStorage. There are
certainly other options for Zope storage. I still use
DirectoryStorage sometimes but Zope Local File System
Does anybody have any ideas?
--
http://mail.python.org/mailman/listinfo/python-list
jelle wrote:
> Hi,
>
> I use python quite a bit to couple different programs together.
> Doing so has been a _lot_ easier since subprocess came around, but
> would really like to be able to use the succinct shell syntax; >, <, |
>
> That really shouldn't be too hard to wrap in a class, but so far I
[EMAIL PROTECTED] wrote:
> I have been working on a project for some time now, that has various
> types of admistrating including a CGI web interface, In a previous
> version I implemented a Psuedo-Telnet Server if you will, bassicly all
> it did was print text to the client, and expect back data,
Ant wrote:
> (OT) I don't have the same issue with Syntax highlighting, and I use
> jEdit as my main Python editor (Though some of the dedicated Python
> IDE's have some nice refactoring/code completion stuff, none has the
> raw editing power of jEdit).
>
Could be I got a customized python.xml f
I want to write a GUI application in PYTHON using QT. This application
is supposed to take in Japanese characters. I am using PyQt as the
wrapper for using QT from python. I am able to take input in japanese.
But I am unable to display them back to GUI. It displays some junk
characters Can anyone s
[EMAIL PROTECTED] wrote:
> Anyone know if there is a book for Ironpython in the works? A good
> knowledge of .NET and Python is enough to get started but just poking
> around Ironpython homepage it seems like there are some new language
> features added to handle some quirks with working within the
<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> hi, all. I need to process a file with the following format:
> $ cat sample
> [(some text)2.3(more text)4.5(more text here)]
> [(aa bb ccc)-1.2(kdk)12.0(xxxyyy)]
> [(xxx)11.0(bbb\))8.9(end here)]
> ...
>
> my goal here is for each li
Hi,
I have problems trying to install the scipy.weave package. I run Python
2.4 on windows XP and my C compiler is MinGW.
Below is the output of scipy.weave.test(). I read that the tests should
last several minutes, but in my case it only lasts a few seconds.
Thanks in advance for any help.
Juli
Ben Finney wrote:
> Wildemar Wildenburger <[EMAIL PROTECTED]> writes:
>
>
>> I've noticed that I replied to individual posters' private addresses
>> several times now ...
>>
>
> That's a much preferable, and much more easily corrected, error than
> the alternative: replying to the entire g
Hi All -
I am working on a project in which I generate an array of values
(list_array). I need to use the values in this array to create list
similar to the one below:
list_array = []
list = item1,item2,itemN...
I am having difficulty in getting the values out of the original array.
I have
[EMAIL PROTECTED] wrote:
> I'm coming from a Java background, so please don't stone me...
>
> I see that Python is missing "interfaces". The concept of an interface
> is a key to good programming design in Java, but I've read that they
> aren't really necessary in Python. I am wondering what tech
> list_array = []
> list = item1,item2,itemN...
My first recommendation would be that you not use "list" as
an identifier, as it's a builtin function. Odd bugs might
start happening if you redefine it.
> I can get list to be how I want it if I use the index value as follows:
>
> list =
Roy Smith <[EMAIL PROTECTED]> wrote:
...
> > A class asserting, e.g., "implements IPainter", doesn't thereby risk
> > being accidentally misused where an IGunslinger is required (OTOH,
> > implementing >1 of these IS a bother, but that's sort of inevitable).
>
> I suppose, but all you've really
If you just want the items concatenated with a comma separator, the
following is what you need:
>>> list_arr = ["one", "two", "three"]
>>> list = ",".join(list_arr)
>>> print(list)
one,two,three
--
http://mail.python.org/mailman/listinfo/python-list
>>> list_array = ['aaa','bbb','ccc']
>>> for item in list_array:
... print item + ',',
...
aaa, bbb, ccc,
(notice the comma at the end of the print statement: this causes the
suppression of the automatic newline)
Is this what you need?
--
Renato Ramonda
--
http://mail.python.org/mailman/
> I am working on a project in which I generate an array of values
> (list_array). I need to use the values in this array to create list
> similar to the one below:
>
> list_array = []
> list = item1,item2,itemN...
>
> I am having difficulty in getting the values out of the original array.
>
Alex Martelli <[EMAIL PROTECTED]> wrote:
>Roy Smith <[EMAIL PROTECTED]> wrote:
> ...
>> > A class asserting, e.g., "implements IPainter", doesn't thereby risk
>> > being accidentally misused where an IGunslinger is required (OTOH,
>> > implementing >1 of these IS a bother, but that's sort of inev
Hi All -
Thanks to everyone for their input. The repsonses provided are exactly
what I was looking for!
Regards -
Shawn
--
http://mail.python.org/mailman/listinfo/python-list
Ben <[EMAIL PROTECTED]> wrote:
...
> It seems to me that a lot of python projects reimplement interfaces or
> adaption of some kind once they reach a certain size (Zope, PEAK, eggs,
> TurboGears, etc), which implies that they really do have some benefits,
> particularly in documentation.
PEAK i
:-)
Thanks.
Philippe
Scott David Daniels wrote:
> Jorge Godoy wrote:
>> Philippe Martin wrote:
>>
>>> I need to get the date and time under Windows and Linux but need the
>>> information visible to the user (cannot find my words) not the sytem
>>> information (ex: a PC setup on greenwich but
John Salerno <[EMAIL PROTECTED]> wrote:
...
> Just out of curiosity, is Python.NET a dead project?
AFAIK, it's a long-completed research project. I do not know of anybody
planning to fork it to a new project, though that of course does not
rule out that somebody might be planning to do so.
Al
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>I can get list to be how I want it if I use the index value as follows:
>
> list = ("%s" + "," + "%s", ...) % (list_array[0], list_array[1], ...
>
>However, the list_array will never contain a constant number of items.
>So my dilema is how to loop/iter
Edward Elliott <[EMAIL PROTECTED]> wrote:
>On top of that, the expressive power of nested comments seems greater than
>an endless string of ^#s. Sometimes it's just easier to see what's going on.
Really? Under what circumstances is it easier to see what's going on
with start/end comments than w
Jon Ribbens wrote:
> "The distributors"? Que?
all the downstream people who work their asses off to provide pre-
built, pre-tested distributions for various platforms. this includes the
PSF volunteers, commercial actors, and a large crowd of linux/bsd
volunteers.
these days, most end users get
Jorge Godoy <[EMAIL PROTECTED]> wrote:
>Is it harder to remove "n" lines of code commented out with "#" than "n"
>lines of multiline commented code? How?
I'd say it's harder to remove the latter, due to having to search for
the end of comment sequence, rather than simply looking for where the
bl
I have a set of Python classes that represent elements in a structural
model for vibration modeling (sort of like FEA). Some of the
parameters of the model are initially unknown and I do some system
identification to determine the parameters. After I determine these
unknown parameters, I would li
Alex Martelli wrote:
> John Salerno <[EMAIL PROTECTED]> wrote:
>...
>> Just out of curiosity, is Python.NET a dead project?
>
> AFAIK, it's a long-completed research project. I do not know of anybody
> planning to fork it to a new project, though that of course does not
> rule out that somebod
Sion Arrowsmith wrote:
> I'd say it's harder to remove the latter, due to having to search for
> the end of comment sequence, rather than simply looking for where the
> block comment stops. And you've extra problems if you allow nested
> comments, because then you'll have to count how deep you've
Alex Martelli wrote:
> > Just out of curiosity, is Python.NET a dead project?
>
> AFAIK, it's a long-completed research project. I do not know of anybody
> planning to fork it to a new project, though that of course does not
> rule out that somebody might be planning to do so.
brian's latest deve
John Salerno <[EMAIL PROTECTED]> wrote:
> Alex Martelli wrote:
> > John Salerno <[EMAIL PROTECTED]> wrote:
> >...
> >> Just out of curiosity, is Python.NET a dead project?
> >
> > AFAIK, it's a long-completed research project. I do not know of anybody
> > planning to fork it to a new project,
In article <[EMAIL PROTECTED]>,
Jon Ribbens <[EMAIL PROTECTED]> wrote:
>
>I guess I just don't get why the inclusion of the pysqlite wrapper
>is so exciting if all it's doing is changing the situation from
>"Python does not come with a DB, but you can install extra software
>to provide one" to "Py
wow , thanks for the tips and the link.. i can at least see whats going
on here.
this project is beginning to look believable to me.
i have another question.. later , in this same class, after it goes
thru some error handling, it returns like this
return COM_SUCCESS;
but i cannot find where COM_SU
[Posting via Google's web interface again and hoping that double
newlines will prevent insane concatenation of lines...]
prats wrote:
> I want to write a GUI application in PYTHON using QT. This application
> is supposed to take in Japanese characters. I am using PyQt as the
> wrapper for using
Alex Martelli:
>PEAK is an interesting counterexample, particularly since Philip Eby
>tends to be "ahead of the curve":
I never noticed PEAK before. Is it well worth studying?
--
http://mail.python.org/mailman/listinfo/python-list
Part one:
==
Hi !
I want to use SQLite database like the FireBird database: with big
isolation level.
What's that meaning ?
I have an application that periodically check some input directory,
process the elements in it, and copy them into a global database.
It is like a daemon, working in th
Dear Python and Mac Community,
I have just successfully built gcc version 4.1.0 for my Mac OS X 10.4.6.
gcc -v
Using built-in specs.
Target: powerpc-apple-darwin8.6.0
Configured with: /usr/local/src/gcc-4.1.0/configure
Thread model: posix
gcc version 4.1.0
When I try to build Python 2.4.
Alex Martelli wrote:
> Jim Hugunin. But, apparently, we're having communication problems.
> Since I say that Python.NET is "a long-completed research project", what
> contradition do you find between that and your opinion that "it [isn't]
> being developed/used anymore"? Why should a research pr
John Salerno wrote:
> But it sounds like, from Fred's post
"Fredrik". Have no idea why Fred slipped out. :)
--
http://mail.python.org/mailman/listinfo/python-list
Neal Becker:
>I see various answers that Python doesn't need interfaces. OTOH, there are
>responses that some large Python apps have implemented them (e.g., zope).
>Does anyone have an explanation of why these large systems felt they needed
>to implement interfaces?
A programming language doesn'
"Ryan Krauss" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
==
I have a set of Python classes that represent elements in a structural
model for vibration modeling (sort of like FEA). Some of the
parameters of the model are initially unknown and I do some system
id
In article <[EMAIL PROTECTED]>, Fredrik Lundh wrote:
> these days, most end users get their Python either with their OS,
> or by downloading a prebuilt installer.
Oh, ok. I've just never heard such people referred to as "the
distributors" before. It sounds like some sort of TV series! ;-)
>> I gu
> Can anyone recommend an open source IDE for Python that runs on Linux?
A lot of SPE (http://pythonide.stani.be) users are on all kinds of
Linux flavours (but also Mac OSX and windows). I've started to use SPE
on Ubuntu. There could be some improvements. As soon as I have time
I'll implement them
Ryan Krauss wrote:
> I have a set of Python classes that represent elements in a structural
> model for vibration modeling (sort of like FEA). Some of the
> parameters of the model are initially unknown and I do some system
> identification to determine the parameters. After I determine these
>
Is there not a "Reply to all" function in Thunderbird? (and I'd go
shopping for plugins for TB, if not)
(Sorry, Wildemar, looks like I didn't click Reply to all :d)
On 4/19/06, Wildemar Wildenburger <[EMAIL PROTECTED]> wrote:
> Ben Finney wrote:
> > Wildemar Wildenburger <[EMAIL PROTECTED]> write
I think this is a lot like I am planning to do, except that the new
classes will be dynamically generated and will have new default values
that I want to specify before I write them to a file. But how do I do
that?
Ryan
On 4/19/06, Paul McGuire <[EMAIL PROTECTED]> wrote:
> "Ryan Krauss" <[EMAIL
Ryan Krauss wrote:
> I have a set of Python classes that represent elements in a structural
> model for vibration modeling (sort of like FEA). Some of the
> parameters of the model are initially unknown and I do some system
> identification to determine the parameters. After I determine these
> u
> and I want to extract the numbers 531, 2285, ...,359.
>
> One thing for sure is that these numbers are the ONLY part that is
> changing; all the other characters are always fixed.
>
I'm not sure about what you mean by "always fixed" but I guess it means that
you have n files with a fixed start
Because I want to store the results in one place so that in order to
use the code later, all I have to do is import the classes that
include the parameters that were previously unknown. I want to make
using the results as easy and clean as possible for other users.
Ryan
On 4/19/06, bruno at modu
Hi,
I'm looking at the C API and wanting to know a good way to convert
Python numeric types to native c types. For strings I've been using
PyString_AsString(v) and thats great, but I would like to do the same
for ints and floats. I have found PyFloat_AsString in the source but
it seems to be un
Hi,
the feature you expierenced are parameterized properties. This is only
supported
by VB and could only be emulated in python. If you use makepy/gencache
to generate a wrapper
the appropriate Set methods are created:
oR.SetItem(1,2, "4")
Stefan
> -Original Message-
> From:
[EMAIL PROTECTED] wrote:
> I'm looking at the C API and wanting to know a good way to convert
> Python numeric types to native c types. For strings I've been using
> PyString_AsString(v) and thats great, but I would like to do the same
> for ints and floats.
double d = PyFloat_AsDouble(v);
Neal Becker wrote:
(snip)
> I see various answers that Python doesn't need interfaces. OTOH, there are
> responses that some large Python apps have implemented them (e.g., zope).
> Does anyone have an explanation of why these large systems felt they needed
> to implement interfaces?
These "inter
"Ryan Krauss" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
Is there a way for a Python instance to access its own code
(especially the __init__ method)? And if there is, is there a clean
way to write the modified code back to a file? I assume that if I
can get the code as a lis
Ben Sizer wrote:
> bruno at modulix wrote:
>
>>[EMAIL PROTECTED] wrote:
>>
>>>I suppose another idea is to rewrite entire Python app in C if compiled
>>>C code
>>>is harder to decompile.
>>
>>Do you really think "native" code is harder to reverse-engineer than
>>Python's byte-code ?
>
>
> Yes, u
Hi All,
This is probably a FAQ, but is there an operator mapping for += for
classes? Or does a += b get converted to a = a + b? I would like to
make this operator faster for the BitVector class, but I don't see +=
in http://docs.python.org/lib/operator-map.html
I could always create an append m
Hello.
I am looking a good interface for doing app similar
to Visaul C++, but for python over windows.
some can Help me.
Thanks very mouch.
TOMAS-
Este correo fue escaneado en busca de virus con el MDaemon Antivirus 2.2
[EMAIL PROTECTED] wrote:
> This is probably a FAQ, but is there an operator mapping for += for
> classes?
obj.__iadd__(other)
> Or does a += b get converted to a = a + b?
only if __iadd__ is not defined.
> I would like to make this operator faster for the BitVector class, but
> I don't se
1 - 100 of 195 matches
Mail list logo