Re: Too many python installations. Should i remove them all and install the latest?

2013-05-31 Thread David
On 01/06/2013, Νικόλαος Κούρας wrote: > > Why so many pythons in my system. Explained below, underneath each pertinent info you provided. First, let's discuss Python 2.6: On 01/06/2013, Νικόλαος Κούρας wrote: > I'am using CentOS v6.4 on my VPS and hence 'yum' install manager and i just > tried

Re: Too many python installations. Should i remove them all and install the latest?

2013-05-31 Thread David
On 01/06/2013, Chris Angelico wrote: > On Sat, Jun 1, 2013 at 8:50 AM, David wrote: >> >> Apart from the bizarre trailing '*' characters which for which I have >> no sane explanation... > > I believe that indicates that his 'ls' is aliased to &#

Re: Changing filenames from Greeklish => Greek (subprocess complain)

2013-06-02 Thread David
On 02/06/2013, Mark Lawrence wrote: > On 02/06/2013 08:01, Giorgos Tzampanakis wrote: >> >> You are not offering enough information, because you have not posted the >> contents of your files.py script. Thus it's difficult to help you. Please >> post your code to pastebin or somewhere similar becau

Re: Question:Programming a game grid ...

2012-06-27 Thread David
First, you should be getting an error on vars()[var] = Button(f3, text = "00", bg = "white") as vars() has not been declared and it does not appear to be valid Python syntax. I don't see a reason to store a reference to the button since you won't be modifying them. Also, you can not mix pack()

Re: My first ever Python program, comments welcome

2012-07-22 Thread David
On 22/07/2012, Lipska the Kat wrote: > On 21/07/12 21:10, Dave Angel wrote: >> >> A totally off-the-wall query. Are you using a source control system, >> such as git ? It can make you much braver about refactoring a working >> program. > > Thanks for your comments, I've taken them on board, > I'

Re: python package confusion

2012-07-23 Thread David
On 23/07/2012, Lipska the Kat wrote: > Hello again pythoners [snip] > Any help much appreciated. Hi Lipska Glad you got it sorted. In case you are not aware of this: Tutor maillist - tu...@python.org http://mail.python.org/mailman/listinfo/tutor The tutor list caters specifically for

Re: Is Python a commercial proposition ?

2012-07-31 Thread David
On 30/07/2012, lipska the kat wrote: > On 30/07/12 14:06, Roy Smith wrote: >> >> These days, I'm working on a fairly large web application (songza.com). > > "We are very sorry to say that due to licensing constraints we cannot > allow access to Songza for listeners located outside of the United St

Re: Is Python a commercial proposition ?

2012-07-31 Thread David
On 01/08/2012, lipska the kat wrote: > On 31/07/12 14:52, David wrote: >> >> [1] as in beer >> [2] for research purposes > > There's one (as in 1 above) in the pump for you. Great, more beer => better research => \o/\o/\o/ But, "pump" sounds a

Re: Is Python a commercial proposition ?

2012-08-01 Thread David
On 01/08/2012, lipska the kat wrote: > On 01/08/12 09:06, Mark Lawrence wrote: >> >> You complete ignoramus, if it gets poured in advance that's no good to >> anybody as it'll go flat. Has to stay in the pump until you're ready to >> drink it from the glass. Don't you know anything about the impor

Re: Is Python a commercial proposition ?

2012-08-01 Thread David
at the other server returned was: 554 554 delivery error: dd This user doesn't have a yahoo.co.uk account (lip...@yahoo.co.uk) [-5] - mta1050.mail.ukl.yahoo.com (state 17). Date: Wed, 1 Aug 2012 09:31:43 +1000 Subject: Re: Is Python a commercial proposition ? From: David To: lipska the kat

Re: python CAD libraries?

2012-09-10 Thread david
so 2.6 my be best to start with, and it uses python 3.x. -- Best Regards, David Hutto CEO: http://www.hitwebdevelopment.com -- http://mail.python.org/mailman/listinfo/python-list

