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
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
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
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
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
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
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
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.
>
>
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
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
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
> 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
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
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.
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
;, 'f', 'g']
>>> if x:
>>> mylist.insert(3, 'd')
>>> mylist
['a', 'b', 'c', 'd', 'e', 'f', 'g']
Regards,
Kyle Stanley (aeros16
> 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
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
> 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
> 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
> 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.
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
>
> 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
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:
> >
>
> *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
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
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.
>
&
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
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
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
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
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
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
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
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
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
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
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
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
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
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
> 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
> ⢠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
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
> 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
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
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
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
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
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
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
It has been hard for me to determine what would constitute overuse.
Cheers.
--
http://mail.python.org/mailman/listinfo/python-list
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
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
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
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
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
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)".
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
59 matches
Mail list logo