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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: 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: 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: 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: [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: 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: 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: 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: 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: % 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: 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: 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: 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: 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: 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: 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: 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-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: [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 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-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-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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: 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: Modifying the value of a float-like object

2009-04-14 Thread David Robinow
On Tue, Apr 14, 2009 at 9:03 AM, wrote: > Hello, > > Is there a way to easily build an object that behaves exactly like a > float, but whose value can be changed?  The goal is to maintain a list > [x, y,…] of these float-like objects, and to modify their value on the > fly (with something like x.

Re: wxPython 2.8 for Python 2.6 on Linux

2009-04-19 Thread David Robinow
On Sun, Apr 19, 2009 at 1:58 AM, Kenny x wrote: > Hello, I use Ubuntu 8.10 and the latest version of Python. > > I started programming wxPython on my Windows computer, > > but now I have access to my ubuntu box, and want wxPython for 2.6 > > All the debs in the package manager are for 2.5, not 2.6

Re: python in Emacs (windows)

2009-04-22 Thread David Robinow
On Wed, Apr 22, 2009 at 3:52 AM, Mark Zweers wrote: > Hi! > > I'm trying to run python from within Emacs. This is in my .emacs file : > > (setq auto-mode-alist ; trigger python mode automatically >    (cons '("\\.py$" . python-mode) auto-mode-alist)) > (setq interpreter-mode-alist >    (co

Re: ANN: PyGUI 2.0.4

2009-04-22 Thread David Robinow
On Wed, Apr 22, 2009 at 8:50 PM, rzed wrote: > Greg Ewing wrote in > news:49edb69f.7070...@canterbury.ac.nz: > >> PyGUI 2.0.4 is available: >> >>    http://www.cosc.canterbury.ac.nz/greg.ewing/python_gui/ >> >> Fixes a few more bugs and hopefully improves things >> on Windows, although I can't be

Re: PyModerator, serverFiles.py:13: DeprecationWarning: the sha module is deprecated; use the hashlib module instead import sha

2009-04-22 Thread David Robinow
On Wed, Apr 22, 2009 at 9:16 PM, Jim Carlock wrote: > I downloaded Python 2.6.2 today. Anyone here know what that error in > the subject really means and possibly what I should look at? I took > a look at line 13 in the specified file and it states the line that > it has a problem with. > > import

Re: best way to compare contents of 2 lists?

2009-04-23 Thread David Robinow
On Thu, Apr 23, 2009 at 9:31 PM, Esmail wrote: > What is the best way to compare the *contents* of two different > lists regardless of their respective order? The lists will have > the same number of items, and be of the same type. > > E.g. a trivial example (my lists will be larger), > > a=[1, 2,

Re: ANN: PyGUI 2.0.5

2009-04-26 Thread David Robinow
On Sun, Apr 26, 2009 at 5:21 AM, Greg Ewing wrote: > PyGUI 2.0.5 is available: > Still no idea what's causing the "object has been destroyed" > error on Windows XP, though. Does this happen for everyone? > Is there anyone who *has* got 12-scroll.py working for them > on XP? Works fine for me. XP

Re: stuck with PyOBEX

2009-04-28 Thread David Robinow
On Tue, Apr 28, 2009 at 12:36 PM, alejandro wrote: > Can you tell me what is it? Maybe I can search it and pass it in another > way... if it is an address or protocol name > >> AF_BLUETOOTH seems to be specific to *nix-systems. At least under debian >> and >> ubuntu, I've got it defined. >> >>

Re: Third Party Modules

2009-04-28 Thread David Robinow
On Tue, Apr 28, 2009 at 1:15 PM, John Nagle wrote: > Brock wrote: >> >> Hi Everyone, >> >> I know this is most likely a basic question and you will roll your >> eyes, but I am just starting out with Python (hobbyist) and I see many >> tutorials on the web referring to the use of external modules.

Re: What do you think of ShowMeDo

2009-04-29 Thread David Robinow
On Wed, Apr 29, 2009 at 9:29 AM, wrote: ... > To reiterate, I responded to this thread because I think Ben's posting > gave an unfair impression of the site and i felt the need to address > some misconceptions. I am sorry you failed to find the videos, but > many tens of thousands are found every

Re: object query assigned variable name?

2009-05-01 Thread David Robinow
On Fri, May 1, 2009 at 12:24 PM, warpcat wrote: > I've passed this around some other groups, and I'm being told > "probably not possible".  But I thought I'd try here as well :)   I > *did* search first, and found several similar threads, but they > quickly tangented into other specifics of the la

Re: yet another list comprehension question

2009-05-04 Thread David Robinow
On Mon, May 4, 2009 at 2:33 AM, namekuseijin wrote: ls = [(1,2), (3,4), (5, None), (6,7), (8, None)] [(x,y) for (x,y) in ls if y] > [(1, 2), (3, 4), (6, 7)] Nope. That filters out 0 as well as None. Not what the OP asked for. -- http://mail.python.org/mailman/listinfo/python-list

Re: Wrapping comments

2009-05-10 Thread David Robinow
On Sun, May 10, 2009 at 3:32 AM, Tobias Weber wrote: > In article , >  Arnaud Delobelle wrote: > >> A simple Alt-Q will reformat everything nicely. > > Now that's something. Thanks! > > (still not gonna use software that doesn't let me type # because it's > alt+3 on a UK layout; having to re-lear

Re: Fwd: Re: Unable to install Pywin32 for Python 2.6.2

2009-05-12 Thread David Robinow
> Thanks for the help.  I just got it to install for Python 2.6.  All I did > was change PYTHONPATH (as suggested by Mark) from > C:\Python25\Lib\site-packages to C:\Python26\Lib\site-packages Why do you have PYTHONPATH set at all? -- http://mail.python.org/mailman/listinfo/python-list

Re: Convert UNIX formated text files to DOS formated?

2009-05-13 Thread David Robinow
On Tue, May 12, 2009 at 11:47 PM, walterbyrd wrote: > On May 12, 6:15 pm, norseman wrote: > >> Subject line says UNIX to DOS >> >> I hope that means you are using a UNIX machine. >> > > I should have mentioned, I am working in an environment that is very > restrictive about what I can put on my X

Re: Question about locals()

2009-05-22 Thread David Robinow
On Fri, May 22, 2009 at 10:27 AM, Gökhan SEVER wrote: ... > serialc = np.loadtxt(sys.argv[1], skiprows=skiprows).T > for i in range(20): >     locals()['serialc_bin' + str(i+1)] = serialc[i+4] > > I don't know easier way than using locals() to construct variable-like > identities in my program. I

Re: Question about locals()

2009-05-22 Thread David Robinow
On Fri, May 22, 2009 at 11:00 AM, Gökhan SEVER wrote: > Because in this case serialc is an numpy array. Since loadtxt returns a > numpy-array. Furthermore > > locals()['serialc_bin' + str(i+1)]  creates a dictionary key (that's what I > use the term "variable-like") serialc_bin1, serialc_bin2, ...

Re: 4 hundred quadrillonth?

2009-05-24 Thread David Robinow
On Sun, May 24, 2009 at 7:51 PM, Dave Angel wrote: >>        By decreeing that the value of PI is 3? >> > > Only in Ohio. Please, we're smarter than that in Ohio. In fact, while the Indiana legislature was learning about PI, we had guys inventing the airplane. http://en.wikipedia.org/wiki/Indiana

Re: What text editor is everyone using for Python

2009-05-28 Thread David Robinow
On Thu, May 28, 2009 at 7:09 AM, Andreas Roehler wrote: > Rhodri James wrote: >> and I'll get over that.  The feature that caused me to uninstall >> python-mode.el was its bloody-minded determination to regard '_' as a word >> character, something which caused me more typing that it ever saved. >

Re: Feature request: String-inferred names

2009-11-29 Thread David Robinow
On Sun, Nov 29, 2009 at 6:58 AM, inhahe wrote: > Did you say you were using gmail to post?  I think mailing lists tend to > have issues with gmail because it puts html in the message or something like > that.  Btw I recently set up this mailing list to send me a message back > when I successfully

Re: Python PIL and Vista/Windows 7 .. show() not working ...

2009-12-01 Thread David Robinow
On Mon, Nov 30, 2009 at 12:57 PM, Esmail wrote: > Hello all. > > I am using the PIL 1.1.6 and Python 2.6.x under XP without any > problems. However, I can't display any images under Vista > or Windows 7. I could understand Windows 7 as it's relatively > new, but Vista has been around for a bit. >

Re: Delaunay triangulation

2009-12-02 Thread David Robinow
On Tue, Dec 1, 2009 at 8:31 PM, Vincent Davis wrote: > Anyone know of a python implementation of Delaunay triangulation? Matplotlib has one. There's also Delny @pypi It's been several years since I needed this. I can't remember the pros/cons. -- http://mail.python.org/mailman/listinfo/python-l

Re: UnicodeDecodeError? Argh! Nothing works! I'm tired and hurting and...

2009-12-03 Thread David Robinow
On Thu, Dec 3, 2009 at 7:33 PM, Steven D'Aprano wrote: > On Fri, 04 Dec 2009 00:52:35 +0100, Michael Ströder wrote: > >> Aahz wrote: >>> Just to be contrary, I *like* mbox. >> >> Me too. :-) > > > Why? What features or benefits of mbox do you see that make up for it's > disadvantages? I've never

Re: How to tell if you're running on windows?

2009-12-04 Thread David Robinow
On Fri, Dec 4, 2009 at 1:46 PM, Roy Smith wrote: > I'm using 2.5.1.  How can I tell if I'm running on windows?  The > obvious answer, platform.system(), gets complicated.  On the python > that comes with cygwin, it returns 'CYGWIN_NT-5.2-WOW64', but I've got > a native windows build of python wher

Re: (OT) Where Are Cookies Stored?

2009-12-16 Thread David Robinow
On Wed, Dec 16, 2009 at 10:33 AM, Dave Angel wrote: > You can also find the appdata directory by looking at the environment > variable USERPROFILE, switching to that directory, and descending directly > into "application data" by using the tab key. > ... Lots of good advice. I'd just point out tha

Re: [ANN] pylint 0.19 / astng 0.19.2

2009-12-18 Thread David Robinow
On Fri, Dec 18, 2009 at 12:49 PM, Jean-Michel Pichavant wrote: > Jerry Hill wrote: >> >> On Fri, Dec 18, 2009 at 12:24 PM, Jean-Michel Pichavant >  File >>> "/opt/tools/python/python2.3/site-packages/logilab_astng-0.19.2-py2.5.egg/logilab/astng/infutils.py", >>> line 28, in >>>  from logilab.astn

Re: Setting Parameters inside of code

2009-12-18 Thread David Robinow
On Fri, Dec 18, 2009 at 10:46 AM, Jim Valenza wrote: > Hello All - I have a very novice question for any of you out there.  I need > to assign several parameters to a code in python. I have an example of a > code that was in DOS that I would need to set as parameters in my Python > script. > > Set

Re: Sort the values of a dict

2009-12-18 Thread David Robinow
On Fri, Dec 18, 2009 at 5:34 PM, mattia wrote: > Hi all, I have a dictionary that uses dates and a tuples ad key, value > pairs. I need to sort the values of the dict and insert everything in a > tuple. The additional problem is that I need to sort the values looking > at the i-th element of the l

  1   2   >