Re: python CAD libraries?

2012-09-10 Thread david
omepage in my sig, you can see a roughdraft of somethings I was working on for it. I'd say go with an earlier version(more tuts/examples), but they put them out pretty quick, so 2.6 my be best to start with, and it uses python 3.x. -- Best Regards, David Hutt

Add if...else... switch to doctest?

2012-10-18 Thread David
Hello, how to add if...else... switch to doctest? E.g. function outputs different value when global_var change. """ if (global_var == True): >>> function() [1,2] else: >>> function() [1,2,3] """ Thank you very much. -- http://mail.python.org/mailman/listinfo/python-list

Recursive Generator Error?

2012-10-21 Thread David
I have a tree-like data structure, the basic elements are hash tables, and they are grouped into lists, like [[{'a':1},[{'b':2}]]]. And I want to flat the lists and visit hash table one by one, like {'a':1}, {'b':2}. But my program didn't work as I wish. When it entered the 2nd flat_yield, it thre

Re: Recursive Generator Error?

2012-10-21 Thread David
On Monday, October 22, 2012 7:59:53 AM UTC+8, Terry Reedy wrote: > On 10/21/2012 7:29 PM, David wrote: > > > I have a tree-like data structure, the basic elements are hash tables, > > > and they are grouped into lists, like [[{'a':1},[{'b':2}]]]. >

Re: namespace question

2012-02-24 Thread David
Your code updated to show the difference between a variable, a class variable, and an instance variable. c = [1, 2, 3, 4, 5] class TEST(): c = [5, 2, 3, 4, 5] ## class variable (TEST.c) def __init__(self): self.c = [1, 2, 3, 4, 5] ## instance variable (a.c) def add(self, c

Re: Use a locally built Tk for Python?

2012-06-03 Thread David
Python uses the Tkinter wrapper around TCL/TK and it remains the same no matter how may versions of TCL/TK are installed. You will have to build Tkinter against whatever version you like and make sure that it gets installed in the /usr/lib64/python directory that you want. -- http://mail.pytho

Re: Paramiko Threading Error

2011-06-09 Thread David
Il Tue, 7 Jun 2011 19:25:43 -0700 (PDT), mud ha scritto: > Hi All, > > Does anybody know what the following error means with paramiko, and > how to fix it. > > I don't know what is causing it and why. I have updated paramiko to > version 1.7.7.1 (George) but still has the same issue. > > Also I

Python bug? Indexing to matrices

2011-07-11 Thread David
matrix with numpy instead: c = np.zeros((row,col)) So, I know my matrix multiply algorithm is correct (I know I could use numpy for matrix multiplication, this was just to learn Python). I've attached my source code below. TIA, David - #!python # dot.py - Matrix multiply in

Re: Python bug? Indexing to matrices

2011-07-12 Thread David
Thank all for the very helpful replies. The goal of the matrix multiply exercise was just to help my son and I learn Python better. I now understand *why* my initialization of [c] was wrong and I am continuing to check out numpy and scipy. Regards, David -- http://mail.python.org/mailman

Re: Spam

2011-08-02 Thread David
If you click the "more options" link, there is an option in the sub- menu to report a post as spam. You can also forward it along with the offending e-mail address to s...@uce.gov -- http://mail.python.org/mailman/listinfo/python-list

Re: Tkinter - cannot import tklib

2022-06-21 Thread David
On Tue, 21 Jun 2022 at 09:22, Wolfgang Grafen wrote: > I am an experienced Python user and struggle with following statement: > > >>> from tklib import * > Traceback (most recent call last): > File "", line 1, in > ModuleNotFoundError: No module named 'tklib' [...] > I did not find a python mo

Re: Mutating an HTML file with BeautifulSoup

2022-08-19 Thread David
On Sat, 20 Aug 2022 at 04:31, Chris Angelico wrote: > What's the best way to precisely reconstruct an HTML file after > parsing it with BeautifulSoup? > Note two distinct changes: firstly, whitespace has been removed, and > secondly, attributes are reordered (I think alphabetically). There are >

