Farewell, for now :)

2021-05-31 Thread Kyle Stanley
With Loving Regards, -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pronoun here?* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world/> ) -- https://mail.

The importance of mental health

2021-05-10 Thread Kyle Stanley
have overcome past struggles* . -- --Kyle R. Stanley, Python Core Developer (what is a core dev? <https://devguide.python.org/coredev/>) *Pronouns: they/them **(why is my pronoun here?* <http://feministing.com/2015/02/03/how-using-they-as-a-singular-pronoun-can-change-the-world

Re: asyncio question

2020-11-03 Thread Kyle Stanley
On Tue, Nov 3, 2020 at 3:27 AM Frank Millman wrote: > It works, and it does look neater. But I want to start some background > tasks before starting the server, and cancel them on Ctrl+C. > > Using the 'old' method, I can wrap 'loop.run_forever()' in a > try/except/finally, check for KeyboardInt

Re: lmoments3 and scipy (again)

2020-10-13 Thread Kyle Stanley
Based on a search of the scipy docs, it looks like the function might have moved namespaces from scipy.misc.comb to scipy.special.comb ( https://docs.scipy.org/doc/scipy/reference/generated/scipy.special.comb.html?highlight=comb#scipy-special-comb) when referenced in lmoments3. Alternatively, if yo

Re: FW: NEED SOLUTION FOR ERROR

2020-10-13 Thread Kyle Stanley
It would also be helpful to list the full traceback as well as the exact command used (e.g. package attempted to install and passed arguments to pip). A bad file descriptor error sounds like there's a fair chance of it being an issue within a specific module, or something like your OS running out o

Re: List of All Error Menssages

2020-10-02 Thread Kyle Stanley
eer-driven efforts. Regards, Kyle Stanley On Thu, Oct 1, 2020 at 3:18 PM Luis Gustavo Araujo < luisaraujo.i...@gmail.com> wrote: > Hi, > Is it possible to get the list of all error messages that display in > Python? I want the full message -> type error: additional message. > &

Re: Final statement from Steering Council on politically-charged commit messages

2020-08-18 Thread Kyle Stanley
On Mon, Aug 17, 2020 at 2:37 PM Chris Angelico wrote: > Yes. I was hoping for "we should rewrite that commit", and would have > been content with "we won't rewrite it, but we don't want that > repeated". But the SC said that it is absolutely fine to write commit > messages like that. > While I'm

Re: Fwd: [BUG] missing ')' causes syntax error on next line

2020-07-22 Thread Kyle Stanley
> > *beep* *whir* > > WE ARE NOT > > *click* *whi* > > A BOT. *dial up noises* SPEAK FOR YOURSELF On Wed, Jul 22, 2020 at 6:46 PM Ethan Furman wrote: > On 7/22/20 2:57 PM, Jeff Linahan wrote: > > > Subscribing to the mailing list as per the bot's request and resending. > > *beep* *wh

Re: Questioning the effects of multiple assignment

2020-07-07 Thread Kyle Stanley
rly emphasize the importance of having some compelling real-world examples in the proposal if you decide to pursue this, as otherwise it would likely be dismissed as YAGNI.) On Tue, Jul 7, 2020 at 8:26 PM dn via Python-list wrote: > On 7/07/20 7:44 PM, Kyle Stanley wrote: > >

Re: Questioning the effects of multiple assignment

2020-07-07 Thread Kyle Stanley
> > Can you explain why these two (apparently) logical assignment processes > have been designed to realise different result-objects? The reason is because of the conventions chosen in PEP 3132, which implemented the feature in the first place. It was considered to return a tuple for the consiste

Re: [Python-ideas] asyncio: return from multiple coroutines

2020-06-25 Thread Kyle Stanley
probably be more idiomatic to call these "consumers" or "listeners" rather than "messengers"/"messagers" (the websocket docs refer to them as "consumer handlers"), but I used "messengers" to make it a bit more easily comparable to the original

Re: Newbie question about Python syntax

2019-08-22 Thread Kyle Stanley
> You are right, but it is even worse than you think. I do not have a tutorial so I have no examples to understand. The tutorial that Terry was referring to was the one on docs.python.org, here's a couple of links for the sections he was referring to: Full section on classes: https://docs.python.

Re: Which editor is suited for view a python package's source?

2019-08-20 Thread Kyle Stanley
> Then, I can only download the older version 2016.2.3 for my old 32 bit system:-( You could always use VSCode with the Python extension instead: https://code.visualstudio.com/Download. There's support for 32bit Windows as long as you're on 7, 8, or 10. I haven't used it myself though, I most use

Re: My pseudocode to Python?

2019-08-19 Thread Kyle Stanley
> Except 'list' is a bad name to use... Definitely, it's not a good practice to use any reserved names, especially built-in ones. A pretty common substitute I've seen is "ls", but it would be preferable to have something more descriptive of the elements within the list. But, for basic examples, "l

Re: How to login remote windos device using python

2019-08-19 Thread Kyle Stanley
I would recommend checking out WMI: https://pypi.org/project/WMI/ For remote connection as a named user (official WMI docs): http://timgolden.me.uk/python/wmi/tutorial.html#connecting-to-a-remote-machine-as-a-named-user Also, another example (unofficial): https://stackoverflow.com/questions/18961

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Kyle Stanley
> The most popular choices today are probably PyCharm and VSCode. I prefer > vim with the syntastic plugin (and a few other plugins including Jedi), but > I've heard good things about the other two. Personally, I've been using VSCode with the Python and Vim extensions. I've used PyCharm as well a

Re: My pseudocode to Python?

2019-08-19 Thread Kyle Stanley
;, 'f', 'g'] >>> if x: >>> mylist.insert(3, 'd') >>> mylist ['a', 'b', 'c', 'd', 'e', 'f', 'g'] Regards, Kyle Stanley (aeros16

PEP8 needs revision

2016-06-15 Thread Kyle Thomas
e for formatting python source-code is inappropriate. Is PEP8 a joke at the expense pedantry common of those new to programming? PS: Knuth's quote was taken from The TeXbook, a text about his programming language. -Kyle -- https://mail.python.org/mailman/listinfo/python-list

Re: datetime.strptime() not padding 0's

2013-04-23 Thread Kyle Shannon
On Tue, Apr 23, 2013 at 3:41 PM, Kyle Shannon wrote: > On Tue, Apr 23, 2013 at 3:14 PM, Rodrick Brown > wrote: >> I thought I read some where that strptime() will pad 0's for day's for some >> reason this isnt working for me and I'm wondering if i'm d

Re: datetime.strptime() not padding 0's

2013-04-23 Thread Kyle Shannon
On Tue, Apr 23, 2013 at 3:14 PM, Rodrick Brown wrote: > I thought I read some where that strptime() will pad 0's for day's for some > reason this isnt working for me and I'm wondering if i'm doing something > wrong. > from datetime import datetime dt = datetime.strptime('Apr 9 2013', '%b

Re: How to define "exec" method on a class object? Get syntax error due to built in command

2013-03-26 Thread Kyle
On Mar 26, 2:43 pm, Chris Angelico wrote: > On Wed, Mar 27, 2013 at 5:13 AM, Kyle wrote: > > Thanks for the suggestion. Looks like we currently use 2.3.4. > > > This still wouldn't solve the problem because now the user would need to > > call something like  geta

Re: How to define "exec" method on a class object? Get syntax error due to built in command

2013-03-26 Thread Kyle
On Monday, March 25, 2013 4:28:34 PM UTC-4, Kyle wrote: > I am using swig to generate our CLI for TCL and Python. In this CLI, we have > a subcommand "exec" that is failing to compile in the python case. There > seems to be some built-in python command "exec" which i

How to define "exec" method on a class object? Get syntax error due to built in command

2013-03-25 Thread Kyle
I am using swig to generate our CLI for TCL and Python. In this CLI, we have a subcommand "exec" that is failing to compile in the python case. There seems to be some built-in python command "exec" which is giving a syntax error in the .py file generated by swig when I try to import it: def

Re: Python as a default shell, replacement of bash, sh, cmd ?

2012-02-21 Thread Kyle T. Jones
On 2/19/12 2:16 AM, SherjilOzair wrote: Well, if not modify python itself, I was thinking of making another shell, which borrows a lot from python, something like merging bash and python. such that I can do `cd ~/Desktop/dev` and `for i in open('file.txt'): print i` at the some shell. This I t

Re: Complete beginner, any help appreciated :) - For Loops

2011-12-01 Thread Kyle T. Jones
On 12/1/11 4:53 AM, Mark wrote: Hi there, I'm a complete beginner to Python and, aside from HTML and CSS, to coding in general. I've spent a few hours on it and think I understand most of the syntax. However, I'm wondering a bit about For Loops. I know that the basic syntax for them is to def

Re: Python 2.6 OR 3.2

2011-06-09 Thread Kyle T. Jones
John Gordon wrote: In <9037ef5f-53c5-42c6-ac5d-8f942df6c...@x38g2000pri.googlegroups.com> hisan writes: Hi All, Please let me know which one is GOOD whether Python 2.6 OR 3.2. Please let me know the difference between them. Please give some refernce site or books to know the difference I

Overuse of try/except/else?

2011-05-09 Thread Kyle T. Jones
It has been hard for me to determine what would constitute overuse. Cheers. -- http://mail.python.org/mailman/listinfo/python-list

Re: A question about Python Classes

2011-04-22 Thread Kyle T. Jones
Ethan Furman wrote: chad wrote: Let's say I have the following class BaseHandler: def foo(self): print "Hello" class HomeHandler(BaseHandler): pass Then I do the following... test = HomeHandler() test.foo() How can HomeHandler call foo() when I never created an instance

Re: How to tailor output of help()

2009-12-26 Thread Kyle
> Try setting the __all__ variable in your module to a list of the names > you want your module to export. Perfect. Thanks for the help. -- http://mail.python.org/mailman/listinfo/python-list

How to tailor output of help()

2009-12-24 Thread Kyle
Hi all, I'm a graduate student in the physical sciences and still new to Python. I'm writing a module of often-used code and have included several math functions in my module via from math import cos and similarly for other functions. When I input help(mymodule) into the console, cos() and its do

Re: Concurrent threads to pull web pages?

2009-10-02 Thread Kyle Terry
On Thu, Oct 1, 2009 at 6:33 PM, wrote: > On 1 Oct, 09:28 am, nos...@nospam.com wrote: > >> Hello >> >>I recently asked how to pull companies' ID from an SQLite database, >> have multiple instances of a Python script download each company's web >> page from a remote server, eg. www.acme.co

Re: pygui - showing an image

2009-09-23 Thread kyle schalm
yes, that did the trick. i was not aware of all the examples in Test, only the three Demo projects. thanks! 2009/9/22 David Robinow : > There's an example in Tests/21-image.py > See if that helps. > -- http://mail.python.org/mailman/listinfo/python-list

pygui - showing an image

2009-09-22 Thread kyle schalm
indow.add(image) -- nothing shows then i tried getting a canvas involved but that seemed to make things worse. any hints are appreciated. thanks, -kyle -- http://mail.python.org/mailman/listinfo/python-list

Re: where to start with

2009-05-01 Thread Kyle Terry
On Fri, May 1, 2009 at 7:38 AM, CTO wrote: > I'd add http://diveintopython.org/ to that list as you gain more > experience with Python, or if you already know at least one language. Wasn't diveintopython in his list? > > > -- > http://mail.python.org/mailman/listinfo/python-list > -- http://ma

Re: Python Noob - a couple questions involving a web app

2009-04-29 Thread Kyle Terry
On Wed, Apr 29, 2009 at 8:24 AM, David Smith wrote: > Kyle T. Jones wrote: > > Bruno Desthuilliers, my dear, dear friend, there was this time, oh, > > 4/29/2009 3:02 AM or thereabouts, when you let the following craziness > > loose on Usenet: > >> Kyle T. Jones a

Re: Python Noob - a couple questions involving a web app

2009-04-29 Thread Kyle T. Jones
Bruno Desthuilliers, my dear, dear friend, there was this time, oh, 4/29/2009 3:02 AM or thereabouts, when you let the following craziness loose on Usenet: Kyle T. Jones a écrit : Been programming for a long time, but just starting out with Python. Not a professional programmer, just that guy

Python Noob - a couple questions involving a web app

2009-04-28 Thread Kyle T. Jones
Been programming for a long time, but just starting out with Python. Not a professional programmer, just that guy in one of those organizations that won't hire a pro, instead saying "Hey, Kyle knows computer stuff - let's have him do this (and that, and the other, etc)".

RE: Eject a Removable USB drive

2009-03-10 Thread Rickey, Kyle W
NE_DRIVEREMOVED, shellcon.SHCNF_PATH, "F:\\") Thanks for your help! -Kyle Rickey -Original Message- From: python-list-bounces+kyle.rickey=bakerhughes@python.org [mailto:python-list-bounces+kyle.rickey=bakerhughes@python.org] On Behalf Of Aaron Brady Sent: Monday, March 09

RE: Eject a Removable USB drive

2009-03-09 Thread Rickey, Kyle W
ms my code is unmounting my volume, but not the actual device. Any ideas? I've attached the code I've got so far. -Kyle Rickey -Original Message- From: python-list-bounces+kyle.rickey=bakerhughes@python.org [mailto:python-list-bounces+kyle.rickey=bakerhughes@python.org] On

Eject a Removable USB drive

2009-03-09 Thread Rickey, Kyle W
ft.com/en-us/library/ms791198.aspx) and then call CM_Request_Device_Eject on the appropriate node. I am on the right track with this? Any help would be greatly appreciated. -Kyle Rickey -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Integrated Parallel Pipeline EnviRonment: PIPPER

