Re: Defining a Python enum in a C extension - am I doing this right?

2021-08-03 Thread Sean DiZazzo
On Tuesday, August 3, 2021 at 3:04:19 AM UTC-7, Bartosz Golaszewski wrote: > On Sat, Jul 31, 2021 at 3:01 PM Bartosz Golaszewski wrote: > > > > On Fri, Jul 30, 2021 at 2:41 PM Serhiy Storchaka wrote: > > > > > > 23.07.21 11:20, Bartosz Golaszewski пише: > > > > I'm working on a Python C exte

Re: [Errno 2] No such file or directory:

2021-07-30 Thread Sean DiZazzo
On Thursday, July 29, 2021 at 7:42:58 AM UTC-7, joseph pareti wrote: > indeed. There are better options than the one I attempted. Thanks for the > advice > > Am Mi., 28. Juli 2021 um 18:19 Uhr schrieb Chris Angelico >: > > On Thu, Jul 29, 2021 at 2:10 AM joseph pareti > > wrote: > > > > > >

Re: a simple question

2021-07-29 Thread Sean DiZazzo
On Tuesday, July 27, 2021 at 5:05:27 AM UTC-7, Terry Reedy wrote: > On 7/26/2021 6:19 PM, Glenn Wilson via Python-list wrote: > > I recently downloaded the latest version of python, 3.9.6. Everything works > > except, the turtle module. I get an error message every time , I use basic > > command

python 2 urlopen vs python 3 urlopen

2018-08-27 Thread Sean Darcy
gt; from urllib.request import urlopen >>> res = urlopen('https://api.ipify.org').read() >>> print(res) b'ww.xxx.yyy.zzz' I'm expecting the python 2 result, just the ip address. How can I get python 3 just to give the address, and not include b'

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:23:06 AM UTC-8, Sean DiZazzo wrote: > Hi! > > I basically just want to create an alias to an attribute on an item's > superclass. So that after I create the subclass object, I can access the > alias attribute to get the value back. >

Re: Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
On Thursday, February 1, 2018 at 10:37:32 AM UTC-8, Chris Angelico wrote: > On Fri, Feb 2, 2018 at 5:22 AM, Sean DiZazzo wrote: > > Hi! > > > > I basically just want to create an alias to an attribute on an item's > > superclass. So that after I create the s

Create an alias to an attribute on superclass

2018-02-01 Thread Sean DiZazzo
Hi! I basically just want to create an alias to an attribute on an item's superclass. So that after I create the subclass object, I can access the alias attribute to get the value back. class Superclass(object): def __init__(self, value): """ I want to pass x by refere

Re: "tkinter"

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 7:21:25 PM UTC-7, Grant Edwards wrote: > On 2017-09-13, Ben Finney wrote: > > > The toolkit in question is named “tk”, which I have only ever known to > > be pronounced “tee kay”. > > > > The rest of the word is an abbreviation of “interface”. > > > > So, to me

Re: the core values of the Python "platform"

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 6:16:58 AM UTC-7, leam hall wrote: > On Wed, Sep 13, 2017 at 9:08 AM, Darin Gordon wrote: > > > Bryan Cantrill gave an interesting talk recently at a Node conference about > > "platform values" [1]. The talk lead me to think about what the core values > > of th

Re: A good way to unpack a matrix

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 7:53:25 PM UTC-7, Andrew Zyman wrote: > hello, > is there a better approach to populating a function in this situation? > > res = self.DB.getPrice(): # returns array of 3x2 always. symbol_id, > symbol, price. > > var1 = self.AFunction(symbols=res[0][2] + '.'

Re: Python dress

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 3:02:18 PM UTC-7, bream...@gmail.com wrote: > On Wednesday, September 13, 2017 at 10:43:47 PM UTC+1, Sean DiZazzo wrote: > > On Tuesday, September 12, 2017 at 9:18:12 AM UTC-7, larry@gmail.com > > wrote: > > > Not too many

Re: Python dress

2017-09-13 Thread Sean DiZazzo
On Tuesday, September 12, 2017 at 9:18:12 AM UTC-7, larry@gmail.com wrote: > Not too many females here, but anyway: > > https://svahausa.com/collections/shop-by-interest-1/products/python-code-fit-flare-dress > > (And if any guys want to wear this, there's nothing wrong with that.) I'm going