Re: What is the reason from different output generate using logical 'and' and 'or' operator in Python 3.10.8

2022-11-07 Thread David
On Tue, 8 Nov 2022 at 03:08, ICT Ezy wrote: > Please explain how to generate different output in following logical > operations > >>> 0 and True > 0 > >>> 0 or True > True > >>> 1 and True > True > >>> 1 or True > 1 Hi, The exact explanation of how 'and' and 'or' behave can be read here: ht

Re: Fast lookup of bulky "table"

2023-01-15 Thread David
On Mon, 16 Jan 2023 at 16:15, Dino wrote: > BTW, can you tell me what is going on here? what's := ? > > while (increase := add_some(conn,adding)) == 0: See here: https://docs.python.org/3/reference/expressions.html#assignment-expressions https://realpython.com/python-walrus-operator/ --

Re: bool and int

2023-01-24 Thread David
On Wed, 25 Jan 2023 at 12:19, Mike Baskin via Python-list wrote: > Will all of you please stop sending me emails Hi. We don't have the power to do that. Because this is a public list, which works by people adding and removing themselves. You, or perhaps someone messing with you, added your email

Re: How to make argparse accept "-4^2+5.3*abs(-2-1)/2" string argument?

2023-01-25 Thread David
On Thu, 26 Jan 2023 at 04:24, Jach Feng wrote: > Chris Angelico 在 2023年1月25日 星期三下午1:16:25 [UTC+8] 的信中寫道: > > On Wed, 25 Jan 2023 at 14:42, Jach Feng wrote: > > You're still not really using argparse as an argument parser. Why not > > just do your own -h checking? Stop trying to use argparse for

Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
ptured = capsys.readouterr() assert captured.err == """a message\n""" #- Here is the pytest output: $ pytest-3 test session starts = platform linux -- Python 3.7.3, pytest-3.10.1, py-1.7.0, pluggy-0.8.0 rootdir

Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
On Mon, 5 Apr 2021 at 13:44, Cameron Simpson wrote: > On 05Apr2021 13:28, David wrote: > >Can anyone explain why the module_2.py test fails? > >Is it because stderr during module import is not the same as during test? > >Is it something to do with mutable defaults? >

Re: Using pytest, sometimes does not capture stderr

2021-04-04 Thread David
On Mon, 5 Apr 2021 at 14:26, Cameron Simpson wrote: > On 05Apr2021 13:56, David wrote: > >Thanks for confirming my suspicions so quickly. What you wrote > >makes sense, but there are two points that still puzzle me. > >1) The final line of the pytest failure outpu

Re: Cleaning up conditionals

2016-12-30 Thread David
On 31 December 2016 at 10:00, Deborah Swanson wrote: > > Oops, indentation was messed up when I copied it into the email. The indentation of your latest message looks completely broken now, you can see it here: https://mail.python.org/pipermail/python-list/2016-December/717758.html -- https://m

Re: Clickable hyperlinks

2017-01-03 Thread David
On 4 January 2017 at 11:50, Deborah Swanson wrote: > Erik wrote, on January 03, 2017 3:30 PM >> >> When you start a new topic on the list, could you please write a new >> message rather than replying to an existing message and changing the >> title/subject? >> > Certainly. I've been on many other

Re: Clickable hyperlinks

2017-01-06 Thread David
On 4 January 2017 at 11:50, Deborah Swanson wrote: > Erik wrote, on January 03, 2017 3:30 PM >> >> When you start a new topic on the list, could you please write a new >> message rather than replying to an existing message and changing the >> title/subject? >> > Certainly. I've been on many other

asyncio and subprocesses

2016-04-24 Thread David
s is the sequence in unix_events.py _UnixReadPipeTransport._read_ready. Is there a workaround to avoid this exception? Is this a fixed bug, already? I am using Python 3.4.2 as distributed in Ubuntu Lucid, with built-in asyncio. Thank you. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Logging - have logger use caller's function name and line number

