Survey - how much do you rely on Free/Open Source Software?

2013-06-28 Thread Tony
Hi, I'm conducting a survey that aims to measure the importance that Open Source/Free Software has to people and organizations around the world. Answering is very quick (mostly one click per answer) Please answer it by clicking the link below: https://docs.google.com/forms/d/1bY5KQgsuPeGMwRoTY2DW

Re: Zope with mySQL

2011-04-30 Thread Tony
Could you provide more details of what you are trying to do and what help you need? On 28/04/11 20:19, harryjatt wrote: > > Hi, i am doing web development with Zope. My connected database is mySQL. I > am new to this combination.I have to upload the files to mySQL with > programming in zope and t

Re: how to match list members in py3.x

2018-11-25 Thread tony
On 25/11/2018 17:30, Muhammad Rizwan wrote: > IF YOU CAN'T HELP BETTER IGNORE THE POST AND DON'T TRY TO BE A SMART ASS. > > Why would anyone want to help you? -- https://mail.python.org/mailman/listinfo/python-list

Re: ConfigParser: use newline in INI file

2019-03-07 Thread tony
On 07/03/2019 14:16, jim.womeld...@gmail.com wrote: > On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote: >> On Saturday, October 1, 2016 at 6:25:16 PM UTC-4, Thorsten Kampe wrote: >>> * Ben Finney (Sun, 02 Oct 2016 07:12:46 +1100) Thorsten Kampe writes: > Co

Re: ConfigParser: use newline in INI file

2019-03-07 Thread tony
On 07/03/2019 16:58, jim.womeld...@gmail.com wrote: > On Thursday, March 7, 2019 at 8:55:31 AM UTC-6, tony wrote: >> On 07/03/2019 14:16, jim.womeld...@gmail.com wrote: >>> On Saturday, October 1, 2016 at 7:41:40 PM UTC-5, Ned Batchelder wrote: >>>> On Saturday, Octob

Unicode string and metakit database

2005-11-03 Thread Tony
I write a database application with Metakit. My script is like the following: ... vw = db.getas("t1[no:I,ch:S,code1:S,code2:S]") ... *vw.append(no=i,ch=x,code1=y[0],code2=y[1]) ... But errors occured on "*" and it displayed "TypeError: not a Python string". x, y[0], y[1] are unicode strings. Doesn'

Is Python weak on the web side?

2005-11-19 Thread Tony
If I'd like to learn Python for web-development, what are the options available? Thanks. tony -- http://mail.python.org/mailman/listinfo/python-list

Re: "Collapsing" a list into a list of changes

2005-02-05 Thread Tony
turn collapsed > > Is there an elegant way to do this, or should I just stick with the code > above? > > Thanks, > Alan McIntyre > http://www.esrgtech.com Here is a version using dictionary properties, ie no duplication of keys. def condense(l): d={} for item in l: d[item

Re: "Collapsing" a list into a list of changes

2005-02-05 Thread Tony
Alan McIntyre wrote: > Tony, > > Actually I only want to remove a certain kind of duplication; How about this one liner? def condense(m): print [m[0]]+[m[k] for k in range(1,len(m)) if m[k]!=m[k-1]] b=[1,1,1,2,2,2,1,1,1] condense(b) Tony Clarke -- http://mail.p

Re: Heterogeneous lists

2007-08-07 Thread Tony
On Aug 7, 8:53 pm, Jarek Zgoda <[EMAIL PROTECTED]> wrote: . > > I love my lists of classes. I know, I'll go to hell for that. > > -- > Jarek Zgodahttp://jpa.berlios.de/ And I love my shelved lists of classes.. Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I programmatically find the name of a method from within that method?

2007-08-08 Thread Tony
On Aug 8, 8:25 am, Peter Otten <[EMAIL PROTECTED]> wrote: > kj7ny wrote: > > What is @checkPrivs (see example copied below from other post)? In > > fact... how does the thing work at all? > > @checkPrivs > > def add(a,b): > > return a+b > > @... is called a decorator and is just a fancy way of

Re: How can I programmatically find the name of a method from within that method?

