Re: How to change '\\' to '\'

2018-10-01 Thread Alister ware via Python-list
On Sun, 30 Sep 2018 17:45:52 -0700, Rick Johnson wrote: > Jach Fong wrote: >> I get a string item, for example path[0], from path = >> os.get_exec_path() >> It's something like "\\Borland\\Bcc55\\Include", a Python string. >> I want to use this "string" in a subprocess command as a parameter. >> O

setup.py

2012-04-20 Thread alister ware
What is the correct way to set the version of my package with distutils when i build it using python setup.py bdist_rpm I have __version__="x.x.x" in my main programm but if i add from import __version__ into setup.py if fails when my prog tries to import gi.repository. I suspect my approac

Re: s_push parser stack overflow

2012-03-20 Thread alister ware
On Tue, 20 Mar 2012 04:30:51 +, MRAB wrote: > On 20/03/2012 03:19, Артём Назаров wrote: >> Hi. >> Sorry of my english :-) >> >> code: >> print >> (((0)))

Re: Doctest failing

2011-09-10 Thread Alister Ware
On Sat, 10 Sep 2011 04:20:17 -0700, Tigerstyle wrote: > Hi guys. > > I'm strugglin with some homework stuff and am hoping you can help me out > here. > > This is the code: > > small_words = ('into', 'the', 'a', 'of', 'at', 'in', 'for', 'on') > > def book_title(title): > """ Takes a string

Re: Ten rules to becoming a Python community member.

2011-08-14 Thread Alister Ware
On Sun, 14 Aug 2011 02:54:44 -0500, Andrew Berg wrote: > On 2011.08.14 12:57 AM, rantingrick wrote: >> Follow these simply rules to become an accepted member of the Python >> community. > Sounds good. You should consider submitting this as a PEP. That would mark the first constructive action from

Re: test systems

2011-08-01 Thread Alister Ware
On Mon, 01 Aug 2011 15:42:19 -0700, Ethan Furman wrote: > Howdy, > > I'm going to setup a few linux systems for testing (probably three) as > well as the three FreeBSD, OpenBSD, and (possibly) NetBsd. Oh, and > Windows. ;) > > Any recommendations on which linuces to pick? > > ~Ethan~ I would

Re: PyWart: os.path needs immediate attention!

2011-07-29 Thread Alister Ware
On Fri, 29 Jul 2011 10:22:04 -0700, rantingrick wrote: > -- > Overview of Problems: > -- > > * Too many methods exported. > * Poor choice of method names. > * Non public classes/methods exported! >

Re: Set run vars with each call

2011-07-12 Thread Alister Ware
On Tue, 12 Jul 2011 06:32:32 -0700, Gnarlodious wrote: > Question. Is there a special method or easy way to set default values > with each call to an instance? Any ideas to make it easier? What I want > to do is have a constantly updating set of values which can be > overridden. Just thought there

Re: Does anyone know of a python tapi module

2011-07-02 Thread Alister Ware
On Fri, 01 Jul 2011 14:28:13 -1000, Werner Thie wrote: > On 7/1/11 11:15 AM, Alister Ware wrote: >> The subject probably say is all but to elaborate. >> >> I am looking for a way to communicate with a tapi driver for a PBX so I >> can experiment with creating s

Does anyone know of a python tapi module

2011-07-01 Thread Alister Ware
The subject probably say is all but to elaborate. I am looking for a way to communicate with a tapi driver for a PBX so I can experiment with creating some CTI (Computer Telephony Integration) software. -- -- http://mail.python.org/mailman/listinfo/python-list

Re: what is the airspeed velocity of an unladen swallow

2011-06-28 Thread Alister Ware
On Tue, 28 Jun 2011 12:33:27 -0700, Xah Lee wrote: > this will be of interest to those bleeding-edge pythoners. > > “what… is the airspeed velocity of an unladen swallow?” > > xahlee.org/funny/unladen_swallow.html > > Xah is that an African or European swallow? -- -- http://mail.python.o

Re: Looking for Coders or Testers for an Open Source File Organizer