2018-12-29 Thread David
On Sun, 30 Dec 2018 at 05:58, Malcolm Greene wrote: > > I have a class method that adds additional context to many of the > class's log messages. Rather than calling, for example, logger.info( > 'message ...' ) I would like to call my_object.log( 'message ...' ) so > that this additional context

Re: About the #python irc channel on freenode.

2019-08-12 Thread David
On Tue, 13 Aug 2019 at 10:00, Hongyi Zhao wrote: > > But I always be put into the #python-unregistered channel as follows: > > -- > Now talking on #python-unregistered > * Topic for #python-unregistered is: Welcome to #python-unregistered! > You've been put here because #python requires yo

Re: local variable 'p' referenced before assignment

2019-09-08 Thread David
On Sun, 8 Sep 2019 at 19:55, Pankaj Jangid wrote: > > Why this code is giving local variable access error when I am accessing > a global variable? > p = 0 > def visit(): >m = 1 >if m > p: >p = m https://docs.python.org/3/faq/programming.html#what-are-the-rules-for-local-and-globa

Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-08 Thread David
On Sun, 8 Sep 2019 at 20:25, wrote: > > If I have two widgets created this way: > t0 = tkinter.Text() > t1 = tkinter.Text() > How many Tk objects will there be? $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" f

Re: Is it 'fine' to instantiate a widget without parent parameter?

2019-09-08 Thread David
On Sun, 8 Sep 2019 at 21:05, wrote: > David於 2019年9月8日星期日 UTC+8下午6時44分55秒寫道: > > On Sun, 8 Sep 2019 at 20:25, wrote: > > > If I have two widgets created this way: > > > t0 = tkinter.Text() > > > t1 = tkinter.Text() > > > How many Tk objects will the

Re: regular expressions help

2019-09-19 Thread David
On Thu, 19 Sep 2019 at 17:51, Pradeep Patra wrote: > > pattern=re.compile(r'^my\-dog$') > matches = re.search(mystr) > > In the above example both cases(match/not match) the matches returns "None" Hi, do you know what the '^' character does in your pattern? -- https://mail.python.org/mailman/lis

Re: regular expressions help