2007-08-08 Thread Tony
On Aug 8, 9:28 pm, Peter Otten <[EMAIL PROTECTED]> wrote: > No, just wrong. > > >> class A: > > ... def alpha(self): return dir(self)[-2] > ... def gamma(self): return dir(self)[-1] > ...>>> a = A() > >>> a.alpha(), a.gamma() > ('alpha', 'gamma') > >>> a.beta = 42 > >>> a.alpha(), a.gamma(

SUCK my HUSBAND'S CUM from my CUNT

2007-08-11 Thread Tony
-- http://mail.python.org/mailman/listinfo/python-list

SUCK my HUSBAND'S CUM from my CUNT

2007-08-11 Thread Tony
-- http://mail.python.org/mailman/listinfo/python-list

Script to copy database

2007-08-14 Thread Tony
sk to run the script? Can anyone help me with the script? Just need it to copy an Access database from the local C: drive to a network F: drive. Thanks, Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: Script to copy database

2007-08-14 Thread Tony
Thanks Laurent. That was very helpful. Pretty easy too. Thanks again for your help. Tony "Laurent Pointal" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Tony a écrit : >> I'm new at this and would like to know how set up a script to copy a >

Re: Latest models of Gibson guitars

2007-08-21 Thread Tony
I don't who is posting here stupid shit about guitars who ever is do self fever hang your self with one of strings "kaldrenon" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > On Aug 20, 8:54 pm, Twisted <[EMAIL PROTECTED]> wrote: >> If the message then >> says something absurd, lik

Re: Tkinter pack difficulty

2007-09-12 Thread Tony
ight=30, width = 10) log.pack( fill=X, side=BOTTOM, anchor=S) t.mainloop() Ciao Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: while within while

2007-10-27 Thread Tony
e is determined as a number by your use of input() and the response of the user, and in other code it could later be changed to another type. So your initial declaration was unnecessary.'Dynamic typing' its called, one of the joys of the language compared to Java, C etc.. So

Re: while within while

2007-10-28 Thread Tony
Shawn Minisall wrote: also, surely it should be paper covers rock? Tony -- http://mail.python.org/mailman/listinfo/python-list

Europe Tests Established Chemicals on Millions of Animals

2007-02-22 Thread TONY
Tony Nottingham England 22 February 2007 TO: All People Who Care I am a private individual posting this message to help Laboratory Animals and us all. I apologize if this seems out of place in this group but I think you need to know this. A new European Chemical Testing

Re: Python beginner!

2007-11-15 Thread Tony
s of arrogance, high handedness and rejection of newcomers. Nothing personal Wildemar, I have seen lots of others reply in a similar fashion. Am I alone in thinking this group has changed in these ways? Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: Python beginner!

2007-11-15 Thread Tony
ches on Google:) http://www.ibiblio.org/obp/py4fun/gui/wxPhone.html Hope this helps Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: Control mouse position and clicking

2007-11-28 Thread Tony
On Nov 28, 9:33 pm, Bjoern Schliessmann wrote: snip > > On Mac, IIRC, you can't. > > Regards, well, you can do it from Java, (the Robot class, as I recall), so you should be able to do it in Jython, which is a Python implementation, so Tony -- http://mail.python.org

Re: Control mouse position and clicking

2007-11-28 Thread Tony
On Nov 28, 9:33 pm, Bjoern Schliessmann wrote: snip > > On Mac, IIRC, you can't. > > Regards, well, you can do it from Java, (the Robot class, as I recall), so you should be able to do it in Jython, which is a Python implementation, so Tony -- http://mail.python.org

different errors, return outside function and others

2009-02-22 Thread Tony
Hi, I am trying to write a small program for my final for school, everytime i run my program it gives me a return outside function error (after i fixed all the indentation errors it throws at me), i am not very good at programing with python atm, so any help would be appreiciated. and if im missing

Re: different errors, return outside function and others

2009-02-23 Thread Tony
the expansion haha' return introselection On Sun, Feb 22, 2009 at 10:51 PM, Tony wrote: > Hi, > I am trying to write a small program for my final for school, everytime i > run my program it gives me a return outside function error (after i fixed > all the indentation errors it t

