Help? How do i solve this problem with Python List Concept

2019-05-11 Thread Donald Tripdarlinq
In the traditional Yoruba tribal Set-Up in Nigeria,West Africa the tradition of inheritance is very important. Now, The relative position of a child in the family counts when the issue of inheritance is considered. Question: Now a farmer with 10 children died without leaving a will and the Fa

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
Charles , please look up the main python wiki here: https://practical-scheme.net/wiliki/wiliki.cgi?python -- https://mail.python.org/mailman/listinfo/python-list

Re: Fwd: ftplib sending data out of order

2017-06-30 Thread The Donald
dude, you're totally welcome. just make sure that you vote the current wiki admins out of office. THEY'RE FIRED ! -- https://mail.python.org/mailman/listinfo/python-list

RE: [External] Unsubscribe to Python email list

2017-03-13 Thread Falter, Donald [USA]
Yeah, I think I'm going to bail on this list too. Thanks -Original Message- From: Python-list [mailto:python-list-bounces+falter_donald=bah@python.org] On Behalf Of Pablo Lozano Sent: Thursday, March 9, 2017 9:38 PM To: python-list@python.org Subject: [External] Unsubscribe to Python

Cannot import GDAL

2017-01-11 Thread Falter, Donald [USA]
I am new to Python and I am trying to utilize GDAL. I installed Python 3.6. The version I get when I activate IDLE is: MSC v.1900 32 bit (Intel)] on win32. In downloading the GDAL bindings the latest version I can find is release-1800-gdal-2-1-2-mapserver-7-0-2 so I installed the following:

Re: Announcement: TLSv1.2 will become mandatory in the future for Python.org Sites

2017-01-10 Thread Donald Stufft
> On Jan 10, 2017, at 9:59 AM, Oleg Broytman wrote: > > On Tue, Jan 10, 2017 at 08:27:21AM -0500, Donald Stufft > wrote: >>python3 -c "import urllib.request,json; >> print(json.loads(urllib.request.urlopen('https://www.howsmyssl.com/a/check').read()

trouble installing python

2016-02-07 Thread donald alsept via Python-list
Hello, I'm trying to install the 3.5.1 of Python and am running windows 7. I keep getting an error about api-ms-win-crt-runtime-|1-1-0.dll not being installed. Any advice on what is wrong? -- https://mail.python.org/mailman/listinfo/python-list

Re: [Python-Dev] Python 2.x and 3.x use survey, 2014 edition

2014-12-10 Thread Donald Stufft
moin/2.x-vs-3.x-survey> Just going to say http://d.stufft.io/image/0z1841112o0C <http://d.stufft.io/image/0z1841112o0C> is a hard question to answer, since most code I write is both. --- Donald Stufft PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA -- https://mail.python.org/mailman/listinfo/python-list

Re: [Distutils] Call for information - What assumptions can I make about Unix users' access to Windows?

2014-11-07 Thread Donald Stufft
. It does not have Python or any development tooling installed on it. I also have access to the cloud(tm) which is where I normally spin up a whatever-the-most-recent-looking-name Windows Server. --- Donald Stufft PGP: 7C6B 7C5D 5E2B 6356 A926 F04F 6E3C BCE9 3372 DCFA -- https://mail.python.org/mailman/listinfo/python-list

Re: What are the minimum requirements to get a job in?

2012-12-13 Thread Greg Donald
my dream job? Doubt it, but good luck all the same :) > Please suggest me Visit their job boards. -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime - dates formatted differently on different computers

2012-12-11 Thread Greg Donald
was tasked with parsing and dial it in using the appropriate dayfirst, yearfirst, etc. options. -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime - dates formatted differently on different computers

2012-12-11 Thread Greg Donald
r unknown locale strings. >>>> parse('1.2.2013') # ambiguous, I know > datetime.datetime(2013, 1, 2, 0, 0) # should be datetime.datetime(2013, 2, 1, > 0, 0) In [2]: parse('1.2.2013', dayfirst=True) Out[2]: datetime.datetime(2013, 2, 1, 0, 0) -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: strptime - dates formatted differently on different computers

2012-12-11 Thread Greg Donald
date formats I've thrown at it. from dateutil.parser import parse dt = parse( whatever ) I've throw all kind of date and timestamps at it.. have yet to see anything it won't parse. -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-27 Thread Greg Donald
layers.. so flipping back and forth to see which database is better for your particular app and workload is trivial. -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: Article on the future of Python

