I think Python is a OO and lite version of matlab

2006-12-07 Thread Allen
Does anyone agree with me? If you have used Matlab, welcome to discuss it. -- http://mail.python.org/mailman/listinfo/python-list

Re: I think Python is a OO and lite version of matlab

2006-12-08 Thread Allen
> Sure, and earth is a heavy version of a basketball. If all you have is > a hammer... > It is not make sense to compare earth and basketball. I think Python introduced many idea of matlab. If you have used matlab, you will say that they are very very similar, except that matlab was born years e

Set PyObject value from C extension

2007-06-11 Thread Allen
I have the PyObject pointers, and want to set different type of values to them. For example, INT8 nValue1 = 0; INT16 nValue2 = 1; FLOAT32 fValue = 1.0f; PyObject* var1 <= nValue1 PyObject* var2 <= nValue2 PyObject* var3 <= nValue3 How to do it? Regards, Allen Chen -- http://mail.p

How can I parse False from c extension?

2007-06-12 Thread Allen
>From python command, I call C extension method >>> import PyRPC >>> PyRPC.addBool(False) In C extension, I know parse integer value like this: PyArg_ParseTuple(args, "i", &nValue); But, how can I parse the False value? Regards, Allen Chen -- http://mail

Re: How can I parse False from c extension?

2007-06-12 Thread Allen
On 6 12 , 5 21 , "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 12 Jun 2007 05:07:13 -0300, Allen <[EMAIL PROTECTED]> > escribió: > > >> From python command, I call C extension method > >>>> import PyRPC > >>>> PyRP

In C extension .pyd, sizeof INT64 = 4?

2007-06-12 Thread Allen
My C extension works wrong, and debug it, found that sizeof (INT64) = 4, not 8. I compile on Windows XP platform. Please tell me how to fix it to support INT64? Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-12 Thread Allen
On 6 12 , 6 03 , Allen <[EMAIL PROTECTED]> wrote: > My C extension works wrong, and debug it, found that sizeof (INT64) = > 4, not 8. > I compile on Windows XP platform. > Please tell me how to fix it to support INT64? > Thanks. I find it is strange. In an exe win32 co

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-12 Thread Allen
On 6 12 , 8 08 , "Gabriel Genellina" <[EMAIL PROTECTED]> wrote: > En Tue, 12 Jun 2007 08:39:43 -0300, Allen <[EMAIL PROTECTED]> > escribió: > > > PyObject* method(PyObject* self, PyObject *args) > > { > >INT64 nValue; /* LINE_HERE */ > >

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-12 Thread Allen
On 6 13 , 4 06 , "Martin v. Lo"wis" <[EMAIL PROTECTED]> wrote: > Allen schrieb: > > > My C extension works wrong, and debug it, found that sizeof (INT64) = > > 4, not 8. > > I compile on Windows XP platform. > > Please tell me how to fix i

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-12 Thread Allen
On 6 13 , 9 00 , Allen <[EMAIL PROTECTED]> wrote: > On 6 13 , 4 06 , "Martin v. Lo"wis" <[EMAIL PROTECTED]> wrote: > > > Allen schrieb: > > > > My C extension works wrong, and debug it, found that sizeof (INT64) = > > > 4, not 8. >

How to format a string from an array?

2007-06-13 Thread Allen
a = range(256) I want to output the formated string to be: 00 01 02 03 04 05 06 07 08 09 0a 0b 0c 0d 0e 0f 10 11 12 13 14 15 16 17 18 19 1a 1b 1c 1d 1e 1f f0 f1 f2 f3 f4 f5 6 f7 f8 f9 fa fb fc fd fe ff How to do it? --

Re: In C extension .pyd, sizeof INT64 = 4?

2007-06-13 Thread Allen
Value). > > That's still incorrect. For the L format flag, use PY_LONG_LONG, > not your own INT64 type. More generally: always use the type > documented in > > http://docs.python.org/api/arg-parsing.html > > Regards, > Martin PY_LONG_LONG is decleared as __int64 on wind

Is there any way to catch expections when call python method in C++

