A question about thrift performance.

2013-01-05 Thread Vincent
Hi, all I have issue of thrift-performance in python, does anyone has an experience on thrift-in-python? My question in stackoverflow: http://stackoverflow.com/questions/14171227/why-is-thrift-binary-protocol-serialization-so-much-slow Copy the question to here(open stackoverflow to check pre

Re: Deadlock and a rather weird stacktrace

2011-03-10 Thread Vincent
Can nobody explain this? Please. how can a sleep() continue in a __bootstrap() ? Regards, Vincent On 4 feb, 13:39, Vincent van Beveren wrote: > Hi everyone, > > I'm currently working on a multithreaded GUI system in Python 2.6. In this > system I use conditions to coordinat

Re: how to make python socket server work with the app.MainLoop() in wxpython?

2006-07-31 Thread Vincent
I think you should use thread. I just write a similar program using thread. It works well You can try it, good luck! -- http://mail.python.org/mailman/listinfo/python-list

Is there a python system to admin MySQL database online?

2006-08-20 Thread vincent
Just like the phpMySQLadmin? Thanks for reply! -- http://mail.python.org/mailman/listinfo/python-list

Re: String to unicode - duplicating by function the effect of u prefix

2009-06-19 Thread Vincent
On Jun 18, 3:23 pm, CiTro wrote: > Thank you, Peter. That solved my problem. the another way is, codecs.raw_unicode_escape_decode(stringOne) == stringTwo -- http://mail.python.org/mailman/listinfo/python-list

Re: Python class gotcha with scope?

2009-06-20 Thread Vincent
On Jun 21, 2:32 pm, billy wrote: > I don't quite understand why this happens. Why doesn't b have its own > version of r? If r was just an int instead of a dict, then it would. > > >>> class foo: > > ...     r = {} > ...     def setn(self, n): > ...             self.r["f"] = n > ...>>> a = foo() >

Re: Python class gotcha with scope?

2009-06-20 Thread Vincent
On Jun 21, 2:38 pm, Vincent wrote: > On Jun 21, 2:32 pm, billy wrote: > > > > > I don't quite understand why this happens. Why doesn't b have its own > > version of r? If r was just an int instead of a dict, then it would. > > > >>> class fo

Re: error when use libgmail with proxy

2009-06-22 Thread Vincent
t;, line 360, in > _call_chain > result = func > (*args) > File "build\bdist.win32\egg\mechanize\_http.py", line 751, in > https_open > AttributeError: 'int' object has no attribute > 'find_key_cert' > > Is it possible the issue of mechanize? I do not know why you need proxy. i have used gdata do the same work like you. then i descript it in my blog: vincent-w.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

problem about cx_Oracle

2009-07-15 Thread Vincent
return self.getfields(cursor) and i got a error, it's message is : JRYZCFZB_X_ZQY select * from JRYZCFZB_X_ZQY where rownum <=2 Traceback (most recent call last): File "", line 1, in File "c:/vincent/wd/django/mysite/mysite\..\mysite\tools \data_convert.py", line 107,

Re: problem about cx_Oracle

2009-07-15 Thread Vincent
On Jul 16, 12:18 pm, Vincent wrote: > hi, all: > > i am using cx_oracle now. > > i write code as below: > > def __getfields_by_tbname(self,tbname): >         cursor = self.ora_db.cursor() >         print tbname >         sql = 'select * from %s where rownu

? get negative from prod(x) when x is positive integers

2013-06-28 Thread Vincent Davis
'max = ', 4, 'min = ', 1) . ('prod =', 0, 'max =', 4, 'min =', 1) ('prod =', 1729382256910270464, 'max =', 4, 'min =', 1) ('prod =', 0, 'max =', 4, 'min =', 1) Whats going on? Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

Re: ? get negative from prod(x) when x is positive integers

2013-06-28 Thread Vincent Davis
ms to be a result of using ipython, or at least how I am using it "ipython notebook --pylab inline". Thanks Vincent Davis 720-301-3003 On Fri, Jun 28, 2013 at 4:04 PM, Joshua Landau wrote: > On 28 June 2013 15:38, Vincent Davis wrote: > > I have a list of a list of intege

