Re: IDLE won't run after installing Python 3.3 in Windows

2014-02-19 Thread David Robinow
On Tue, Feb 18, 2014 at 9:56 AM, wrote: > The next adventure in Python was to install Python 3 into a Windows XP > machine. I had a previous 2.7 installation that I uninstalled and carefully > removed all traces of from the directory and the registry. It is not necessary to uninstall previous

Re: Newcomer Help

2014-02-14 Thread David Robinow
On Thu, Feb 13, 2014 at 11:32 AM, Larry Martell wrote: > 18) If you're on AOL, don't worry about anything I've said here. > You're already a fucking laughing stock, and there's no hope for you. Ah, the email bigots. That's why I keep an AOL address around for occasional use against these jerks.

Re: [RELEASED] Python 3.4.0 release candidate 1

2014-02-11 Thread David Robinow
On Tue, Feb 11, 2014 at 5:45 AM, Terry Reedy wrote: > On 2/11/2014 5:13 AM, Terry Reedy wrote: >> ... >> I installed 64 bit 3.3.4 yesterday with no problem. I reran it today in >> repair mode and again, no problem. >> >> With 64 bit 3.4.0, I get >> "There is a problem with this Windows Installer p

Re: Editor for Python

2014-01-09 Thread David Robinow
On Thu, Jan 9, 2014 at 10:50 AM, Jean-Michel Pichavant wrote: > - Original Message - >> >> On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant >> wrote: >> > I tried to negotiate this with my IT guys, but it looks like it's >> > now mandatory, something related to being in the USA stock ma

Re: Editor for Python

2014-01-08 Thread David Robinow
On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant wrote: >>> -- IMPORTANT NOTICE: >>> >> >> too late you have sent this to a public forum > > No pb with that, the python list is the intended recipient :) > > I tried to negotiate this with my IT guys, but it looks like it's now > mandatory

Re: Bytes indexing returns an int

2014-01-07 Thread David Robinow
Sorry for top-posting. I thought I'd mastered gmail. -- https://mail.python.org/mailman/listinfo/python-list

Re: Bytes indexing returns an int

2014-01-07 Thread David Robinow
"treating bytes as chars" considered harmful? I don't know the answer to your question but the behavior seems right to me. Python 3 grudgingly allows the "abomination" of byte strings (is that what they're called? I haven't fully embraced Python3 yet). If you want a substring you use a slice. b

Re: Installing Python from sources with all the modules

2013-12-16 Thread David Robinow
On Mon, Dec 16, 2013 at 8:55 PM, shankha wrote: > Hi, > I am trying to install Python 3.3 from the latest sources on linux. > > After the installation when I try to run the following I get a error: > > ./python > Python 3.3.3 (default, Dec 16 2013, 18:28:25) > [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)

Re: Wrapping around a list in Python.

2013-12-16 Thread David Robinow
On Mon, Dec 16, 2013 at 12:26 AM, wrote: > The idea is to grab the last 4 elements of the array. However i have an array > that contains a few hundred elements in it. And the values continues to > .append over time. How would i be able to display the last 4 elements of the > array under such a

Re: Problem when applying Patch from issue1424152 to get https over authenticating proxies working with urllib2 in Python 2.5

