life of me figure out how to get the dots to appear on
> the same line as "Loading". Every way that I have attempted, the word
> "Loading" appears and then the dots appear on the next line.
How are you printing the "Loading" text? (It would have helped a l
wly
Have you tried:
sys.stdout.write('Loading')
sys.stdout.flush()
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
errors such as using a variable name before it's
defined. For that, you can use an external program such as pylint or
pyflakes.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
istent. You can't mix
tabs and spaces for lines of code at the same indentation level.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlyc
ication email, and got some other form of=
> brokenness in reply.
> Suggestions?
Post the 10-line program here, so others can verify whether it is a bug.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
our example both rule[0] and rule[1] are zero, so I
don't know why '1' ever got printed.
Also, as far as I can tell, this code should not have worked at all:
for i in range(rule):
print rule[i]
The range() function expects an integer, not a list.
--
John Gordon
string* 'N/A' for every NaN.
import math
x = possibly_NaN()
if math.isnan(x):
x = 'N/A'
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gore
put()
while user_input != "quit" or user_input != "q":
There is still a logic bug. This loop will execute forever, because no
matter what the user enters, it will be unequal to "q" or unequal to "quit".
Use 'and' instead of 'or'.
Of
lecting every third element after that (and there are only two elements,
so it stops after the first one):
[[7, 8, 9, 10, 11, 12, 13]]
Why were you expecting the other result?
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for B
In <5170648d$0$1368$4fafb...@reader2.news.tin.it> Tracubik
writes:
> i suppose i've to first generate the window and than populate it, but
> where i've to put the "search for occurences" code? I don't think init()
> is the right place..
What GUI
In "b_erickson1"
writes:
> ozFile = open(filename,'w')
> ozFile.write(zFile.read(filename))
> ozFile.close()
Perhaps you want to use zFile.extract() instead of zFile.read()?
--
John Gordon A is for Amy,
In John Gordon writes:
> In "b_erickson1"
> writes:
> > ozFile = open(filename,'w')
> > ozFile.write(zFile.read(filename))
> > ozFile.close()
> Perhaps you want to use zFile.extract() instead of zFile.rea
.voidspace.org.uk')
response = urllib2.urlopen(request)
content = response.readlines()
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
etime.strptime('Apr 9 2013', '%b %d %Y')
> >>> dt.day
> 9
> How can I get strptime to run 09? instead of 9
dt.day is just an integer. If you want to print it with zero padding,
use a format string:
>>> n = 9
>>> print n
9
>>> print
aper).
But a truly interactive game would probably require something more, like
an active socket connection.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, &quo
> Since i pass this data into my python script as a command line call, i get
> the error:
> /bin/sh: Syntax error: Unterminated quoted string
Can you modify your python script so it accepts a filename which contains
the xml?
--
John Gordon A is for Amy, who fell
it..")
> ## what is wrong with this script? I'm just trying to understand while loops
> and ## this is not a real project :P
You're missing a second closing parentheses on the line where the user
inputs their guess.
Also, you need to indent the 'if'
le guess != number:
^
SyntaxError: invalid syntax
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
t; raw_input("\n\n Press any key to exit..")
> ## it seems to stick with "higher" or "lower" after my first guess, whichever
> it
> ## is
When the user re-enters their guess in the while loop, you're assigning
the
t;, tries, "tries"
else:
print "Sorry, you lost!"
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
In Neil Cerutti writes:
> Not quite yet. Players who guess correctly on the fifth try don't
> get credit.
Are you sure? tries is initialized to zero and isn't incremented for the
initial guess.
--
John Gordon A is for Amy, who fell down the stairs
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using
MS SAPI 5.1 and Hammond's win32 module. The test program is
import pyTTS
tts = pyTTS.Create()
tts.Speak('Hello world.')
The resulting debug trace is:
PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32 using
MS SAPI 5.1 and Hammond's win32 module. The test program is
import pyTTS
tts = pyTTS.Create()
tts.Speak('Hello world.')
The resulting debug trace is:
PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32
using MS SAPI 5.1 and Hammond's win32 module. The test program is
import pyTTS
tts = pyTTS.Create()
tts.Speak('Hello world.')
The resulting debug trace is:
PythonWin 2.3.5 (#62, Feb 8 2005, 16:23:02) [MSC v.1200 32
Sorry if this is sent twice, but I didn't see it get posted the first time.
I've got a fatal bug using Parente's pyTTS with Python 2.3 on Windoze 32
using MS SAPI 5.1 and Hammond's win32 module. The test program is
import pyTTS
tts = pyTTS.Create()
tts.Speak('Hello world.')
The resulting de
PROTECTED]
Many thanks in advance
Gordon Blackwell
Dr. G.B. Blackwell
Senior Chemist
Dentsply DeTrey
DeTrey Strasse 1
D-78467 Konstanz
Tel. +49 07531 583214
--
http://mail.python.org/mailman/listinfo/python-list
I have some code which relies on running each line of a file through a
large number of regexes which may or may not apply. For each pattern I
want to match I've been writing
gotit = mypattern.findall(line)
if gotit:
gotit = gotit[0]
...do whatever else...
This seems kind of clun
beginner wrote:
>
> What I want to do is to reorganize it in groups, first by the middle
> element of the tuple, and then by the first element. I'd like the
> output look like this:
itertools.groupby has already been mentioned, but it has a very specific
and complex behavior which may not be exa
> For the above (abrideged) dictionary, you would generate (use a
> fixed-width "programmers" font so the tree looks good):
>
> a
> |
> b
> |
> s
> / \
>i o
> / /
Yep, it's the old LoadLibrary failed problem.
I understand that python24.dll is required for the executable to run,
but I'm going to be building a few of these executables and I don't
want to have to bundle python24 along with each one.
We have python24.dll installed in c:/windows/system32, why i
I've written a script using ClientForm to automate opening and closing
ports on my Linksys router. It works, but I wonder if there isn't a
better way to do it.
The problem is that the list of arguments in the request generated by
.click()ing the form is incomplete and I have to edit it manually.
7stud wrote:
> Bejeezus. The description of groupby in the docs is a poster child
> for why the docs need user comments. Can someone explain to me in
> what sense the name 'uniquekeys' is used this example:
>
This is my first exposure to this function, and I see that it does have
some uses in
Paul Rubin wrote:
> It chops up the iterable into a bunch of smaller ones, but the total
> size ends up the same. "Telescope", "compact", "collapse" etc. make
> it sound like the output is going to end up smaller than the input.
Good point... I guess I was thinking in terms of the number of iter
I was going to try tweaking defaultdict, but I can't for the life of me
find where the collections module or its structures are defined. Python 2.5.
--
http://mail.python.org/mailman/listinfo/python-list
[EMAIL PROTECTED] wrote:
> Have you read and understood what MULTILINE means in the manual
> section on re syntax?
>
> Essentially, you can make a single pattern which tests a match against
> each line.
>
> -- Michael Dillon
No, I have not looked into this - thank you. RE's are hard enough to g
Gordon Airporte wrote:
> I was going to try tweaking defaultdict, but I can't for the life of me
> find where the collections module or its structures are defined. Python
> 2.5.
Thanks all. I was expecting it in Python. Time to dust off my C :-P
--
http://mail.python.org/ma
[EMAIL PROTECTED] wrote:
> if your search is not overly complicated, i think regexp is not
> needed. if you want, you can post a sample what you want to search,
> and some sample input.
I'm afraid it's pretty complicated :-). I'm doing analysis of hand
histories that online poker sites leave for
Gabriel Genellina wrote:
> As is often the case, a regular expression is NOT the right tool to use
> in this case.
>
> --Gabriel Genellina
Very interesting, thank you. I think 'pattern matching' and I
automatically think 'regular expressions'.
I did already find that it speeds things up to pre
Miles wrote:
> On 7/24/07, Gordon Airporte <[EMAIL PROTECTED]> wrote:
>> I did already find that it speeds things up to pre-test a line like
>>
>> if 'bets' or 'calls' or 'raises' in line:
>> run the appropriate re's
>
Ben Finney wrote:
>
> Not that I want to pick on you; I just don't want something wrong
> labelled as "proper" to go unchallenged in the archives :-)
Oh gawd :-P
I swear I have it right in the actual file! heh.
Copy and paste something that's compiled kids, copy and paste.
--
http://mail.pytho
momobear wrote:
> hi, Is there any way to show me detailed listings of all TCP and UDP
> endpoints in my microsoft windows XP in python way?
> thanks.
Unless you're looking for a programming exercise:
http://www.microsoft.com/technet/sysinternals/Utilities/TcpView.mspx
--
http://mail.python.org/
This is one of those nice, permissive Python features but I was
wondering how often people actually use lists holding several different
types of objects.
It looks like whenever I need to group different objects I create a
class, if only so I can use more meaningful names than '[2]' for the items
I believe that I've seen this discussed previously, so maybe there's
some interest in it. I wrote a threaded mail filtering framework a
while ago, and one of the modules does address verification via SMTP.
Since smtplib.SMTP uses blocking IO, it can block the whole
interpreter. Sometimes the
Aahz wrote:
>
> That doesn't make any sense. Blocking I/O generally releases the GIL,
> which is the whole reason Python doesn't totally suck for threading.
Nevertheless, among the caveats listed at
http://docs.python.org/lib/module-thread.html is:
"Not all built-in functions that may block wa
Aahz wrote:
>
> Assuming you have correctly tracked down the problem area, I would call
> that a thread bug in Python. But my experience is that you simply have
> run into a problem with the socket. I would suggest that using
> socket.setdefaulttimeout() would work just as well.
I believe that
I'm trying to find a way to take a file that another program has opened
and writes to periodically, open it simultaneously in Python, and
automatically update some of my objects in Python when the file is
written to.
I can open the file and manually readlines() from it to keep up to date,
it's
Nick Vatamaniuc wrote:
> You might need to look at pywin32 for Windows specific ways to listen
> to "file changed" event.
>
> On Unix a quick shortcut would be to simply read the output of 'tail -
> f ' command...
Ah, I forgot I have Cygwin installed, so I do have tail. Unfortunately
Windows w
Gabriel Genellina wrote:
> This article explains it in detail:
> http://tgolden.sc.sabren.com/python/win32_how_do_i/watch_directory_for_changes.html
>
>
> BTW, it's the top result on Google for "python notify file change windows"
>
> --Gabriel Genellina
Ah, excelent. Thank you. I'd started w
Vishal Bhargava wrote:
> What kind of file is it? CSV?
It's a hand history file generated by an online poker client, thus it
probably keeps it's data pretty much to itself otherwise, and in any
case I'm not a Windows programmer so I probably don't have the stomach
to get very deep into its proc
Absolute newbie here. In spite of the Python Software Foundation tutorial's
( http://www.python.org/doc/current/tut/tut.html ) use of the array
declaration
array(type[,initializer]), the Python interpreter does NOT accept the word
array! It , presumably, needs to have an import included. Coul
OK, thanks to all. The key statement is "from array import array" which is
not exactly intuitive!
Gord
"John Machin" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
>
> Bernard wrote:
>> On 12 nov, 20:19, "Gordon C" <[EMAIL PROTEC
OK Steve, But why do we say "from array import array" and NOT "from math
import math"? Why the difference in syntax?
Gord
"Steven D'Aprano" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Tue, 13 Nov 2007 11:26:28 -0500, Gor
One of the difficulties of this kind of a problem is that one is looking for
a solution to a limited number of data points for which it may be possible
to define a function. There can never be a guarantee that the chosen "fit"
can be reliably extrapolated. You need to tie a possible solution to
ovable ones, and then read stuff
> off them.
Any suggestions as to doing this on a Mac?
--
Gordon Rainsford
--
http://mail.python.org/mailman/listinfo/python-list
This is very cool stuff but I suspect that the code is unreadable to many
readers, including me. Just for fun here is a complete program, written in
Turbo Pascal, circa 1982, that does the job. Readable n'est pas?
Program dash;
var str: string[80];
n: integer;
odd: boolean;
begin
Hello all,
I'm looking for beta testers for a high performance, event-driven Python
application server I've developed.
About the server: the front end and other speed-critical parts of the
server are written in portable, multithreaded C++. The back end is an
embedded CPython interpreter. The s
One thing I forgot to add: the code is GPLv2, though I'll consider
alternative licenses for specific users.
Original Message
Subject: Beta testers needed for a high performance Python application
server
Date: Tue, 25 Mar 2008 20:31:39 +
From: Minor Gordon &l
trying to make sense of the manual for
eval, as it says if the passed globals dict lacks '__builtins__' it will
copy the current globals, and if no dict is passed it will use the
current globals (so what's the difference?). But anyway, as long as it
works I'm happy!
Thanks,
Gord
Hi,
I'm trying to parse Python code to an AST, apply some changes to the AST
and then compile and run the AST, but I'm running into problems when
trying to evaluate/execute the resulting code object. It seems that the
global namespace differs depending on where I call parse and eval/exec.
The fol
Hello :)
The result of various incompatibilities has left me needing to somehow
extract the address that a null pointer is pointing to with the null
pointer being exposed to python via PyCObject_FromVoidPtr
the code that creates the PyCObject is as follows:
tmp = PyCObject_FromVoidPtr (info.i
Aaron "Castironpi" Brady wrote:
> Did you try:
>
> tmp= PyLong_FromLong( ( long ) info.info.x11.display );
> PyDict_SetItemString (dict, "display", tmp);
> Py_DECREF (tmp);
>
> Or also try:
>
> PyCObject_AsVoidPtr( tmp );
> --
> http://mail.python.org/mailman/listinfo/python-list
the problem is
Aaron "Castironpi" Brady wrote:
> I see. If I understand, you have a PyCObject in a dictionary.
>
> Look at the 'ctypes' module and try calling PyCObject_AsVoidPtr. Its
> return type should be 'c_void_p', and you can use 'result.value' to
> get the original pointer.
> --
> http://mail.python.org
Aaron "Castironpi" Brady wrote:
> Yes, well said. But no, not true, not necessarily. You can choose/
> change return types with your code. If the call is defined already
> and you can't change the return, just define a new one that returns
> long.
> --
> http://mail.python.org/mailman/listinfo/
Aaron "Castironpi" Brady wrote:
>
> You are hard to follow. There is the 'cast' function, which I've had
> some success with, even in adding pointers and offsets. It took a
> look at the code for it though, and calling an undocumented version of
> it. I can post that later if you don't have luc
Aaron "Castironpi" Brady wrote:
>
> My pygame install just returns an integer in get_wm_info. Take a
> look:
>
pygame.display.get_wm_info()
> {'window': 1180066, 'hglrc': 0}
pygame.display.get_wm_info()['window']
> 1180066
ctypes.c_void_p( _ )
> c_void_p(1180066)
>
> You're sugge
Aaron "Castironpi" Brady wrote:
>
> What does print pythonapi.PyCObject_AsVoidPtr(display) give you?
> --
> http://mail.python.org/mailman/listinfo/python-list
Traceback (most recent call last):
File "pygametest.py", line 125, in
app = PyGameOGREApp()
File "pygametest.py", line 33, in __
Aaron "Castironpi" Brady wrote:
ctypes.pythonapi.PyCObject_AsVoidPtr.restype
>
ctypes.pythonapi.PyCObject_AsVoidPtr.argtypes
thank you so much, this works perfectly :)
--
Gord Allott ([EMAIL PROTECTED])
signature.asc
Description: OpenPGP digital signature
--
http://mail.pytho
h server I'm
connected to?
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
Lew wrote:
> John Thingstad wrote:
> > Perl is solidly based in the UNIX world on awk, sed, bash and C.
> > I don't like the style, but many do.
> Please exclude the Java newsgroups from this discussion.
Why? Do you speak for everyone in that, this, or other groups?
--
G.Etly
--
http://mai
s? And are there any back-end requirements? I assume you
would have to be running a webserver that supports sessions. Do you also
have to be running some sort of web container or servlet engine?
Thanks for any suggestions.
--
John Gordon A is for Amy, who fell down the stairs
[EMAIL PR
In <[EMAIL PROTECTED]> =?ISO-8859-1?Q?Michael_Str=F6der?= <[EMAIL PROTECTED]>
writes:
> John Gordon wrote:
> > I'm developing a web application that needs a semi-persistent way to
> > store information.
> >
> > I've looked at some options s
Title: Defunct when using subprocess.Popen
Hi!
I hope someone can help me out here!
I'm running a GUI in python which is able to launch a separate python process that will run forever. In rare cases I will want to kill the launched process. Every time I do so, I end up with the process as
Title: Defunct when using subprocess.Popen
Hi!
I hope someone can help me out here!
I'm running a GUI in python which is able to launch a separate python process that will run forever. In rare cases I will want to kill the launched process. Every time I do so, I end up with the process as
what
> functionality do you lose?
I'm trying to encapsulate all the setup work that must be done before any
actual logging occurs: setting the debugging level, choosing the output
filename, declaring a format string, adding the handler, etc.
If I didn't do all that in a class, where would I do
Hi,
background:
we are using python 2.4.3 on CentOS 5.3 with many threads - and our shell's
default stack size limit is set to 10240KB (i.e. ~10MB).
we noticed that python's Threading module appears to create threads with
this value as their stack size (we ran a sample program that creates 10
thr
;:
notfound
I have no idea why it would have worked otherwise for you. When you posted
your question, did you type the code by hand? Perhaps you made a mistake.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted
address.
Assuming you're running Windows, have a look at this page to download
the Apache web server:
http://mirror.candidhosting.com/pub/apache/httpd/binaries/win32/README.html
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for B
se it eliminates a lot of indentation.
However I recall one of my college CS courses stating that "one entry,
one exit" was a good way to write code, and this style has lots of exits.
Are there any concrete advantages of one style over the other?
Thanks.
--
John Gordon A
do I put them? (I assume the .so files will be .dll in Windows, but I
> dont know where to get these, put these) Anyone have a clue on this?
> Thanks.
I got the libxml files from http://pypi.python.org/pypi/lxml/2.3 and then
following the Downloads link. On my local Windows (XP) ma
In <023130ef$0$19421$c3e8...@news.astraweb.com> Steven D'Aprano
writes:
> > if time_difference < 3601:
> That's a potential off-by-one error. [...] The right test is:
> if time_difference <= 3600:
Aren't those two comparisons the same?
--
Joh
r.
Thanks!
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
good examples of code that builds a "raw" xml SOAP
message and sends it to a webserver, then reads the response? I think
that would be a good place for me to start.
Thanks for any replies.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com
where I'm stuck at the moment. I have no idea why
self.wsdl.services isn't getting populated correctly -- or even if that's
the real problem!
Any suggestions?
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
In <4a92ee38$0$1627$742ec...@news.sonic.net> John Nagle
writes:
> John Gordon wrote:
> > I'm developing a program that will use web services, which I have never
> > used before.
> Web services in general, or some Microsoft interface?
Microsoft. Exchan
SoapMessage)
resp = conn.getresponse()
body= resp.read()
headers = resp.msg
version = resp.version
status = resp.status
reason = resp.reason
conn.close()
print "Response: ", status, reason
print "Headers: ", headers
print body
-----
conn.endheaders()
conn.send(body)
vs
headers = { "Proxy-Authorization": myProxy }
conn = httplib.HTTPSConnection(host)
conn.request("POST", url, body, headers)
And yet they are not. The first section works, but I get an
"HTTP/1.1 401 Unauthorized" error from
In John Gordon writes:
> According to the documentation, these two sections of code should be
> equivalent:
> conn = httplib.HTTPSConnection(host)
> conn.putrequest("POST", url)
> conn.putheader("Proxy-Authorization", myProxy)
> conn.puthe
In John Gordon writes:
> As you can see, I am including the call to putheader() for Content-Length,
> and the debugging output confirms that the header is present in the outgoing
> message.
> So why am I getting a 411 Length Required error?
To follow up my own post, this was happe
lines,
and body text.
Why is this happening? I suspect it's because I'm declaring two instances
of the exceptionLogger class, which ends up calling logger.addHandler()
twice. Is that right?
What would be a better way to handle this?
Thanks.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
http://mail.python.org/mailman/listinfo/python-list
> > end_date = start_date + relativedelta(months=delta_period) +
> > timedelta(days=-delta_period)
> Where do you define 'delta_period', and what is your question?
There is no question; it is an answer in response to the original
post asking how to add months to a datet
ndividually, so I would think
> the order of the dict's fields does not matter since you'd manually
> specify each field's data.
The original example used a loop to get all of the dict fields and
add them to the GUI, instead of adding each field individually.
--
John Gord
conn = psycopg2.connect(cstr)
return conn.cursor()
def updatedb(dbtype):
db = dbconnect(dbtype)
db.execute("DML code")
print "updated " + dbtype
'close connection
It would probably be even better to return conn, as that would allow
upda
rl in the loop?
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list
= groupkey[tuple([0,3])] + [[0,1]]
The right-hand side of your expression is rightly complaining that
groupkey[(0,3)] doesn't exist.
Would you expect to say
a = a + 1
When a doesn't exist? Your code tries to do much the same thing.
--
John Gordon A is for Am
u actually mean that *you* want to select a value in
your code?
I could go on, but you get my point. We need lots more information
before we can even begin to help you.
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com
200)]
[100, 101, 102, 103, 104, 200, 201, 202, 203, 204]
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list
much less frequently.)
--
John Gordon A is for Amy, who fell down the stairs
gor...@panix.com B is for Basil, assaulted by bears
-- Edward Gorey, "The Gashlycrumb Tinies"
--
https://mail.python.org/mailman/listinfo/python-list
On Wed, Aug 3, 2011 at 9:25 AM, Steven D'Aprano <
steve+comp.lang.pyt...@pearwood.info> wrote:
> gc wrote:
>
> > Target lists using comma separation are great, but they don't work
> > very well for this task. What I want is something like
> >
> > a,b,c,d,e = *dict()
>
> a, b, c, d, e = [dict() for
Wrap your 3rd party library with a Python interface module, and run all
calls from foo and goo through your interface.
On Thu, Aug 4, 2011 at 2:48 PM, Mathew wrote:
> more info. I have a large 3rd party library with a function that looks
> like
> this
> void dumbfunc() {
> static int statevar=0
Is the `code` module (http://docs.python.org/library/code.html) an
insufficiently exact copy of an interpreter for you?
On Mon, Aug 8, 2011 at 4:17 PM, Francis Labarre
wrote:
> Hello everyone,
>
> I'm currently trying to port some embedded code from python 2.7 to python
> 3.2.
>
> The current co
501 - 600 of 604 matches
Mail list logo