2012-09-27 Thread Greg Donald
PRODUCT owned by a for-profit company. PostgreSQL is an open-source PROJECT and is unowned. A lot of the major technical differences are outlined here: http://www.wikivs.com/wiki/MySQL_vs_PostgreSQL -- Greg Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: Is there a unique method in python to unique a list?

2012-09-08 Thread Donald Stufft
gt; necessary there if we can use unique.append(x) alone? Thanks for your > enlightenment. > > On Sun, Sep 9, 2012 at 1:59 PM, Donald Stufft (mailto:donald.stu...@gmail.com)> wrote: > > seen = set() > > uniqued = [] > > for x in original: > > if not x in s

Re: Is there a unique method in python to unique a list?

2012-09-08 Thread Donald Stufft
If you don't need to retain order you can just use a set, set([1, 1, 2, 3, 4]) = set([1, 2, 3, 4]) But set's don't retain order. On Sunday, September 9, 2012 at 1:43 AM, Token Type wrote: > Is there a unique method in python to unique a list? thanks > -- > http://mail.python.org/mailman/lis

Re: pypi and dependencies

2012-03-20 Thread Donald Stufft
packaging (in 3.3) and distutils2 (2.x-3.2) is a new metadata format for python packages. It gets rid of setup.py and it includes a way to specify the requirements that your package needs. This will show up on PyPI/Crate. On Tuesday, March 20, 2012 at 8:01 AM, Andrea Crotti wrote: > On 03/20/2

Re: Looking for PyPi 2.0...

2012-02-15 Thread Donald Stufft
, encourage people to host their code and encourage following packaging standards. I'm currently focused mostly on the backend stability (e.g. getting it stable) but emphasizing things that are generally good for the packaging ecosystem is something I hope to do. > > John Nagle > --

Re: Installing programs that depend on, or are, python extensions.

2011-05-03 Thread James A. Donald
On Apr 30, 6:39 pm, David Cournapeau wrote: > On Sat, Apr 30, 2011 at 2:19 PM, James A. Donald > wrote: > > > I have noticed that installingpythonprograms tends to be hell, > > particularly underwindows, and installingpythonprograms that rely > > on, or in large part

Installing programs that depend on, or are, python extensions.

2011-04-29 Thread James A. Donald
I have noticed that installing python programs tends to be hell, particularly under windows, and installing python programs that rely on, or in large part are, python extensions written in C++ tends to be hell on wheels with large spiky knobs and scythes on the wheels. Is this because such install

Re: string find/replace

2010-12-01 Thread Donald O'Donnell
On Dec 1, 12:36 pm, Carlo wrote: > Hello, > > I want the Python equivalent of the Perl expression: > s/([a-z])([A-Z])/\1 \2/g > In plain language: place a space between a lowercase and uppercase > letter. I get lost in the RE module. Can someone help me? > > Thanks! This will also replace '_' wit

Re: Is their an expression to create a class?

2009-03-17 Thread Donald 'Paddy' McCarthy
Chris Rebert wrote: On Tue, Mar 17, 2009 at 2:24 PM, Robert Kern wrote: On 2009-03-17 16:13, Paddy wrote: We the def statement and the lambda expression. We have the class statement, but is their an expression to create a class? Or: def F(): pass type(F) # Is to: F2 = lambda : none type(

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
James A. Donald > > > > Horrible installs are a chronic problem of GUI programs driven by > > > > interpreted languages  Installing visual basic programs that worked on > > > > one Windows machine to work on a very slightly different windows > > > >

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
James A. Donald > > Horrible installs are a chronic problem of GUI programs driven by > > interpreted languages  Installing visual basic programs that worked on > > one Windows machine to work on a very slightly different windows > > machine was also a nightmare. > &g

Re: wxpython ms-dos black window popping up in background

2008-09-10 Thread James A. Donald
- We have the right to defend ourselves and our property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent state. http://www.jim.com/ James A. Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: spam <[EMAIL PROTECTED]> <[EMAIL PROTECTED]>

2008-07-13 Thread donald
Some real users do use GG. This is true, however there are acceptable losses. donald Arne -- http://mail.python.org/mailman/listinfo/python-list

Re: Question: How do I format printing in python