2009-02-05 Thread Kyle
PIPPER doesn't yet have a very large user base, and is still in Alpha. So if there is enough demand, syntax changes would still be possible at this stage. Kyle > I'm not a big fan of comments that change semantics. Wouldn't a modified > 'with' statement look

Python Integrated Parallel Pipeline EnviRonment: PIPPER

2009-02-05 Thread Kyle
I wanted to share a Python based project which I've been working on. Python Integrated Parallel Pipeline EnviRonment (PIPPER) is an MPI based programming environment that works much like an OpenMP on Python code. It is designed to create a python programming environment where parallel computations

Re: Responding to web request with python

2008-11-02 Thread Christopher David Kyle
On Sun, 2 Nov 2008, Tim Roberts wrote: > scott212 <[EMAIL PROTECTED]> wrote: > > > >I'm responding with xml to a web request from google checkout but I > >think I'm in a catch-22. To get my webserver (apache) to respond I > >need a header and then a blank line before my xml begins, or else it > >t

Re: r""

2008-09-30 Thread Kyle Hayes
> Please describe the actual problem you're trying to solve. In what way > do slashes need to be "fixed," and why? Well, I have decided to build a tool to help us sync files in UNC paths. I am just building the modules and classes right now so I haven't developed the frontend yet. I am assuming wh