Re: different errors, return outside function and others

2009-02-23 Thread Tony
much as possible. Also anything with def infront of it example def start(): would be a function correct? also im Using 2.5 and the IDLE to do this On Mon, Feb 23, 2009 at 12:23 AM, Gabriel Genellina wrote: > En Mon, 23 Feb 2009 04:51:39 -0200, Tony > escribió: > > Hi, >> I am tryin

Re: different errors, return outside function and others

2009-02-23 Thread Tony
Thank You, I now understand what i need to do now, and again Thanks On Mon, Feb 23, 2009 at 1:57 AM, Gabriel Genellina wrote: > En Mon, 23 Feb 2009 07:07:57 -0200, Tony > escribió: > > ok thank you for that input, this is my first class in programming and its >> the only one

accessing gmail

2009-12-17 Thread Tony
.com and I can't see how to get at it. mail = imaplib.IMAP4_SSL('imap.gmail.com, 993) mail.login(username, password) logs me in to my googlemail account and lets me collect mail in that one, but how do I get to the gmail one? Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: accessing gmail

2009-12-17 Thread Tony
stupid - I'd wasted so much time and it was so simple. I will remember it though. Now to figure out the rest of it. Tony -- http://mail.python.org/mailman/listinfo/python-list

Boolean value of generators

2010-10-14 Thread Tony
returns True. Is there anyway I can enhance my generator or iterator to have the desired effect? Regards Tony Middleton. -- http://mail.python.org/mailman/listinfo/python-list

python/c api

2010-10-14 Thread Tony
hi, is the python/c api extensively used? and what world-famous software use it? thanks! tony -- http://mail.python.org/mailman/listinfo/python-list

cunfused why gevent block redis' socket request?

2012-12-28 Thread Tony Shao
GOAL:spawn a few greenlet worker deal with the data pop from redis (pop from redis and then put into queue) RUNNING ENV: ubuntu 12.04 PYTHON VER: 2.7 GEVENT VER: 1.0 RC2 REDIS VER:2.6.5 REDIS-PY VER:2.7.1 from gevent import monkey; monkey.patch_all() import gevent from gevent.pool import Group f

Re: python reading file memory cost

2011-08-01 Thread Tony Zhang
lmost 2GB RAM, I cannot figure it out, somebody help! Thanks very much! --Tony -- http://mail.python.org/mailman/listinfo/python-list

--------------> Web design in Chennai <--------------

2011-03-03 Thread tony player
Web Design in Chennai ** http://webdesignchennai.co.in/ ** Web Design Chennai offers Web Design in Chennai,website designing,maintenance in chennai,Web Designing and development Companies Chennai,web hosting in c

Re: Single line if statement with a continue

2022-12-18 Thread Tony Oliver
On Saturday, 17 December 2022 at 23:58:11 UTC, avi.e...@gmail.com wrote: > Is something sort of taboo when using something like a computer language to > write a program? With what else would you write a program? -- https://mail.python.org/mailman/listinfo/python-list

PSYCOPG2

2021-02-12 Thread Tony Ogilvie
ry and get this to work. Regards Tony -- https://mail.python.org/mailman/listinfo/python-list

RE: PSYCOPG2

2021-02-13 Thread Tony Ogilvie
Thank you I have tried Sublime 3 and the same thing happens. I do not think I have another version of Python on my PC. I am trying to look through my files to find out. Regards Tony -Original Message- From: Mladen Gogala Sent: 13 February 2021 05:35 To: python-list@python.org

tkinter