Segfault when setting an instance property on 2.7.3

2012-08-25 Thread Vincent Pelletier
igger the bug while under valgrind (which reported some "Conditional jump or move depends on uninitialized value(s)" & "Use of uninitialized value of size 8" in PyObject_Free, but reading the code I guess they are harmless and unrelated). Any idea of ways to debug this pr

Re: Segfault when setting an instance property on 2.7.3

2012-08-26 Thread Vincent Pelletier
Le samedi 25 août 2012 11:38:47, Vincent Pelletier a écrit : > Any idea of ways to debug this problem further ? Trying with pypy ("just to see"), I got even more reproductible segfaults - even with valgrind. Turns out, I was not keeping strong references to ctypes buffers, wh

Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
o t = _maketile(file, m, bbox, 1) File "/Library/Frameworks/Python.framework/Versions/7.0/lib/python2.7/site-packages/PIL/PsdImagePlugin.py", line 266, in _maketile bytecount = read(channels * ysize * 2) Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
Oops, I was going to make note of the file size. 1.2MB Vincent On Sat, Oct 13, 2012 at 10:31 PM, Chris Angelico wrote: > On Sun, Oct 14, 2012 at 3:23 PM, Vincent Davis > wrote: > > OverflowError: Python int too large to convert to C long > > line 266, in _maketile >

Re: Understanding and dealing with an exception

2012-10-13 Thread Vincent Davis
hat I need to do with this program. When I get an exception that seems to be an issue with PIL (i.e. not my program or a problem with the image) I am not sure what the "right" or conventional way to deal with it is. Vincent On Sat, Oct 13, 2012 at 10:49 PM, Chris Angelico wrote: >

Re: Understanding and dealing with an exception

2012-10-14 Thread Vincent Davis
Yes afile is the file name and extension, ifile is the full file name and path. Thanks Vincent On Sunday, October 14, 2012, MRAB wrote: > On 2012-10-14 05:23, Vincent Davis wrote: > >> I am working on a script to find bad image files. I am using PIL >> and specifically image

get each pair from a string.

2012-10-21 Thread Vincent Davis
I am looking for a good way to get every pair from a string. For example, input: x = 'apple' output 'ap' 'pp' 'pl' 'le' I am not seeing a obvious way to do this without multiple for loops, but maybe there is not :-) In the end I am going to what

Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
ings if I get a chance later today. Thanks again! Vincent On Mon, Oct 22, 2012 at 12:45 AM, Emile van Sebille wrote: > On 10/21/2012 11:33 AM, Vincent Davis wrote: > >> I am looking for a good way to get every pair from a string. For example, >> input: >> x = 'app

Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
@vbr Thats interesting. I would never have come up with that. Vincent On Sun, Oct 21, 2012 at 3:48 PM, Vlastimil Brom wrote: > vbr -- http://mail.python.org/mailman/listinfo/python-list

Re: get each pair from a string.

2012-10-21 Thread Vincent Davis
To All, I appreciate the range of answers and the time each of you take to think about and answer my question. Whether or not I use them I find them all educational. Thanks again. Vincent On Mon, Oct 22, 2012 at 2:03 AM, Emile van Sebille wrote: > On 10/21/2012 12:06 PM, Ian Kelly wr

Check email header for RFC 822 standard and match emails between imap servers.

2011-08-18 Thread Vincent Davis
ageWrapper::GetMessageReceivedTime @ 170 ( gmetan...@domain.com )> Failed with 0x80004001, last successful line = 168. 2011-08-16T16:47:47.328-06:00 808 E:Migration ExchangeMigration!GetMessageDescription @ 198 (gmetan...@domain.com)> Sent: 2011-08-16T22:47:47.000Z. Received: 2011-08-16T

questions about multiprocessing

2011-03-04 Thread Vincent Ren
/python2.6/multiprocessing/pool.py", line 148, in map return self.map_async(func, iterable, chunksize).get() File "/usr/lib/python2.6/multiprocessing/pool.py", line 422, in get raise self._value httplib.InvalidURL: nonnumeric port: '' I run Python 2.6 on Ubuntu 10.10 Regards Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: questions about multiprocessing