2013-12-10 Thread David Robinow
On Tue, Dec 10, 2013 at 11:59 AM, wrote: > On 12/10/2013 09:22 AM, Mark Lawrence wrote: ... > Mark is one of the resident trolls here. Among his other traits > is his delusion that he is Lord High Commander of this list. > Like with other trolls, the best advice is to ignore him (which > I'm not

Re: Automation

2013-11-18 Thread David Robinow
On Mon, Nov 18, 2013 at 11:49 AM, Grant Edwards wrote: > ... > I don't make those mistakes typing on a phone (where I have to > actually think about the act of typing), but I do make them with a > regular keyboard, where I don't have to think about mechanics of > typing the words. > > OTOH, maybe

Re: What's wrong with Windows Command Prompt (was Re: Error Testing)

2013-10-21 Thread David Robinow
On Sat, Oct 19, 2013 at 4:35 PM, Terry Reedy wrote: > On 10/19/2013 2:31 PM, Tim Chase wrote: >> >> On 2013-10-19 14:08, David Robinow wrote: >>> >>> On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico wrote: >>>> >>>> You can try all these o

Re: Error Testing

2013-10-19 Thread David Robinow
On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico wrote: > You can try all these out in the interactive interpreter (you probably > have IDLE installed, which on Windows is rather nicer to work with > than the default interactive mode). IDLE is cross-platform. Could you explain why you say "on Wi

Re: LibreOffice

2013-08-03 Thread David Robinow
On Fri, Aug 2, 2013 at 9:26 PM, Terry Reedy wrote: > ... > Of relevance to this list, Libre Office upgraded the included Python > interpreter to 3.3. I have no idea whether OO is still using 2.3 or also > updated. They're up to 2.7 now. -- http://mail.python.org/mailman/listinfo/python-list

Re: embedded python and threading

2013-07-26 Thread David Robinow
Works for me. Except that if I then do: touch time.py I get the same error as you do. Can you figure out the problem now? On Fri, Jul 26, 2013 at 11:57 AM, David M. Cotter wrote: > okay, i have simplified it: here is the code > > == > import time > > d

Re: Issues compiling hunspell from source on windows

2013-06-30 Thread David Robinow
It appears you are using a 32 bit compiler with a 64-bit python. Install a 32 bit python. On Sun, Jun 30, 2013 at 11:54 AM, Akshay Kayastha wrote: > Hi I am trying to compile a python module called hunspell from the following > [source](https://pypi.python.org/pypi/hunspell). > > But I get the f

Re: Include and lib files for Visual Studio?

2013-04-20 Thread David Robinow
On Sat, Apr 20, 2013 at 4:59 PM, wrote: > I am looking for the Python include and lib files for windows. I have a > c++ project that I am importing into Visual Studio 2010 (express) and it > links python. I need the include and lib files for windows. Where can I get > them? > I'd like to use pyth

Re: equivalent to C pointer

2013-04-18 Thread David Robinow
On Thu, Apr 18, 2013 at 1:50 PM, abdelkader belahcene wrote: > Thanks for answer, > but with C we can compile the trapeze function and put it in librairy, > If we try to save the trapeze alone in package to import it later, I > think, I am not sure > it will be refused because F1 and sin are no

Re: equivalent to C pointer

2013-04-18 Thread David Robinow
On Thu, Apr 18, 2013 at 1:06 PM, abdelkader belahcene wrote: > Hi everybody, > > I am new to python and I am discovering it. > I know C well, > and want to know if python knows how to manage Pointers > like pointer to function here is a C example how to write it in python > Intergration with tra

Re: Interactrive Python under Cygwin in Win7

2013-04-08 Thread David Robinow
On Mon, Apr 8, 2013 at 11:20 AM, Grant Edwards wrote: > I just installed ActiveState 2.7 64-bit on a Windows 7 machine running > a current version of Cygwin. While python programs (both GUI and > text-mode) run fine, I'm unable to use Python interactively from > either the Cygwin terminal or in a

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 12:45 PM, Joe Hill wrote: > On Tue, 2 Apr 2013 11:44:55 -0400, David Robinow > >Download the Windows executables. > > > >3.3.0 is the current version > > Is "numpy" an option that is needed (guess for math?)? > No, it's not n

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Mon, Apr 1, 2013 at 9:02 PM, Joe Hill wrote: > ... > > In a Windows 7 environment (even a 64-bit Windows 7 environment), you > must install the 32-bit version of Python 3. The 64-bit version will not > work with NumPy 1.6. > 1.7 is the current version. I use 32-bit Python myself. > Fu

Re: Help installing latest PyQT

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis wrote: > Hi there im trying to install PyQT (version > PyQt4-4.10-gpl-Py3.3-Qt5.0.1-x64-2.exe) but i dont know how to make sure i > have installed everything correctly. I tried to find documentation about > this but most links were very dead.. > > So fa

Re: ISO deprecates ASCII Horizontal Tab control character

2013-04-01 Thread David Robinow
If only On Mon, Apr 1, 2013 at 3:10 PM, wrote: > The subcommittee of ISO Joint Technical Committee 1 that is responsible > for coded character sets has deprecated the Horizontal Tab control > character in an approved revision of ISO/IEC 646 to be published in the > next few months. > > "The day

Re: Differentiation in Python

2013-03-28 Thread David Robinow
On Thu, Mar 28, 2013 at 8:17 AM, wrote: > How do I differentiate(first order and 2nd order) the following equations in > python. I want to differentiate C wrt Q. > > C = (Q**3)-15*(Q**2)+ 93*Q + 100 """ Years ago, when I actually worked for a living, I would have done something like this: """

Re: Global NameError Fix?

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 7:43 PM, maiden129 wrote: > Hello, > > I'm using the version 3.2.3 of Python and I am having an issue in my program > and I don't know how to fix it: > > counterLabel["text"] = str(counter) > NameError: global name 'counterLabel' is not defined > > Here is my program: > >

Re: Windows Deployment Of Python Modules

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 6:23 PM, Adam Tauno Williams wrote: > David Robinow wrote: >>On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams >> wrote: >>> >>> Python itself is easy to deploy on Windows; just toss the MSI in >>your >>> local upda

Re: [Python-ideas] string.format() default variable assignment

2013-03-04 Thread David Robinow
Crap. I just forgot to do what I just said I would do and didn't go through my "inconvenient" sequence. Sorry, Steven. It was unintentional. -- http://mail.python.org/mailman/listinfo/python-list

Re: [Python-ideas] string.format() default variable assignment

2013-03-04 Thread David Robinow
Ignoring my own posting ban, since I've clearly been misunderstood .. On Sat, Mar 2, 2013 at 10:21 PM, Steven D'Aprano wrote: > On Sat, 02 Mar 2013 21:11:04 -0500, David Robinow wrote: > >> Do you consider it rude that you choose to use a newsreader, thus >> inconve

Re: [Python-ideas] string.format() default variable assignment

2013-03-02 Thread David Robinow
On Sat, Mar 2, 2013 at 10:06 PM, Chris Angelico wrote: > On Sun, Mar 3, 2013 at 2:01 PM, David Robinow wrote: >> On Sat, Mar 2, 2013 at 9:15 PM, Roy Smith wrote: >>> There's a number of advantages to news vs. mail. The biggest is that >>> news spools generall

Re: [Python-ideas] string.format() default variable assignment

2013-03-02 Thread David Robinow
On Sat, Mar 2, 2013 at 9:15 PM, Roy Smith wrote: > In article , > David Robinow wrote: > >> On Sat, Mar 2, 2013 at 7:27 PM, Steven D'Aprano >> wrote: >> > On Sat, 02 Mar 2013 09:53:47 -0500, Devin Jeanpierre wrote: >> > >> >> On Sat, M

Re: [Python-ideas] string.format() default variable assignment

2013-03-02 Thread David Robinow
On Sat, Mar 2, 2013 at 7:27 PM, Steven D'Aprano wrote: > On Sat, 02 Mar 2013 09:53:47 -0500, Devin Jeanpierre wrote: > >> On Sat, Mar 2, 2013 at 1:54 AM, Chris Angelico wrote: >>> Yes, but reply-all sends a copy to the poster as well as the list. What >>> I want is reply-list, acknowledging the l

Re: Shebang line on Windows?

2013-02-25 Thread David Robinow
On Mon, Feb 25, 2013 at 12:29 PM, D'Arcy J.M. Cain wrote: > ... > I don't run Windows myself so I can't test it but doesn't Python on > Windows work fine with Unix style EOL? So why not strip out the CR and > run the same file everywhere? That's the ideal solution, but so many Windows tools defa

Re: python on windows

2013-02-16 Thread David Robinow
On Sat, Feb 16, 2013 at 4:40 PM, babatunde akerele wrote: > hello, i'm having problem coding and running python on my pc...i just > started learning python last month in codeacademy.com but i've not > been able to code offline 'cos i don't knw how to go abt installing > the compiler and all that.

Re: Howto parse a string using a char in python

2013-02-15 Thread David Robinow
On Fri, Feb 15, 2013 at 6:04 PM, Steve Goodwin wrote: > Hi, > > I am looking for the python2.7 function(s) to parse a string from a colon > character ":" > > Sounds simple enough. > > For example, a string like "123456:789". I just need the "123456" > substring.(left of the :) "123456:789".split(

Re: Statistics...help with numpy/scipy install

2013-02-10 Thread David Robinow
On Sun, Feb 10, 2013 at 5:14 PM, Rex Macey wrote: > I should have added that the setup gives an error window "Cannot install" > "Python version 3.3 required, which was not found in the registry." I'm guessing that you installed a 64-bit python and are using a 32-bit numpy. -- http://mail.python

Re: Statistics...help with numpy/scipy install

2013-02-10 Thread David Robinow
On Sun, Feb 10, 2013 at 1:14 PM, Michael Torrie wrote: > On 02/10/2013 10:35 AM, Rex Macey wrote: > A casual google search seems to indicate that for now, SciPy and NumPy > are for Python 2.x (2.7 is the latest). I could be wrong though and > often am. I know a number of popular and useful packa

Re: Plz Suggest... How can i install the pure python package py-bidi in WIndows.

2012-12-22 Thread David Robinow
On Sat, Dec 22, 2012 at 9:10 AM, Arsalan Khan wrote: > I tried installing but it gives error.. > Can anyone guide the procedure of configuring/Installing a python package in > windows ??? What did you do to try to install? What error(s) did you get? Where can I find this package if I want to h

Re: SSH Connection with Python

2012-10-29 Thread David Robinow
On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N wrote: > The only thing I'm concerned about paramiko is, that I don't see any > activity on the paramiko site and that one library it depends on is not > available is windows binary package for newer versions of python. > I don't understand why this is

Re: I need help installing pypng in Python 3.3

2012-10-29 Thread David Robinow
On Mon, Oct 29, 2012 at 8:23 AM, wrote: > Hello all, > > I am very new to python. I am currently porting a little project of mine from > java to python and I need to be able to construct and write png images. I > naturally turned myself toward pypng to accomplish this. > > I learned from the ne

Re: A desperate lunge for on-topic-ness

2012-10-20 Thread David Robinow
On Sat, Oct 20, 2012 at 3:10 PM, Dennis Lee Bieber wrote: > On Sat, 20 Oct 2012 14:18:47 + (UTC), Grant Edwards > declaimed the following in > gmane.comp.python.general: > >> >> True, but nobody prints source code out on paper do they? >> >> Seriously -- I can't remember the last time I print

Re: Script for finding words of any size that do NOT contain vowels with acute diacritic marks?

2012-10-17 Thread David Robinow
On Wed, Oct 17, 2012 at 1:07 PM, Ian Kelly wrote: > "return len(w) != len(w_decomposed)" is all you need. Thanks for helping, but I already knew that. -- http://mail.python.org/mailman/listinfo/python-list

Re: Coexistence of Python 2.x and 3.x on same OS

2012-10-01 Thread David Robinow
On Sun, Sep 30, 2012 at 11:55 PM, Dave Angel wrote: >> The problem with that is that one has to already being using 3.3 to >> use this facility. I was hoping for a solution which was backwards >> compatible with Python 2.x. >>... >> That does not solve the problem for Python 2.x distributions. > I

Re: Stop feeding the trolls (Was: which a is used?)

2012-09-25 Thread David Robinow
On Tue, Sep 25, 2012 at 9:53 AM, D'Arcy Cain wrote: > ... > Now if only people would stop feeding the troll, those of us who have > already *plonked* him can stop seeing his ramblings in the responses. I'm hating myself for jumping in to this nonsense, but ... +1 -- http://mail.python.org/mailma

Re: Filter versus comprehension (was Re: something about split()???)

2012-08-25 Thread David Robinow
On Fri, Aug 24, 2012 at 3:03 PM, Walter Hurry wrote: > On Fri, 24 Aug 2012 14:29:00 -0400, Dennis Lee Bieber wrote: > >> It appears to be a change Google made in the last month or two... My >> hypothesis is that they are replacing hard EOL found in inbound NNTP >> with an HTML , and then on outgoi

Re: Converting a list of strings into a list of integers?

2012-07-22 Thread David Robinow
On Sun, Jul 22, 2012 at 12:20 PM, Jan Riechers wrote: > On 22.07.2012 18:39, Alister wrote: >> looks like a classic list comprehension to me and can be achieved in a >> single line >> MODUS_LIST=[int(x) for x in options.modus_list] > Hi, > > I am not sure why everyone is using the for-iterator opt

Re: Python Interview Questions

2012-07-10 Thread David Robinow
On Tue, Jul 10, 2012 at 1:02 PM, Ethan Furman wrote: ... > > Reminds me of a job posting a few years ago where the prospective employer > wanted three plus years experience in some language, and that language had > only been created a year and a half before. I saw several of those when Java was n

Re: usenet reading

2012-05-26 Thread David Robinow
On Sat, May 26, 2012 at 11:43 AM, Roy Smith wrote: > I use panix.com.  For $100/year, I get mail, news, and unix shell > access.  By some measures, it's an expensive way to get mail access, but > I'd much rather give Panix $100 than take advantage of any of the free > mail services who does who-kn

Re: Python Gotcha's?

2012-04-15 Thread David Robinow
On Sun, Apr 15, 2012 at 4:01 PM, Bryan wrote: > On Windows the file extension determines what executable opens the > file. Running both Python 2 and Python 3 on Windows is painful where > it doesn't need to be. I'd like to encourage my users to check out > Python 3, but installing it on Windows wi

Re: f python?

2012-04-08 Thread David Robinow
On Sun, Apr 8, 2012 at 6:55 PM, Dennis Lee Bieber wrote: >        The main reason, as I recall, for the command line using \ for file > paths is that it inherited / as command OPTION prefix from CP/M; MS-DOS > being a 32-bit work-alike for CP/M in the first generation. I also thought it was becau

Re: Number of languages known [was Re: Python is readable] - somewhat OT

2012-03-31 Thread David Robinow
On Sat, Mar 31, 2012 at 4:13 PM, Tim Rowe wrote: > I know 10 languages. But I'm not telling you what base that number is :) The fact that you know there are bases other than 10 puts you in the top half of the candidates already! -- http://mail.python.org/mailman/listinfo/python-list

Re: errors building python 2.7.3

2012-03-29 Thread David Robinow
On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko wrote: > On 28.03.2012 18:42, David Robinow wrote: >> On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko  wrote: >>> I've tried to build Python 2.7.3rc2 on cygwin and got the following >>> errors: >>> >>>

Re: errors building python 2.7.3

2012-03-28 Thread David Robinow
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko wrote: > I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: > > $ CFLAGS=-I/usr/include/ncursesw/ CPPFLAGS=-I/usr/include/ncursesw/ > ./configure I haven't tried 2.7.3 yet, so I'll describe my experience with 2.7.2 I use /us

Re: Nested Function Question

2012-01-07 Thread David Robinow
On Fri, Jan 6, 2012 at 5:04 PM, Ian Kelly wrote: > On Fri, Jan 6, 2012 at 2:46 PM, GZ wrote: >> Hi, >> >> I am reading the documentation of functools.partial (http:// >> docs.python.org/library/functools.html#functools.partial) and found >> the following 'reference implementation' of functools.pa

Re: MOST COMMON QUESTIONS ASKED BY NON-MUSLIMS ?????????

2012-01-03 Thread David Robinow
On Tue, Jan 3, 2012 at 2:24 PM, Benjamin Kaplan wrote: > On Tue, Jan 3, 2012 at 1:49 PM, D'Arcy Cain wrote: >> On 12-01-03 01:24 PM, gene heskett wrote: >>> >>> The solution is to chop the link between google.groups and this list.  But >>> that subject has been declared verboten. Too much inconve

Re: % is not an operator [was Re: Verbose and flexible args and kwargs syntax]

2011-12-16 Thread David Robinow
On Fri, Dec 16, 2011 at 7:54 PM, Steven D'Aprano wrote: > On Fri, 16 Dec 2011 11:40:11 -0800, Eelco wrote: > >> On 16 dec, 18:38, rusi wrote: >>> On Dec 16, 3:25 pm, Eelco wrote: >>> >>> > Pseudo-backwards compatibility with other languages, I couldnt not >>> > care less for. >>> >>> Double nega

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 6:59 PM, Ben Finney wrote: > David Robinow writes: > >> On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney >> wrote: >> > I don't know about MS Windows, but the Python interactive shell can be >> > linked with the GNU Readline librar

Re: python shell that saves history of typed in commands that will persist between reboots

2011-11-16 Thread David Robinow
On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney wrote: > goldtech writes: > >> Using Windows. Is there a python shell that has a history of typed in >> commands? > > I don't know about MS Windows, but the Python interactive shell can be > linked with the GNU Readline library for managing its command

Re: guppy

2011-11-09 Thread David Robinow
On Wed, Nov 9, 2011 at 2:38 PM, Juan Declet-Barreto wrote: > I am using Cygwin build of Python2.6.  This Cygwin install has both a Cygwin > gcc (versions 3.4.4 and 4.5.3) and mingw32 (3.4.4), as listed in lib/gcc/. > > I also tried the mingw32 shell separately, but I get the same results even >

Re: leftover pyc files

2011-11-03 Thread David Robinow
On Thu, Nov 3, 2011 at 1:54 PM, Andrea Crotti wrote: > All these ideas (shell and git hooks) are nice, but unfortunately > - it's svn not git > - it's windows not *nix > - we have to remove only the ones without the corresponding *py... > -- > http://mail.python.org/mailman/listinfo/python-list >

Re: [NUMPY] "ValueError: total size of new array must be unchanged" just on Windows

2011-10-11 Thread David Robinow
2011/10/11 Paolo Zaffino : > Nobody can help me? Nope, not unless you post some code. Your problem description is too vague. -- http://mail.python.org/mailman/listinfo/python-list

Re: how to run in xp?

2011-09-28 Thread David Robinow
On Wed, Sep 28, 2011 at 9:29 AM, Peter Otten <__pete...@web.de> wrote: > =?gbk?B?ytjW6rT9zcM=?= wrote: > >> it can run ,but there is still a problem ,nothing in my file. >> please run the code in xp+python32 >> import urllib.request, urllib.parse, urllib.error >> exchange=['NASDAQ','NYSE','AMEX'] >

Re: install packages with pip to older Python versions

2011-09-27 Thread David Robinow
On Mon, Sep 26, 2011 at 4:39 PM, Jabba Laci wrote: > Hi, > > I have Python 2.7 on my system. Today I wanted to try Google App > Engine but it runs on Python 2.5 at Google so I installed this version > on my machine next to v2.7 to avoid compatibility problems. However, > when I start the Python sh

Re: Stop quoting spam [was Re: Hot Girls ...]

2011-08-20 Thread David Robinow
On Sat, Aug 20, 2011 at 4:16 AM, Alec Taylor wrote: >> ... > I found said joke rather funny :P Perhaps, as a retired amateur comedian, my standards are too high, but I don't think adding a smilie to a stupid post suddenly turns it into a joke. Nevertheless, the quality of the attempt is not reall

Re: How to convert a list of strings into a list of variables

2011-08-18 Thread David Robinow
On Thu, Aug 18, 2011 at 10:57 AM, noydb wrote: > How would you convert a list of strings into a list of variables using > the same name of the strings? > > So, ["red", "one", "maple"] into [red, one, maple] Why would you want to? -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError: 'module' object is not callable

2011-08-11 Thread David Robinow
On Thu, Aug 11, 2011 at 6:43 PM, Forafo San wrote: > I wrote a class, Univariate, that resides in a directory that is in my > PYTHONPATH. I'm able to >import that class into a *.py file. However when I > try to instantiate an object with that class like: What makes you think you're able to im

Re: how to separate a list into two lists?

2011-08-06 Thread David Robinow
On Sat, Aug 6, 2011 at 1:23 PM, Kabie wrote: > No. > L1, L2 = zip(*L) Not quite. That makes L1 & L2 tuples. L1, L2 = zip(*L) L1 = list(L1) L2 = list(L2) ??? -- http://mail.python.org/mailman/listinfo/python-list

Re: Compiling Python 3.2 on Cygwin fails

2011-07-05 Thread David Robinow
On Mon, Jul 4, 2011 at 3:49 PM, Aly Tawfik wrote: > On Jun 20, 12:44 pm, sewpafly wrote: >> I was able to a little further by changing 2 lines in Makefile.pre.in. >> >> On line 170, changed: >>     DLLLIBRARY= @DLLLIBRARY@ >> to: >>     DLLLIBRARY= libpython$(VERSION).dll >> >> On line 509 it had

Re: Is there a better way to solve this?

2011-05-23 Thread David Robinow
On Mon, May 23, 2011 at 2:55 PM, kracekumar ramaraju wrote: > You can use sizeof function, a=12234 b=23456.8 a.__sizeof__() > 12 b.__sizeof__() > 16 > So sizeof int is 12 bytes and float is 16 bytes I'm not sure what you're trying to show here, but try the following in Python

Re: Trying to understand html.parser.HTMLParser

2011-05-15 Thread David Robinow
On Sun, May 15, 2011 at 4:45 PM, Andrew Berg wrote: > I'm trying to understand why HMTLParser.feed() isn't returning the whole > page. My test script is this: > > import urllib.request > import html.parser > class MyHTMLParser(html.parser.HTMLParser): >    def handle_starttag(self, tag, attrs): >

Re: checking if a list is empty

2011-05-14 Thread David Robinow
On Fri, May 13, 2011 at 10:34 PM, Gregory Ewing wrote: > rusi wrote: > >> Dijkstra's problem (paraphrased) is that python, by choosing the >> FORTRAN alternative of having a non-first-class boolean type, hinders >> scientific/mathematical thinking/progress. > > Python doesn't have the flaw that Di

Re: setuptools for 64-bit 2.7.1 on 64-bit Windows 7?

2011-05-06 Thread David Robinow
On Fri, May 6, 2011 at 1:43 PM, Dick Bridges wrote: > Simple question: Is it true that no setuptools (or any other module > installer) exists for 64-bit python 2.7.1? If there is an installer that > works, what terms might I use to Google for information on how to acquire > and install it? Doesn't

Re: [python-list] - what do you think ?

2011-02-08 Thread David Robinow
On Tue, Feb 8, 2011 at 5:03 PM, Rhodri James wrote: > On Tue, 08 Feb 2011 12:18:50 -, wrote: >> On Tue, Feb 08, 2011 at 10:16:42PM +1100, Ben Finney wrote: >>> Either your mail client already knows how to filter messages >>> appropriately depending on which mailing list they came from; or, yo

Re: trouble installing MySQLdb (cygwin) + Bonus question

2011-01-25 Thread David Robinow
On Tue, Jan 25, 2011 at 5:59 PM, Matthew Roth wrote: > On Jan 25, 9:34 pm, John Nagle wrote: ... >>     You can install a MySQL server under Windows, and talk to the server >> from the Cygwin environment.  That's a useful way to test. >> >>                                         John Nagle > > R

Re: type(d) != type(d.copy()) when type(d).issubclass(dict)

2010-12-24 Thread David Robinow
On Fri, Dec 24, 2010 at 1:52 PM, kj wrote: > Watch this: > class neodict(dict): pass > ... d = neodict() type(d) > type(d.copy()) > > > > Bug?  Feature?  Genius beyond the grasp of schlubs like me? copy, here, is a dict method. It will create a dict. If you really need it, y

Re: If/then style question

2010-12-17 Thread David Robinow
On Thu, Dec 16, 2010 at 6:51 PM, Steven D'Aprano wrote: ... > Functions always have one entry. The only way to have multiple entry > points is if the language allows you to GOTO into the middle of a > function, and Python sensibly does not allow this. The "one entry, one > exit" rule comes from th

Re: Python 2.7

2010-11-08 Thread David Robinow
On Mon, Nov 8, 2010 at 6:22 AM, Antonio de Haro Millan wrote: > I can not install "Python Imaging Library 1.1.7 for Python 2.6 (Windows > only)" > because I have the Python 2.7. A solution please... download http://effbot.org/media/downloads/PIL-1.1.7/win32-py2.7.exe -- http://mail.python.org/mai

Re: PyRTF object model

2010-09-30 Thread David Robinow
On Thu, Sep 30, 2010 at 8:14 AM, Rustom Mody wrote: > I am trying to use PyRTF. > > I gather that an RTF doc consists of a list of sections, a section > consists of a list of paras, > paras seem to be just text (not sure on that one) > > Some questions: > > When does one end one section and start

Re: Pyflakes and IPython does not work for Emacs on Windows?

2010-09-24 Thread David Robinow
On Fri, Sep 24, 2010 at 4:59 PM, Dsrt Egle wrote: > ... > I can't invoke IPython by Emacs on Windows, either. Looks ipyhon.el > only works for Linux? There don't appear to be a lot of ipython.el users on Windows. You may have better look on an emacs list since there appear to be some configuration

Re: Accessing windoze file attributes

2010-09-15 Thread David Robinow
On Wed, Sep 15, 2010 at 4:51 AM, Douglas wrote: > Environment: X86, 1Gb RAM, Win XP, latest SP, Excel 2003. > > Hi, can anyone direct a relative newbie to the best source of info? > I am writing my own backup app in Python 2.5.2 (all my company will > allow me to use) using IDLE. > I intend to run

Re: business date and calendar libraries?

2010-09-13 Thread David Robinow
On Mon, Sep 13, 2010 at 1:06 PM, Chris Withers wrote: > I'm wondering what libraries people would use to answer the following > questions relating to business days: > > - on a naive level; "what's give me the last business day" (ie: skipping > weekends) import datetime def is_weekend(year, month,

Re: bool constructor is inconsistent?

2010-09-10 Thread David Robinow
On Fri, Sep 10, 2010 at 2:35 PM, Stefan Schwarzer wrote: > Hi Neal, > > On 2010-09-10 20:23, Neal Becker wrote: >> IN [3]: bool('False') >> Out[3]: True > > If you consider strings, only an empty string has a false > value. So the string 'False' which is non-empty, results in > a true boolean valu

Re: Windows vs. file.read

2010-09-01 Thread David Robinow
On Wed, Sep 1, 2010 at 1:03 PM, Mike wrote: > I have a ppm file that python 2.5 on Windows XP cannot read > completely. > Python on linux can read the file with no problem > Python on Windows can read similar files. > I've placed test code and data here: > http://www.cs.ndsu.nodak.edu/~hennebry/pp

Re: Win7. Why Don't Matplotlib, ... Show up in Control Panel Add-Remove?

2010-08-08 Thread David Robinow
On Sun, Aug 8, 2010 at 12:51 PM, Mark Lawrence wrote: > On 08/08/2010 17:16, W. eWatson wrote: >> >> See Subject. I use matplotlib, scipy, numpy and possibly one other >> module. If I go to the control panel, I only see numpy listed. Why? I >> use a search and find only numpy and Python itself. Ho

Re: Why is there no platform independent way of clearing a terminal?

2010-08-04 Thread David Robinow
On Wed, Aug 4, 2010 at 6:47 PM, Lawrence D'Oliveiro wrote: > In message , David > Robinow wrote: > >>  As an admittedly stupid comparison, I have 1579 DLLs in my >> \windows\system32 directory. >> Some number of these have been upgraded by Windows Update. > >

Re: Why is there no platform independent way of clearing a terminal?

2010-08-02 Thread David Robinow
On Mon, Aug 2, 2010 at 11:41 AM, Benjamin Kaplan wrote: >... > So these are the packages needed just to run Python in Ubuntu. It doesn't > include the packages required for the kernel, the desktop environment, the > window manager, the terminal, and whatever else you want running. In my > fairly c

Re: Newbie question regarding SSL and certificate verification

2010-07-29 Thread David Robinow
On Thu, Jul 29, 2010 at 10:07 AM, Jeffrey Gaynor wrote: > ... > A final question -- how widely is M2Crypto used? Since I will have to now > pitch to our group that this is preferable the first questions they will ask > are about stability, who is using it and how secure is it really, especially

Re: Multiple versions of Python coexisting in the same OS

2010-07-25 Thread David Robinow
On Sun, Jul 25, 2010 at 8:40 PM, Edward Diener wrote: > On 7/25/2010 5:57 PM, Thomas Jollans wrote: > So if a standard library module ( or distributed library ) executes a call > internally to 'python xxx yyy' or executes a call internally to > 'someScript.py yyy', you're fine with multiple co-exi

Re: Q for Emacs users: code-folding (hideshow)

2010-07-16 Thread David Robinow
On Fri, Jul 16, 2010 at 9:29 AM, ernest wrote: > On 15 Jul, 18:45, kj wrote: >> This is a question _for Emacs users_ (the rest of you, go away :)  ). >> >> How do you do Python code-folding in Emacs? >> >> Thanks! >> >> ~K > > I tried the outline-mode and it seemed to work. It can > collapse diff

Re: Download Microsoft C/C++ compiler for use with Python 2.6/2.7 ASAP

2010-07-06 Thread David Robinow
On Tue, Jul 6, 2010 at 1:46 PM, Martin P. Hellwig wrote: > Public download that is, people like me who have a MSDN subscription can > still download old versions like Visual Studio 2005. > > So I would say that there is no particular hurry. > I would think that everyone really serious about MS dev

Re: Python 2.7 released

2010-07-05 Thread David Robinow
On Mon, Jul 5, 2010 at 8:15 PM, Steven D'Aprano wrote: > On Mon, 05 Jul 2010 12:59:00 -0700, Martineau wrote: > >> I'd like to view the contents of the help file without actually >> installing the release which would wipe out any currently installed >> version (I'm one of those rare people who act

Re: python source code -> win/dos executable (on linux)

2010-06-27 Thread David Robinow
On Sun, Jun 27, 2010 at 9:16 PM, Lawrence D'Oliveiro wrote: > In message <4c24c152$0$31381$4fafb...@reader1.news.tin.it>, superpollo > wrote: > >> suppose i work in a linux environment, but i would like to ship a >> win/dos executable file from time to time, just for test purposes (my >> "testers"

Re: a +b ?

2010-06-17 Thread David Robinow
On Wed, Jun 16, 2010 at 11:34 PM, Aahz wrote: > In article , > James Mills   wrote: ... >>What in particular do you _not_ enjoy about using map/reduce (and >>possibly other functional features of the Python programing language) ? > > map() never felt particularly Pythonic, especially the way it wo

Re: Community (A Modest Proposal)

2010-06-13 Thread David Robinow
On Sun, Jun 13, 2010 at 1:57 PM, Steven D'Aprano wrote: > On Sun, 13 Jun 2010 08:42:57 -0700, rantingrick wrote: > >> i will start a fork. > > That is the most sensible thing you have said yet. Please do so, it will > be a great thing for the Python community. Eagerly awaiting the transfer of thi

Re: Free chapter about Python and databases (MySQL and SQLite)

2010-05-28 Thread Robinow
wrote: Sebastian Bassi writes: On Fri, May 28, 2010 at 12:37 AM, John Bokma wrote: Even if it's just a few bucks, it's still money saved [0]. On top of that I think it's way better to point your audience to good books on the topic and skip the intro instead of doing a (half hearted

Re: virtualenvwrapper for Windows (Powershell)

2010-05-11 Thread David Robinow
On Tue, May 11, 2010 at 1:43 AM, Lawrence D'Oliveiro wrote: > In message > <22cf35af-44d1-43fe-8b90-07f2c6545...@i10g2000yqh.googlegroups.com>, > Guillermo wrote: >> If you've ever missed it on Windows and you can use Powershell ... > I thought the whole point of Windows was to get away from this

Re: condition and True or False

2010-05-02 Thread David Robinow
On Sun, May 2, 2010 at 1:14 PM, Paul McGuire wrote: > While sifting through some code looking for old "x and y or z" code > that might better be coded using "y if x else z", I came across this > puzzler: > >    x = and True or False > > What is "and True or False" adding to this picture?  The boo

Re: off topic but please forgive me me and answer

2010-04-01 Thread David Robinow
On Thu, Apr 1, 2010 at 10:44 PM, Steven D'Aprano wrote: > On Thu, 01 Apr 2010 19:49:43 -0500, Tim Chase wrote: > >> David Robinow wrote: >>> $ python -c "print 1/2 * 1/2" >>> 0 >>> >>>  But that's not what I learned in grade s

Re: off topic but please forgive me me and answer

2010-04-01 Thread David Robinow
On Thu, Apr 1, 2010 at 7:34 PM, Patrick Maupin wrote: > On Apr 1, 4:42 pm, Tim Chase wrote: >> superpollo wrote: >> > how much is one half times one half? >> >> Uh, did you try it at the python prompt?  If not, here's the answer: >> >>   0.1b * 0.1b = 0.01b >> >> Now all you need is to find the r

Re: use of multiple versions of python

2010-03-11 Thread David Robinow
On Thu, Mar 11, 2010 at 12:40 AM, Bujji wrote: > hi all, > I have installed python 2.6 in addition to python 2.5 in my system > Now for some modules(while installing ) it needs to use python 2.6 > how can i do that > in case of easy_install what should i do to it to use python 2.6 You should have

  1   2   >