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, eglowstei...@gmail.com 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

Re: Newcomer Help

2014-02-14 Thread David Robinow
On Thu, Feb 13, 2014 at 11:32 AM, Larry Martell larry.mart...@gmail.com 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

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 tjre...@udel.edu 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

Re: Editor for Python

2014-01-09 Thread David Robinow
On Thu, Jan 9, 2014 at 10:50 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: - Original Message - On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant jeanmic...@sequans.com wrote: I tried to negotiate this with my IT guys, but it looks like it's now mandatory, something

Re: Editor for Python

2014-01-08 Thread David Robinow
On Jan 8, 2014, at 10:53 AM, Jean-Michel Pichavant jeanmic...@sequans.com 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

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: Wrapping around a list in Python.

2013-12-16 Thread David Robinow
On Mon, Dec 16, 2013 at 12:26 AM, shengjie.sheng...@live.com 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

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 shankhabaner...@gmail.com 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

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, ru...@yahoo.com 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

Re: Automation

2013-11-18 Thread David Robinow
On Mon, Nov 18, 2013 at 11:49 AM, Grant Edwards invalid@invalid.invalid 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

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 tjre...@udel.edu 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 out in the interactive interpreter (you probably have IDLE

Re: Error Testing

2013-10-19 Thread David Robinow
On Sat, Oct 19, 2013 at 9:01 AM, Chris Angelico ros...@gmail.com 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

Re: LibreOffice

2013-08-03 Thread David Robinow
On Fri, Aug 2, 2013 at 9:26 PM, Terry Reedy tjre...@udel.edu 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. --

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 m...@davecotter.com wrote: okay, i have simplified it: here is the code ==

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 akshay.k...@gmail.com wrote: Hi I am trying to compile a python module called hunspell from the following [source](https://pypi.python.org/pypi/hunspell).

Re: Include and lib files for Visual Studio?

2013-04-20 Thread David Robinow
On Sat, Apr 20, 2013 at 4:59 PM, xuc...@gmail.com 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

Re: equivalent to C pointer

2013-04-18 Thread David Robinow
On Thu, Apr 18, 2013 at 1:06 PM, abdelkader belahcene abelahc...@gmail.comwrote: 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

Re: equivalent to C pointer

2013-04-18 Thread David Robinow
On Thu, Apr 18, 2013 at 1:50 PM, abdelkader belahcene abelahc...@gmail.comwrote: 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

Re: Interactrive Python under Cygwin in Win7

2013-04-08 Thread David Robinow
On Mon, Apr 8, 2013 at 11:20 AM, Grant Edwards invalid@invalid.invalidwrote: 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

Re: Help installing latest PyQT

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 11:39 AM, D. Xenakis gouzouna...@hotmail.com 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

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Mon, Apr 1, 2013 at 9:02 PM, Joe Hill j...@nospamever.com 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

Re: Python install Win 7 Problem

2013-04-02 Thread David Robinow
On Tue, Apr 2, 2013 at 12:45 PM, Joe Hill j...@nospamever.com wrote: On Tue, 2 Apr 2013 11:44:55 -0400, David Robinow drobi...@gmail.com 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 needed to run Python

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, f...@thefsb.org 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.

Re: Differentiation in Python

2013-03-28 Thread David Robinow
On Thu, Mar 28, 2013 at 8:17 AM, zingbagbam...@gmail.com 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

Re: Windows Deployment Of Python Modules

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 6:23 PM, Adam Tauno Williams awill...@whitemice.org wrote: David Robinow drobi...@gmail.com wrote: On Thu, Mar 21, 2013 at 4:14 PM, Adam Tauno Williams awill...@whitemice.org wrote: Python itself is easy to deploy on Windows; just toss the MSI in your local update

Re: Global NameError Fix?

2013-03-21 Thread David Robinow
On Thu, Mar 21, 2013 at 7:43 PM, maiden129 sengokubasarafe...@gmail.com 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

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 steve+comp.lang.pyt...@pearwood.info 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

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-02 Thread David Robinow
On Sat, Mar 2, 2013 at 7:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 02 Mar 2013 09:53:47 -0500, Devin Jeanpierre wrote: On Sat, Mar 2, 2013 at 1:54 AM, Chris Angelico ros...@gmail.com wrote: Yes, but reply-all sends a copy to the poster as well as the list. What

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 r...@panix.com wrote: In article mailman.2806.1362276667.2939.python-l...@python.org, David Robinow drobi...@gmail.com wrote: On Sat, Mar 2, 2013 at 7:27 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info wrote: On Sat, 02 Mar 2013 09:53:47

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 ros...@gmail.com wrote: On Sun, Mar 3, 2013 at 2:01 PM, David Robinow drobi...@gmail.com wrote: On Sat, Mar 2, 2013 at 9:15 PM, Roy Smith r...@panix.com wrote: There's a number of advantages to news vs. mail. The biggest is that news spools

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 da...@druid.net 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

Re: python on windows

2013-02-16 Thread David Robinow
On Sat, Feb 16, 2013 at 4:40 PM, babatunde akerele babs...@gmail.com 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

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 sgood...@cfl.rr.com 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 :)

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

2013-02-10 Thread David Robinow
On Sun, Feb 10, 2013 at 1:14 PM, Michael Torrie torr...@gmail.com 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

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

2013-02-10 Thread David Robinow
On Sun, Feb 10, 2013 at 5:14 PM, Rex Macey xer0...@hotmail.com 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. --

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 m.arsi.k...@gmail.com 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

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, ic...@tagyourself.com 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

Re: SSH Connection with Python

2012-10-29 Thread David Robinow
On Sun, Oct 28, 2012 at 4:09 PM, Gelonida N gelon...@gmail.com 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

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 wlfr...@ix.netcom.com wrote: On Sat, 20 Oct 2012 14:18:47 + (UTC), Grant Edwards invalid@invalid.invalid declaimed the following in gmane.comp.python.general: True, but nobody prints source code out on paper do they? Seriously -- 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 ian.g.ke...@gmail.com 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 d...@davea.name 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

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 da...@druid.net 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 --

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 walterhu...@lavabit.com 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 p,

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 janpet...@freenet.de 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

Re: Python Interview Questions

2012-07-10 Thread David Robinow
On Tue, Jul 10, 2012 at 1:02 PM, Ethan Furman et...@stoneleaf.us 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

Re: usenet reading

2012-05-26 Thread David Robinow
On Sat, May 26, 2012 at 11:43 AM, Roy Smith r...@panix.com 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

Re: Python Gotcha's?

2012-04-15 Thread David Robinow
On Sun, Apr 15, 2012 at 4:01 PM, Bryan bryanjugglercryptograp...@yahoo.com 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,

Re: f python?

2012-04-08 Thread David Robinow
On Sun, Apr 8, 2012 at 6:55 PM, Dennis Lee Bieber wlfr...@ix.netcom.com 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

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 digi...@gmail.com 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! --

Re: errors building python 2.7.3

2012-03-29 Thread David Robinow
On Thu, Mar 29, 2012 at 6:55 AM, Alexey Luchko l...@ank-sia.com wrote: On 28.03.2012 18:42, David Robinow wrote: On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchkol...@ank-sia.com  wrote: I've tried to build Python 2.7.3rc2 on cygwin and got the following errors: $ CFLAGS=-I/usr/include/ncursesw

Re: errors building python 2.7.3

2012-03-28 Thread David Robinow
On Wed, Mar 28, 2012 at 7:50 AM, Alexey Luchko l...@ank-sia.com 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

Re: Nested Function Question

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

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 benjamin.kap...@case.edu wrote: On Tue, Jan 3, 2012 at 1:49 PM, D'Arcy Cain da...@druid.net 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

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 steve+comp.lang.pyt...@pearwood.info wrote: On Fri, 16 Dec 2011 11:40:11 -0800, Eelco wrote: On 16 dec, 18:38, rusi rustompm...@gmail.com wrote: On Dec 16, 3:25 pm, Eelco hoogendoorn.ee...@gmail.com wrote: Pseudo-backwards compatibility with

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 ben+pyt...@benfinney.id.au wrote: goldtech goldt...@worldpost.com 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

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 ben+pyt...@benfinney.id.au wrote: David Robinow drobi...@gmail.com writes: On Wed, Nov 16, 2011 at 4:09 PM, Ben Finney ben+pyt...@benfinney.id.au wrote: I don't know about MS Windows, but the Python interactive shell can be linked with the GNU

Re: guppy

2011-11-09 Thread David Robinow
On Wed, Nov 9, 2011 at 2:38 PM, Juan Declet-Barreto juan.declet-barr...@mesaaz.gov 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

Re: leftover pyc files

2011-11-03 Thread David Robinow
On Thu, Nov 3, 2011 at 1:54 PM, Andrea Crotti andrea.crott...@gmail.com 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... --

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 zaffin...@gmail.com: 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'] for down in

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 jabba.l...@gmail.com 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

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 alec.tayl...@gmail.com 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

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 jenn.du...@gmail.com 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 ppv.g...@gmail.com 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

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 kabie2...@gmail.com 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 aly.taw...@gmail.com wrote: On Jun 20, 12:44 pm, sewpafly sewpa...@gmail.com wrote: I was able to a little further by changing 2 lines in Makefile.pre.in. On line 170, changed:     DLLLIBRARY= @DLLLIBRARY@ to:     DLLLIBRARY=

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 kracethekingma...@gmail.com 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

Re: Trying to understand html.parser.HTMLParser

2011-05-15 Thread David Robinow
On Sun, May 15, 2011 at 4:45 PM, Andrew Berg bahamutzero8...@gmail.com 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

Re: checking if a list is empty

2011-05-14 Thread David Robinow
On Fri, May 13, 2011 at 10:34 PM, Gregory Ewing greg.ew...@canterbury.ac.nz 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

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 dick.brid...@wdc.com 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

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

2011-02-08 Thread David Robinow
On Tue, Feb 8, 2011 at 5:03 PM, Rhodri James rho...@wildebst.demon.co.uk wrote: On Tue, 08 Feb 2011 12:18:50 -, przemol...@poczta.fm 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

Re: trouble installing MySQLdb (cygwin) + Bonus question

2011-01-25 Thread David Robinow
On Tue, Jan 25, 2011 at 5:59 PM, Matthew Roth mgrot...@gmail.com wrote: On Jan 25, 9:34 pm, John Nagle na...@animats.com 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.                              

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 no.em...@please.post wrote: Watch this: class neodict(dict): pass ... d = neodict() type(d) class '__main__.neodict' type(d.copy()) type 'dict' Bug?  Feature?  Genius beyond the grasp of schlubs like me? copy, here, is a dict method. It will create

Re: If/then style question

2010-12-17 Thread David Robinow
On Thu, Dec 16, 2010 at 6:51 PM, Steven D'Aprano steve+comp.lang.pyt...@pearwood.info 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

Re: Python 2.7

2010-11-08 Thread David Robinow
On Mon, Nov 8, 2010 at 6:22 AM, Antonio de Haro Millan antoniodeharomil...@gmail.com 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 --

Re: PyRTF object model

2010-09-30 Thread David Robinow
On Thu, Sep 30, 2010 at 8:14 AM, Rustom Mody rustompm...@gmail.com 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

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 dsrte...@gmail.com 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

Re: Accessing windoze file attributes

2010-09-15 Thread David Robinow
On Wed, Sep 15, 2010 at 4:51 AM, Douglas mumm...@gmail.com 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

Re: business date and calendar libraries?

2010-09-13 Thread David Robinow
On Mon, Sep 13, 2010 at 1:06 PM, Chris Withers ch...@simplistix.co.uk 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

Re: bool constructor is inconsistent?

2010-09-10 Thread David Robinow
On Fri, Sep 10, 2010 at 2:35 PM, Stefan Schwarzer sschwar...@sschwarzer.net 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

Re: Windows vs. file.read

2010-09-01 Thread David Robinow
On Wed, Sep 1, 2010 at 1:03 PM, Mike henne...@web.cs.ndsu.nodak.edu 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:

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 breamore...@yahoo.co.uk 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

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 l...@geek-central.gen.new_zealand wrote: In message mailman.1445.1280767895.1673.python-l...@python.org, David Robinow wrote:  As an admittedly stupid comparison, I have 1579 DLLs in my \windows\system32 directory. Some number of these have

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 benjamin.kap...@case.edu 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

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 jgay...@ncsa.uiuc.edu 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

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 eldie...@tropicsoft.invalid 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

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

2010-07-16 Thread David Robinow
On Fri, Jul 16, 2010 at 9:29 AM, ernest nfdi...@gmail.com wrote: On 15 Jul, 18:45, kj no.em...@please.post 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.

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 martin.hell...@dcuktec.org 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

Re: Python 2.7 released

2010-07-05 Thread David Robinow
On Mon, Jul 5, 2010 at 8:15 PM, Steven D'Aprano st...@remove-this-cybersource.com.au 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

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 l...@geek-central.gen.new_zealand 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

Re: a +b ?

2010-06-17 Thread David Robinow
On Wed, Jun 16, 2010 at 11:34 PM, Aahz a...@pythoncraft.com wrote: In article mailman.1662.1276743037.32709.python-l...@python.org, James Mills  prolo...@shortcircuit.net.au wrote: ... What in particular do you _not_ enjoy about using map/reduce (and possibly other functional features of the

Re: Community (A Modest Proposal)

2010-06-13 Thread David Robinow
On Sun, Jun 13, 2010 at 1:57 PM, Steven D'Aprano st...@remove-this-cybersource.com.au 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.

Re: virtualenvwrapper for Windows (Powershell)

2010-05-11 Thread David Robinow
On Tue, May 11, 2010 at 1:43 AM, Lawrence D'Oliveiro l...@geek-central.gen.new_zealand 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

Re: condition and True or False

2010-05-02 Thread David Robinow
On Sun, May 2, 2010 at 1:14 PM, Paul McGuire pt...@austin.rr.com 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 = boolean expression and True or False What is and True or False adding

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 pmau...@gmail.com wrote: On Apr 1, 4:42 pm, Tim Chase python.l...@tim.thechases.com 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

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 st...@remove-this-cybersource.com.au 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 school. (Maybe I should upgrade to 3.1?) That's

Re: use of multiple versions of python

2010-03-11 Thread David Robinow
On Thu, Mar 11, 2010 at 12:40 AM, Bujji sivait...@gmail.com 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

Re: Docstrings considered too complicated

2010-03-03 Thread David Robinow
On Wed, Mar 3, 2010 at 10:30 AM, Grant Edwards inva...@invalid.invalid wrote: On 2010-03-03, Grant Edwards inva...@invalid.invalid wrote: I definitely remember that old MS-DOS programs would treat Ctrl-Z as an EOF marker when it was read from a text file and would terminate a text file with a

  1   2   >