2011-03-05 Thread Vincent Ren
Got it. After putting commas, it works (The 'o' was a mistake when I posted, sorry about it ). Thanks to all of you :) On Mar 5, 5:12 pm, Dennis Lee Bieber wrote: > On Fri, 4 Mar 2011 20:08:21 -0800 (PST), Vincent Ren > declaimed the following in > gmane.comp.python.g

Re: questions about multiprocessing

2011-03-06 Thread Vincent Ren
I've got some new problems and I tried to search on Google but got no useful information. I want to download some images with multiprocessing.pool In my class named Renren, I defined two methods: def getPotrait(self, url): # get the current potraits of a friend on Renren.com

Re: questions about multiprocessing

2011-03-07 Thread Vincent Ren
On Mar 7, 9:21 pm, Jean-Michel Pichavant wrote: > It's a mistake many beginners do, I don't understand why, but it's a > very common thing. RTFM should stand for "Read The Formidable (error) > Message" as  well. > Your url is invalid, check your url definition. > > JM I've fixed that problem. Bu

Re: questions about multiprocessing

2011-03-07 Thread Vincent Ren
Got it, thanks. But what should I do if I want to improve the efficiency of my program? On Mar 8, 11:37 am, Robert Kern wrote: > I'm afraid his response applies to this as well: you can't pass methods to > pool.map() or any other such communication channel to your subprocesses. -- http://mail

Re: questions about multiprocessing

2011-03-07 Thread Vincent Ren
I'm just learning python. After changed it to a non-OOP program, it works. Thank you all for suggestions :) On Mar 8, 1:38 pm, Benjamin Kaplan wrote: > Is there any particular reason you're using processes and not threads? > Functions that wait for stuff to happen in C land, such as I/O calls, >

A problem about ipython

2011-03-31 Thread Vincent Ren
time.setops, set.Set)') --- NameError Traceback (most recent call last) /home/vincent/hacking/python/ in () /usr/lib/python2.6/profile.pyc in run(statement, filename, sort) 68 prof = Profile()

Re: A problem about ipython

2011-04-02 Thread Vincent Ren
On Apr 1, 7:11 pm, "eryksun ()" wrote: > Try this instead: > > profile.runctx('timer.test(100, settime.setops, set.Set)', globals=globals(), > locals=locals()) It works! Thanks a lot -- http://mail.python.org/mailman/listinfo/python-list

Re: A problem about ipython

2011-04-02 Thread Vincent Ren
On Apr 2, 1:16 am, Robert Kern wrote: > > In order to support pickling and its %run feature, IPython makes a fake > __main__ > module. It looks like profile.run() explicitly imports __main__ to try to run > the statement there. Honestly, it's been a thorn in our side for a long time, > but it's a

Standard config file format

2011-04-05 Thread Vincent Davis
I am working on a program to monitor directory file changes and am would like a configuration file. This file would specify email addresses, file and directory locations.. Is there a preferred format to use with python? -- Thanks Vincent Davis -- http://mail.python.org/mailman/listinfo

set a breakpoint in malloc_error_break to debug?

2011-04-06 Thread Vincent Davis
in malloc_error_break to debug Traceback (most recent call last): File "", line 1, in MemoryError: >>> Python 2.7.1 |EPD 7.0-2 (32-bit)| (r271:86832, Dec 3 2010, 15:41:32) [GCC 4.0.1 (Apple Inc. build 5488)] -- Thanks Vincent Davis 720-301-3003 -- http://mail.python.org/mailman/listinfo/python-list

plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
example code for this on the net an am not finding a clean example. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: plot / graph connecting re ordered lists

2018-01-23 Thread Vincent Davis
On Tue, Jan 23, 2018 at 4:15 PM Dennis Lee Bieber wrote: > On Tue, 23 Jan 2018 13:51:55 -0700, Vincent Davis > declaimed the following: > > >Looking for suggestions. I have an ordered list of names these names will > >be reordered. I am looking to make a plot, graph, wi

Re: Question - problem downloading Python