2007-06-13 Thread Allen
call python method failed"); } Py_Finalize(); } Can I catch it from C++? Thank you. Regards, Allen Chen -- http://mail.python.org/mailman/listinfo/python-list

[email protected]

2009-02-20 Thread Allen
ert statements and in SQLPLUS set define off to run those statements, but it would be nice to insert "&" directly in PYTHON. Allen -- http://mail.python.org/mailman/listinfo/python-list

How to distribute C/C++ python extension module on Linux?

2008-12-05 Thread Allen
I have build an extension module PyRPC.so (why not be libPyRPC.so?). The PyRPC.so uses API in libRPCPacker.so. How to distribute the PyRPC.so? I just put PyRPC.so and libRPCPacker.so in the same folder. And under this folder, run python. It tells PyRPC module cannot find a method in libRPCPacker.s

Re: Zipping python modules

2008-06-17 Thread Allen
Larry Bates wrote: Brian Vanderburg II wrote: I've installed Python 2.5 on MSW and it works. I'm preparing it to run from a thumb drive so I can run applications by dropping them onto the python.exe or from command line/etc. It works but the size is quite large. I've compressed most of the

Save turtle state?

2008-06-17 Thread Allen
I'm using the turtle module in Python. Is there a way to save the turle state at any moment for recursive algorithms to easily return the turtle to an earlier point for another branch/etc? Brian Vanderburg II -- http://mail.python.org/mailman/listinfo/python-list

Re: Ternary operator alternative in Ptyhon

2008-06-18 Thread Allen
kretik wrote: I'm sure this is a popular one, but after Googling for a while I couldn't figure out how to pull this off. Let's say I have this initializer on a class: def __init__(self, **params): I'd like to short-circuit the assignment of class field values passed in this dictionary to

Adding functions to an existing instance

2008-06-26 Thread Allen
I need a way to add a method to an existing instance, but be as close as possible to normal instance methods. Using 'new' module or such code as 'def addfunc(...): def helper(...) .. setattr(...)' causes a cyclic reference which requires using 'gc.collect' to release the object. Also 'new' is

Re: Adding functions to an existing instance

