Re: Dumping all the sql statements as backup

2012-07-25 Thread Jack
On 07/25/2012 09:56 AM, andrea crotti wrote: > I have some long running processes that do very long simulations which > at the end need to write things on a database. > > At the moment sometimes there are network problems and we end up with > half the data on the database. > > The half-data problem

Re: pythonic way

2012-11-02 Thread jack
Sometimes, I need to alter the element as traverse a list like this (it's a sample): c = range(10) i = 0 for ele in c: # do something # branch: c[i] = # value i += 1 How to be pythonic? 2012/11/2 0:54, Zero Piraeus : : On 1 November 2012 11:32,

Re: pythonic way

2012-11-02 Thread jack
thanks,but I don't think enumerate() is my want Have some ways to operate the reference of element,not a copy when I tried to traverse a list? I'm so sorry about my poor English, hope you don't mind it. On 2012/11/2 15:56, Chris Angelico wrote: On Fri, Nov 2, 2012 at 6:14

How to specify a field name dynamically

2012-11-06 Thread jack
I have three tables: table1 |———| | id | f1 | |———| table2 |———| | id | f2 | |———| table3 |———| | id | f3 | |———| I want define a function to insert records to someone,but

Re: How to specify a field name dynamically

2012-11-06 Thread jack
On 2012/11/7 11:36, Dave Angel wrote: On 11/06/2012 10:14 PM, jack wrote: I have three tables: What's a table? I'll assume you're using Python, but what version, and what extra libraries do you have installed ? At least show your import statements, so we might have a chance at

Does python(django) have an official database driver to access SQLFire?

2012-01-28 Thread Jack
Does python(django) have an official database driver to access SQLFire? Or is there any roadmap to deliver an official database driver? Anyone know about this? -- http://mail.python.org/mailman/listinfo/python-list

Why __slots__ slows down attribute access?

2011-08-23 Thread Jack
People have illusion that it is faster to visit the attribute defined by __slots__ . http://groups.google.com/group/comp.lang.python/msg/c4e413c3d86d80be That is wrong. The following tests show it is slower. __slots__ are implemented at the class level by creating descriptors (Implementing Descrip

Zope - Restrict Acquisition Question

2005-03-02 Thread Jack
I have the following requirement for Zope: I need to use Zope as a web cloning tool. The directory structure is as follows: ->>Core Folder ->>Client 1 ->>Client 2 ... ->>Client n 1] Client 1 and Client 2 need to acquire from the Core Folder. 2] Client 2 must not acquire from Client 1. 3] Client 1

Re: In pyqt, some signals seems not work well

2013-08-04 Thread Jack
On 2013/8/5 2:20, Vincent Vande Vyvre wrote: Le 04/08/2013 18:06, Jacknaruto a écrit : Hi, Guys! I created a thread class based QThread, and defined some signals to update UI through main thread. the UI used a stackedWidget,someone page named 'progressPage' have a progressBar and a Label, t

My script use paramiko module, it will be blocked at compute_hmac

2013-02-22 Thread Jack
; #10 file '/usr/lib/python2.6/site-packages/paramiko-1.9.0-py2.6.egg/paramiko/packet.py', in 'read_message' #13 file '/usr/lib/python2.6/site-packages/paramiko-1.9.0-py2.6.egg/paramiko/transport.py', in 'run' #16 file '/usr/lib64/python2.6/thr

How to delete a Python package

2006-07-12 Thread Jack
Installing a Python package is easy, most of time just "Setup.py install" However, setup.py doesn't seem to support an uninstall command. If I want to delete a package that I do not use any more, should I just manually delete the corresponding sub directory under Lib\site-packages? -- http://ma

Re: How to delete a Python package

2006-07-12 Thread Jack
I'd second Skip's point. Now that setup.py does install, and it knows what to uninstall (because it copied the files in the first place) I think it's a good idea to have "setup.py uninstall" support. :) <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >Nick> Uninstall support i

Python for Embedded Systems?

2006-07-14 Thread Jack
Is there a Python packaging that is specifically for embedded systems? ie, very small and configurable so the user gets to select what modules to install? For Linux-based embedded systems in particular? I'm thinking of running it on the Linksys's Linux-based open source router WRT54G. It has 4MB

Re: Python for Embedded Systems?