2021-01-14 Thread vincent . vandevyvre
it does not fix it, that is how I >got your email. >How can I get the latest Python version (3.9.1), instead of what I'm >getting (22.7.17)? >Thank you for your time. Please, copy-paste all the content of your terminal (I presume this is wht you name cmd.exe). Vincent --

Re: clusters of numbers

2018-12-15 Thread Vincent Davis
Why not start with a histogram. Vincent On Sat, Dec 15, 2018 at 6:46 PM Marc Lucke wrote: > hey guys, > > I have a hobby project that sorts my email automatically for me & I want > to improve it. There's data science and statistical info that I'm > missing, &

Won't Uninstall

2019-09-20 Thread Fred Vincent
Python 3.7.4 won’t uninstall, I have tried doing what I can such as going to the control panel and uninstalling the program there, but that did not work. Since I am unable to delete it I am unable to download a different version of python. How do I fix this and fully uninstall python? Sent from

Convert and analyze image data in a spreadsheet.

2020-06-11 Thread Vincent Davis
it in that color format? I think yes. 3. How can I visualize this data as a 6x6 color image and visualize each color on a gray scale. 4. General hints or link of how to proceed would be helpful. Thanks Vincent Davis -- https://mail.python.org/mailman/listinfo/python-list

Re: Convert and analyze image data in a spreadsheet.

2020-06-14 Thread Vincent Davis
Dennis, Thanks for your ideas. The researcher I am working with just told me the data is wrong and needs to send me new data and there are other problems with exactly what their research questions is. So this goes nowhere for now. Thanks Vincent Davis 720-301-3003 *Want to get a hold of me

How to match scipy.spatial.distance results back to pandas df

2020-07-16 Thread Vincent Davis
, 'euclidean') b = a[a < .0001] b array([8.83911760e-05, 6.31347765e-05, 3.89486842e-05, 2.13775583e-05, 2.10950231e-05, 4.10487515e-05, 6.7000e-05, 9.10878697e-05, 7.61183289e-05, 9.90050504e-05, 7.88162420e-05, 5.90931468e-05, 4.50111097e-05, 4.97393205e-05, 6.7896980

Re: Fake news Detect

2020-07-18 Thread Vincent Davis
Data Sceptic has a couple podcast and some of the code is open source. https://dataskeptic.com/blog/episodes/2018/algorithmic-detection-of-fake-news Thanks Vincent Davis 720-301-3003 *Want to get a hold of me?* *SMS: awesome.phone: ok...* *email: bad!* On Fri, Jul 17, 2020 at 11:39 PM Mike

Re: Pickling issue.

2020-12-23 Thread vincent . vandevyvre
On 22/12/20 01:57, Bob Gailer wrote: > > > On Mon, Dec 21, 2020, 3:03 PM Vincent Vande Vyvre > wrote: > > Hi, > > I've an object that I want to serialise with pickle. > When I reload the object the attributes of this object are correctly > fixe

Spoiler to Python Challenge (help!!!)

2005-09-27 Thread Ian Vincent
Damn this is annoying me. I have a webpage with a BZ2 compressed text embedded in it looking like: 'BZh91AY&SYA\xaf\x82\r\x00\x00\x01\x01\x80\x02\xc0\x02\x00 \x00!\x9ah3M \x07<]\xc9\x14\xe1BA\x06\xbe\x084' Now, if I simply copy and paste this into Python and decompress it - it works a treat. H

Re: Spoiler to Python Challenge (help!!!)

2005-09-28 Thread Ian Vincent
"Terry Reedy" <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > please, line = line[20:-1], etc, is easier to read and understand ;-) Thanks, i'll put that in. -- http://mail.python.org/mailman/listinfo/python-list

Re: Spoiler to Python Challenge (help!!!)

2005-09-28 Thread Ian Vincent
Terry Hancock <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > Took me a long time to figure out what you meant. ;-) > > So the string actually contains the backslashes, not the escaped > characters. > > This works: > bz2.decompress(eval(repr(user))) > 'huge' Unfortunately, it d

Re: Spoiler to Python Challenge (help!!!)