2008-06-25 Thread Donald 'Paddy' McCarthy
Lie wrote: On Jun 24, 12:12 am, [EMAIL PROTECTED] wrote: Hi All, How do I format printed data in python? I could not find this in the Python Reference Manual:http://docs.python.org/ref/print.html Nor could I find it in Matloff's great tutorial:http://heather.cs.ucdavis.edu/~matloff/Python/Pyt

Re: Database Query Contains Old Data

2008-06-03 Thread James A. Donald
property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent state. http://www.jim.com/ James A. Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: Database Query Contains Old Data

2008-06-03 Thread James A. Donald
On Mon, 02 Jun 2008 20:59:09 -0700, <[EMAIL PROTECTED]> wrote: James A. Donald > > If one has transactions open for a long time, or transactions that > > involve a great deal of data, this will result in poor performance or > > poor scalability. But one may have such la

Re: Database Query Contains Old Data

2008-06-02 Thread James A. Donald
ke sure one is committing as early and often as possible? -- -- We have the right to defend ourselves and our property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent state. http://www.jim.com/

Re: writing python extensions in assembly

2008-05-22 Thread James A. Donald
tent state. http://www.jim.com/ James A. Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: scaling problems

2008-05-19 Thread James A. Donald
the arbitrary power of the omnipotent state. http://www.jim.com/ James A. Donald -- http://mail.python.org/mailman/listinfo/python-list

Re: scaling problems

2008-05-19 Thread James A. Donald
at happens when one has quite a lot of web pages and a very large number of http requests? -- -- We have the right to defend ourselves and our property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent

Re: scaling problems

2008-05-19 Thread James A. Donald
-- We have the right to defend ourselves and our property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent state. http://www.jim.com/ James A. Donald -- http://mail.python.org/mailman/listinfo/python-list

scaling problems

2008-05-19 Thread James A. Donald
mbers". I am just asking where the problems are. -- -- We have the right to defend ourselves and our property, because of the kind of animals that we are. True law derives from this right, not from the arbitrary power of the omnipotent state. http://www.jim.com/

Re: Python 2.5 adoption

2008-04-19 Thread Donald 'Paddy' McCarthy
Joseph Turian wrote: > Basically, we're planning on releasing it as open-source, and don't > want to alienate a large percentage of potential users. Then develop for 2.5 with an eye on what is to come this year in 2.6 with regard to already planned deprecations. - Paddy. -- http://mail.python.o

pprint module and newer standard types

2008-04-17 Thread Donald 'Paddy' McCarthy
Hi, When I try and use pprint on standard types I get varying 'quality of output'. Lists will wrap nicely to multiple lines as will dicts, but sets and defaultdicts give one long unreadable line. Is their a chance to get this changed so that more built-in types look pretty when printed with pprin

python-2.5.2 src rpm

2008-03-09 Thread Donald Raikes
for that matter. Any pointers would be appreciated. Donald Raikes | Accessibility Specialist Phone: +1 602 824 6213 | Fax: +1 602 824 6213 | Mobile: +1 520 271 7608 Oracle JDeveloper QA "Please consider your environmental responsibility before printing this e-mail"

Re: alternating string replace: Extended input (Long).

2008-01-09 Thread Donald 'Paddy' McCarthy
cesco wrote: I created some more test strings and ran posters solutions against them. results attached. - Paddy. # alternating_replacements.py tests = " 1 2_ 3_4 5_6_ 7_8_9 10_11_12_ 13_14_15_16 17_18_19_20_" \ " _ _21 _22_ _23_24 _25_26_ _27_28_29 _30_31_32_ _33_34_35_36" \ " __ _

Python Help

2008-01-07 Thread Donald Bozeman
To all, Just requesting Python Help - currently taking online courses for Computer Science degree. Is anyone willing to help on some issues. Please let me know, thank you. Donald Bozeman -- http://mail.python.org/mailman/listinfo/python-list

Re: Is Python really a scripting language?

2007-12-12 Thread Donald 'Paddy' McCarthy
Doug Morse wrote: > although perhaps not a part of the definition of scripting languages per se, > one aspect of them is that they are often used to "glue" a wide variety of > other components together. perl's initial and continued success is in no > small part to all the wrappers and interfaces i

Re: some problems with mod_python

2007-08-27 Thread Greg Donald
dHandler python-program .py PythonHandler test PythonDebug On In particular my AddHandler directive is different from yours. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: I am giving up perl because of assholes on clpm -- switching to Python