r""

2008-09-30 Thread Kyle Hayes
Is there a way to use the 'r' in front of a variable instead of directly in front of a string? Or do I need to use a function to get all of the slashes automatically fixed? /thanks -Kyle -- http://mail.python.org/mailman/listinfo/python-list

Re: Manually prompting garbage collection

2008-07-16 Thread Kyle Lanclos
> later.) I suspect that this is the root of the answer to my question-- if I can't rely on triggering the collection in a specific sequence, I'll need to implement my workaround. Your time and attention is greatly appreciated-- --Kyle -- http://mail.python.org/mailman/listinfo/python-list

Re: Manually prompting garbage collection

2008-07-16 Thread Kyle Lanclos
e collection does not appear to occur until I return from the particular C function I am in the middle of executing. Ideally, I want to explicitly prompt garbage collection in the middle of a C function, without first returning to the larger Python interpreter. --Kyle -- http://mail.python.org/ma

Manually prompting garbage collection

2008-07-16 Thread Kyle Lanclos
bage collection happens *after* the service has been properly closed. I've tried inserting calls to PyGC_Collect (including an invocation of "while (PyGC_Collect() > 0)") with no change in behavior. Suggestions are welcome. Cheers, --Kyle -- http://mail.python.org/mailman/listinfo/python-list