2005-09-29 Thread Ian Vincent
Terry Hancock <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > bz2.decompress(eval('"' + user + '"')) > > Sorry about that. I was trying the other as an alternative, > but in fact, it doesn't work. So ignore that. Excellent! Thanks. -- http://mail.python.org/mailman/listinfo/pytho

Re: what does 0 mean in MyApp(0)

2005-09-30 Thread vincent wehren
,640)) |frame.Show(true) |self.SetTopWindow(frame) |return true | | app = MyApp(0) | app.MainLoop() | | Everything is explained nicely except the zero parameter in MyApp(0). | Anybody knows what that zero refers to? See: http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/334

Re: what does 0 mean in MyApp(0)

2005-10-01 Thread vincent wehren
ames, make sure you you position them correctly, i.e., a filename should only be positioned as /second/ argument. HTH, -- Vincent Wehren | Alex | -- http://mail.python.org/mailman/listinfo/python-list

Re: Upgrading 2.4.1 to 2.4.2

2005-10-25 Thread Vincent Gulinao
Hi, I'm new to python and just upgraded python on my system from 2.3 to 2.4. My platform is Linux-2.6.9-1.667smp-i686-with-redhat-3-Heidelberg. Is there any way to inherit (share?) all extensions and additional modules the my 2.3 have? (of course, beside re-installing everything) On 19 Oct 2005 02

How to use generators?

2005-11-09 Thread Ian Vincent
I have never used generators before but I might have now found a use for them. I have written a recursive function to solve a 640x640 maze but it crashes, due to exceeding the stack. The only way around this I can think of is to use Generator but I have no idea how to. The function is as b

Re: How to use generators?

2005-11-10 Thread Ian Vincent
Tom Anderson <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > Exactly - using a queue means you'll do a breadth-first rather than a > depth-first search, which will involve much less depth of recursion. > See: Thanks for the answers but found a easier (admittedly cheating) way around

Re: Writing pins to the RS232

2005-11-28 Thread Ian Vincent
Peter Hansen <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > All true, but then Jay might get into electrical compatibility issues, > and may not realize that the output levels of RS-232 serial hardware > are not simply 0 and 5V levels, but rather +9V (or so) and -9V (and > with variatio

Re: Developing Commercial Applications in Python

2005-01-03 Thread vincent wehren
user exits, reporting, data access/replication, autotests, and apart from that, everywhere we need something done fast ;-). I'm sure that its liberal license was among the main drivers to use it in the first place! -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: exceptions and items in a list

2005-01-10 Thread vincent wehren
list, or does it stop? Thanks Fire up a shell and try: >>> seq = ["1", "2", "a", "4", "5", 6.0] >>> for elem in seq: ... try: ...print int(elem) ... except ValueError: ...pass and see what happens... -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: exceptions and items in a list

2005-01-10 Thread vincent wehren
Steve Holden wrote: vincent wehren wrote: rbt wrote: If I have a Python list that I'm iterating over and one of the objects in the list raises an exception and I have code like this: try: do something to object in list except Exception: pass Does the code just skip the bad objec

Re: py2exe Excludes

2005-01-12 Thread vincent wehren
Just a guess: What happens if you remove everything that's in the "build" directory before running setup.py? There may still be files around from an earlier build that *did* include the Dabo modules. -- Vincent Wehren ___/ / __/ / / Ed Leafe http://leafe.com/ http://dabodev.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find site-packages path

2005-01-17 Thread vincent wehren
= [sys.prefix] sitedir = None # make sure sitedir is initialized because of later 'del' ... etc. -- Vincent Wehren Any clue ? Regards, Philippe -- http://mail.python.org/mailman/listinfo/python-list

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-17 Thread vincent wehren
ather this shoudl be easy enough) 2) copy already compiled (.pyc) and source (.py) files to those directories Why would you want to copy any *.pyc instead of compiling them on site? -- Vincent Wehren 3) create directories and copy files in a directory kept in an environment variable Can distutils do

Re: how to find site-packages path (Michael Hoffman) - use distutils