2006-07-15 Thread Jack
Yes, I mean Lua, not Loa :-p Lua is a nice language. Like you said, it doesn't have many libraries as Python does. Plus, it's still evolving and the libraries are changing. I found a few functions not working last time I tried kepler libraries. It's good for embedded systems though because of its

Re: micro authoritative dns server

2006-07-26 Thread Jack
I was looking for something like that. I came across this: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491264 It's not ready to use but you can modify it. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I'm new in python. I know that there are several classes fo

Re: micro authoritative dns server

2006-07-27 Thread Jack
No, it's very low level :) Please post back if you find a good solution (or have built something that you want to open source :) > Well, thanks, but I think it's so few for beginning. ,-( > Is it not any high-level DNS class? E!!! > > Regards, > Xan. > > J

Looking for a text file based wiki system written in Python

2006-08-12 Thread Jack
I'd like to set up a wiki system for a project I'm working on. Since I'm not good at databases, and there's really not much stuff to put into the wiki, I hope it is text file-based. I used DokuWiki before, which is very nice but it's written in PHP. Is there a similar system that's written in Pytho

Re: Looking for a text file based wiki system written in Python

2006-08-12 Thread Jack
Thanks! Because it was so well known, I thought it was database-based :) > http://moinmoin.wikiwikiweb.de/ Any good and simple text file-based blog system in Python? -- http://mail.python.org/mailman/listinfo/python-list

https on ActiveState Python 2.4?

2006-08-21 Thread Jack
I'm trying to use urllib to retrieve an https page but I am getting an "unknown url type: https" It seems that ActiveState Python doesn't have SSL support. Any advice? -- http://mail.python.org/mailman/listinfo/python-list

Re: https on ActiveState Python 2.4?

2006-08-22 Thread Jack
blems because it's not a pure .py patch. "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Mon, 21 Aug 2006 15:31:20 -0700, "Jack" <[EMAIL PROTECTED]> > declaimed the following in comp.lang.python: > >> I&

Re: https on ActiveState Python 2.4?

2006-08-22 Thread Jack
Lundh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jack wrote: >> Thanks for the reply. >> >> I found some openSSL patches for earlier versions of ActiveState Python. >> It involves .pyd files and they look for earlier versions of Python DLLs &g

Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
When I try TooFPy with the SOAP and XML-RPC sample client code provided in TooFPy tutorials, a log entry shows up quickly on web server log window, but it takes a long time (5 seconds or longer) for the client to output a "Hello you." It seems like the web server is fast because the log entry show

Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
Basically I am trying to find a high performance web server. Since Python is installed on all of the servers, It'll be great if the web server is written in Python as well. Otherwise, I will have to install lighttpd or other web servers. Then the largest issue with Python-based web servers is perf

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
To be honest, I'm not sure what kind of performance I can get even with medusa or twisted. I assume it won't be as fast as servers written in C/C++ and use async sockets, but should be much better than multi-processed or multi-threaded servers in written in Python. Not sure if anyone else has an i

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
>> I will have to install lighttpd or other web servers. > > do that. > > If all you need is a webserver there's little reason to have it in > python. Just use one of the several high quality open source webservers. lighttpd is a great web server. I just didn't want to bother download the source,

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-06 Thread Jack
ost:4334/SOAP/greeting') print srv.greeting('you', 5) It really surprised me that they were so slow to execute. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > >Jack> When I try TooFPy with the SOAP and XML-RPC sample client code >Jack>

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-06 Thread Jack
>> I will have to install lighttpd or other web servers. > > do that. > > If all you need is a webserver there's little reason to have it in > python. Just use one of the several high quality open source webservers. If it is a Python web server, it would be nice to extend it by putting code right

Re: Python SOAP and XML-RPC performance extremely low?