Re: The Importance of Terminology's Quality

2008-05-07 Thread Kyle McGivney
> • Module, Block, in Mathematica is in lisp's various “let*”. The > lisp's keywords “let”, is based on the English word “let”. That word > is one of the English word with multitudes of meanings. If you look up > its definition in a dictionary, you'll see that it means many > disparat

Importing DLLs

2007-08-15 Thread Corbitt, Kyle
but I've been bashing my head against this problem for a couple days now and haven't made much progress. Thanks, Kyle -- http://mail.python.org/mailman/listinfo/python-list

Re: Adding Python to the path in Windows

2007-06-21 Thread kyle
On Jun 21, 11:53 am, Larry Bates <[EMAIL PROTECTED]> wrote: > Another solution is to use py2exe to convert your python program into an .exe > file that you can distribute. Then they require no Python installation at > all. > I use py2exe and Inno Installer to do just that and it works great. > >

Re: Adding Python to the path in Windows

2007-06-21 Thread kyle
On Jun 21, 11:49 am, [EMAIL PROTECTED] wrote: > I should probably mention that if you have some complicated GUI's, > they will probably load slowly over the network. And I did notice that > scripts using WMI and pyWin32 modules can be slower than they ought to > be. Just something to keep in mind i

Re: Adding Python to the path in Windows