2005-01-18 Thread vincent wehren
entirely. Also, you may want to consider using Inno Setup as deployment tool (if Windows is your target platform). Using distutils for a *.py-less installer seems pretty pointless. Regards, -- Vincent Wehren - pls go to philippecmartin.com/applications.html for my _small_ contributions :-)

Re: module for 'po' files

2005-01-25 Thread vincent wehren
Sara Fwd wrote: Hi all Is there a module for processing & handling '.po' files in python? Don't know exactly what you mean by "processing & handling". What do you want to do? -- Vincent Wehren __ Do you Yahoo!? Read onl

Re:snakespell and myspell

2005-01-25 Thread vincent wehren
quot; is? I just wondered if anyone knew what happened to snakespell and myspell. Don't know about that. But than there also is a pyrex-driven aspell binding at http://sourceforge.net/projects/uncpythontools Regards, -- Vincent Wehren Both seem to have dissapeared from the net. People have rep

Re: snakespell and myspell

2005-01-25 Thread vincent wehren
vincent wehren wrote: Fuzzyman wrote: I'm looking to implement a plugin spell checker. I'm probably going to go with PyEnchant, as it looks to be the most promising currently maintained spell checker. What I would like to know about PyEnchant is how to handle non-ascii input. Thr

Re: Open Folder in Desktop

2005-01-25 Thread vincent wehren
lt.asp?url=/library/en-us/shellcc/platform/shell/reference/enums/csidl.asp -- Vincent Wehren Jimmy -- http://mail.python.org/mailman/listinfo/python-list

Re: tk global bindings

2005-01-29 Thread vincent wehren
are three levels of binding: instance binding, class binding, and application binding represented by the bind, bind_class, and bind_all methods. You're probably looking for the the bind_all method, as in self.bind_all("", self.onSomeKey) HTH, -- Vincent Wehren Thanks, Gabrie

Re: tk global bindings

2005-01-29 Thread vincent wehren
vincent wehren wrote: Gabriel B. wrote: I'm starting to write a POS application UI's module. In Tk here are three levels of binding: instance binding, class binding, and application binding represented by the bind, bind_class, and bind_all methods. You're probably looking for t

Re: Printing Filenames with non-Ascii-Characters

2005-02-01 Thread vincent wehren
if you ever distribute them, programs relying on this setting may fail on other people's Python installations. -- Vincent Wehren I am running Python 2.3.4 on Windows XP and I want to run the program on Debian sarge later. Ciao, MM -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-02 Thread vincent wehren
ow this all seems awkward at first, but Python's drive towards uncompromising explicitness pays off big time when you're dealing with multilingual data. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating .pyc/.pyo from a make file

2005-02-02 Thread vincent wehren
*.py? files contain the full pathname of the *.py they have been compiled from. Copying them to other path locations will give you the wrong __file___ information in tracebacks. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Printing Filenames with non-Ascii-Characters

2005-02-03 Thread vincent wehren
characters to the output, Python at least let's you respond to conversion problems/errors. All in all I agree, however. That's good to hear ;) -- Vincent Wehren Ciao, MM -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple constructors

2005-02-06 Thread vincent wehren
omList(seq) etc.. Regards -- Vincent Wehren Thanks Phil -- http://mail.python.org/mailman/listinfo/python-list

Re: Word for a non-iterator iterable?

2005-02-06 Thread vincent wehren
ng the sequence protocol, so it's not quite right. How about 'reiterable'? -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Multiple constructors

2005-02-06 Thread vincent wehren
Reinhold Birkenfeld wrote: vincent wehren wrote: Philip Smith wrote: Call this a C++ programmers hang-up if you like. I don't seem to be able to define multiple versions of __init__ in my matrix class (ie to initialise either from a list of values or from 2 dimensions (rows/columns)). Ev

Re: tab 2 into tab 4 ?