2008-06-26 Thread Allen
[EMAIL PROTECTED] wrote: On 26 juin, 17:18, Allen <[EMAIL PROTECTED]> wrote: I need a way to add a method to an existing instance, but be as close as possible to normal instance methods. def set_method(obj, func, name=None): if not name: name = func.__name__ setattr(obj, name

Re: sqlite3 alternative option

2008-06-26 Thread Allen
Gandalf wrote: Hi every one I'm looking for a good alternative db to replace sqlite I'm using pySQlite3, And I tried to translate very big database from Mysql to sqlite. I generated through PHP a python script that insert 200,000 records to my sqlite db and took me more then 5 hours and managed

PyPy questions

2008-06-30 Thread Allen
I read the website of some information about PyPy, and how a translator translates the RPython code to C/CLI/Java/etc to be compiled to a native executable or something like that. Would it be possible, in PyPy, to write such an extension that could easily be compiled to native code from Python

Manipulating bitsets in struct

2008-07-09 Thread Allen
I'm using Python to do some simple network programming, and found the struct module very useful for such things, but is there a way to easily manipulate bitsets such as a 16 bit word being split into 4 parts like 2 bits, 1 bit, 4 bits, and 9 bits? Perhaps something like: struct.pack('!h(2:1:4

Using two pythons in an application

2008-08-03 Thread Allen
I'm in the process of developing an application that will use Python for a scripting support. In light of the upcoming changes to Python, I was wondering if it is possible to link to and use two different versions of Python so that in the future, scripts could be migrated to the new version,

Re: Using two pythons in an application

2008-08-03 Thread Allen
Larry Bates wrote: Allen wrote: I'm in the process of developing an application that will use Python for a scripting support. In light of the upcoming changes to Python, I was wondering if it is possible to link to and use two different versions of Python so that in the future, sc

Re: I'm happy with Python 2.5

2011-02-27 Thread Bill Allen
On Sun, Feb 27, 2011 at 07:34, n00m wrote: > Python 2.5 (r25:51908, Sep 19 2006, 09:52:17) [MSC v.1310 32 bit > (Intel)] on win32 > > and Idon't move neither up nor down from it (the best & the fastest > version) > -- Trolls should also be h

Python SIG for Healthcare IT

2011-03-11 Thread Brad Allen
For those seeking to work with Python-based tools in the healthcare IT industry, this SIG ("special interest group") can provide a forum to discuss challenges and hopefully foster knowledge sharing and tools development. Relevant topics include tools for working with healthcare standard data format

Re: PyPad 2.7.1 (Update 2)

2011-05-14 Thread Bill Allen
Anyway, I love this little Python app. Been wanting something like this for a long time. I installed this on my iPhone running iOS 4.3.3 (8J2). Congrats on a great app! Bill Allen <http://www.python.org> <http://www.catb.org/%7Eesr/faqs/hacker-howto.html><http://taarc.rebe

Re: Abandoning Python

2011-05-21 Thread Bill Allen
You have ideas, a text editor, and a computer - best get to coding. What's stopping you? You largely want Python, with modifications. Join the development team and help implement those changes, or fork your own flavor and do what you wish. Right? You imagine it's an easy task, so get after

Python stopped installing packages

2019-01-29 Thread Hamish Allen
Hi, Recently I’ve been trying to code a Discord bot in Python 3.6.2, then I realised that some features of discord.py were only available in Python 3.7+ (as seen here on the right near the top https://docs.python.org/3/library/asyncio.html), so I downloaded 3.7.2. After correctly changing the

Restore a unified diff

2005-01-04 Thread Nick Allen
ified diff generated delta? Thanks for all your help in advance. Best Regards, Nick Nick Allen <[EMAIL PROTECTED]> -- http://mail.python.org/mailman/listinfo/python-list

A few SWIG/Python questions

2005-03-06 Thread Derek Allen
I'm using SWIG to generate glue code for my embedded/extended python app. There are a couple of very frustrating issues that I would like to see if anyone else has solutions for: - Once I have created and initialized a module with SWIG I can call it by executing a python file with no problems.

Re: random.sample with large weighted sample-sets?

2014-02-16 Thread Charles Allen
How efficient does this thing need to be? You can always just turn it into a two-dimensional sampling problem by thinking of the data as a function f(x=item), generating a random x=xr in [0,x], then generating a random y in [0,max(f(x))]. The xr is accepted if 0 < y <= max(f(xr)), or rejected (an

Re: Pythondocs.info : collaborative Python documentation project

2006-09-16 Thread Brad Allen
Here is an idea for improving Python official documentation: Provide a tab-based interface for each entry, with the overview/summary at the top-level, with a row of tabs underneath: 1. Official documentation, with commentary posted at the bottom (ala Django documentation) 2. Exampl

Re: Pythondocs.info : collaborative Python documentation project

2006-09-17 Thread Brad Allen
Rakotomandimby (R12y) wrote: > On Sat, 16 Sep 2006 12:30:56 -0700, Robert Hicks wrote: > > > That said...the Python docs are open source. Just start going through > > them and adding examples. > > ASPN (activestate) is a good place for examples... Yes, but that requires a separate search and depe

Python getting some positive attention at digg.com

2006-09-17 Thread Brad Allen
This made it to the front page of digg.com yesterday, and is now up to 597 diggs. It has some discussion among folks who are trying to decide which language to learn next...if any of you Pythonistas have digg accounts, you might want to chime in. http://digg.com/programming/Python_Programming_for_

Re: Pythondocs.info : collaborative Python documentation project

2006-09-17 Thread Brad Allen
Kay Schluehr wrote: > Personally, I never found the Python docs particular bad. It is > rewarding to write good documentation because documentation has > different aspects i.e. introductory/tutorial, exhaustive/manual and > design documentation aspects. Not to mention cookbook recipes. > > I also

Re: Pythondocs.info : collaborative Python documentation project

2006-09-17 Thread Brad Allen
A.M. Kuchling wrote: > However, this code isn't used at the moment because I have no idea > what to do about version controlling the links. Do we just use the > current links whenever the HTML is generated? Make a copy of the list > and commit them into SVN, so the links cease to be updated but

Re: does anybody earn a living programming in python?

2006-09-30 Thread Brad Allen
I'll attest that we have a shortage of Python developers in the Dallas area; in the DFW Python user group (dfwpython.org) we occasionally encounter local employers who have trouble finding local Python developers who can take on new work. Most of the group members are already employed, so the stand

PyCon 2007: What talks/tutorials/panels do you want to see?

2006-09-30 Thread Brad Allen
This thread is for posting ideas and general brainstorming about what kinds of talks folks would be interested in seeing at PyCon 2007. The idea is to inspire volunteer speakers to propose talks that they might not otherwise realize would be popular, and to give PyCon organizers a whiff of fresh co

How can I obtain the exception object on a generlized except statement?

2007-06-10 Thread Chris Allen
I am confused on one aspect of exception handling. If you specify the exception object type to match in an except statement it is possible to also obtain the exception object itself, but I can't figure out how to get the exception object when I don't specify a match. for example: >>> try: urlope

Re: How can I obtain the exception object on a generlized except statement?

2007-06-10 Thread Chris Allen
Just what I was looking for thanks Diez and John. -- http://mail.python.org/mailman/listinfo/python-list

Re: [dfwPython] A Few More Forrester Survey Questions

2007-05-18 Thread Brad Allen
At 10:22 AM -0500 5/18/07, Jeff Rush wrote: >I'm down to the wire here on answering the Forrester survey but am stumped on >a few questions I hope someone can help me out with. > >1) What -existing- examples of the use of Python to create social >web applications are there? These include chat,

Global package variable, is it possible?

2007-08-03 Thread Chris Allen
Hello fellow pythoneers. I'm stumped on something, and I was hoping maybe someone in here would have an elegant solution to my problem. This is the first time I've played around with packages, so I'm probably misunderstanding something here... Here's what I'd like to do in my package. I want my

Re: Global package variable, is it possible?

2007-08-03 Thread Chris Allen
> Hmm. So maybe something like this makes sense: > > __init__py: > ### > _default_cfg_file = 'config.conf' > > import configure > def loadcfg(filename): > configure.cfgfile = filename > try: > reload(pkg_module1) > reload(pkg_module2) > except NameErr

Re: Global package variable, is it possible?

2007-08-03 Thread Chris Allen
On Aug 3, 11:16 am, Carsten Haese <[EMAIL PROTECTED]> wrote: > On Fri, 2007-08-03 at 17:51 +, Fabio Z Tessitore wrote: > > Heve you tried to do something like: > > > # module configure.py > > value1 = 10 > > value2 = 20 > > ... > > > # other module > > from configure import * > > > # now I'm ab

Re: Global package variable, is it possible?

2007-08-03 Thread Chris Allen
On Aug 3, 10:51 am, Fabio Z Tessitore <[EMAIL PROTECTED]> wrote: > Heve you tried to do something like: > > # module configure.py > value1 = 10 > value2 = 20 > ... > > # other module > from configure import * > > # now I'm able to use value1 value2 etc. > var = value1 * value2 > > bye Thanks for

Re: Global package variable, is it possible?

2007-08-03 Thread Chris Allen
> Only for knowing more about modules: is there a way to dinamically reload > an already imported module? > > bye > Fabio Yeah you can reload modules with the reload builtin function. -- http://mail.python.org/mailman/listinfo/python-list

Re: Global package variable, is it possible?

2007-08-06 Thread Chris Allen
On Aug 6, 12:41 am, Bruno Desthuilliers wrote: > Chris Allen a écrit : > > > > > Hello fellow pythoneers. I'm stumped on something, and I was hoping > > maybe someone in here would have an elegant solution to my problem. > > This is the first time I

Re: Global package variable, is it possible?

2007-08-06 Thread Chris Allen
On Aug 6, 2:27 am, Ben Finney <[EMAIL PROTECTED]> wrote: > Bruno Desthuilliers <[EMAIL PROTECTED]> writes: > > I've read all the thread, and it seems that your problem is mostly > > to share a single dynamic state (the config) between several > > modules. So I do wonder: have you considered the use

Re: Newbie question about a web server

2007-08-20 Thread Chris Allen
On Aug 20, 12:02 am, Frank Millman <[EMAIL PROTECTED]> wrote: > Hi all > > I have just started to dabble in writing my own web server. > > I googled for 'python web server', and this is the first hit - > >http://fragments.turtlemeat.com/pythonwebserver.php > > It has the source code for a simpl

sys.argv is munging my command line options

2007-08-29 Thread Chris Allen
The command line syntax for my program is as follows: action key=value key=value... Where action is a required string (ie. 'backup', 'init', 'restore', etc) and the program can accept one or more key value pairs. I know this syntax isn't standard, but I think it works great for my program as eac

Re: sys.argv is munging my command line options

2007-08-29 Thread Chris Allen
Thanks for the reply. Oops... I forget that I was calling the program from a shell script, the shell script was responsible for goofing up my command line options. Solved. Thanks again. On Aug 29, 12:28 pm, Ant <[EMAIL PROTECTED]> wrote: > On Aug 29, 8:11 pm, Chris Allen <[EMA

GREAT VIDEO! >> http://www.tbn.org/films/videos/To_Hell_And_Back.ram << Just click link to view the free video.......... May 22, 2005 7:37:11 pm

2007-09-05 Thread Allen Bryant
Allen and jessica Bryant24-- Sent from my T-Mobile Sidekick® -- http://mail.python.org/mailman/listinfo/python-list

Re: [python-advocacy] A Pythonic Way to Measure and Improve Your Programming Skills?

2007-03-10 Thread Brad Allen
At 6:05 AM -0600 3/9/07, Jeff Rush wrote: >Prior to PyCon I'd been thinking about some kind of campaign, service or >documents, that I call "So you think you know Python...". My initial idea was >for use by Python programmers, who are honest with themselves, to have a way >to measure their knowled

Re: [python-advocacy] A Pythonic Way to Measure and Improve Your Programming Skills?

2007-03-10 Thread Brad Allen
At 9:10 AM -0800 3/10/07, Michael Bernstein wrote: >On Sat, 2007-03-10 at 10:01 -0600, Brad Allen wrote: > >> When I discussed this problem with Michael Bernstein at PyCon he suggested >> the idea of creating a "chroot jail" for each web session which could run >

Re: python in academics?

2007-11-01 Thread Charles Allen
"early" compared to most course sequences: <http://www4.ncsu.edu/~rwchabay/mi/> -- Charles Allen -- http://mail.python.org/mailman/listinfo/python-list

package import

2008-02-05 Thread Sean Allen
ok, what am i doing wrong? in current working directory i have: t.py sub/t1.py t.py is: import sub.t1 i get: ImportError: No module named sub.t1 t.py is import sub i get: ImportError: No module named sub.t1 -- i am obviously missing something really basic here. have tried on multiple ma

Re: package import

2008-02-06 Thread Sean Allen
Thanks. Found that 10 minutes after I sent. On Feb 6, 2008, at 4:57 AM, Diez B. Roggisch wrote: > Sean Allen wrote: > >> ok, what am i doing wrong? >> >> in current working directory i have: >> >> t.py >> sub/t1.py >> >> t.py is: >>

Function Overloading and Python

2008-02-24 Thread Allen Peloquin
I have a personal project that has an elegant solution that requires both true multiple inheritance of classes (which pretty much limits my language choices to C++ and Python) and type-based function overloading. Now, while this makes it sound like I have to resign myself to C++, which I am not a

Re: Function Overloading and Python

2008-02-24 Thread Allen Peloquin
On Feb 24, 11:44 pm, Stefan Behnel <[EMAIL PROTECTED]> wrote: > Allen Peloquin wrote: > > class B > > { > > fun(A x, A y, A z)... > > fun(A1 x, A y, A z)... > > } > > > class B1 > > { > > fun(A1 x, A y, A z)... > >

Re: mod_python Unable to create file

2008-03-02 Thread Sean Allen
On Mar 2, 2008, at 3:24 AM, kaush wrote: > On Mar 1, 11:24 pm, Marc 'BlackJack' Rintsch <[EMAIL PROTECTED]> wrote: >> On Sat, 01 Mar 2008 22:47:02 -0800, kaush wrote: >>> I am using Apache and mod_python to service POST/GET requests on MAC >>> OS. My script tries to create a file >> >>> file = op

Re: Urgent : How to do memory leaks detection in python ?

2008-03-17 Thread Sean Allen
On Mar 17, 2008, at 3:21 AM, Pradeep Rai wrote: Thanks for your inputs !!! I have installed python v 2.5 on my Linux machine and executing the tool again. I would like to share the memory status( using free -m command ) before and after the execution of the tool. BEFORE EXECUTION =

Re: Apache binary error?

2008-03-17 Thread Sean Allen
On Mar 17, 2008, at 10:55 AM, Michael Wieher wrote: > have simple webpage running > > apache, mod_python > > the error is binary > ...binary as in "every other" time I load the page, Firefox keeps > telling me I'm downloading a python script, and asks to open it in > WINE, which is really

Re: What Programming Languages Should You Learn Next?

2008-03-19 Thread Sean Allen
> Haven't found that killer problem so far ... for Haskell, check out HAppS. They have some great web application stuff going on. -- http://mail.python.org/mailman/listinfo/python-list

Re: Does the Python community really follow the philospy of "Community Matters?"

2009-02-02 Thread Craig Allen
I think what you have found is a remarkable characteristic of this language. Somehow, perhaps something to do with guido or python itself, python has a very strong non-dogmatic streak. It's a relief really. If I were to pose a "is python or its community really xyz?" I would wonder about the "on

"Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
I must not be understanding something. This is a simple recursive function that prints all HTML files in argv[1] as its scans the directory's contents. Why do I get a RuntimeError for recursion depth exceeded? #!/usr/bin/env python import os, sys def main(): absToRel(sys.argv[1], sys.argv[2]

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 4:46 pm, Thomas Allen wrote: > I must not be understanding something. This is a simple recursive > function that prints all HTML files in argv[1] as its scans the > directory's contents. Why do I get a RuntimeError for recursion depth > exceeded? > > #!/usr/bin/e

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 5:31 pm, Peter Otten <[email protected]> wrote: > Thomas Allen wrote: > > I must not be understanding something. This is a simple recursive > > function that prints all HTML files in argv[1] as its scans the > > directory's contents. Why do I get a

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 6:05 pm, Peter Otten <[email protected]> wrote: > Thomas Allen wrote: > > On Feb 17, 5:31 pm, Peter Otten <[email protected]> wrote: > >> Thomas Allen wrote: > >> > I must not be understanding something. This is a simple recursive > >>

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 7:05 pm, Christian Heimes wrote: > Thomas Allen wrote: > > I'm referring to the same code, but with a print: > > > for file in os.listdir(dir): > >     if os.path.isdir(file): > >         print "D", file > > > in place of th

Re: "Maximum recursion depth exceeded"...why?

2009-02-17 Thread Thomas Allen
On Feb 17, 9:08 pm, Christian Heimes wrote: > Thomas Allen wrote: > > If you'd read the messages in this thread you'd understand why I'm not > > using os.walk(): I'm not using it because I need my code to be aware > > of the current recursion dept

Re: "Maximum recursion depth exceeded"...why?

2009-02-18 Thread Thomas Allen
On Feb 18, 4:51 am, alex23 wrote: > On Feb 18, 7:34 pm, [email protected] wrote: > > > Yeah, but wget -r -k will do that bit of it, too. > > Wow, nice, I don't know why I never noticed that. Cheers! Hm...doesn't do that over here. I thought it may have been because of absolute links (not to s

Re: "Maximum recursion depth exceeded"...why?

2009-02-19 Thread Thomas Allen
On Feb 18, 10:15 pm, [email protected] wrote: > Thomas Allen wrote: > > On Feb 18, 4:51 am, alex23 wrote: > > > On Feb 18, 7:34 pm, [email protected] wrote: > > > > > Yeah, but wget -r -k will do that bit of it, too. > > > > Wow, nice,

FTP libs for Python?

2009-02-20 Thread Thomas Allen
I'm interested in writing a script to ease deployment of minor changes on some websites here, and it would involve some SFTP transfers. Do you know of good alternatives to ftplib, which is relatively low- level? Thomas -- http://mail.python.org/mailman/listinfo/python-list

Re: FTP libs for Python?

2009-02-20 Thread Thomas Allen
On Feb 20, 9:45 am, coldpizza wrote: > Why don't you just use Curl? It does a dozen of protocols including > SFTP. And if the command line version is not enough for you then there > are Python bindings for Curl. I'm actually hoping to eventually package these tools using py2exe for some co-worker

Re: Threading and tkinter

2009-02-20 Thread Craig Allen
> The statement > >     x=x+1 > > (which, by the way, should stylistically be written > >     x = x + 1 > yes I was wondering what "x=x+1" meant until you translated it... oh, "x = x + 1" of course! I thought to myself. Oh wait no I'm sarcastic. -- http://mail.python.org/mailman/listinfo/python-

Re: Emacs vs. Eclipse vs. Vim

2008-12-01 Thread Craig Allen
I would never tell someone what editor to use in the same way I wouldn't tell someone what religion to believe in. Which is to say, I would tell my kids or other trusting soul... I used emacs for years, I was eventually convinced to start using nedit, which is quite nice. For an IDE, which I need

Re: HELP!...Google SketchUp needs a Python API

2008-12-02 Thread Craig Allen
> Just remember thought that if you threat Python like a > hammer, suddenly everything will look like a bail. > don't you mean if you use Python like a pitchfork? -- http://mail.python.org/mailman/listinfo/python-list

Re: Confused about class relationships

2008-12-02 Thread Craig Allen
what you have is a totally acceptable factory system. Not sure why you are using a generator, but that's another matter. I agree with the previous replies regarding inheritance... this is not a case for inheritance. You could, however, have Bar be a borg with the Bar factory built in as a class

Re: How to modify a program while it's running?

2008-12-16 Thread Craig Allen
On Dec 16, 10:25 am, Joe Strout wrote: > Here's my situation: I'm making an AIM bot, but the AIM server will > get annoyed if you log in too frequently (and then lock you out for a > while). So my usual build-a-little, test-a-little methodology doesn't > work too well. > > So I'd like to restruct

Re: Python is slow

2008-12-16 Thread Craig Allen
On Dec 14, 6:38 pm, cm_gui wrote: > hahaha, do you know how much money they are spending on hardware to > make > youtube.com fast??? > > > By the way... I know of a very slow Python site called YouTube.com. In > > fact, it is so slow that nobody ever uses it. less than they'd spend to implement i

Re: I always wonder ...

2008-12-24 Thread Craig Allen
this is one of the most subtle trolls I've ever read. you sir, are a master! On Dec 22, 7:53 am, [email protected] wrote: > ... shouldn't people who spend all their time trolling be doing something > else: studying, working, writing patches which solve the problems they > perceive to exist in the t

Re: Python 2.6, GUI not working on vista?

2008-10-09 Thread Craig Allen
as a 20 year observer of microsoft, I have to say this is not amazing at all... and I do not mean that as a random put down of Microsoft. Microsoft often develops things in response to demand... but they don't always fit in their system well, and thus are not really used in the spirit of the demand

Re: IDE Question

2008-10-15 Thread Craig Allen
it's commercial, but I like WingIDE enough to recommend... I run it on Linux and Mac and it works well. -craig On Oct 15, 7:19 am, "Steve Phillips" <[EMAIL PROTECTED]> wrote: > Hi All, > I am just wondering what seems to be the most popular IDE. The reason > I ask is I am currently at war with m

Proposal for thread-safe Tkinter

2008-10-23 Thread Allen Taylor
x27;m new to Python and am not initiated in the deep Pythonic developer world. Can someone give me some pointers? Many thanks. Allen B. Taylor MDA 9445 Airport Road Brampton, ON L6S 4J3 905-790-2800 ext. 4350 [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/python-list

Re: dictionary

2008-10-24 Thread Craig Allen
when I was a baby programmer even vendors didn't have documentation to throw out... we just viewed the dissassembeled opcodes to find out how things worked... we never did find out much but I could make the speak click, and we were happy with it. -- http://mail.python.org/mailman/listinfo/python-li

Re: How to examine the inheritance of a class?

2008-10-24 Thread Craig Allen
> > Developer. NOT User. I go around and around on this issue, and have ended up considering anyone using my code a user, and if it's a library or class system, likely that user is a programmer. I don't really think there is a strong distinction... more and more users can do sophisticated configu

Re: How to examine the inheritance of a class?

2008-10-24 Thread Craig Allen
> Thank you, Chris. Class.__bases__ is exactly what I wanted to see. > And I thought I had tried isinstance(), and found it lacking -- but I > just tried it again, and it does what I hoped it would do. While isinstance is no doubt the proper way to access this information, you may have run into

Re: Structures

2008-11-03 Thread Craig Allen
> > Care to say more about what they are, not what they're like? > I'm not the OP and I may be biased by C++, I can imagine the complaints when I say, classes are just structures with function members for working on the structure. -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON WORKING WITH PERL ??

2008-11-03 Thread Craig Allen
> article:http://www.linuxjournal.com/article/3882 interesting read, thanks -- http://mail.python.org/mailman/listinfo/python-list

Re: PYTHON WORKING WITH PERL ??

2008-11-03 Thread Craig Allen
> article:http://www.linuxjournal.com/article/3882 even if it is by Eric Raymond -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding the instance reference of an object

2008-11-04 Thread Craig Allen
> > If the assert statement fails (and it does), then no copy was made and > Python is not call-by-value. > > So Python is not call-by-value, and it's not call-by-reference, so ... > either Python doesn't exist, or it uses a different calling convention. > coming from C/C++ Python seemed to me cal

Re: Finding the instance reference of an object

2008-11-04 Thread Craig Allen
On Nov 4, 11:06 am, Joe Strout <[EMAIL PROTECTED]> wrote: > On Nov 4, 2008, at 7:42 AM, Craig Allen wrote: > > > coming from C/C++ Python seemed to me call by reference, for the > > pragmatic reason you said, modificaitons to function arguments do > > affect th

Re: Finding the instance reference of an object

2008-11-12 Thread Craig Allen
> arguably even older than that to Lisp. > Firstly, thanks to those that have responded to my part in this debate, I have found it very informative and interesting as I have the entire thread. However, with regard to comments that I led myself astray, I want to reiterate the one thing I find det

Re: duck-type-checking?

2008-11-13 Thread Craig Allen
> This is better achived, not by littering the functional code unit with > numerous assertions that obscure the normal function of the code, but > rather by employing comprehensive unit tests *separate from* the code > unit. that doesn't seem to work too well when shipping a library for someone el

Re: duck-type-checking?

2008-11-13 Thread Craig Allen
> since both are equally informative when it comes to tracing the faulty > assignment. > steve, they are not equally informative, the assertion is designed to fire earlier in the process, and therefore before much mischief and corruption can be done compared to later, when you happen to hit the m

Re: Official definition of call-by-value (Re: Finding the instance reference...)

2008-11-17 Thread Craig Allen
> >> * Do all objects have values? (Ignore the Python > >> docs if necessary.) > > > If one allows null values, I am current thinking yes. > > I don't see a difference between a "null value" > and not having a value. > I think the difference is concrete... an uninitialized variable in C has no va

Re: Finding the instance reference of an object

2008-11-19 Thread Craig Allen
I've just come to the conclusion it's not possible to call functions in python, to do so is undefined and indeterminate, like dividing by zero. Henceforth no calling functions for me as clearly it's the devil's playground. -- http://mail.python.org/mailman/listinfo/python-list

Re: Opening for Python Programmer at Newport Beach

2009-03-03 Thread Craig Allen
On Mar 3, 10:17 am, Cool Dude wrote: > Hello , > This is Aniket from Techclique, a New Jersey based software > development and IT consulting firm providing top quality technical and > software professionals on a permanent and contractual basis to > Government and commercial customer including fort

  1   2   >