Re: rmtree message

2017-09-13 Thread Sean DiZazzo
On Wednesday, September 13, 2017 at 12:06:20 PM UTC-7, larry@gmail.com wrote: > I have a script that creates a tmp dir, create a lot of files in it, > and when done, does a rmtree on the dir. When it does that I get this > message: > > shell-init: error retrieving current directory: getcwd: c

traceback.format_exc() returns 'None\n'?!

2017-08-31 Thread Sean DiZazzo
c() >>> type(tb) >>> tb 'None\n' >>> Shouldn't it just return None itself? Why a string with a newline? Interested if there is an actual reason for this behavior or if it should be reported as a bug. ~Sean -- https://mail.python.org/mailman/listinfo/python-list

Re: Bug or intended behavior?

2017-06-03 Thread Sean DiZazzo
On Friday, June 2, 2017 at 10:46:03 AM UTC-7, bob gailer wrote: > On 6/2/2017 1:28 PM, Jussi Piitulainen wrote: > > sean.diza...@gmail.com writes: > > > >> Can someone please explain this to me? Thanks in advance! > >> > >> ~Sean > >> > >&g

Bug or intended behavior?

2017-06-02 Thread sean . dizazzo
Can someone please explain this to me? Thanks in advance! ~Sean Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 12:39:47) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "help", "copyright", "credits" or "license" for more information.

Re: Farewell to Rob Collins

2016-11-16 Thread Sean Son
Rest in Peace Rob On Wed, Nov 16, 2016 at 12:48 PM, Ben Finney wrote: > "M.-A. Lemburg" writes: > > > Rob was a true Pythonista from the heart. He will always be remembered > > for his humor, great spirit and kindness. > > Robert and I had many conversations about the Bazaar version control > s

Subprocess Startup Error

2016-08-09 Thread Sean via Python-list
Does anyone have advice on how to resolve this message when I attempt to open IDLE? "IDLE's subprocess didn't make connection. Either IDLE can't start a subprocess or personal firewall software is blocking the connection." I am running Windows 10 Home on a 64bit machine. I am running Pytho

Re: Strange Python related errors for androwarn.py. Please help!

2016-05-27 Thread Sean Son
Hello Thank you for your reply. So the error isnt due to a bug in function itself? It is due to a possible error in the Android APK file? If that is the case, it would take a while to figure this out. I tried contacted the author of the project but I have yet to hear back from him . Thanks On

Re: Strange Python related errors for androwarn.py. Please help!

2016-05-26 Thread Sean Son
: https://github.com/mz/androwarn/blob/master/androwarn.py Hopefully those help in any troubleshooting steps that you all recommend to me! Thank you! On Thu, May 26, 2016 at 1:25 PM, Sean Son wrote: > Hello all > > From what I can tell from the error message that I received, line 257

Re: Strange Python related errors for androwarn.py. Please help!

2016-05-26 Thread Sean Son
no idea how I should fix this error. All help is greatly appreciated! Thanks On Tue, May 24, 2016 at 3:46 PM, Sean Son wrote: > Thanks for the reply. > > Looks like I am screwed on this one lol > > On Tue, May 24, 2016 at 3:31 PM, MRAB wrote: > >> On 2016-

Re: Strange Python related errors for androwarn.py. Please help!

2016-05-24 Thread Sean Son
Thanks for the reply. Looks like I am screwed on this one lol On Tue, May 24, 2016 at 3:31 PM, MRAB wrote: > On 2016-05-24 20:04, Sean Son wrote: > >> hello all >> >> I am testing out a script called androwarn.py, which I downloaded from: >> >> https://git

Strange Python related errors for androwarn.py. Please help!

2016-05-24 Thread Sean Son
hello all I am testing out a script called androwarn.py, which I downloaded from: https://github.com/mz/androwarn using the instructions found on: https://github.com/mz/androwarn/wiki/Installation When I ran the following commands to test the APK for AirBNB: python androwarn.py -i S

Re: python

2016-01-11 Thread Sean Melville
I don't believe it's xp, it's a new laptop > On 11 Jan 2016, at 20:33, Cameron Simpson wrote: > >> On 11Jan2016 19:17, Sean Melville wrote: >> I've downloaded python 3.5.1 but when I try and open it always says that I >> have to either uninsta