2005-06-19 Thread vincent wehren
<[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | Hello, | | I have python code which use tab=2. Recently I would like to change it | into tab=4. | | Anyone has suggestion to convert easily and safely ? Look at "reindent.py" in Tools\Scripts. -- Vincent W

Re: Running Python scripts under W2K with I/O redirection

2005-06-25 Thread vincent wehren
voked by Windows in my problem situation rather than an inherent | fault within Python itself. Your suspicion is correct see: http://support.microsoft.com/default.aspx?kbid=321788 -- Vincent Wehren | | Does anyone have any idea what the problem could be and how to fix it? | I know its a rea

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
dll's they use from the install | directory. AFAIK, Windows normally *does* search the directory where the executable module for the current process lives in for dlls. What sort of dlls are given you trouble? -- Vincent Wehren | | Is there some way to temporarily add the app's i

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
ys.executable)[0] else: appPrefix = os.path.split(os.path.abspath(sys.argv[0]))[0] return appPrefix Now you can use the return value of getAppPrefix() everywhere you need to calculate paths relative to your app, regardless if it involves a regular script or py2exe'ified one.

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
"Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | On 2005-08-02, vincent wehren <[EMAIL PROTECTED]> wrote: | > | > "Grant Edwards" <[EMAIL PROTECTED]> schrieb im Newsbeitrag | > news:[EMAIL PROTECTED] | >|I have s

Re: py2exe windows apps path question

2005-08-02 Thread vincent wehren
Prefix = os.path.split(sys.executable)[0] >> else: >> appPrefix = os.path.split(os.path.abspath(sys.argv[0]))[0] >> return appPrefix >> > >Vincent, > >This sounds interesting. A few questions for you: >Why don't I see sys.frozen in interpreter? &

Re: zlib + Windows 32 service problem (ImportError)

2005-08-15 Thread vincent wehren
not a Python extension* is in sys.path *before* zlib.pyd. Python will try to import this zlib.dll and find the dll doesn't export a initzlib: for more info see http://mail.python.org/pipermail/python-list/2004-October/thread.html#248107 HTH, Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: zlib + Windows 32 service problem (ImportError)

2005-08-16 Thread vincent wehren
"Laszlo Zsolt Nagy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag news:[EMAIL PROTECTED] | vincent wehren wrote: | | >"Laszlo Zsolt Nagy" <[EMAIL PROTECTED]> schrieb im Newsbeitrag | >news:[EMAIL PROTECTED] | >| Sorry, I realized that the import zlib was no

Re: Problems with Python for Windows extensions

2005-09-03 Thread vincent wehren
t know if it is just a typo, but make sure you follow the rules of backslash literals in path names. In other words: "K:\Development\Fabricbase\prod\Test.doc" should read either r"K:\Development\Fabricbase\prod\Test.doc" (note the leading r for raw string or &quo

TKinter, Entry objects and dynamic naming

2005-09-13 Thread Ian Vincent
I am hoping someone may be able to help. I am using Python and TKinter to create a GUI program that will eventually create an XML file for a project I am working on. Now, the XML file contents changes depending on the type of file it represents - so I am dynamically creating the TK Entry boxes.

Re: TKinter, Entry objects and dynamic naming

2005-09-13 Thread Ian Vincent
Ian Vincent <[EMAIL PROTECTED]> wrote in news:[EMAIL PROTECTED]: > > I have looked at using a dictionary but I cannot get my head around > how to do that either. I have tried this now but the Entry field just does not seem to work: def add_variable(self, root, varname): L

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
2 ...] | or: setup.py --help-commands | or: setup.py cmd --help | | error: no commands supplied | >>> | | Please let me know , what should have been the issue. You need to say "setup.py install" instead of just setup.py HTH, -- Vincent Wehren | | Thanks in advance. | | Vj | -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
"cmd" in the "Run" input box). Now enter "cd C:\vijay\db2\utils\PyDB2-1.1.0-2.tar\PyDB2-1.1.0" to get into the right directory. Now enter "setup.py install" and you should be all set.. -- Vincent -- http://mail.python.org/mailman/listinfo/python-list

Re: I am not able to setup pydb2 ! Any help !

2005-09-21 Thread vincent wehren
ed Windows Binaries for pydb2 (try Googling for them or the pyDB2 mailing list). HTH, -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: PyEphem on winXP