2021-08-21 Thread Tony Genter
Tkinter stopped working overnight from 8/20/2021 to 8/21/2021. Last night I was working on tutorials to work on a GUI and this morning every file that uses tkinter is broken stating that no module `tkinter' exists. Please let me know if there is some sort of problem. I am removing

Re: Understanding the working mechanis of python unary arithmetic operators.

2021-10-02 Thread Tony Oliver
On Saturday, 2 October 2021 at 13:48:39 UTC+1, hongy...@gmail.com wrote: > On Saturday, October 2, 2021 at 4:59:54 PM UTC+8, ju...@diegidio.name wrote: > > On Saturday, 2 October 2021 at 10:34:27 UTC+2, hongy...@gmail.com wrote: > > > See the following testings: > > > > > > In [24]: a=3.1415926

Re: Selenium py3.8+ DepreciationWarnings - where to find doc to update code?

2021-10-13 Thread Tony Oliver
On Wednesday, 13 October 2021 at 16:16:46 UTC+1, jkk wrote: > Selenium 3.141+ > python 3.8+ > ubuntu 20.04 or windows 10 > > I'm trying to upgrade code from py3.6+ to py3.8+ and I'm getting several > DepreciationWarnings. > > Can someone point me to where I can find the documentation that

any one used moviepy please come in!!! I need help, thanks!

2017-01-24 Thread Tony Chen
I have to use moviepy in one of my project. So I downloaded it, and tried the example code on the website. It gives me this error. Anyone can give me some help? Thank you very much! it gives this error: [MoviePy] This command returned an error !Traceback (most recent call last): File "tst.py",

Re: any one used moviepy please come in!!! I need help, thanks!

2017-01-25 Thread Tony Chen
On Wednesday, January 25, 2017 at 8:34:01 PM UTC+13, Chris Angelico wrote: > On Wed, Jan 25, 2017 at 6:22 PM, Tony Chen wrote: > > This error can be due to the fact that ImageMagick is not installed on your > > computer, or (for Windows users) that you didn't spe

FW: Pycharm Won't Do Long Underscore

2020-06-23 Thread Tony Kaloki
Sent from Mail<https://go.microsoft.com/fwlink/?LinkId=550986> for Windows 10 From: Tony Kaloki<mailto:tkal...@live.co.uk> Sent: 23 June 2020 19:45 To: python-list@python.org<mailto:python-list@python.org> Subject: Pycharm Won't Do Long Underscore Hi Guys,

Re: Pycharm Won't Do Long Underscore

2020-06-23 Thread Tony Kaloki
case, thanks again for your quick and easy to follow - even for me - reply. Tony Get Outlook for Android<https://aka.ms/ghei36> From: Alexander Neilson Sent: Tuesday, June 23, 2020 9:28:37 PM To: Tony Kaloki Cc: python-list@python.org Subject: Re: Pycharm Wo

Re: Pycharm Won't Do Long Underscore

2020-06-24 Thread Tony Kaloki
MRAB Sent: Wednesday, June 24, 2020 7:28:52 PM To: python-list@python.org Subject: Re: Pycharm Won't Do Long Underscore On 2020-06-24 18:59, Chris Angelico wrote: > On Thu, Jun 25, 2020 at 3:51 AM Dennis Lee Bieber > wrote: >> >> On Tue, 23 Jun 2020 20:49:36 +, Tony

Re: Finding where to store application data portably

2005-09-22 Thread Tony Houghton
In <[EMAIL PROTECTED]>, Ron Adam <[EMAIL PROTECTED]> wrote: > Tony Houghton wrote: > >> > This works on Win XP. Not sure if it will work on Linux. >> > >> > import os >> > >> > parent = os.path.split(os.path.abspath(os.sys.argv

Re: PEP 350: Codetags

2005-09-26 Thread Tony Meyer
On 27/09/2005, at 12:21 PM, Paul Rubin wrote: > Neil Hodgson <[EMAIL PROTECTED]> writes: > >> The PEP system allows for the documentation of a convention as an >> "Informational PEP". Documenting conventions is useful. > > If the preferred method of doing something is > consistent enough that

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:05 PM, Simon Brunning wrote: > On 9/28/05, could ildg <[EMAIL PROTECTED]> wrote: > >> Python is wonderful except that it has no real private and protected >> properties and methods. >> Every py object has dict so that you can easily find what fields >> and methods >> an obj

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:54 PM, Paul Rubin wrote: > Tony Meyer <[EMAIL PROTECTED]> writes: > >> I'm not sure why I haven't seen this mentioned yet, but a leading >> double-underscore does really make a member private:... >> As you see, it's there in the

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Tony Meyer
On 28/09/2005, at 11:55 PM, Simon Brunning wrote: > On 9/28/05, Tony Meyer <[EMAIL PROTECTED]> wrote: > >> I'm not sure why I haven't seen this mentioned yet, but a leading >> double-underscore does really make a member private: >> > > I though

Re: Will python never intend to support private, protected and public?

2005-09-28 Thread Tony Meyer
On 29/09/2005, at 3:45 AM, Fredrik Lundh wrote: > Tony Meyer wrote: > >>> I thought about it, but I didn't mention it in the end because this >>> feature ("name mangling") isn't intended as a mechanism for making >>> things private - it

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
On 30/09/2005, at 9:50 AM, Delaney, Timothy (Tim) wrote: > You have to admit though, he's remarkably good at getting past > Spambayes. Despite classifying *every* Xah Lee post as spam, he still > manages to get most of his posts classified as 0% or 1% spam. I can't believe that people are using c

Re: A Moronicity of Guido van Rossum

2005-09-29 Thread Tony Meyer
> I know nobody wants to do add "white/black-listing", so we can do it > probabilistically. In case it is not obvious, mailings with the words > "jargon" or "moron" and their derrivatives should be flagged as 99.9% > probability for Moronicity Xha Lee, Jargonizer, spam. If spam bayes > can't > fi

Re: A Moronicity of Guido van Rossum

2005-09-30 Thread Tony Meyer
On 30/09/2005, at 10:56 PM, Gerrit Holl wrote: > Tony Meyer wrote: > >> X-Spambayes-Classification: ham; 0.048 >> X-Spambayes-Evidence: '*H*': 0.90; '*S*': 0.00; 'bug.': 0.07; >> 'flagged': 0.07; >> "i'd&quo

Unicode charmap decoders slow

2005-10-02 Thread Tony Nelson
Is there a faster way to decode from charmaps to utf-8 than unicode()? I'm writing a small card-file program. As a test, I use a 53 MB MBox file, in mac-roman encoding. My program reads and parses the file into messages in about 3..5 seconds, but takes about 13.5 seconds to iterate over the c

gtk.TextView.move_mark_onscreen() broken?

2005-10-02 Thread Tony Nelson
Is gtk.TextView.move_mark_onscreen() broken? Perhaps only in Python's gtk module, in Python 2.3, gtk 2.4.14? I'm asking here because I'm using gtk from Python and don't want to write a C program to verify my issue. I've also tried gtk.TextView.scroll_to_mark() and gtk.TextView.place_cursor_o

Re: Unicode charmap decoders slow

2005-10-03 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Tony Nelson wrote: > > Is there a faster way to decode from charmaps to utf-8 than unicode()? > > You could try the iconv codec, if your system supports iconv: > > http://c

Re: Unicode charmap decoders slow

2005-10-03 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Martin v. Löwis" <[EMAIL PROTECTED]> wrote: > Tony Nelson wrote: > > I had seen iconv. Even if my system supports it and it is faster than > > Python's charmap decoder, it might not be available on other systems. >

Re: Exception raising, and performance implications.

2005-10-03 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "leo" <[EMAIL PROTECTED]> wrote: > Hello all - > > I was wondering about the performance implications of explicitly > raising exceptions to get information about the current frame. > Something like what the inspect module does, with: Python uses exceptions intern

Re: Controlling who can run an executable

2005-10-04 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Cigar" <[EMAIL PROTECTED]> wrote: > I am developing a program for a client. She runs a shop where her > clients bring in items for sale or short term buyback. Development of > the program has been going great but she's mentioned that there is a > 'feature' comin

Re: C Wrapper Function, crashing Python?

2005-10-14 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Java and Swing" <[EMAIL PROTECTED]> wrote: > one more update... > > if I remove PyMem_Free and free(...) ...so no memory clean up...I can > still only call doStuff 4 times, the 5th attemp crashes Python. > > Java and Swing wrote: > > update: > > if I use C's fre

Re: how to make this code faster

2005-10-14 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > def f(x,y): > return math.sin(x*y) + 8 * x > I have code like this: > > def main(): > n = 2000 > a = zeros((n,n), Float) > xcoor = arange(0,1,1/float(n)) > ycoor = arange(0,1,1/float(n)) > > >

Re: Can module access global from __main__?

2005-10-14 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Neal Norwitz" <[EMAIL PROTECTED]> wrote: > Steve Holden wrote: > > Neal Becker wrote: > > > > > > Still curious about the answer. If I know that I am imported from > > > __main__, > > > then I can do access X as sys.modules[__main__].X. In general, I don't > >

[ANN] Speed up Charmap codecs with fastcharmap module

2005-10-16 Thread Tony Nelson
Fastcharmap is a python extension module that speeds up Charmap codecs by about 5 times. Usage: import fastcharmap fastcharmap.hook('codec_name') Fastcharmap will then speed up calls that use that codec, such as unicode(str, 'codec_name') an

Re: How do you draw this layout with wxpython?

2005-10-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Young H. Rhiu" <[EMAIL PROTECTED]> wrote: > See: http://hilug.org/img/app_layout.GIF > > I'm implementing an album-like application with wxpython but I'm new to > wxPython though I know how to program with python. The problem is that > it's not easy for me to dea

Re: Stripping ASCII codes when parsing

2005-10-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Pratt <[EMAIL PROTECTED]> wrote: > I am working with a text format that advises to strip any ascii control > characters (0 - 30) as part of parsing data and also the ascii pipe > character (124) from the data. I think many of these characters are > from a

Mutual module imports

2005-10-17 Thread Tony Nelson
How does one normally make a Python extension module that has some parts in Python and some functions in C share globals between the Python and C functions? Will that approach work with Pyrex? I have written a Python module that uses some C functions. I wrote the module in two parts, one Pyth

Re: Stripping ASCII codes when parsing

2005-10-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Pratt <[EMAIL PROTECTED]> wrote: > This is very nice :-) Thank you Tony. I think this will be the way to > go. My concern ATM is where it will be best to unicode. The data after > this will go into dict and a few processes and i

Re: [OT] Re: output from external commands

2005-10-24 Thread Tony Meyer
On 25/10/2005, at 3:36 PM, Steven Bethard wrote: > I wouldn't fret too much about a sharp remark from Fredrik Lundh. > They're pretty much all that way. ;) [...] It takes a little > training to get used to > him, but if you can look past the nasty bite, he's really a valuable > resource around h

Re: How best to reference parameters.

2005-10-25 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "David Poundall" <[EMAIL PROTECTED]> wrote: > I am writing a scada package that has a significant amount of user > defined parameters stored in text files that I wish to cleanly access > in code. By way of an example, a few lines from the configuration file > woul

Any Pythonic GTK Undo library?

2005-10-29 Thread Tony Nelson
I'm looking for a "pythonic" GTK Undo library/class. It would have a framework for Undo/Redo, and would provide Undo/Redo for TextView, Entry, and containers and other classes. In a "batteries included" fashion, just instantiating a "UndoableTextView" or "UndoableEntry" or "UndoableContainer"

Re: Any Pythonic GTK Undo library?

2005-10-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Dave Cook <[EMAIL PROTECTED]> wrote: > On 2005-10-29, Tony Nelson <[EMAIL PROTECTED]> wrote: > > > I'm looking for a "pythonic" GTK Undo library/class. It would have a > > You might ask the authors of Kiwi if

Re: Scanning a file

2005-10-30 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Steve Holden wrote: > > Indeed, but reading one byte at a time is about the slowest way to > > process a file, in Python or any other language, because it fails to > > amortize the overhead cost of function calls over many characters. > >

Re: NTFS reparse points

2005-11-03 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Stanislaw Findeisen <[EMAIL PROTECTED]> wrote: ... > However I can't see FILE_ATTRIBUTE_REPARSE_POINT turned on in any file / > directory shortcuts I create. In fact the only attribute set in > shortcuts created using Windows Explorer is FILE_ATTRIBUTE_ARCHIVE. (

Re: when and how do you use Self?

2005-11-04 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Tieche Bruce A MSgt USMTM/AFD" <[EMAIL PROTECTED]> wrote: > I am new to python, > Could someone explain (in English) how and when to use self? > I have been reading, and haven't found a good example/explanation is a good explanati

Re: ? MDI depreciated

2005-11-06 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "LenS" <[EMAIL PROTECTED]> wrote: > Hate to ask this dum question (since I've been hiding under a rock). > But if the MDI UI model is/was depreciated. What is the new UI model. > > Would love some links that explain in gerneral and specific terms. In article <[E

Validate string as UTF-8?

2005-11-06 Thread Tony Nelson
I'd like to have a fast way to validate large amounts of string data as being UTF-8. I don't see a fast way to do it in Python, though: unicode(s,'utf-8').encode('utf-8) seems to notice at least some of the time (the unicode() part works but the encode() part bombs). I don't consider a RE

Re: Validate string as UTF-8?

2005-11-06 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, david mugnai <[EMAIL PROTECTED]> wrote: > On Sun, 06 Nov 2005 18:58:50 +, Tony Nelson wrote: > > [snip] > > > Is there a general way to call GLib functions? > > ctypes? > http://starship.python.net/crew/theller/cty

Re: Validate string as UTF-8?

2005-11-06 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Fredrik Lundh" <[EMAIL PROTECTED]> wrote: > Tony Nelson wrote: > > > I'd like to have a fast way to validate large amounts of string data as > > being UTF-8. > > define "validate". All data confor

Re: modifying small chunks from long string

2005-11-14 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "MackS" <[EMAIL PROTECTED]> wrote: > Hello everyone > > I am faced with the following problem. For the first time I've asked > myself "might this actually be easier to code in C rather than in > python?", and I am not looking at device drivers. : ) > > This progr

python-dev Summary for 2005-09-01 to 2005-09-15

2005-11-16 Thread Tony Meyer
1.165.2.2 `__ - `Variant of removing GIL. <http://mail.python.org/pipermail/python- dev/2005-September/056423.html>`__ - `Compatibility between Python 2.3.x and Python 2.4.x `__ - `Example for "property" violates "Python is not a one pass compiler" <http://mail.py

newbie question: 'import site' failed; use -v for traceback

2005-11-17 Thread Tony Gill
tart menu either. Nothing loads. I presume my problems all come back to the fact that import site fails when python starts.   Any help getting me started greatly appreciated.   Thanks   Tony -- http://mail.python.org/mailman/listinfo/python-list

Re: python-dev summary

2005-11-17 Thread Tony Meyer
On 17/11/2005, at 7:20 PM, Titus Brown wrote: >> [The HTML version of this Summary is available at >> http://www.python.org/dev/summary/2005-09-01_2005-09-15.html] > > no... no, it's not ;) Sorry; I should amend the copy that's posted to say "will be available". The summaries get posted here,

Re: Python Library Reference - question

2005-11-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > The "Python LIbrary Reference" at > http://docs.python.org/lib/contents.html seems to be an important > document. I have two questions > > Q1. How do you search inside "Python LibraryReference" ? Does it exist > in pdf or chm form? ...

os.path.expanduser('~/foo') and MSWindows "My Documents"

2005-11-17 Thread Tony Nelson
On *nix, ~/foo refers to a file in a user's home directory. On MSWindows, users normally look at "My Documents" in their home directory. ISTM that a file that my program would put in ~/. on Linux should be put in "~/My Documents/" (modulo os.path.normpath()) on MSWindows, where a user would e

Re: Hot to split string literals that will across two or more lines ?

2005-11-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Sam Pointon" <[EMAIL PROTECTED]> wrote: > > print "a string which is very loo" \ > > + "ong." > > Minor pedantry, but the plus sign is redundant. Python automatically > concatenates string literals on the same logical line separated by only > whitespa

Re: os.path.expanduser('~/foo') and MSWindows "My Documents"

2005-11-17 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > Try this: > > > from win32com.shell import shell, shellcon > HOMEDIR = shell.SHGetSpecialFolderPath(0, shellcon.CSIDL_PERSONAL) > myfile_location = os.path.join(HOMEDIR, myfile_name) > > Define a HOMEDIR for your various platforms (use

Re: os.path.expanduser('~/foo') and MSWindows "My Documents"

2005-11-18 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: > python > > >>> import os > >>> help(os.path.expanduser) > >>> import platform > >>> platform.system() > 'Windows' > >>> platform.release() > 'XP' > >>> platform looks good. ___

python-dev Summary for 2005-10-01 through 2005-10-15

2005-11-21 Thread Tony Meyer
se)) <http://mail.python.org/pipermail/python-dev/2005-October/057262.html >`__- `Threading and synchronization primitives <http://mail.python.org/pipermail/python-dev/2005-October/057269.html>`__ [SJB]-Speed of Unicode decoding-Tony N