python

2016-01-11 Thread Sean Melville
Hello, I've downloaded python 3.5.1 but when I try and open it always says that I have to either uninstall it, repair it or modify it. However, I've tried all of them and it still doesn't work. >From Callum -- https://mail.python.org/mailman/listinfo/python-list

Following Up

2014-12-23 Thread Sean Brady
t the market is right now. I would love to help you out, but if you are not interested, let me know if you have anyone in mind who may be, I would love to help them out as well! Best, Sean Sean Brady | Sales Executive, Recruiter | Highview Partners, LLC | |

Python and wireshark.

2014-07-01 Thread Sean Murphy
of changing things on the fly, rather then creating complex command line parameters. Thoughts? Sean -- https://mail.python.org/mailman/listinfo/python-list

Module depositary

2014-01-13 Thread Sean Murphy
Hi All. I am aware that active state python has a commercial module depositary which you can get modules from. Under PERL you had CPAN. Is there anything like this for Python? Sean -- https://mail.python.org/mailman/listinfo/python-list

Re: nested dictionaries and functions in data structures.

2014-01-09 Thread Sean Murphy
et. >> >> Only outstanding thing I have to work out is how to execute functions >> from a dictionary. I will continue searching on the net. >> >> >> Sean > > This may help you (untested code) > > class Workers: > @staticmethod > def ospf(*args, **k

Re: nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
Thanks for that. It resolved the issue and it was so simple compared to everything else I saw on the net. Only outstanding thing I have to work out is how to execute functions from a dictionary. I will continue searching on the net. Sean On 07/01/2014, at 9:21 PM, Jean-Michel Pichavant

nested dictionaries and functions in data structures.

2014-01-07 Thread Sean Murphy
bove. I just don't get the nested dictionary effect I am after. Again, I am trying to use standard core which some of the examples I have seen appeared to use. I am aware of collection module. #! /usr/bin/env python # Identifying if memory leaks are occurring. # goal is to import out

Re: Dos cursor and input management.

2014-01-05 Thread Sean Murphy
Dennis, Loose terminology. The Command terminal within windows which the app will be executed in. Not native DOS. On 06/01/2014, at 3:48 AM, Denis McMahon wrote: > On Sun, 05 Jan 2014 20:25:11 +1100, Sean Murphy wrote: > >> The module must work under dos for now. Eventually Mac.

Dos cursor and input management.

2014-01-05 Thread Sean Murphy
wait for key press If key press equals delete line. Delete list element. else if key press equals edit display line for interactive edit. else move to next line The module must work under dos for now. Eventually Mac. Sean -- https://mail.python.org/mailman/listinfo/python-list

Re: Strange behaviour with a for loop.

2014-01-04 Thread Sean Murphy
config it. I have hundreds of other questions, if I don't find answers on the net before hand. Sean On 04/01/2014, at 6:52 PM, Cameron Simpson wrote: > On 04Jan2014 16:54, Sean Murphy wrote: >> Thanks everyone. >> >> Mark thanks for the correction on the '

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
Hi everyone. Worked out what I was doing wrong with the string splicing. The offset number was lower then the index number, so it was failing. E.G: On 04/01/2014, at 4:54 PM, Sean Murphy wrote: > Thanks everyone. > > Mark thanks for the correction on the ':'. Since I

Re: Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
ay (list) I would have to test for a blank line which I assume would be "". Any suggestions on this would be welcomed. Sean print a[ On 04/01/2014, at 4:38 PM, Mark Lawrence wrote: > On 04/01/2014 04:03, Sean Murphy wrote: >> Hello all. >> >> This is a newly qu

Strange behaviour with a for loop.

2014-01-03 Thread Sean Murphy
ave got the whole content of the element when using the index of the array (list). Sean filename is: t filename -- https://mail.python.org/mailman/listinfo/python-list

Re: Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
PETER, thanks Peter, I have already found the PDB module and have had a play with it. It will do for now. On 03/01/2014, at 8:08 PM, Paul Rudin wrote: > Sean Murphy writes: > > >> I am a Vision Impaired programmer on the Mac and Window platforms. I have >> started

Debugging on the Mac question.

2014-01-03 Thread Sean Murphy
and had a full debugger that worked at the console level. Sean -- https://mail.python.org/mailman/listinfo/python-list

Re: Timsort in Cpython

2013-06-19 Thread sean . westfall
On Sunday, June 16, 2013 1:33:17 PM UTC-7, Ian wrote: > On Sat, Jun 15, 2013 at 10:05 PM, wrote: > > > Yes I've read it. Very interesting read. There are other resources too > > online that make it very clear, for instance the wikipedia articles is > > pretty good. > > > > > > Though, if any

Re: Timsort in Cpython

2013-06-19 Thread sean . westfall
On Sunday, June 16, 2013 1:16:02 PM UTC-7, Dennis Lee Bieber wrote: > On Sun, 16 Jun 2013 09:15:11 -0700 (PDT), alphons...@gmail.com declaimed > > the following: > > > > >sorry about that. I'm new to google groups. I'm trying to make sense of > >python's implementation of timsort through cpyth

Re: honking great ideas

2013-03-26 Thread Sean Felipe Wolfe
On Tue, Mar 26, 2013 at 7:25 PM, Ned Deily wrote: > One suggestion: take a look at Raymond Hettinger's keynote address from > the recent PyCon. Any of Raymond's talks are worth viewing but this one > in particular is a higher-level sales pitch for Python: "Show the > specific features that make

honking great ideas

2013-03-26 Thread Sean Felipe Wolfe
So I have been re-reading some of the python intro stuffs after a time away philandering with other languages. I have been thinking about the Zen of Python piece where it says 'namespaces are a honking great idea - let's do more of those'. A question -- since then do we have any sort of list of ma

RE: Python - CGI-BIN - Apache Timeout Problem

2012-03-04 Thread Sean Cavanaugh (scavanau)
Original Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Friday, March 02, 2012 3:23 PM To: Sean Cavanaugh (scavanau) Cc: python-list@python.org Subject: Re: Python - CGI-BIN - Apache Timeout Problem On Fri, Mar 2, 2012 at 12:09 PM, Sean Cavanaugh (scav

RE: Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
-- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Friday, March 02, 2012 3:23 PM To: Sean Cavanaugh (scavanau) Cc: python-list@python.org Subject: Re: Python - CGI-BIN - Apache Timeout Problem On Fri, Mar 2, 2012 at 12:09 PM, Sean Cavanaugh (scavanau) wrote: > THE PRO

RE: Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
l Message- From: ch...@rebertia.com [mailto:ch...@rebertia.com] On Behalf Of Chris Rebert Sent: Friday, March 02, 2012 3:23 PM To: Sean Cavanaugh (scavanau) Cc: python-list@python.org Subject: Re: Python - CGI-BIN - Apache Timeout Problem On Fri, Mar 2, 2012 at 12:09 PM, Sean Cavanaugh (scavanau) wrote: &g

Python - CGI-BIN - Apache Timeout Problem

2012-03-02 Thread Sean Cavanaugh (scavanau)
ut-on-fre ebsd-apache22 Thanks in advance for any ideas. I can include the whole main.py if that would help. Sean Cavanaugh Cisco Systems -- http://mail.python.org/mailman/listinfo/python-list

Re: THAT WHAT NEED EXPECT FROM OPERATORS OF PYTHON. (e-mail get by the list moderator)

2012-01-17 Thread Sean Wolfe
On Mon, Jan 16, 2012 at 4:01 AM, Steven D'Aprano wrote: > On Mon, 16 Jan 2012 09:03:54 +0300, _ wrote: > >> # THAT WHAT NEED EXPECT FROM OPERATORS OF PYTHON: Worddr = "56" # CREATE >> A STRING: "56" Word = ["12"] # CREATE A LIST WITH ONE SIGNED: "12" Word >> = Word.append("34") > ... > > > Do you

Re: open office in another language?

2012-01-11 Thread Sean Wolfe
On Wed, Jan 11, 2012 at 6:35 PM, Martin Manns wrote: > or in pyspread (GPL, my own effort) > > http://manns.github.com/pyspread/ > Checking this out now. Do you have text boxes? Cause maybe I will add some ... cool! -- http://mail.python.org/mailman/listinfo/python-list

Re: An "alternative" to Learning Perl

2012-01-11 Thread Sean Wolfe
On Tue, Jan 10, 2012 at 8:25 PM, Sebastian Rooks wrote: > On Mon, 9 Jan 2012 00:55:22 -0300, Sean Wolfe > wrote: > >>kindle? ipad? tablet? > > I'm interested in books, not files ... > (seriously, now ... I don't have any of those devices) > >>also t

Re: open office in another language?

2012-01-10 Thread Sean Wolfe
On Tue, Jan 10, 2012 at 6:53 PM, Nelle Varoquaux wrote: > Small nitpick: Openoffice.org (and LibreOffice) has in fact very little > java. The core of it is written in C++, so if you ever want to extend it > (unlikely), you won't be dealing with java code. > hmm I didn't know this, nice to know. Y

open office in another language?

2012-01-10 Thread Sean Wolfe
I'm a somewhat-satisfied openoffice.org user. I mean it works, but if it weren't in Java I'd be doing some of my own tweaking. But since it's in Java I stay away... no likey. Has there been any talk of doing another similar office suite, or maybe just writer + spreadsheet, in a better language eg

Re: An "alternative" to Learning Perl

2012-01-08 Thread Sean Wolfe
On Sun, Jan 8, 2012 at 8:44 PM, Sebastian Rooks wrote: > Hello everyone, > > I was wondering if you could help me. I'm looking for a python > introductory book, kind of like Learning Python only smaller (?!) > The thing is, I travel to and from work each day for about 1,5h in each > direction, and

Re:

2012-01-08 Thread Sean Wolfe
On Sun, Jan 8, 2012 at 11:38 PM, David George wrote: > > Sean Wolfe wrote: >> >> is anybody out there? >> >> On Sat, Jan 7, 2012 at 5:07 AM, abdullah zuberi >>  wrote: >>> >>> hello ? >>> > > Hello there Sean, How are you d

Re:

2012-01-08 Thread Sean Wolfe
is anybody out there? On Sat, Jan 7, 2012 at 5:07 AM, abdullah zuberi wrote: > hello ? > -- > http://mail.python.org/mailman/listinfo/python-list > -- A musician must make music, an artist must paint, a poet must write, if he is to be ultimately at peace with himself. - Abraham Maslow -- htt

help me get excited about python 3

2012-01-04 Thread Sean Wolfe
I am still living in the 2.x world because all the things I want to do right now in python are in 2 (django, pygame). But I want to be excited about the future of the language. I understand the concept of needing to break backwards compatibility. But it's not particularly exciting to think about. W

Re: python philosophical question - strong vs duck typing

2012-01-04 Thread Sean Wolfe
On Tue, Jan 3, 2012 at 7:28 PM, Ben Finney wrote: > Sean Wolfe writes: > >> Hello everybody, I'm a happy pythonista newly subscribed to the group. > > Welcome! Thanks! and thanks to all, hjaha. > >> I have a theoretical / philosophical question regarding st

python philosophical question - strong vs duck typing

2012-01-03 Thread Sean Wolfe
Hello everybody, I'm a happy pythonista newly subscribed to the group. How is it going? I have a theoretical / philosophical question regarding strong vs duck typing in Python. Let's say we wanted to type strongly in Python and were willing to compromise our code to the extent necessary, eg not cha

useless python - term rewriter

2011-11-18 Thread Sean McIlroy
## term rewriter (python 3.1.1) def gettokens(string): spaced = string.replace('(',' ( ').replace(')',' ) ') return spaced.split() def getterm(tokens): if tokens[0] in '()': term = [] assert tokens[0] == '(' tokens.pop(0) while not tokens[0] == ')': te

Re: change text of a Tkinter Button by clicking it

2011-09-28 Thread Sean McIlroy
never mind. i found it. -- http://mail.python.org/mailman/listinfo/python-list

change text of a Tkinter Button by clicking it

2011-09-28 Thread Sean McIlroy
hello (how) can you change the text of a Tkinter Button by clicking it? something like def click(index): return lambda: buttons[index].text = 'hello' buttons = [Button(root,command=click(index)) for index in range(numbuttons)] only with an attribute that Buttons actually have. sorry to have to a

Re: Python Web App

2010-12-26 Thread Sean
my mom because all she really does is check her email and Facebook so it was perfect for her. Thank You for all the responses they were a great help with me testing the notebook. On Dec 25, 9:02 pm, Katie T wrote: > On Wed, Dec 22, 2010 at 9:43 PM, Sean wrote: > > Anybody know w

Re: Python Web App

2010-12-22 Thread Sean
Forgot to point out that Chrome OS has no local storage accessable to the user. Hence why I need a web based solution. On Dec 22, 8:51 pm, Sean wrote: > I am wanting to learn python and I am test a Chrome OS notebook at the > same time so I need something that will atleast tell me if I ha

Re: Python Web App

2010-12-22 Thread Sean
is on test, what kind of app do you want create? > > 2010/12/22, Sean : > > > Anybody know where I can find a Python Development Environment in the > > form of a web app for use with Chrome OS. I have been looking for a > > few days and all i have been able to fin

Python Web App

2010-12-22 Thread Sean
Anybody know where I can find a Python Development Environment in the form of a web app for use with Chrome OS. I have been looking for a few days and all i have been able to find is some old discussions with python developers talking about they will want one for the OS to be a success with them. -

Help with threading.local use in python-memcache module.

2010-12-17 Thread Sean Reifschneider
ading.local, in case anyone is relying on it now that it's in there. But I'd like to offer a solution for the cases where it doesn't work. Any suggestions on the solution for this? Thanks, Sean -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) Comm

Re: ftplib - Did the whole file get sent?

2010-10-23 Thread Sean DiZazzo
On Oct 22, 10:48 pm, Steven D'Aprano wrote: > On Fri, 22 Oct 2010 22:03:38 -0700, Sean DiZazzo wrote: > > How can I assure him (and the client) that the transfer completed > > successfully like my log shows? > > "It has worked well for many years, there are no

ftplib - Did the whole file get sent?

2010-10-22 Thread Sean DiZazzo
; + destfile, open(f.path, 'rb')) # log this as success except: # log this as an error Is ftplib reliable enough to say that if an exception is not thrown, that the file was transferred in full? Python 2.4.3 (#1, Sep 17 2008, 16:07:08) Red Hat Enterprise Linux Server release 5.3 (Ti

question regarding thread display on python mailing list

2010-10-21 Thread Sean Choi
I notice sometimes when I follow a thread on the mailing list archives, the thread will not be all together. To see what I mean, look at the thread "splitting comp.lang.python" as shown here: http://mail.python.org/pipermail/python-list/2000-March/thread.html#639685. You can see one large chunk of

Re: how do I search python mailing list archives?

2010-10-21 Thread Sean Choi
just sending out a late thank you for the response -- http://mail.python.org/mailman/listinfo/python-list

functions, list, default parameters

2010-10-21 Thread Sean Choi
I found two similar questions in the mailing list, but I didn't understand the explanations. I ran this code on Ubuntu 10.04 with Python 2.6.5. Why do the functions g and behave differently? If calls (3) and g(3) both exit their functions in the same state, why do they not enter in the s

how do I search python mailing list archives?

2010-10-13 Thread Sean Choi
What are the various ways to search the python mailing list archives? -- http://mail.python.org/mailman/listinfo/python-list

Re: Unicode Support in Ruby, Perl, Python, Emacs Lisp

2010-10-09 Thread Sean McAfee
Xah Lee writes: > Perl's exceedingly lousy unicode support hack is well known. In fact > it is the primary reason i “switched” to python for my scripting needs > in 2005. (See: Unicode in Perl and Python) I think your assessment is antiquated. I've been doing Unicode programming with Perl for ab

Re: Help with suds: HTTP Error 401

2010-06-19 Thread Sean DiZazzo
.HTTPBasicAuthHandler(t.pm) t.urlopener = urllib2.build_opener(t.handler) c = client.Client(url='http://xxx.xxx.xxx.xxx/path/to? WSDL',transport=t) ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: getting up arrow in terminal to scroll thought history of python commands

2010-06-13 Thread Sean DiZazzo
On Jun 13, 4:39 pm, Vincent Davis wrote: > On Sun, Jun 13, 2010 at 5:28 PM, Gerry Reno wrote: > > sounds like your keymapping got messed with. > > > you could just: > > set -o vi > > python > > ESC, Ctrl-j > > and now ESC-k and ESC-j will take you back and forth in history (std vi > > editing) >

including pygments code_block directive in rst2* from docutils

2010-06-10 Thread Sean Davis
file to bother html and pdf (via latex). Any suggestions? Thanks, Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Drilling down in a dict with "complex" objects

2010-05-24 Thread Sean DiZazzo
On May 24, 9:34 pm, Six wrote: > I am trying to access an objects sub-object attributes. I can boil the > code I am working with down to this problem section: > (snip) > class Pt: >   x = None >   y = None >   def __init__(self, x, y): >     self.x, self.y = x, y >   pass > > class Pts: >   curr_p

Re: recursively remove all the directories and files which begin with '.'

2010-05-16 Thread Sean DiZazzo
an-up-a-directory-tree/ "Although it is true you can use shutil.rmtree() in many cases, there are some cases where it does not work. For example, files that are marked read-only under Windows cannot be deleted by shutil.rmtree(). By importing the win32api and win32con modules from PyWin32

Re: client to upload big files via https and get progress info

2010-05-13 Thread Sean DiZazzo
On May 13, 9:54 pm, Sean DiZazzo wrote: > On May 13, 9:39 am, News123 wrote: > > > > > Hi Aaaz, > > > Aahz wrote: > > > In article <4bea6b50$0$8925$426a7...@news.free.fr>, > > > News123   wrote: > > >> I'd like to perform huge f

Re: client to upload big files via https and get progress info

2010-05-13 Thread Sean DiZazzo
avenue to read the size of the file on the server. Maybe a webservice that you call with the name of the file that returns it's percent complete, or it could just return bytes on disk and you do the math on the client side. Then you just forget about the transfer and query the file size whenever you want to know...or on a schedule. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: win32wnet.WNetAddConnection2 to specific network interface?

2010-04-14 Thread Sean DiZazzo
On Apr 14, 9:22 pm, Dennis Lee Bieber wrote: > On Wed, 14 Apr 2010 15:18:11 -0700 (PDT), Sean DiZazzo > declaimed the following in > gmane.comp.python.general: > > > > >     def wnet_connect(self, host, username, password): > >         The presence of "self&q

win32wnet.WNetAddConnection2 to specific network interface?

2010-04-14 Thread Sean DiZazzo
to force the connection to go to a specific interface? I'll post the exact error after I can get on that machine. Thanks! ~Sean I'm using this wnet_connect() function that I found somewhere. It works perfectly except on this one machine. def wnet_connect(self, host, username, p

Re: getopt question

2010-04-09 Thread Sean DiZazzo
7;Invalid option' >     sys.exit(0) If your argument is expecting a value, you need to add a colon after it in the argument string. ie. 'a:b:' Guessing if you print 'args' from your example, both the -c and junk1 will be in there. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Sean DiZazzo
> You are right. I was trying to import the module sitting on the source > folder :"-). Thanks for your quick response and let me try further. Sweet! I remember it because it confused the hell out of me on at least one past occasion. :) -- http://mail.python.org/mailman/listinfo/python-list

Re: MySQLdb compiled -- Import issue

2010-03-24 Thread Sean DiZazzo
ViewDownload > >  signature.asc > < 1KViewDownload The warning looks familiar. Are you running python from the MySQLdb source directory? ie. /opt/downloads/py-modules/MySQL-python-1.2.3c1 I think you just need to change directories and the warning will go away. Check what's happening on line 3 of _mysql.py I don't have the source in front of me. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Updates about Tk

2010-02-27 Thread Sean DiZazzo
> Are the new Tk comaprable with other toolkits(Qt, GTK,Wx?)? > Does Tk lack other features compared to the Qt,GTK,Wx...? > (Or: is there things you can't simply do with Tk?) > > Thanks in advance for replying tkinter is a good starting point. You can get some definite benefits going to wx or Qt

Re: Executable problem - correction

2010-02-24 Thread Sean DiZazzo
ilt (and where > it > runs OK) is using Vista.  I now see that it will probably be necessary to > build > separate Vista and XP versions - I should have realized this earlier, but was > misled by the fact that the Vista-built program runs OK on my XP SP2 box. Did you compile

Re: Question about getmtime

2010-02-19 Thread Sean DiZazzo
e is updated, so changing permissions, among other things will update it. It blew me away when I finally found this out. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: How do you implement a Progress Bar

2010-02-13 Thread Sean DiZazzo
ttp://uucode.com/texts/pylongopgui/pyguiapp.html ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: equivalent of Ruby's Pathname?

2010-02-09 Thread Sean DiZazzo
On Feb 8, 2:36 pm, a...@pythoncraft.com (Aahz) wrote: > In article > , > Sean DiZazzo   wrote: > > >On Feb 3, 6:08=A0pm, alex23 wrote: > > >> There was also a PEP with another possible implementation: > >>http://www.python.org/dev/peps/pep-0355/ > >

Re: Executing Commands From Windows Service

2010-02-09 Thread Sean DiZazzo
On Feb 9, 6:52 am, T wrote: > On Feb 8, 2:25 pm, David Bolen wrote: > > > > > T writes: > > > I have a script, which runs as a Windows service under the LocalSystem > > > account, that I wish to have execute some commands.  Specifically, the > > > program will call plink.exe to create a reverse

Re: Executing Commands From Windows Service

2010-02-08 Thread Sean DiZazzo
> > It's working fine when I run it via " debug" - that's how > I was testing before.  It's when I start the service that it fails - > and you can see that, when you run it with debug, plink.exe runs under > my username.  When I run it as a service, it runs under System... You can have the servic

Re: Executing Commands From Windows Service

2010-02-07 Thread Sean DiZazzo
take a look at paramiko as the ssh client library? I think it runs under windows. Also perhaps Twisted has something. Either way would be light years ahead of using subprocess with plink. Just my thoughts. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Executing Commands From Windows Service

2010-02-07 Thread Sean DiZazzo
best way around this?  Thanks! Try running/debugging your service from the commandline as " debug" That should lead you to the error. Otherwise, we need to see a traceback and some code to be better able to help. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: equivalent of Ruby's Pathname?

2010-02-04 Thread Sean DiZazzo
ls addition to the lib that > provides this level of convenience...) > > There was also a PEP with another possible > implementation:http://www.python.org/dev/peps/pep-0355/ > > Hope this helps. It's too bad that something like this can't be agreed to. I used a homegrown module like this for a couple of years in my early days with python. It was great, but I didn't know enough at the time to make it really useful. Why did Path() get rejected? Is it the idea itself, or just the approach that was used? What are the complaints? ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: Your beloved python features

2010-02-04 Thread Sean DiZazzo
ed python features. > > So, may you help me please? If there's a similar thread/blogpost/ > whatever, please give it to me, google couldn't. > > Regards > Julian I love list comprehensions, but am currently falling for 'with'. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: PEP 3147 - new .pyc format

2010-01-31 Thread Sean DiZazzo
> Here is a recent list of magic numbers: > >        Python 2.6a0: 62151 (peephole optimizations and STORE_MAP opcode) >        Python 2.6a1: 62161 (WITH_CLEANUP optimization) >        Python 2.7a0: 62171 (optimize list comprehensions/change LIST_APPEND) >        Python 2.7a0: 62181 (optimize cond

Re: SimpleXMLRPCServer daemon

2010-01-29 Thread Sean DiZazzo
ds of useful stuff. In my home grown daemons I use Adam's technique, and wrap the "while 1:" block in a try except clause. ~Sean -- http://mail.python.org/mailman/listinfo/python-list

Re: get error install MySQLdb on Mac OS X

2010-01-28 Thread Sean DiZazzo
On Jan 28, 12:53 pm, "PS.OHM" wrote: > Hello Guys > > I have get some error when i install MySQLdb on Mac OS X > > after i key command $python setup.py build > > rusult is > : > : > error: command 'gcc-4.0' failed with exit status 1 > > How to config this poblem? Please show a little bit more of

Re: Wrap a function

2010-01-28 Thread Sean DiZazzo
On Jan 28, 12:13 pm, Joan Miller wrote: > On 28 ene, 19:58, John Posner wrote: > > > > > On 1/28/2010 2:24 PM, Joan Miller wrote: > > > > On 28 ene, 19:16, Josh Holland  wrote: > > >> On 2010-01-28, Joan Miller  wrote: > > > >>> I've to call to many functions with the format: > > > >> run("cm

  1   2   3   4   5   >