2005-09-21 Thread vincent wehren
1, but is | this the same as Visual Studio 7.1? It should work. Did you follow the instructions as per http://www.vrplumber.com/programming/mstoolkit/ ? I've had success using that approach... HTH, -- Vincent Wehren | | If so, can Visual Studio 7.1 be obtained for free? | If not, is there a

Re: Trouble with the encoding of os.getcwd() in Korean Windows

2005-02-09 Thread Vincent Wehren
e. Using "mbcs", which is short for "multi-byte character set", the conversions to and from Unicode (decode/encode) are internally handled by the corresponding win32 api functions. -- Vincent Wehren I thought it might be and so I surfed around (http://foundationsto

Re: Commerical graphing packages?

2005-02-12 Thread Vincent Wehren
all pretty straight-forward, well-documented, and the license fee is a bargain compared to other packages we've used in the past. What it is not suitable for is maybe allowing for 3d-views of data cubes - changeable on the fly. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: connecting to Sybase/MsSQL from python

2005-02-12 Thread vincent wehren
I'm guessing that I need sybase develop lib's but I > don't know where they are to be found. > > So is there a kind sole out there that can help with instructions on what > is > needed to get python talking to MsSQL. > > jOHN Use mxODBC? -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: win2k multiple versions config question

2005-02-17 Thread Vincent Wehren
he OpenGL module uses 2.3, which should be correct, but maybe I'm reading it wrong. Can anybody set me on the right track here? When you enter "python" in the command line, does python 2.4 appear, or python 2.3? If it's 2.4, be explicit about wanting 2.3 and run the script li

Re: How to I access the filename with TkFileDialog?

2005-02-17 Thread Vincent Wehren
d anyone help me? Thanks, Alex openfilename=tkFileDialog.askopenfilename(filetypes=[("all files", "*")]) -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Chart Director?

2005-02-18 Thread Vincent Wehren
- 2.4, and the license generally encompasses all other language bindings, too (all being at version 4.0 except for the C++ version which is currently still at 3.04). Still, you should just try it for what you are planning to use it /for/ and see if it meets /your/ specific needs. -- Vincent Wehren

Re: basic tkinter/Windows question

2005-02-22 Thread Vincent Wehren
te a shortcut to that file. The file will be opened using pythonw.exe instead of python.exe. -- Vincent Wehren Is there a simple way to do that? I didn't see anything in the Python docs about it. I suspect that this is really a dumb Windows question, but I avoid Windows whenever I can, so

Re: determine directories with wildcard

2005-03-08 Thread Vincent Wehren
'c:/Python23\\Lib\\site-packages\\ZopeUndo', 'c:/Python23\\Lib\\site-packages\\_xmlplus', 'c:/Python24\\Lib\\site-packages\\ChartDirector', 'c:/Python24\\Lib\\site-packages\\elementtidy', 'c:/Python24\\Lib\\site-packages\\elementtree', 'c:/Python24\\Lib\\site-packages\\isapi', 'c:/Python24\\Lib\\site-packages\\py2exe', 'c:/Python24\\Lib\\site-packages\\pythonwin', 'c:/Python24\\Lib\\site-packages\\pywin32_system32', 'c:/Python24\\Lib\\site-packages\\win32', 'c:/Python24\\Lib\\site-packages\\win32com', 'c:/Python24\\Lib\\site-packages\\win32comext', 'c:/Python24\\Lib\\site-packages\\wx-2.5.3-msw-unicode'] -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-11 Thread Vincent Wehren
ns the 100% CPU usage and the time it takes for the Next button to respond. -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter WEIRDNESS or Python WEIRDNESS?

2005-03-11 Thread Vincent Wehren
#x27;global' statement, as in: >>> my_global = 1 >>> def some_func(): ...global my_global ...my_global += 1 >> some_func() >> my_global 2 -- Vincent Wehren -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] RELEASED Python 2.4.1, release candidate 1

2005-03-13 Thread Vincent Wehren
Martin v. Löwis wrote: Vincent Wehren wrote: is there a reason why msiexec iterates through what looks like all (?) files and directories in/under the destination directory? There is massive file I/O going on there (OK, by now you know I didn't de-install 2.4 before trying ;-)) which exp

  1   2   3   4   5   6   >