Re: Using gettext to provide different language-version of a script

2005-11-22 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, "Thomas W" <[EMAIL PROTECTED]> wrote: > I'm trying to wrap my head around the docs at python.org related to the > gettext-module, but I'm having some problem getting it to work. Is > there any really simple, step-by-step on how to use this module > available? > >

Re: Mixed types and variants

2005-11-23 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, [EMAIL PROTECTED] wrote: ... > - Maybe someone here can suggest some other variant type, or some other > solution. Pyrex? Pyrex is mostly like Python with the possibility of C types. It handles mixed types just like Python, and the C code it produces is sort

Re: ncurses' Dark Devilry

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Jeremy Moles <[EMAIL PROTECTED]> wrote: > I'm working on a project using ncurses w/ Python. As an aside, I > implemented addchstr in the cursesmodule.c file in Python SVN, if anyone > wants me to try and get that made permanent. > > AT ANY RATE... > > I was wonde

Re: unicode speed

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Siroky <[EMAIL PROTECTED]> wrote: > Hi! > > I need to enlighten myself in Python unicode speed and implementation. > > My platform is AMD [EMAIL PROTECTED] (x86-32), Debian, Python 2.4. > > First a simple example (and time results): > > x = "a"*5000 >

Re: wxPython : getting started

2005-11-29 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, David Sulc <[EMAIL PROTECTED]> wrote: > Hi ! > > I've looked all over (internet, books, etc.) and I haven't found a very > good ressource to get started with wxPython (yes, I've been through > their tutorial). > > What I would basically like to do for starters

Pydoc: restrict base class doc?

2005-11-30 Thread Tony Nelson
I'd like to prevent Pydoc from adding base class documentation for some of my classes. Specifically, I have a couple of classes that derive from GTK widgets, and dumping all that documentation in doesn't have much benefit. Is there some thing I can do in my source, or to Pydoc, to tell it to

How to keep Pydoc from listing too much?

2005-12-02 Thread Tony Nelson
How can I tell Pydoc not to list information for some of the base classes? For example, when a class inherits from gtk.Widget, lots of GTK stuff gets added that doesn't really need to be there. Is there some option to Pydoc to tell it to skip some classes? Is there something I can put in my

Re: ANN: Dao Language v.0.9.6-beta is release!

2005-12-02 Thread Tony Nelson
In article <[EMAIL PROTECTED]>, Dave Hansen <[EMAIL PROTECTED]> wrote: > On 2 Dec 2005 10:08:21 -0800 in comp.lang.python, [EMAIL PROTECTED] > wrote: > > >Here it is again... Python bypassed/discounted because, of all things, > >scoping by indentation!?!? > > > >This used to surprise me. Until

os.rename copies when old is in-use - is this deliberate?

2005-12-03 Thread Tony Meyer
On Windows, if I do os.rename(old, new) where old is a file that is in-use (e.g. python itself, or a dll that is loaded), I would expect that an error would be raised (e.g. as when os.remove is called with an in-use file). However, what happens is that a copy of the file is made, and the old file

  1   2   3   4   >