2007-06-21 Thread kyle
On Jun 21, 11:22 am, [EMAIL PROTECTED] wrote: > > If your users aren't programmers, then why not just run Python over > the network? That's what we do at my place of employment. The only > machines that have Python actually installed are development machines. > > Mike Mike, I place the scripts on

Re: Adding Python to the path in Windows

2007-06-21 Thread kyle
On Jun 21, 11:10 am, Duncan Booth <[EMAIL PROTECTED]> wrote: > Assuming they have Python installed normally there will be file > associations set up for .py and .pyw, so all you need to do to type in > the script name: Python itself does not need to be in the path. > N.B. You do need to include the

Adding Python to the path in Windows

2007-06-21 Thread kyle
I have many users using two different versions of python, 2.4 and 2.5. I am running Python scripts on their computers programmatically, but I can't run it with the full path because they have different versions installed. I need to run it like 'python {script name}'. So I need to add Python to t

Re: Circe released to public domain!

2006-02-11 Thread Kyle Brooks
Diez B. Roggisch wrote: > Kyle Brooks schrieb: > >>Wednesday, February 8th, 2006. >> >>Dear all, >> >>I hereby release Circe to the public domain. >> >>Our repo is at http://kbrooks.ath.cx/repos/circe. > > > > This is the second pos

Circe released to public domain!

2006-02-08 Thread Kyle Brooks
Wednesday, February 8th, 2006. Dear all, I hereby release Circe to the public domain. Our repo is at http://kbrooks.ath.cx/repos/circe. -- http://mail.python.org/mailman/listinfo/python-list

Stopping Circe development

2006-02-05 Thread Kyle Brooks
Hey all. I have decided to stop Circe development because of school. If anyone wants to take over Circe development, please reply to this post. Our repository (a Darcs repo) is at http://kbrooks.ath.cx/repos/circe. -- http://mail.python.org/mailman/listinfo/python-list

TkInter Listbox Widget Formatting

2005-06-02 Thread Kyle . Robertson
I've searched high and low, and I can't seem to find a way to center or right justify the text in a Listbox widget using TkInter.  The justify option is unrecognized.  Any options I'm missing, or a known work-around?   Thanks!   Kyle -- http://mail.python.org/mailman/listinfo/python-list