pdb: How to use the 'break' parameter?

2024-08-21 Thread Kevin M. Wilson via Python-list
break (Old_MacDonald:23 | name[indx] == 'd', indx = 4), based on the doc spec in python.org (https://docs.python.org/3/library/pdb.html#debugger-commands) Cell In[1], line 20 break (Old_MacDonald:23 | name[indx] == 'd', indx = 4) ^ SyntaxError: invalid syntax I got one blan

Fw: Flubbed it in the second interation through the string: range error... HOW?

2024-05-28 Thread Kevin M. Wilson via Python-list
sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 - Forwarded Message ----- From: Kevin M. Wilson via Python-list To: python-list@python.org Sent: Tuesday, May 28, 2024 at 10:35:23 PM MDTSubject: Fl

Flubbed it in the second interation through the string: range error... HOW?

2024-05-28 Thread Kevin M. Wilson via Python-list
The following is my effort to understand how to process a string, letter, by letter: def myfunc(name):        index = 0    howmax = len(name)    # while (index <= howmax):    while (index < howmax):        if (index % 2 == 0):            print('letter to upper = {}, index {}!'.format(name[index]

Re: Invalid literal for int() with base 10?

2023-05-25 Thread Kevin M. Wilson via Python-list
e."      Isaiah 43:2 On Thursday, May 25, 2023 at 05:55:06 PM MDT, Kevin M. Wilson via Python-list wrote: Ok, I'm not finding any info. on the int() for converting a str to an int (that specifies a base parameter)?! The picture is of the code I've written... And the

From geeksforgeeks.org, on converting the string created by the input() to an INT

2023-05-25 Thread Kevin M. Wilson via Python-list
We can first convert the string representation of float into float using  float() function and then convert it into an integer using int().So, why can't a string of an integer be converted to an integer, via  print(int(str('23.5')))??? Perplexed | print(int(float('23.5'))) | "When you pas

Invalid literal for int() with base 10?

2023-05-25 Thread Kevin M. Wilson via Python-list
Ok, I'm not finding any info. on the int() for converting a str to an int (that specifies a base parameter)?! The picture is of the code I've written... And the base 10 paradigm involved?? years = int('y') # store for calculationValueError: invalid literal for int() with base 10: 'y'What is mean

Three (3) >>> in the debug screen of PyCharm... Que Es over?!!

2023-05-04 Thread Kevin M. Wilson via Python-list
"When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 | | Virus-free.www.avg.com | -- https://mail.python.org/m

Disable 'style PEP' messages

2023-05-04 Thread Kevin M. Wilson via Python-list
Hi... How do I set Pycharm to find only syntax errors?!! "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 | |

Editing PEP-8, in particular "expected 2 blanks, found 1

2023-05-02 Thread Kevin M. Wilson via Python-list
Folks, help please! What the @#$! are these doing popping up. Code styles are personal, and not subject to debate.Where can I edit these out of my IDE? Kevin "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you

PyCharm's strict PEP and not so strict?

2023-04-19 Thread Kevin M. Wilson via Python-list
l, how do I set up the kind of "checking" I want? Thank you, Kevin "When you pass through the waters, I will be with you: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze.&qu

Re: Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
u: and when you pass through the rivers, they will not sweep over you. When you walk through the fire, you will not be burned: the flames will not set you ablaze."      Isaiah 43:2 On Tuesday, April 18, 2023 at 11:17:52 PM MDT, Kevin M. Wilson via Python-list wrote: print (f'

Re: Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
aze."      Isaiah 43:2 On Tuesday, April 18, 2023 at 06:44:37 PM MDT, aapost wrote: On 4/18/23 19:18, Kevin M. Wilson wrote: >Why complain about a 'comma', or a ')'??? >      print (f'"I am thinking of a number between 1 to {LIMIT}\n") my

Pycharm IDE

2023-04-18 Thread Kevin M. Wilson via Python-list
Greetings... Kevin here:I need help, as you have guessed!I have this line: The Print Statement... Why complain about a 'comma', or a ')'???def play_game(): number = random.randint(1, LIMIT) print (f'"I am thinking of a number between 1 to {LIMIT}\n")

Help, PyCharm fails to recognize my tab setting...See attached picture of the code.

2022-10-10 Thread Kevin M. Wilson via Python-list
C:\Users\kevin\PycharmProjects\Myfuturevalue\venv\Scripts\python.exe C:\Users\kevin\PycharmProjects\Myfuturevalue\FutureValueCal.py   File "C:\Users\kevin\PycharmProjects\Myfuturevalue\FutureValueCal.py", line 31    elif (years > 50.0) or (years < 1.0) :    ^IndentationEr

F-string usage in a print()

2022-05-24 Thread Kevin M. Wilson via Python-list
future_value = 0 for i in range(years): # for i in range(months): future_value += monthly_investment future_value = round(future_value, 2) # monthly_interest_amount = future_value * monthly_interest_rate # future_value += monthly_interest_amount # display the result print(f"Year =

python-list@python.org

2022-04-13 Thread Kevin M. Wilson via Python-list
MS Edge settings are displayed in the first picture, the error I encountered is the second picture...not sure how I get around this!I reloaded the browser after checking the settings for JavaScript...confused. Kevin Good sense makes one slow to anger, and it is his glory tooverlook an

Pycharm IDE: seeking an assist!

2022-03-21 Thread Kevin M. Wilson via Python-list
oot, and still no JOY.  Message is still popping open, when the IDE first executes. No documentation have I found, details what this option, the setting of...will do! Any and all help, please! Kevin Good sense makes one slow to anger, and it is his glory to overlook an offense. Proverbs 19:11 -- https://mail.python.org/mailman/listinfo/python-list

Tkinter needed as a legacy version 2.7 imports the module...

2021-02-26 Thread Kevin M. Wilson via Python-list
Hey Community,    Is there a site where I might/can download a version of Tkinter for Python 2.7? Seriously, KMW John 1:4  "In him was life; and the life was the light of men." -- https://mail.python.org/mailman/listinfo/python-list

Python 2.7 and 3.9

2021-02-16 Thread Kevin M. Wilson via Python-list
My employer has hundreds of scripts in 2.7, but I'm writing new scripts in 3.9! I'm running into 'invalid syntax' errors.I have to maintain the 'Legacy' stuff, and I need to mod the path et al., to execute 3.7 w/o doing damage to the 'Legacy' stuff...IDEA' are Welcome! KMW John 1:4  "In him was

Re: Python cannot count apparently

2021-02-07 Thread Kevin M. Wilson via Python-list
Set i = 0 at the begin of the code, that way each entry starts at Logical 0 of the array/container/list... "The only way to have experience is by having the experience"! On Sunday, February 7, 2021, 12:56:40 PM MST, Karsten Hilbert wrote: Am Sun, Feb 07, 2021 at 07:47:03PM + schr

For example: Question, moving a folder (T061RR7N1) containing a Specific file (ReadCMI), to folder: C:\\...\DUT0

2021-01-27 Thread Kevin M. Wilson via Python-list
for path, dir, files in os.walk(myDestinationFolder): # for path, dir, files in os.walk(destfolder): print('The path is %s: ', path) print(files) os.chdir(mySourceFolder) if not os.path.isfile(myDestinationFolder + file): # if not os.path.isfile(destfolder + file): prin

Re: Class Issue`

2019-03-05 Thread Kevin Hu
even when you don’t expect it to. In this case it’ll assign arguments to parameters in order, which is the expected behavior. Regards, Kevin > On Mar 5, 2019, at 16:39, Milt wrote: > > The following code gives me unusual results - base on experience with C++. > > class Car:

Re: What's wrong with these codes as failed to read the strings in Chinese? Is it because Chinese characters can't be read on Mac? Many thanks

2018-11-09 Thread Kevin Hu
ming/methods/string/encode> https://www.pythoncentral.io/encoding-and-decoding-strings-in-python-3-x/ <https://www.pythoncentral.io/encoding-and-decoding-strings-in-python-3-x/> Regards, Kevin > On Nov 8, 2018, at 21:30, Annie Lu wrote: > > # -*- coding: UTF-8 -*- > ...

Python on 10.14 Mojave

2018-10-10 Thread Kevin Walzer
edit setup.py and comment out all search directories except /Library/Frameworks, but that seems to be ignored here. Is there any other way to link to the correct frameworks? -- Kevin Walzer Code by Kevin http://www.codebykevin.com -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Syntax error

2018-02-03 Thread Kevin Doney
Hi. *pip3 install --upgrade tensorflow-gpu* When I try the above command I get SyntaxError: invalid syntax Please help. -- https://mail.python.org/mailman/listinfo/python-list

Re: Linux/Windows GUI programming: GUI-fy a CLI using pyInstaller

2018-01-05 Thread Kevin Walzer
toolkit :-) me too ! Try easygui: https://pypi.python.org/pypi/easygui -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: choice of web-framework

2017-10-23 Thread Kevin van Keeken
Greetings, while reading through this topic i would like to know, if cherrypy is a viable web-framework as well? I stumbled upon this project a while ago, but didn't read through it in detail and would like to hear something about it, especially in regards to the project requirements. Kind regar

Re: Python application launcher (for Python code)

2017-02-20 Thread Kevin Walzer
plicated than "python my script.py." Run your console of choice on any platform that supports Python. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PyDictObject to NSDictionary

2017-02-03 Thread Kevin Walzer
#x27;s and Python. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Issues with "twistd" in Twisted 16.4.0

2016-09-01 Thread Kevin Conway
Hi, you might not get much of an answer for this on the Python mailing list. I suggest sending your question to the Twisted mailing list instead: https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python. On Thu, Sep 1, 2016 at 7:12 AM juraseg wrote: > Also, I've tried to find anything i

Re: Namespaces are one honking great idea

2016-07-03 Thread Kevin Conway
>> Regardless, all use cases you've listed are already satisfied by use of >> the static and class method decorators. Methods decorated with these do >> not require an instance initialization to use. > And are significantly less easy to use, as the functions MUST refer to each > other by their dot

Re: Namespaces are one honking great idea

2016-07-02 Thread Kevin Conway
;test") print(CustomNs.stateful_data) CustomNs.mutate() print(CustomNs.stateful_data) For the proponents of namespace, what is deficient in the above example that necessitates a language change? On Sat, Jul 2, 2016, 00:02 Random832 wrote: > On Fri, Jul 1, 2016, at 21:50, Kevin Conway wro

Re: Namespaces are one honking great idea

2016-07-01 Thread Kevin Conway
I believe the namespace object you are referring to is exactly a class. IIRC, classes came about as a "module in a module". Regardless, all use cases you've listed are already satisfied by use of the static and class method decorators. Methods decorated with these do not require an instance initia

Re: What should a decorator do if an attribute already exists?

2016-05-16 Thread Kevin Conway
> I have a decorator that adds an attribute to the decorated function I might try to argue that this is not actually a decorator or, at least, this is not a great decorator pattern for Python. Adding the attribute to the function object implies you need to access it at some later point. If so then

Re: Label behavior's difference between tkinter and ttk

2016-04-05 Thread Kevin Walzer
In general, the "img.config" syntax is suitable for the classic Tk widgets, not the themed ttk widgets. They have a very different (and very gnarly) syntax for indicating changed state. I am not inclined to see a bug here. -- Kevin Walzer Code by Kevin/Mobile Code by

Re: Can't load Tkinter in embedded Python interpreter on Windows

2016-04-05 Thread Kevin Walzer
Adding PySys_SetArgv(argc, argv); did the trick. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Can't load Tkinter in embedded Python interpreter on Windows

2016-04-05 Thread Kevin Walzer
get it to load Tkinter and run. The current error is: "AttributeError: module 'sys' has no attribute 'argv'" when called from the Tkinter init method. Here is my command-line invocation for the compiler: --- gcc quickwho.c -I \C:\Users\kevin\AppData\Local\Pr

Re: asyncio - run coroutine in the background

2016-02-20 Thread Kevin Conway
> getaddrinfo is a notorious pain but I think it's just a library issue; an async version should be possible in principle. How does Twisted handle it? Does it have a version? I think we're a little outside the scope of OP's question at this point, but for the sake of answering this: There are a

Re: asyncio - run coroutine in the background

2016-02-16 Thread Kevin Conway
ly harmful, but using them to achieve async networking when running asyncio is a definite code smell since that is precisely the problem asyncio is supposed to solve for. On Tue, Feb 16, 2016, 08:37 Frank Millman wrote: > "Marko Rauhamaa" wrote in message news:87d1rwpwo2@elek

Re: asyncio - run coroutine in the background

2016-02-16 Thread Kevin Conway
If you're handling coroutines there is an asyncio facility for "background tasks". The ensure_future [1] will take a coroutine, attach it to a Task, and return a future to you that resolves when the coroutine is complete. The coroutine you schedule with that function will not cause your current cor

Re: Python's import situation has driven me to the brink of imsanity

2016-02-07 Thread Kevin Conway
but how do > you develop it? Say you are working on a change that modifies both email.py > and reports.py. Do you run setup.py every time you make a change in > email.py? > > On Sunday, February 7, 2016 at 1:35:15 AM UTC-5, Kevin Conway wrote: > > > My question is: is thi

Re: Python's import situation has driven me to the brink of imsanity

2016-02-06 Thread Kevin Conway
> My question is: is this crazy? Please tell me there's a better way and I just wasted my time creating this package. There is a better way and you have wasted your time creating this package. I hear your problem statement as asking two questions. The first is: What is the right way to include ex

Re: How a module is being marked as imported?

2016-02-04 Thread Kevin Conway
As an attempt to answer your original question, Python doesn't explicitly mark a module as done. It does keep imports cached in sys.modules, though. The behaviour you describe where later imports get the same module object is driven by that cache. There are cases, such as cyclical imports, where t

Re: Cannot step through asynchronous iterator manually

2016-01-30 Thread Kevin Conway
r updates: https://bpaste.net/show/14292d2b4070. Thanks for calling that out. Note to self: Review old code before copy/pasta into the mail list. On Sat, Jan 30, 2016 at 6:57 AM Chris Angelico wrote: > On Sat, Jan 30, 2016 at 11:35 PM, Kevin Conway > wrote: > > To address the original ques

Re: Cannot step through asynchronous iterator manually

2016-01-30 Thread Kevin Conway
To address the original question, I don't believe a next() equivalent for async iterables has been added to the standard library yet. Here's an implementation from one of my projects that I use to manually get the next value: https://bpaste.net/show/e4bd209fc067. It exposes the same interface as th

Re: GitHub's “pull request” is proprietary lock-in

2016-01-03 Thread Kevin Walzer
oring the codebase in Git; there is a Tcl/Tk mirror at Github. Just a thought. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Exclude text within quotation marks and words beginning with a capital letter

2015-12-01 Thread Kevin Glover
letter (including words at the beginning of sentences). Any advice on coding that would be gratefully received. Thanks. Kevin -- https://mail.python.org/mailman/listinfo/python-list

Re: pyinstaller and Python 3.5 on Windows?

2015-11-19 Thread Kevin Walzer
y2exe) haven't yet caught up. Consider filing a bug with the pyinstaller developers. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Which GUI?

2015-07-25 Thread Kevin Walzer
someone will chime in with a diatribe against Google groups...wait for it...wait for it... To address the OP's query, I recommend Tkinter. Plays very nicely with C and C++. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftwar

How we can send mail with attachment in Python?

2015-07-19 Thread Kevin Peterson
Hi, How we can send mail with attachment in Python? Is it any prerequisite for it? Thanks, Kevin Peterson -- https://mail.python.org/mailman/listinfo/python-list

Re: beginners choice: wx or tk?

2015-07-11 Thread Kevin Walzer
were misinformed. Tkinter has worked fine with Tk 8.6 for a long time. The issues with Tk on the Mac, owing to Apple's force migration of GUI libraries to Cocoa, have finally been more or less resolved, and Tk 8.6.4 is now quite stable on OS X. --Kevin -- Kevin Walzer Code by Kevin/Mobile Cod

stdout of child process as an input of another thread in Python?

2015-05-29 Thread Kevin Peterson
;],stdout=PIPE) while True: Line = Proc.stdout.readline() print Line Here, Filename.py(Child process) is continuously printing "Hello World!!" in place of reading stdout of child process. Thanks, Kevin Peterson -- https://mail.python.org/mailman/listinfo/python-list

TypeError: unhashable type: 'list'

2014-12-22 Thread ronald . kevin . burton
code, core): try: return { ... 'Furnace Whistle': FurnaceWhistle(core) }[measure_code] except KeyError as error: return None Code2Measure = staticmethod(Code2Measure) What is the 'list' that is in the exception? Or how do I find out? Thank you. Kevin -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI toolkit(s) status

2014-11-22 Thread Kevin Walzer
runs on Windows and X11/Linux--no native Mac Port. And it hasn't been updated in years, it does not take advantage of recent advances in Tk. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI toolkit(s) status

2014-11-21 Thread Kevin Walzer
nding of choice for other scripting languages. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI toolkit(s) status

2014-11-21 Thread Kevin Walzer
Objective-C for legacy codebases, but that is a smaller hurdle to clear. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: OS X Menubar in Tkinter

2014-10-23 Thread Kevin Walzer
rly braces than this kind of constant policing of folks who come to us via Google: they greatly increase the noise I have to filter out. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-10-03 Thread Kevin Walzer
stubs? A Tcl library compiled for 8.5 can be loaded into 8.6 with no re-compiling required because of stubs. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-10-01 Thread Kevin Walzer
tion here is to build Python and Tcl/Tk yourself, in the versions you want, and then things should work just fine. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Will IronPython / WPF work on Mac OS X?

2014-08-04 Thread Kevin Walzer
, I believe...doesn't it run on top of .NET? I don't see how it would work on the Mac unless it also worked with Mono. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Tcl/Tk alpha channel bug on OSX Mavericks is fixeded, but how/when can I use the fix?

2014-08-04 Thread Kevin Walzer
On 8/4/14, 5:40 AM, Peter Tomcsanyi wrote: "Kevin Walzer" wrote in message news:lrmc0r$suj$1...@dont-email.me... New releases of Tcl/Tk 8.5 and 8.6 are due out soon; right now they are undergoing final testing as betas/release candidates. Thanks for the promising news. Where sho

Re: Python 3 is killing Python

2014-08-03 Thread Kevin Walzer
I'm sure you have the skill set to put together some patches that address specific points of pain for you. And despite the disagreement that others may register with you in these threads from time to time, I'm quite confident that useful patches will be gratefully accepted, even i

Re: Tcl/Tk alpha channel bug on OSX Mavericks is fixeded, but how/when can I use the fix?

2014-08-03 Thread Kevin Walzer
ctions for upgrading. Hope this helps, Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: .Net Like Gui Builder for Python?

2014-07-27 Thread Kevin Walzer
isual Studio or having features like Visual Studio for Python. Thank You! I'm not sure which GUI framework you use, but Tkinter is so simple to code in directly that you don't really need a UI builder. Give that a try. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http:/

Re: Mac python py2app problem

2014-07-15 Thread Kevin Walzer
for mac with py2exe? It's hard to make sense of what you are asking for. Can you just zip up the app bundle that py2app produces and upload it that way? That works for many developers. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com

Re: Python 3 is killing Python

2014-07-15 Thread Kevin Walzer
On 7/15/14, 6:38 PM, Mark Lawrence wrote: I did see your correction but it gave me an opportunity to mention google groups, something that just can't be missed If the newgroup had a filter to trim out complaints about Google groups, half the traffic would be gone. :-) -- Kevin W

Re: Python 3 is killing Python

2014-07-15 Thread Kevin Walzer
ettiquette says that it's gauche to do this, because it presents an unacceptable cognitive burden to the user trying to catch the context of the thread by forcing them to read your reply first, before they read the preceding quoted comments. --Kevin -- Kevin Walzer Code by K

Re: Python 3 is killing Python

2014-07-15 Thread Kevin Walzer
to say that Python 3 is killing Python. Python will survive. But the headaches of migration are substantial, and should not be necessary. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 3.4.1 installer on Mac links Python to old Tcl/Tk

2014-06-25 Thread Kevin Walzer
On 6/25/14, 1:49 AM, wxjmfa...@gmail.com wrote: I can also add, tcl or tk or tkinter (8.6) is on Windows quite buggy. In fact, simply*unusable*. How so? Please report bugs at http://core.tcl.tk/tcl/reportlist or http://core.tcl.tk/tk/reportlist, as needed. --Kevin -- Kevin Walzer Code by

Re: Event handling for COM object with win32com (pywin32)

2014-06-22 Thread Kevin Walzer
On 6/22/14, 5:15 AM, peter.balazo...@emspin.com wrote: Do I miss something in code or incorrectly handling the events or COM Object? There is a pywin32 mailing list that may be able to offer more help here. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http

Re: OT: This Swift thing

2014-06-03 Thread Kevin Walzer
On 6/3/14, 4:43 PM, Sturla Molden wrote: Are Python apps still banned from AppStore, even if we bundle an interpreter? Python apps are not banned from the App Store. See https://itunes.apple.com/us/app/quickwho/id419483981?mt=12. -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http

Re: Insert variable into text search string

2014-02-19 Thread Kevin Glover
Thank you both so much. I had tried % but not successfully. -- https://mail.python.org/mailman/listinfo/python-list

Insert variable into text search string

2014-02-19 Thread Kevin Glover
These two lines are from a program that carries out a phrase search of Wikipedia and returns the total number of times that the specific phrase occurs. It is essential that the search contains an apostrophe: results = w.search("\"of the cat's\"", type=ALL, start=1, count=1) print results.total

Re: Wikipedia XML Dump

2014-01-28 Thread Kevin Glover
Thanks for the comments, guys. The Wikipedia download is a single XML document, 43.1GB. Any further thoughts? Kevin -- https://mail.python.org/mailman/listinfo/python-list

Re: Need help vectorizing code

2014-01-18 Thread Kevin K
25 PM UTC-8, Kevin K wrote: > I have some code that I need help vectorizing. > > I want to convert the following to vector form, how can I? I want to get rid > of the inner loop - apparently, it's possible to do so. > > X is an NxD matrix. y is a 1xD vector. > >

Need help vectorizing code

2014-01-18 Thread Kevin K
I have some code that I need help vectorizing. I want to convert the following to vector form, how can I? I want to get rid of the inner loop - apparently, it's possible to do so. X is an NxD matrix. y is a 1xD vector. def foo(X, y, mylambda, N, D, epsilon): ... for j in xrange(D):

Re: the Gravity of Python 2

2014-01-08 Thread Kevin Walzer
c developer. I have no interest in adding to this complexity and headaches by switching from 2.x to 3.x. I imagine I'll update someday, but not anytime soon. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Airplane mode control using Python?

2013-12-23 Thread Kevin Peterson
nformation. >>> import android >>> droid = android.Android() Traceback (most recent call last): File "", line 1, in AttributeError: 'module' object has no attribute 'Android' >>> Thanks, On Mon, Dec 23, 2013 at 9:29 AM, Ned Batchelder wrote:

Deamonify my python script on Android

2013-12-23 Thread Kevin Peterson
Hi, I want to daemonify my python script on Android device. That is, it should be automatically invoked on boot up. Appreciate your help. Thanks, Kevin Peterson -- https://mail.python.org/mailman/listinfo/python-list

Daemonify my python script on Android

2013-12-22 Thread Kevin Peterson
Hi, I want to daemonify my python script on Android device. That is, it should be automatically invoked on boot up. Appreciate your help. Thanks KP -- https://mail.python.org/mailman/listinfo/python-list

Re: Airplane mode control using Python?

2013-12-22 Thread Kevin Peterson
I will take care. Thanks, On Mon, Dec 23, 2013 at 10:22 AM, wrote: > On 12/22/2013 08:33 PM, Chris Angelico wrote: > > On Mon, Dec 23, 2013 at 2:20 PM, Kevin Peterson > wrote: > >> I am trying to control Aeroplane mode on Android using Python code. > >> I am

Airplane mode control using Python?

2013-12-22 Thread Kevin Peterson
() droid.makeToast('exiting') I get the error 'no such attribute Android()'. One important thing is, I want to be able to do this without the need to reboot the Android device and any other working solution is also fine long as it is invokeable through Python. Thanks, Kevin

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-16 Thread Kevin Walzer
with a slight accent. I'm a native Tcl developer, for better or worse.) --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: GUI:-please answer want to learn GUI programming in python , how should i proceed.

2013-12-16 Thread Kevin Walzer
ment community. In other words, you are not handing the ball off to a 90-pound weakling if you need to call into Tcl from Python via Tkinter. ;-) --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Packaging a proprietary Python library for multiple OSs

2013-12-06 Thread Kevin Walzer
On 12/5/13, 10:50 AM, Michael Herrmann wrote: On Thursday, December 5, 2013 4:26:40 PM UTC+1, Kevin Walzer wrote: On 12/5/13, 5:14 AM, Michael Herrmann wrote: If your library and their dependencies are simply .pyc files, then I don't see why a zip collated via py2exe wouldn't wor

Re: Packaging a proprietary Python library for multiple OSs

2013-12-05 Thread Kevin Walzer
On 12/5/13, 10:50 AM, Michael Herrmann wrote: As I said, I need to make my *build* platform-independent. cx_Freeze is platform independent, but I'm not sure if it generates libraries or simply executables. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin

Re: Packaging a proprietary Python library for multiple OSs

2013-12-05 Thread Kevin Walzer
platforms. Obviously this point is moot if your library includes true compiled (C-based) extensions. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Getting the Appdata Directory with Python and PEP?

2013-12-02 Thread Kevin Walzer
ed to do it myself as I stated in the OP:) This module appears to simply use hard-coded paths on Unix/Linux and OS X--not much to learn there, except which paths to code. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com --

Re: Suggest an open-source issue tracker, with github integration and kanban boards?

2013-11-17 Thread Kevin Walzer
embers; as well as related analytics. Thanks for all suggestions! =) Not written in Python, but Fossil (http://www.fossil-scm.org/) offers an all-in-one, lightweight DCVS/issue-tracking/wiki/blog package. Written the author of SQLite. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by

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

2013-10-23 Thread Kevin Walzer
upside to it for my apps. As long as 2.7 is supported, I'll probably continue to use it. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Screenshots in Mac OS X

2013-10-22 Thread Kevin Walzer
On 10/22/13 8:19 PM, Pratik Mehta wrote: Hey Kevin, Thanks for reverting. I know about the "screencapture" function and the parameters available. But, how would I take the user input, as in, that is just command-line, as soon as I execute the program, it will take whatever kind of

Re: Screenshots in Mac OS X

2013-10-22 Thread Kevin Walzer
On 10/22/13 6:08 PM, Kevin Walzer wrote: On 10/22/13 4:15 PM, Pratik Mehta wrote: Anyone there to help me out??? import os os.system('screencapture', 'foo.png') ...and see 'man screencapture' for options. I leave setting up a Tkinter GUI with proper key bi

Re: Screenshots in Mac OS X

2013-10-22 Thread Kevin Walzer
On 10/22/13 4:15 PM, Pratik Mehta wrote: Anyone there to help me out??? import os os.system('screencapture', 'foo.png') -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Kevin Walzer
On 10/17/13 6:11 PM, Chris Angelico wrote: On Fri, Oct 18, 2013 at 8:50 AM, Kevin Walzer wrote: I've worked in marketing, editing, technical writing, and development, and at no place I have ever worked would such behavior be greeted with anything but immediate termination. That'

Re: Sexism in the Ruby community: how does the Python community manage it?

2013-10-17 Thread Kevin Walzer
culture that pervades so much of tech. A bit off-topic perhaps, for which I apologize, but I've been following the whole "sexism in tech" subject with increasing disgust and dismay, and I wanted to strongly protest against it. --Kevin -- Kevin Walzer Code by Kevin/Mobile Code by Kevin http://www.codebykevin.com http://www.wtmobilesoftware.com -- https://mail.python.org/mailman/listinfo/python-list

Re: Python GUI?

2013-09-13 Thread Kevin Walzer
platform-specific solutions but no cross-platform API) and HTML display (a few extensions but no standard widget set). I've stayed with Tkinter because it fits my brain the best. Old complaints about it being ugly or limited no longer hold water. --Kevin -- Kevin Walzer Code by Kevin/M

Re: Minions are Python Powered!

2013-08-04 Thread Kevin MacPhail
This statement might be more true than you realize. I can't speak for the tools Blue Sky uses for their films, but when the studio I worked at created the "Minion Mayem" ride for Universal Orlando we used a number of tools that relied heavily on Python for everything from character rigging to rend

Re: Simple Python script as SMTP server for outgoing e-mails?

2013-08-03 Thread Kevin Walzer
On 8/1/13 10:15 AM, Gilles wrote: I already have a static IP, so the issue is more that remote MTAs might not accept connections from MTAs running on users' PC instead of ISP's. For what it's worth, that hasn't been my experience. -- Kevin Walzer Code by Kevin/Mobil

Re: how to package embedded python?

2013-07-29 Thread Kevin Walzer
n installed, as most of my users won't have it. is it actually a requirement that they first install python? (cuz it does work then) Have you looked at these docs? http://docs.python.org/2/extending/embedding.html Lots of other hits on Google for ""embedding Python in C app.&q

Re: Cross-Platform Python3 Equivalent to notify-send

2013-07-27 Thread Kevin Walzer
On 7/27/13 6:58 AM, Devyn Collier Johnson wrote: Linux systems with the proper software can use the "notify-send" command. Is there a cross-platform Python3 equivalent? Mahalo, Devyn Collier Johnson devyncjohn...@gmail.com http://pythonhosted.org/gntp/ ? -- Kevin Walzer Code by Ke

  1   2   3   4   5   6   7   8   >