2006-07-07 Thread Jack
Ha! Thanks Fredrik for the big hint :) I wasn't careful when reading that page. Was in too much of a hurry to try the code :) > and a "5" as the second argument in the greeting call. I wonder what that > does ? ;-) > > (if you need a hint, look for "waits the given number of seconds" on this >

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-07 Thread Jack
I just did some testing between CherryPy's web server and lighttpd. My test was very simple and I used ab.exe for this purpose. CherryPy web server can serve about 140 simple request / second, while lighttpd can handle around 400 concurrent requests. > You haven't really said much about your requi

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-07 Thread Jack
eresting if some CherryPy (or python) users can post their performance benchmarks. Jack "Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] >I just did some testing between CherryPy's web server and lighttpd. > My test was very simple and I used ab.exe for

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-07 Thread Jack
You are right. Load test can be complicated because of the various patterns of web applications and usages. The simple tests I mentioned and conducted just give myself some idea about the performance. Given the same set up, some numbers should be comparable and reveal some aspects on web servers'

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-07 Thread Jack
I'm using CherryPy 2.2.1. I just ran benchmark.py multiple times. The fastest it got is 195 req/sec, with 50 threads. Python was taking 50+% CPU when the test was running. > It would be good to know which version of CherryPy you are using. That > wiki page is talking about the CP 2.0 branch; 2.1

Re: Looking for a high performance web server written in Python, and supports CGI/FastCGI

2006-07-07 Thread Jack
e only way to write apps... "Tim Williams" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 07/07/06, Jack <[EMAIL PROTECTED]> wrote: >> I just did some testing between CherryPy's web server and lighttpd. >> My test was very simple and I

Re: help a newbie with a IDE/book combination

2006-07-10 Thread Jack
I use PyScripter. http://www.mmm-experts.com/ I find it easy to use. It runs on Windows and it does have a good help file. <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I already have a couple of newbie books on Python itself, but would > rather get started with a nice to

python port for iPod