2019-09-19 Thread David
On Thu, 19 Sep 2019 at 18:41, Pradeep Patra wrote: > On Thursday, September 19, 2019, Pradeep Patra > wrote: >> On Thursday, September 19, 2019, David wrote: >>> On Thu, 19 Sep 2019 at 17:51, Pradeep Patra >>> wrote: >>> > pattern=re.compile(r&#

Re: regular expressions help

2019-09-19 Thread David
On Thu, 19 Sep 2019 at 19:34, Pradeep Patra wrote: > Thanks David for your quick help. Appreciate it. When I tried on python 2.7.3 > the same thing you did below I got the error after matches.group(0) as > follows: > > AttributeError: NoneType object has no attribute 'gr

Re: Recursive method in class

2019-10-02 Thread David
On Wed, 2 Oct 2019 at 15:15, ast wrote: > Le 01/10/2019 à 20:56, Timur Tabi a écrit : > > Could you please fix your email software so that it shows a legitimate > > email address in the From: line? > I choose: ast.donotans...@gmail.com Hi ast, Please look here to see how your email looks on gm

Re: a &= b

2019-10-04 Thread David
On Fri, 4 Oct 2019 at 19:02, Hongyi Zhao wrote: > > Could you please give me some more hints on: > > a &= b $ python3 Python 3.5.3 (default, Sep 27 2018, 17:25:39) [GCC 6.3.0 20170516] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> a = 15 >>> b = 3 >>> c =

Re: Using Makefiles in Python projects

2019-11-07 Thread David
On Fri, 8 Nov 2019 at 09:43, Cameron Simpson wrote: [...] > _help: > @echo '_build: make $(py_static_bundle)' > @echo '_deploy_tip: formally deploy the current tip to the dev > host dev tree:' > @echo '_sync_dev: rsync the current working files into the d

Re: insert data in python script

2020-02-18 Thread David
On Tue, 18 Feb 2020 at 20:45, alberto wrote: > Il giorno martedì 18 febbraio 2020 09:34:51 UTC+1, DL Neil ha scritto: > > > my code preos in one file preos.py > > > my commands are > > > > > > alberto@HENDRIX ~/PREOS $ python3.5 > > > Python 3.5.2 (default, Oct 8 2019, 13:06:37) > > > [GCC 5.4.0

>> Unlimited Free Music Downloads ! <

2005-10-10 Thread david
Download Unlimited Free Music Click Here! -- http://mail.python.org/mailman/listinfo/python-list

Problem with py2exe

2005-10-21 Thread David
returned exit code: can’t copy c:\Python24\Lib\sit I am running on Windows XP with distribution 2.4.2 and executing the setup.py from Pythonwin Build 204 I downloaded py2exe from sourceforge the version of py2exe for Python 2.4 Can anyone suggest what may be wrong? Thanks in advance David

Re: Problem with py2exe

2005-10-21 Thread David
David wrote: > I am unable to use py2exe to create an executable, even on the simple > sample that comes with the package. There seems to be a problem when it > is copying files. The ‘build’ and ‘dist’ directories are created and > populated, but there is no executable created

help with sending data out the parallel port

2005-10-26 Thread David
Reference" that installed with my version, [ Python 2.4.1. ] yielded nothing on the subject of either timing or parallel port. Id be thankful for any help. David KG2LI -- http://mail.python.org/mailman/listinfo/python-list

I am looking for some python script to compare two files

2005-11-08 Thread david
hi: The file can be PDF or Word format. Any help? thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: Thanks for your reply! I want to compare PDF-PDF files and WORD-WORD files. It seems that the right way is : First, extract text from PDF file or Word file. Then, use Difflib to compare these text files. Would you please give me some more information about the external diff tools? Th

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-09 Thread david
Hello Tim: One more thing: There some Python scripts that can extract text from PDF or WORD file? Thx -- http://mail.python.org/mailman/listinfo/python-list

Re: Looking Python script to compare two files

2005-11-10 Thread david
Thanks for the quick replies! So if I want to use these tools: antiword,pdf2text, can I pack these tools and python script into a windows EXE file? I know there is open source tool which can pack python script and libs and generate the windows EXE file. Yes, this approach can't handle the picture

Re: Looking Python script to compare two files

2005-11-11 Thread david
Thanks Tim! I will have a try,maybe this weekend and let you know the result. -- http://mail.python.org/mailman/listinfo/python-list

TypeError error on tkinter.createfilehandler dummy example

2005-01-21 Thread David
imagine a simpler code for testing tkinter.createfilehandler functionality but it does not work :( TIA -- David Santiago -- http://mail.python.org/mailman/listinfo/python-list

Cgi scripts in apache not working

2005-07-28 Thread David
I've looked all over the place for an answer, and the only one I can find doesn't mean anything to me. The end of line issue with writting it in Windows and then uploading it doesn't help me since I'm doing this all from Linux. I've been trying to get python cgi scripts to work, and I always end up

Re: Python classes for reading/writing/parsing MIDI files

2013-11-19 Thread David
On 20 November 2013 12:57, Steven D'Aprano wrote: > On Wed, 20 Nov 2013 10:32:08 +1000, alex23 wrote: >> >> They appear to be resurrecting a 12 year old thread. > > Wow, that's one slow News server. http://en.wikipedia.org/wiki/Slow_Movement :) -- https://mail.python.org/mailman/listinfo/python

Re: Python 2.x and 3.x usage survey

2014-01-01 Thread David
On 1 January 2014 23:38, Steve Hayes wrote: > > I was thinking or of this: > python g:\work\module1.py > File "", line 1 > python g:\work\module1.py >^ > > Which gave a different error the previous time I did it. > > But, hey, it worked from the DOS prompt > > C:\Python32>py

setup.py install and compile errors

2014-01-14 Thread David
How does a setup script conditionally change what modules are installed based on version? Background: I have a python2.x/3.x module that puts 3.3-only code in submodules. When the module imports those submodules using an older python version, the compiler raises SyntaxErrors in the submod

Re: Help with some python homework...

2014-01-31 Thread David
On 1 February 2014 12:34, Chris Angelico wrote: > On Sat, Feb 1, 2014 at 12:14 PM, Scott W Dunning wrote: > >> Also, I think I found out through a little trial and error that I had two >> different hours, mins, and sec so I had to use one uppercase and one lower >> case. Is that frowned upon?

Re: Help with some python homework...

2014-02-01 Thread David
On 1 February 2014 14:17, David wrote: > > Scott's message quoted above did not reach me, only Chris's quote of > it, so I say: Scott once you begin a discussion on a mailing list like > this one, please make sure that every reply you make goes to > "python-l

Re: Trailing zeros of 100!

2016-01-02 Thread David
On 2 January 2016 at 22:49, wrote: > Hi, newbie here! Hi Yehuda > I'm trying to write a python program to find how many trailing zeros are in > 100! (factorial of 100). > I used factorial from the math module, but my efforts to continue failed. > Please help. There is a special mailing list

Re: Geezer learns python

2014-03-04 Thread David
On 5 March 2014 10:03, notbob wrote: > > I'm trying to learn python. I'm doing it via Zed Shaw's Learn Python > the Hard Way. Sure enough, 16 lessons in and I've run aground. Is it > OK for a painfully stupid ol' fart to ask painfully stupid noob > questions, here? I'm a long time usenet fan a

Re: Unicode Chars in Windows Path

2014-04-03 Thread David
On 4 April 2014 01:17, Chris Angelico wrote: > > -- Get info on all .pyc files in a directory and all its subdirectories -- > C:\>dir some_directory\*.pyc /s > $ ls -l `find some_directory -name \*.pyc` > > Except that the ls version there can't handle names with spaces in > them, so you need to f

Re: Unicode Chars in Windows Path

2014-04-03 Thread David
On 4 April 2014 12:16, Chris Angelico wrote: > On Fri, Apr 4, 2014 at 11:15 AM, David wrote: >> On 4 April 2014 01:17, Chris Angelico wrote: >>> >>> -- Get info on all .pyc files in a directory and all its subdirectories -- >>> C:\>dir some_directory\*.

Re: [tkinter] trouble running imported modules in main program

2013-08-07 Thread David
On 8 August 2013 14:06, snakeinmyboot wrote: > > for REAL you guys...wtf does this even mean lol. what is a boilerplate test > code? Did you try at all to find the answer to this yourself? I ask because it took me only a few seconds to go to wikipedia and search for "boilerplate" find this for

Re: Using sudo to write to a file as root from a script

2013-08-08 Thread David
On 9 August 2013 14:11, Adam Mercer wrote: > > I'm trying to write a script that writes some content to a file root > through sudo, but it's not working at all. I am using: [...] At a quick glance, I have a couple of suggestions. > command = ['echo', '-n', channel, '|', 'sudo', 'tee', config_

Re: [tkinter] trouble running imported modules in main program

2013-08-08 Thread David
On 9 August 2013 14:28, snakeinmyboot wrote: > On Thursday, August 8, 2013 1:13:48 AM UTC-4, David wrote: >> On 8 August 2013 14:06, snakeinmyboot wrote: >> >> Did you try at all to find the answer to this yourself? >> >> I ask because it took me only a f

Re: Using sudo to write to a file as root from a script

2013-08-09 Thread David
On 9 August 2013 23:21, Adam Mercer wrote: > On Thu, Aug 8, 2013 at 11:47 PM, David wrote: > >> At a quick glance, I have a couple of suggestions. >> >>> command = ['echo', '-n', channel, '|', 'sudo', 'tee', config

Re: Encapsulation unpythonic?

2013-08-17 Thread David
On 17 August 2013 22:26, wrote: > > 1) Is there a good text where I can read about the language philosophy? What > practices are "pythonic" or "unpythonic"? > > 2) If it is in fact true that encapsulation is rarely used, how do I deal > with the fact that other programmers can easily alter the

Re: New VPS Provider needed

2013-08-27 Thread David
On 27 August 2013 17:13, Νικόλαος wrote: > > I know this isn't the place to ask Νικόλαος is 100% correct about this. So, this list is also not the correct place to answer. So please everyone, do not respond. Thanks. -- http://mail.python.org/mailman/listinfo/python-list

Re: Good Python Book

2013-10-10 Thread David
On 9 October 2013 23:55, Schneider wrote: > > I'm looking for a good advanced python book. Most books I looked at up to > now are on beginners level. > I don't need a reference (that's online) or a book explaining how to use the > interpreter or how to use list comprehensions on the one side and s

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-10 Thread David
On 11 October 2013 00:25, Chris Angelico wrote: > On Fri, Oct 11, 2013 at 12:09 AM, Roy Smith wrote: > > I've never been well-up on complex numbers; can you elaborate on this, > please? All I know is that I was taught that the square root of -1 is > called i, and that hypercomplex numbers include

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-10 Thread David
On 11 October 2013 06:29, Oscar Benjamin wrote: > > I learned to use i for sqrt(-1) while studying theoretical physics. > When I later found myself teaching maths to engineers I asked why j > was used and was given this explanation. I'm still unconvinced by it > though. Please don't be. We need d

Re: Complex literals (was Re: I am never going to complain about Python again)

2013-10-11 Thread David
On 11 October 2013 12:27, Steven D'Aprano wrote: > On Fri, 11 Oct 2013 00:25:27 +1100, Chris Angelico wrote: > >> On Fri, Oct 11, 2013 at 12:09 AM, Roy Smith wrote: >>> BTW, one of the earliest things that turned me on to Python was when I >>> discovered that it uses j as the imaginary unit, not

Re: Will Python 3.x ever become the actual standard?

2013-10-23 Thread David
On 23 October 2013 22:57, wrote: > > a LARGE number of Python programmers has not even bothered learning version > 3.x. OMG. Please provide their names. We'll send Doug & Dinsdale. -- https://mail.python.org/mailman/listinfo/python-list

Running Python programmes

2013-10-27 Thread David
t; in the interactive window. I have to exit Python and start again, when the second programme then runs fine. Any suggestions much appreciated. David -- https://mail.python.org/mailman/listinfo/python-list

Re: Question on Manipulating List and on Python

2011-09-29 Thread David
> word1=line_word[0] > if word1==001: You are comparing a string and an integer assuming you are reading a text file. integers word1=int(line_word[0]) if word1=1: strings word1=line_word[0] if word1=="001:" -- http://mail.python.org/mailman/listinfo/python-list

Re: Python IDE

2005-12-16 Thread David
linuxfreak wrote: > Which is a better python IDE SPE or WingIDE in terms of features > You might want to look at a review of Python IDEs at http://spyced.blogspot.com/2005/09/review-of-6-python-ides.html david lees -- http://mail.python.org/mailman/listinfo/python-list

Socket programming design problem

2005-12-22 Thread David
use though, which seems weird. Is there any particular reason for this? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list

Display of JPEG images from Python

2006-01-05 Thread David
convenient way to display results? I guess I could issue shell commands to a graphics display package such as IrfanView, but I thought there might be a cleaner method. david lees -- http://mail.python.org/mailman/listinfo/python-list

Re: Display of JPEG images from Python

2006-01-15 Thread David
Svien and Michel, Thanks for your help. Much appreciated. David Lees -- http://mail.python.org/mailman/listinfo/python-list

About iServicePro

2006-07-14 Thread david
iServicePro is an innovative approach to offering affordable tools for Java and J2EE developers. in particular, we are a professional team for applying oneself to develop and integrate eclipse plug-in for user applications. Our mission now is to deliver business value and to maximize developers' p

Re: matrix Multiplication

2006-10-18 Thread David
Il 18 Oct 2006 04:17:29 -0700, Sssasss ha scritto: > hi evrybody! > > I wan't to multiply two square matrixes, and i don't understand why it > doesn't work. Can I suggest a little bit less cumbersome algorithm? def multmat2(A,B): "A*B" if len(A)!=len(B): return "error" # this check is

Re: python to sharepoint ?

2006-11-05 Thread David
You might want to check out IronPython: http://www.codeplex.com/Wiki/View.aspx?ProjectName=IronPython It's a port of the .NET FW for Python, which probably exposes the API you'll need. -David curtin wrote: > anyone have code that allows me to post files direct to sharepoint

wxPython: StaticText Event

2006-09-07 Thread David
p() frame = MyFrame(None, -1) frame.Show() app.MainLoop() Hovering mouse over the StaticText Control should generate an EVT_ENTER_WINDOW event like the TextCtrl Control, but it does not happen. How can I make the StaticText event working? thank you David -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython: StaticText Event

2006-09-08 Thread David
> Then, > > self.st = wx.lib.stattext.GenStaticText(self.pnl, -1, 'Static Text > Control', pos=(30,20)) Thankyou very much! Best regards, David -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython: StaticText Event

2006-09-08 Thread David
at you use another kind of control instead. > Is a disabled TextCtrl acceptable? > > Hope this helps, Yes, it does! Thankyou! Best regards David -- http://mail.python.org/mailman/listinfo/python-list

wxPython, how to autoresize a frame?

2006-09-10 Thread David
sizer1 and sizer0 don't! Consequently the frame does not want to autoresize. You con dowload the code here: http://www.box.net/public/evfxs7cp5j Someone con help me? Thanks David -- http://mail.python.org/mailman/listinfo/python-list

Re: wxPython, how to autoresize a frame?

2006-09-11 Thread David
Il Sun, 10 Sep 2006 19:15:40 +0200, David ha scritto: > The problem is that, when sizer2 containig hidden controls collapses to > zero dimensions, the panel resizes, but sizer1 and sizer0 don't! > Consequently the frame does not want to autoresize. > > You con dowload t

How can I get the function's caller?

2006-09-12 Thread David
Inside a function I need to get the function's caller's name. How can I get it? thanks in advance. David -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I get the function's caller?

2006-09-14 Thread David
pful to have a dummy function like this: def function_A_subfunction_B(self, ) dummy() that display a standard message like this: "Dummy: 'function_A_subfunction_B' in module 'module' is not defined yet" regards David -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I get the function's caller?

2006-09-14 Thread David
Il 13 Sep 2006 00:31:47 -0700, John Machin ha scritto: > David wrote: >> Inside a function I need to get the function's caller's name. How can I get >> it? >> > > Check out the thread "__LINE__ and __FILE__ functionality in Python?" > (messages

Re: How can I get the function's caller?

2006-09-14 Thread David
Il Thu, 14 Sep 2006 13:37:24 +0200, Fredrik Lundh ha scritto: [...] > in Python. Thanks to all of you! David -- http://mail.python.org/mailman/listinfo/python-list

Reference to base namespace in a class.

2006-12-12 Thread David
n attempt to put that into a simple question: Are there counter indications to reference objects in the base namespace from a class ? Thanks for your help. David Huard -- http://mail.python.org/mailman/listinfo/python-list

Are there memory limits for external C modules?

2006-01-26 Thread david
;m wondering if there's some sort of memory limitation the Python interpreter imposes on the C code it calls that I might be running into, and if so, any ways to increase it? Thanks, David -- http://mail.python.org/mailman/listinfo/python-list

Authenticating to Kerberos

2006-01-29 Thread David
Hi, I've had a quick look but cannot find a module that will let me authenticate against Kerberos. There appears to be a krb5 module that hasn't been updated for a long time and I can't find much on it except the pages at starship.python.net. I don't need to do anything except authenticate and g

  1   2   3   4   5   6   7   8   9   10   >