2007-08-11 Thread Greg Donald
ask questions in such a way that no one can possibly have a reason to be an asshole. http://catb.org/~esr/faqs/smart-questions.html -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Emacs + python

2007-08-02 Thread Greg Donald
On 8/1/07, hg <[EMAIL PROTECTED]> wrote: > Are there any cscope & ECB equivalent for Python ? ECB is not language specific. It works the same for browsing Python code as any other language. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Wing IDE for Python v. 3.0 beta1 released

2007-08-01 Thread Greg Donald
nd addressed all my questions over about a 3 or 4 day email conversation. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Installing Python in a path that contains a blank

2007-05-21 Thread Greg Donald
On 5/21/07, John Machin <[EMAIL PROTECTED]> wrote: > Is there not a similar trick on MacOS X? It's called a symlink: ln -s /Users/gdonald /foo -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Using python with MySQL

2007-05-01 Thread Greg Donald
nt me > to some documentation for accessing MySQL via python. Something of the > "Python and MySQL for Dummies" caliber would be about my speed, but of > course I will be thankful for anything offered. http://mysql-python.sourceforge.net/ -- Greg Donald http://destiney.com/

Re: EuroPython vs PyconUK

2007-04-26 Thread Donald 'Paddy' McCarthy
EuGeNe Van den Bulke wrote: > I do realize that the UK is not really part of Europe (no polemic :P) > but I am nevertheless curious about the logic behind creating another > major Python event in Europe. Wasn't EuroPython enough? > > Like many I am sure, I probably won't be able to attend both (

Re: Where did my post go?

2007-04-25 Thread Donald 'Paddy' McCarthy
[EMAIL PROTECTED] wrote: > I posted to this newsgroup earlier about my annoyances with python and > now I can't find the post. What did you do with it? > I notice a gmail address. Google groups was not updated for over a day and is still 'behind'. Try another news reader. - Paddy -- http://mai

Re: Python not giving free memory back to the os get's me in real problems ...

2007-04-25 Thread Donald 'Paddy' McCarthy
[EMAIL PROTECTED] wrote: > So I read quite a few things about this phenomenon in Python 2.4.x but > I can hardly believe that there is really no solution to my problem. > > We use a commercial tool that has a macro functionality. These macros > are written in python. So far nothing extraordinary.

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 4/13/07, Bruno Desthuilliers <[EMAIL PROTECTED]> wrote: > Except for real programmers... That's correct. We use: # dd if=/dev/tty of=/dev/hda1 and such. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 4/13/07, Jarek Zgoda <[EMAIL PROTECTED]> wrote: > Thanks God No problem. > , there's no "PIDA for Emacs". Pet Industry Distributors Association ? -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python editor/IDE on Linux?

2007-04-13 Thread Greg Donald
On 13 Apr 2007 12:54:08 -0700, azrael <[EMAIL PROTECTED]> wrote: > try wing ide. i tried it and i love it. it's available for windows as > well for linux Good thing those are the only two operating system out there.. err.. I meant, good thing there's Emacs. -- Greg Dona

Re: Why NOT only one class per file?

2007-04-06 Thread Greg Donald
On 4/6/07, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > For one liners, wouldn't > > ECHO the text line >the.file > > be more appropriate? # dd if=/dev/tty of=/dev/hda1 -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: ipython env

2007-04-05 Thread Greg Donald
On 4/5/07, Gabriel Genellina <[EMAIL PROTECTED]> wrote: > > NameError: name 'env' is not defined > > Try os.environ Thanks. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

ipython env

2007-04-05 Thread Greg Donald
--- exceptions.NameError Traceback (most recent call last) /Users/destiney/ NameError: name 'env' is not defined Thanks, -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

smtplib startls() + quit()

2007-03-29 Thread Greg Donald
xception when using tls server.quit() except: pass Is there some other way to tear down the connection besides calling quit() ? Thanks, -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Python 2.4.4 on OSX

2007-03-24 Thread Greg Donald
t where the system version was installed. http://en.wikipedia.org/wiki/Path_%28computing%29 -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Removing Python 2.4.4 on OSX

2007-03-24 Thread Greg Donald
ike /usr/local and put /usr/local/bin ahead of your other paths. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: Python shell on mac os x

2007-03-15 Thread Greg Donald
On 15 Mar 2007 14:56:13 -0700, Bert Heymans <[EMAIL PROTECTED]> wrote: > >>> ^[OA^[OC^[OD Is your python built with readline support? Also, you might check out iPython. -- Greg Donald http://destiney.com/ -- http://mail.python.org/mailman/listinfo/python-list

Re: any better code to initalize a list of lists?

2007-03-11 Thread Donald Fredkin
John wrote: > For my code of radix sort, I need to initialize 256 buckets. My code > looks a little clumsy: > > radix=[[]] > for i in range(255): >radix.append([]) > > any better code to initalize this list? radix = [[[]]*256][0] -- -- http://mail.python.org/mailman/listinfo/python-list

Re: How Micro-pump will change the future of computer/ mobile chips.

2006-12-16 Thread Donald
Jim Granville wrote: > [EMAIL PROTECTED] wrote: > >> How Micro-pump will change the future of computer/ mobile chips. > > > FAR more hype than practical solution > Sorry guys, this will not "change the future of computer/ mobile chips." > >> Engineers at Purdue University have developed a t

Instantiate all objects in a module?

2006-08-15 Thread Donald Westfield
I have my own module, called mystuff.py, which is to be imported for an app. The number of classes in the module will vary, so I need a subroutine that will instantiate all of them as objects, and assign a variable to each, regardless of what names the classes are. Then I need to be able to delet

Best command for running shell command

2006-07-11 Thread Donald Duck
I'm a little bit confused about what is the best way to run a shell command, if I want to run a command like xx -a -b > yy where I'm not interested in the output, I only want to make sure that the command was executed OK. How should I invoke this (in a Unix/linux

Re: NEWB: General purpose list iteration?

2005-08-12 Thread Donald Newcomb
gt; if isinstance(item, list): > stack.append((enumerate(item), item)) > break > yield index, seq[index], seq > else: > stack.pop() It's going to take me a while to figure out exactly what that does but i

Re: NEWB: General purpose list iteration?

2005-08-12 Thread Donald Newcomb
"Devan L" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > This will just do_something(object) to anything that is not an > iterable. Only use it if all of your nested structures are of the same > depth. Cool! I'll try it. -- Donald Newcomb DRNe

NEWB: General purpose list iteration?

2005-08-11 Thread Donald Newcomb
g for a way to say: listb = float(lista) However, the way I've started jamming everything into lists and dictionaries, I'm sure I'll be needing to do other in-place conversions similar to this in the future. -- Donald Newcomb DRNewcomb (at) attglobal (dot) net -- http://mail.python.org/mailman/listinfo/python-list

Re: Ron Grossi: God is not a man

2005-04-30 Thread Donald L McDaniel
Johnny Gentile wrote: > Donald - go away. Far away. Now. > And, for the last time (hopefully), stop crossposting to > rec.music.beatles. > Go sell crazy somewhere else. We're all stocked up. > > Donald L McDaniel wrote: >> AKA wrote: >>> "Donald L McD

Re: Ron Grossi: God is not a man

2005-04-29 Thread Donald L McDaniel
AKA wrote: > "Donald L McDaniel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> MC05 wrote: >>> "sheltech" <[EMAIL PROTECTED]> wrote in message >>> news:[EMAIL PROTECTED] >>>> >>>> "M

Re: Ron Grossi: God is not a man

2005-04-29 Thread Donald L McDaniel
MC05 wrote: > "sheltech" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> "MC05" <[EMAIL PROTECTED]> wrote in message >> news:[EMAIL PROTECTED] >>> >>> "Donald L McDaniel" <[EMAIL PROTECTED]&

Re: Ron Grossi: God is not a man

2005-04-28 Thread Donald L McDaniel
MC05 wrote: > "Donald L McDaniel" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] >> >> 4) I doubt seriously whether God plays a guitar, since guitars are >> made by men, for men. His Son could theoretically play a guitar. Perhaps >>

yum repository

2005-03-14 Thread Donald L. Dietmeyer
What yum repository do you use to pick up python rpms? Don -- http://mail.python.org/mailman/listinfo/python-list

Pmw.ScrolledText

2004-12-07 Thread Donald L. Dietmeyer
I am attempting to put together a "dumb terminal" using a Pmw.ScrolledText to communicate via a serial port with a box that does the echoing of characters it receives. How can I stop the ScrolledText from echoing characters typed to it? Or lacking that, how can I know when a character has been ec