2006-02-04 Thread jack
Hi, Since May 2005 there is a port of python (v2.4.1) for Apple iPod. Porting was an 'easy' job, the only consideration was how you can write with a iPod, ipodlinux [1] people did an interface called iPodRead that allows you type into iPod scrolling left or right on the wheel. (This affects

MS SQL Server Extension?

2007-04-24 Thread Jack
Hi all, in my next project, my Python code needs to talk to an MS SQL 2000 Server. Internet search gives me http://pymssql.sourceforge.net/ I wonder what module(s) people are using. My code runs on a Linux box so the module has to build on Linux. Any hints/pointers are welcome. -- http://mail.p

Re: MS SQL Server Extension?

2007-04-25 Thread Jack
Thanks Tim for the reply. Good info. I just set up pymssql. Setting it up was fairly straightforward. What kind of problems does it have with unicode? "Tim Golden" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jack wrote: >> Hi all, in my next project

Large Amount of Data

2007-05-25 Thread Jack
I need to process large amount of data. The data structure fits well in a dictionary but the amount is large - close to or more than the size of physical memory. I wonder what will happen if I try to load the data into a dictionary. Will Python use swap memory or will it fail? Thanks. -- http:

Re: Large Amount of Data

2007-05-25 Thread Jack
Thanks for the replies! Database will be too slow for what I want to do. "Marc 'BlackJack' Rintsch" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > In <[EMAIL PROTECTED]>, Jack wrote: > >> I need to process large amount of data. The dat

Re: Large Amount of Data

2007-05-26 Thread Jack
John Nagle" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jack wrote: >> I need to process large amount of data. The data structure fits well >> in a dictionary but the amount is large - close to or more than the size >> of physical memory. I wonder what wil

Re: Large Amount of Data

2007-05-26 Thread Jack
exist in other chunks. In order to do this, I'll need to have a rule to partition the data into chunks. So this is more work in general. "kaens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On 5/25/07, Jack <[EMAIL PROTECTED]> wrote: >> I need

Re: Large Amount of Data

2007-05-26 Thread Jack
If swap memery can not handle this efficiently, I may need to partition data to multiple servers and use RPC to communicate. "Dennis Lee Bieber" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Fri, 25 May 2007 11:11:28 -0700, "Jack" <[EMAIL PROTE

Re: Large Amount of Data

2007-05-26 Thread Jack
I'll save them in a file for further processing. "John Machin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On May 26, 6:17 pm, "Jack" <[EMAIL PROTECTED]> wrote: >> I have tens of millions (could be more) of document in files.

Re: Large Amount of Data

2007-05-27 Thread Jack
age news:[EMAIL PROTECTED] > On May 27, 11:24 am, "Jack" <[EMAIL PROTECTED]> wrote: >> I'll save them in a file for further processing. > > Further processing would be what? > Did you read the remainder of what I wrote? > -- http://mail.python.org/mailman/listinfo/python-list

What's the best way to iniatilize a function

2007-05-27 Thread Jack
I have a set of functions to wrap a library. For example, mylib_init() mylib_func() mylib_exit() or handle = mylib_init() mylib_func(handle) mylib_exit(handle) In order to call mylib_func(), mylib_init() has to be called once. When it's done, or when program exits, mylib_exit() should be called

Re: What's the best way to iniatilize a function

2007-05-27 Thread Jack
Thanks Steven, for the reply. Very helpful. I've got a lot to learn in Python :) Some questions: > (1) Python can automatically free most data structures and close open > files, but if your needs are more sophisticated, this approach may not be > suitable. Since it's a wrapper of a DLL or .so f

Parser Generator?

2007-08-18 Thread Jack
Hi all, I need to do syntax parsing of simple naturual languages, for example, "weather of London" or "what is the time", simple things like these, with Unicode support in the syntax. In Java, there are JavaCC, Antlr, etc. I wonder what people use in Python? Antlr also has Python support but I'm n

Re: Parser Generator?

2007-08-18 Thread Jack
anyone has experiences using any of the parser generators with CJK languages, I'd be very interested in hearing that. Jack "Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi all, I need to do syntax parsing of simple naturual languages, > for example

Re: Parser Generator?

2007-08-19 Thread Jack
te. Or, if it's "What is ... " I'll probably redirect it to wikipedia. Otherwise, I'll throw it to a search engine. So, extremelyl simple stuff ... "samwyse" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Jack wrote: >> Thanks for all t

Re: Parser Generator?

2007-08-19 Thread Jack
Very interesting work. Thanks for the link! "Alex Martelli" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > > """ > NLTK ¡ª the Natural Language Toolkit ¡ª is a suite of open source Python > modules, data sets and tutorials suppor

Re: Parser Generator?

2007-08-24 Thread Jack
Thanks Jason. Does Parsing.py support Unicode characters (especially CJK)? I'll take a look. "Jason Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 18, 3:22 pm, "Jack" <[EMAIL PROTECTED]> wrote: >> Hi all, I need to

Re: Parser Generator?

2007-08-26 Thread Jack
Good to know, thanks Paul. ! "Paul McGuire" <[EMAIL PROTECTED]> wrote in message > Pyparsing was already mentioned once on this thread. Here is an > application using pyparsing that parses Chinese characters to convert > to English Python. > > http://pypi.python.org/pypi/zhpy/0.5 > > -- Paul -

Re: Parser Generator?

2007-08-26 Thread Jack
Thanks Json. There seem to be a few options that I can pursue. Having a hard time chooing one now :) "Jason Evans" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 24, 1:21 pm, "Jack" <[EMAIL PROTECTED]> wrote: >> "Jas

unsigned integer?

2007-03-10 Thread Jack
This is a naive question: "%u" % -3 I expect it to print 3. But it still print -3. Also, if I have an int, I can convert it to unsigned int in C: int i = -3; int ui = (unsigned int)i; Is there a way to do this in Python? -- http://mail.python.org/mailman/listinfo/python-list

Re: unsigned integer?

2007-03-10 Thread Jack
Thanks for all the replies. Because I want to convert an int, Dan's function actually does it well. "Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This is a naive question: > > "%u" % -3 > > I expect it to print 3. But it sti

Where to find pywin32/win32all for Python 1.5.2?

2007-04-03 Thread Jack
I searched around but could not find win32all source or binaries for earlier versions of Python. Don't ask me why but I have to use Python 1.5.2 in this project :) The sourceforget page only has latest versions. ActiveState does not even have 1.5.2 for download. Is it still available somewhere?

Re: Where to find pywin32/win32all for Python 1.5.2?

2007-04-03 Thread Jack
Thanks Jay. When I searched the net, I also found mentioning of win32all-125.exe but I couldn't find a download link. Does anyone still have it in the HD? "jay graves" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Apr 3, 7:52 pm, "Jack&quo

Custom Python Runtime

2007-04-06 Thread Jack
Since the full installation of Python (from either the standard installer or ActiveState installer) is too big for my intended use, I'd like to build a custom distribution of Python for Windows platform, omitting some lib files, such as audio, tk, printing, testing units, etc. Is there a way to

Re: Custom Python Runtime

2007-04-09 Thread Jack
Python with compile time options? 3. Some files go to the Windows\system32 directory, including some win32all files. Can they be in the current directory as python.exe? 4. Are the registry entries necessary? Thanks "Jack" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED

Re: Custom Python Runtime

2007-04-12 Thread Jack
It seems that pywintypes24.dll and pythoncom24.dll have to be in C:\Windows\System32 directory. Otherwise I get an error. Any way to get around that? >> 3. Some files go to the Windows\system32 directory, including some >> win32all >> files. Can they be in the current directory as python.exe? >

Re: Custom Python Runtime

2007-04-12 Thread Jack
age news:[EMAIL PROTECTED] > En Thu, 12 Apr 2007 19:02:53 -0300, Jack <[EMAIL PROTECTED]> escribió: > >> It seems that pywintypes24.dll and pythoncom24.dll have to be in >> C:\Windows\System32 directory. Otherwise I get an error. >> Any way to get around that? > > Both a

Python editor/IDE on Linux?

2007-04-13 Thread Jack
I wonder what everybody uses for Python editor/IDE on Linux? I use PyScripter on Windows, which is very good. Not sure if there's something handy like that on Linux. I need to do some development work on Linux and the distro I am using is Xubuntu. -- http://mail.python.org/mailman/listinfo/pyth

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
Thanks but...I'm looking for something free :) > try wing ide. i tried it and i love it. it's available for windows as > well for linux -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
> We should do a weekly poll. :) Seriously - this question is coming up > very frequently and everybody has their preference. Maybe a web page, something like pythonidepoll.com :) I apologize for bringing up this FAQ once again ;-p > My (current) favorite: > pida (exists as a ready package on D

Re: Python editor/IDE on Linux?

2007-04-13 Thread Jack
That's a good one. I got to find out what's special with Emacs :) > I'll let you in on a little secret. We all use Emacs. Those who claim to > use vim are just trying to prevent you from ever becoming a successful > Python programmer, and therefore reduce competition. > -- > Michael Hoffman

Check it out:Very good online resources, tons of cool men and beautiful women eager for lovers....:

2007-10-04 Thread jack
Check it out:Very good online resources,tons of cool men and beautiful women eager for lovers: 1.Buy tickets online: http://groups.google.com/group/all-good-things/web/want-to-buy-tickets-online-come-here 2.No 1 social network: http://groups.google.com/group/all-good-things/web/1-social-netwo

Re: Simple HTML template engine?

2007-10-16 Thread Jack
This one is really small and simple (one small file): http://davidbau.com/archives/2007/02/18/python_templates.html "allen.fowler" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello, > > Can anyone recommend a simple python template engine for generating > HTML that relies only

More friends more money,get friends while get paid

2007-10-23 Thread jack
More friends more money,get friends while get paid http://groups.google.com/group/all-good-things/web/get-friends-while-get-paid Get 1 Million Guaranteed Real Visitors, FREE! http://www.t2000ultra.com/?rid=12740 -- http://mail.python.org/mailman/listinfo/python-list

Trying to build cjson on Widnows, getting errors

2007-11-28 Thread Jack
Since I don't have VS2003, I'm trying to build cjson with MingW and Cygwin but I'm getting lots of errors like these: build\temp.win32-2.5\Release\cjson.o(.text+0x8e):cjson.c: undefined reference to `_imp___Py_NoneStruct' build\temp.win32-2.5\Release\cjson.o(.text+0x95):cjson.c: undefined refe

Is a "real" C-Python possible?

2007-12-09 Thread Jack
its performance advantage. Or maybe I'm wrong because the core modules that matter are already in C and those Python files are really a think wrapper. Anyhow, if would be ideal if Python has performance similar to Java, with both being interpreted languages. Jack -- http://mail.python.

Re: Is a "real" C-Python possible?

2007-12-09 Thread Jack
>> I'm not sure >>how much of the C-Python is implemented in C but I think the more >>modules implemented in C, the better performance and lower memory >>footprint it will get. > > Prove it. ;-) I guess this is subjective :) - that's what I felt in my experience with web applications developed i

Re: Is a "real" C-Python possible?

2007-12-09 Thread Jack
>> I think most Java-Python benchmarks you can find online will indicate >> that Java is a 3-10 times faster. A few here: >> http://mail.python.org/pipermail/python-list/2002-January/125789.html >> http://blog.snaplogic.org/?p=55 > > There are lies, damn lies and benchmarks. :) > > Pure Python cod

Re: Help needed with python unicode cgi-bin script

2007-12-09 Thread Jack
You probably need to set stdout mode to binary. They are not by default on Windows. "weheh" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dear web gods: > > After much, much, much struggle with unicode, many an hour reading all the > examples online, coding them, testing them,

Re: Help needed with python unicode cgi-bin script

2007-12-10 Thread Jack
Just want to make sure, how exactly are you doing that? > Thanks for the reply, Jack. I tried setting mode to binary but it had no > affect. -- http://mail.python.org/mailman/listinfo/python-list

Strict mode?

2007-12-18 Thread Jack
While enjoying the dynamic feature of Python I find it difficult to refactor code without breaking it. For example, if I modify a function to take more arguments, or arguments of different types, I'll need to manually find out all places where the function is called and make sure I modify them a

IronPython faster than CPython?

2007-12-18 Thread Jack
I learned a lot from the other thread 'Is a "real" C-Python possible?' about Python performance and optimization. I'm almost convinced that Python's performance is pretty good for this dynamic language although there are areas to improve, until I read some articles that say IronPython is a few

Binary File Reading : Metastock

2006-05-02 Thread Jack
Hi I am having a little trouble trying to read a binary file, I would like to write an ascii to Metastock converter in python but am not having a lot of success. The file formats are http://sf.gds.tuwien.ac.at/00-pdf/m/mstockfl/MetaStock.pdf If any one can point me in the right direction it wo

Re: Python editor recommendation.

2006-05-09 Thread Jack
PyScripter, a nativen Windows application, free. > > Can any one please recommend me an editor for coding Python. Thank u. > I have Komodo (www.activestate.com) in my mind. Is the editor any good? > > regards. -- http://mail.python.org/mailman/listinfo/python-list

Can Python installation be as clean as PHP?

2006-05-09 Thread Jack
I like Python but I don't really like Python's installation. With PHP, I only need one file (on Linux) and maybe two files on Windows then I can run my PHP script. This means no installation is required in most cases. I just copy the file and I get PHP. Extending PHP is fairly easy, too, just by co

Using a proxy with urllib2

2008-01-10 Thread Jack
I'm trying to use a proxy server with urllib2. So I have managed to get it to work by setting the environment variable: export HTTP_PROXY=127.0.0.1:8081 But I wanted to set it from the code. However, this does not set the proxy: httpproxy = '127.0.0.1:3129' proxy_support = urllib2.ProxyHan

Re: Using a proxy with urllib2

2008-01-11 Thread Jack
Rob, I tried your code snippet and it worked great. I'm just wondering if getopener( ) call is lightweight so I can just call it in every call to fetchurl( )? Or I should try to share the opener object among fetchurl( ) calls? Thanks, Jack "Rob Wolfe" <[EMAIL PROTECTED]

Re: Using a proxy with urllib2

2008-01-11 Thread Jack
> Works for me. > How do you know that the proxy is not set? The proxy drops some URLs and the URLs were not being dropped when I did this :) > Try this: Thank you. I'll give it a try. -- http://mail.python.org/mailman/listinfo/python-list

Re: Using a proxy with urllib2

2008-01-11 Thread Jack
>> I'm trying to use a proxy server with urllib2. >> So I have managed to get it to work by setting the environment >> variable: >> export HTTP_PROXY=127.0.0.1:8081 >> >> But I wanted to set it from the code. However, this does not set the >> proxy: >> httpproxy = '127.0.0.1:3129' >> prox

UR SCHOOL AND COLLEGE'S, PLEASE REGISTER UR SCHOOL AND COLLEGE NAME'S IN THIS SITE. "" IF U HAVE TIME THEN DO IT. PLEASE I REQUEST. """

2008-06-06 Thread jack
IF you want to meet your old school mate's & college mate's of your life there is a chance, just enter school or college details in the below site http://www.batchmates.com/institution/regform.asp?refid=1529710&reflink=31481 please forward to ur friend's tell to them forward this message to there

benchmark

2008-08-06 Thread Jack
I know one benchmark doesn't mean much but it's still disappointing to see Python as one of the slowest languages in the test: http://blog.dhananjaynene.com/2008/07/performance-comparison-c-java-python-ruby-jython-jruby-groovy/ -- http://mail.python.org/mailman/listinfo/python-list

swig and DWMAPI.dll

2008-08-09 Thread Jack
is only on windows vista. Has anyone run into this problem? Is there an easy solution? Thanks, Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: swig and DWMAPI.dll

2008-08-09 Thread Jack
Or, an equally excellent answer would be "you still use swig? That's so outdated. Try Awesome McAwesomestein's Awesome C++ to Python Autowrap" -- http://mail.python.org/mailman/listinfo/python-list

Re: 有中国人乎?

2008-04-22 Thread Jack
teach others. 不错的语言啊,可惜一直用C++ begin:vcard fn:Jack Liu n:Liu;Jack email;internet:[EMAIL PROTECTED] x-mozilla-html:TRUE version:2.1 end:vcard -- http://mail.python.org/mailman/listinfo/python-list

ctypes: return a pointer to a struct

2008-04-24 Thread Jack
I'm not able to build IP2Location's Python interface so I'm trying to use ctypes to call its C interface. The functions return a pointer to the struct below. I haven't been able to figure out how I should declare the return type of the functions and read the fields. Any hint is appreciated. typede

Re: ctypes: return a pointer to a struct

2008-04-24 Thread Jack
Thanks for the prompt and detailed reply. I tried that but was getting this error: AttributeError: 'LP_IP2LocationRecord' object has no attribute 'country_short' Here's my version, which I think is equivalent to yours: (as a matter of fact, I also tried yours and got the same error.) class IP2

Re: ctypes: return a pointer to a struct

2008-04-24 Thread Jack
That worked. Thank you! >> AttributeError: 'LP_IP2LocationRecord' object has no attribute >> 'country_short' > > As it says, LP_IP2LocationRecord has no attribute called > 'country_short'. IP2LocationRecord does. > > Use the 'contents' attribute to dereference the pointer. That is: > > yourstruct.

best way to index numerical data ?

2006-03-31 Thread Jack
taken in computer science for example to index text numbers..hash maps or something else ?? Thanks, Jack -- http://mail.python.org/mailman/listinfo/python-list

15541 - Best, Cheapest Web-Hosting, Domain at $1.99!

2010-03-04 Thread jack
World's Cheapest Rate Hosting, 99.9% Uptime US Based Dedicated Server, Fast Customer Service Register Domain only at $1.99 per Year 3 Month Hosting Free with 1 year Package http://hostwebspaces.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: External Hashing [was Re: matching strings in a large set of strings]

2010-05-01 Thread Jack
http://www.swizwatch.com/ All Cartier replica watches sold at Hotwristwatch.com are brand-new and high quality. Each Cartier Replica Watch produced is examined carefully by our quality test department and each watch is inspected again before being sent to our customer. It is our desire that you do

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
d .Utilize the administrative tools within WebFOCUS to provide end users with ad hoc and personalized reporting while maintaining a secure and cohesive environment. .Thorough understanding of the WebFOCUS product architecture Best Regards, Jack Stutter Niche Soft Solutions INC. Direct: +1503-536-204

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
d .Utilize the administrative tools within WebFOCUS to provide end users with ad hoc and personalized reporting while maintaining a secure and cohesive environment. .Thorough understanding of the WebFOCUS product architecture Best Regards, Jack Stutter Niche Soft Solutions INC. Direct: +1503-536-20

HOT LIST

2017-04-12 Thread Jack
Hi Hope you doing great! Greeting from Niche Soft Solutions. I would like to present our topnotch consultants currently available. Please have a look at the below hot list of Niche Soft Solutions an

HOT LIST

2017-04-13 Thread Jack
B NC OPEN With Regards Jack -- https://mail.python.org/mailman/listinfo/python-list

HOT LIST

2017-04-18 Thread Jack
B NC OPEN Regards Jack Email ID: j...@nichesoftsolutions.com Phone NO:5035362043 -- https://mail.python.org/mailman/listinfo/python-list

HOTLIST

2017-07-17 Thread Jack
Hello Professionals, Greetings from NICHE SOFTWARE SOLUTIONS, Thank you for taking time to look over my Mail, This is Jack Stutter from Niche Software Solutions Inc working as Sr Bench sales recruiter, We have very strong bench consultants. I would highly appreciate if you can add me j

  1   2   3   4   5   >