2011-06-14 Thread Alister Ware
On Mon, 13 Jun 2011 20:55:54 -0700, zainul franciscus wrote: > I started an open source file organizer called Miranda. Miranda is > inspired by Belvedere written by Adam Pash of Lifehacker (http:// > lifehacker.com/341950/belvedere-automates-your-self+cleaning-pc). I know > you guys must be think

Re: The worth of comments

2011-05-29 Thread Alister Ware
On Sun, 29 May 2011 12:47:52 +1200, Gregory Ewing wrote: > Irmen de Jong wrote: > >> I don't see how that is opposed to what Grant was saying. It's that >> these 'contracts' tend to change and that people forget or are too lazy >> to update the comments to reflect those changes. > > However, I c

Re: pyGTK identify a button

2011-05-26 Thread Alister Ware
On Wed, 25 May 2011 10:18:48 +0200, Tracubik wrote: > Hi all, > i'm trying to write a simple windows with two button in GTK, i need a > way to identify wich button is pressed. Consider that: > > the two button are connected (when clicked) to infoButton(self, widget, > data=None) > > infoButton()

Re: problem with GKT module?

2011-05-17 Thread Alister Ware
On Mon, 16 May 2011 14:56:38 -0500, harrismh777 wrote: > alister ware wrote: >> def callback(self,widget,data=None): >> print widget #gives reference to radio button ok print >> widget.name #widget name on wi

Re: problem with GKT module?

2011-05-16 Thread alister ware
On Sun, 15 May 2011 20:42:46 -0500, harrismh777 wrote: > Alister Ware wrote: >> I have a simple call back defined for a radio button widget when I use >>> widget.name in linux I get a value of None, windows returns the >>> widget name as I would expect. >>>

Re: problem with GKT module?

2011-05-15 Thread Alister Ware
On Fri, 13 May 2011 13:13:00 +, alister ware wrote: > I am using gtk.builder with a glade generated GUI > > I have a simple call back defined for a radio button widget when I use > widget.name in linux I get a value of None, windows returns the widget > name as I would expect.

problem with GKT module?

2011-05-13 Thread alister ware
I am using gtk.builder with a glade generated GUI I have a simple call back defined for a radio button widget when I use widget.name in linux I get a value of None, windows returns the widget name as I would expect. is this a bug? if not how should i find the name of the widget that has trigge

Re: PyGTK, Glade/libglade. What am I doing wrong?

2011-05-07 Thread Alister Ware
On Sat, 07 May 2011 15:14:07 +1100, Даниил Рыжков wrote: > Thanks, Cristian! It works. >> List of Pygtk: http://www.daa.com.au/mailman/listinfo/pygtk > Thanks again. Subscribed :) > 2011/5/7 craf : >> Hi. >> >> Try this: >> >> #!/usr/bin/env python >> >> import gtk.glade >> >> class TestPyGtk: >>

Re: Hello Friends

2011-05-06 Thread Alister Ware
On Thu, 05 May 2011 21:55:22 -0700, Ashraf Ali wrote: > Do you need legal help.If so Please visit > www.chicagopersonalinjurylawyerz.blogspot.com sorry I would only use a reputable firm (spaming a news group makes you disreputable by default) -- My NOSE is NUMB! -- http://mail.python.org/mai

Re: No more Python support in NetBeans 7.0

2011-04-20 Thread alister ware
On Wed, 20 Apr 2011 03:24:00 -0700, Paul Rubin wrote: > Markus writes: >> Infoworld awarded it as best Python IDE, testing: Boa Constructor, >> Eric, ActiveState's Komodo, Oracle's NetBeans, Aptana's Pydev, >> PyScripter, SPE, Spyder, and WingWare's Wing IDE. > > I saw somebody using Geany recen

Re: Newbie getting desperate with for

2011-02-17 Thread Alister Ware
On Thu, 17 Feb 2011 16:42:05 +0800, Werner wrote: > On 17/02/11 16:39, Chris Rebert wrote: >> On Thu, Feb 17, 2011 at 12:27 AM, Werner wrote: >>> I have a trivially simple piece of code called timewaster.py: >>> >>> >>> while True: >>>i = 0

Re: Best way to gain root privileges

2011-02-16 Thread Alister Ware
On Wed, 16 Feb 2011 21:26:26 +, GSO wrote: > I'm sure this question is as old as time, but what is the best way to > gain root privileges? (Am using Python 2.6.5, pygtk2 v2.16, Gtk > v2.18.9, on RHEL6.) > > Ta, > > > G. > > gmotion > PyGTK desktop GUI for Motion (software motion detector)

Re: How do I get number of files in a particular directory.

2010-08-13 Thread Alister Ware
On Fri, 13 Aug 2010 07:40:42 -0700, blur959 wrote: > Hi all, I got a problem with my script. Everything looks good so far but > for some reason my os.rename isn't working. Can anyone tell me why? Hope > you guys could help. Thanks. > You have a number of logic flaws in your code. 1st you do not

Re: Why did I Embrace Islam?

2010-07-12 Thread Alister Ware
On Mon, 12 Jul 2010 14:54:00 -0700, nais-saudi wrote: > Why did I Embrace Islam? Very interesting & good fro you but I cannot find any thing related to python here. -- This place just isn't big enough for all of us. We've got to find a way off this planet. -- http://mail.python.org/mailm

Re: Easy questions from a python beginner

2010-07-12 Thread Alister Ware
On Sun, 11 Jul 2010 18:17:49 +, Duncan Booth wrote: > wheres pythonmonks wrote: > >> I'm an old Perl-hacker, and am trying to Dive in Python. I have some >> easy issues (Python 2.6) >> which probably can be answered in two seconds: without going into details on how to do these things in py