Capturing screenshots and recording audio in an ongoing basis, and submitting data to a RESTFul API

2024-10-22 Thread Jacob Kruger via Python-list
ince the number of target machines could easily be enough to use up a lot of bandwidth, etc., so, what we are looking into at the moment relates to only triggerring recordings at certain times on certain machines, in between. Thanks in advance --- Jacob Kruger +2782 413 4791 "Resista

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-04 Thread Jacob Kruger via Python-list
the folder/directory containing the code and the virtual environment seemed to be causing these errors/issues, specific to altgraph, which doesn't really make sense to me, but, it's now working, so, will archive this to memory, for later reference. Jacob Kruger +2782 413 4791 &quo

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-03 Thread Jacob Kruger via Python-list
Ok, last update for now - checked out the following page on pyinstaller.org, and, ended up posting to the mailing list, so, let's see: https://pyinstaller.org/en/latest/when-things-go-wrong.html Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..."

Re: Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-04-01 Thread Jacob Kruger via Python-list
as convenient, and, still wondering what changed here. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/31 14:51, Barry wrote: On 31 Mar 2024, at 13:24, Jacob Kruger via Python-list wrote: pkg_resources.DistributionNotFound: The

Trying to use pyinstaller under python 3.11, and, recently started receiving error message about specific module/distribution

2024-03-31 Thread Jacob Kruger via Python-list
ywin32 has caused an issue? Should I try installing python 3.12 version instead and see if it changes? Also, if relevant, while running under latest up-to-date version of windows 11 64 bit, have in any case enabled case-sensitivity on the folder I store all my python code in, just in case. TIA -- Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-07 Thread Jacob Kruger via Python-list
prefer to work via classes, modules, etc. at runtime, but this was more or less mostly testing, which then caused confusion/interference on my side...LOL! Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/07 03:55, Grant Edwards via Python-l

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
Ok, Ethan, that makes sense - I generally work with modules in folders, etc., but, this was just test code, but, 'see' if I instead import scoping2 as sc2, and then refer to sc2.dt_expiry and sc2.do_it, then it does operate as it should - thanks, again. Jacob Kruger +278

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
, via command line - generally working with flask, and/or other forms of command line interaction, most of the time. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 17:39, Roel Schroeven via Python-list wrote: Op 6/03/2024 om 13:55 schre

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
nt(dt_expiry) 1970-01-01 00:00:00+00:00 >>> print(id(dt_expiry)) 1808577867152 >>> ---end session--- As in, the two different ID values are being returned outside and inside the function, whereas, if I included that bit inside the interpreter while typing code manually, chances are th

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
ss? So, yes, know this comes across like some form of a scam/joke, or list-garbage, since it doesn't make any sense to me at all, but still just wondering if missing something, or should I shift over to 3.12 to see if if works differently, or just try reinstalling 3.11 from scratch, or should I re

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
e function? Unless this is something that changed from 3.11 to 3.12 - since that snippet is more or less referring to 3.12, but, don't think it was changed in any way? Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/06 14:5

Re: Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-06 Thread Jacob Kruger via Python-list
from scratch seems to then ignore the global scope specified in the first line inside the function? Hope this makes more sense Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." On 2024/03/05 20:23, dn via Python-list wrote: Jacob, Please reduce the prob

Variable scope inside and outside functions - global statement being overridden by assignation unless preceded by reference

2024-03-05 Thread Jacob Kruger via Python-list
anks if you have any ideas/thoughts on the matter Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-14 Thread Jacob Kruger via Python-list
- the one included here in flet seemed 'nicer': https://beeware.org/project/projects/libraries/toga/ But, haven't taken time to really take it much further than just a bit of playing around so far. Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile.

No current way to just compile flet code into truly native packages for smart phones, etc.?

2023-11-13 Thread Jacob Kruger via Python-list
flet.dev/docs/guides/python/deploying-web-app/progressive-web-apps/> -- Jacob Kruger +2782 413 4791 "Resistance is futile!...Acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: SQL rollback of multiple inserts involving constraints

2023-11-10 Thread Jacob Kruger via Python-list
Think performing a session/transaction flush after the first two inserts should offer the workaround before you've committed all transaction actions to the database finally: https://medium.com/@oba2311/sqlalchemy-whats-the-difference-between-a-flush-and-commit-baec6c2410a9 HTH Jacob K

Python 3.11.5 Pip Issue

2023-09-14 Thread Jacob Keeler via Python-list
I downloaded Python 3.11.5, and there was nothing in the “Scripts” file, and there was no Pip. I would like to know why. Thank you, Jacob -- https://mail.python.org/mailman/listinfo/python-list

Re: Android APK

2023-01-25 Thread jacob kruger
Beeware is the only one I have tried out: https://beeware.org/ Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." On 2023/01/25 22:55, Jules Tillinghast wrote: Is there a good python library for converting python3 to android APK -- https://mail.

Re: Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-08 Thread jacob kruger
ering forms of low-level monitoring for UI elements, but, this is not really related to initial task, but, could almost relate to forms of non-visual gaming interfaces, for blind/VI individuals - I am myself 100% blind, but, that's not really relevant in this context. Stay well Ja

Recommendations in terms of threading, multi-threading and/or asynchronous processes/programming? - Sent Mail - Mozilla Thunderbird

2023-01-06 Thread jacob kruger
, or might roll back to 3.10 if relevant, but, main thing is just want to get an idea of what's simplest to make use of in this context? Thanks in advance -- Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." -- https://mail.python.org/mailman/

Initial introduction

2022-12-07 Thread jacob kruger
-time python developer nowadays, and, when it comes to web development in this context, I work with either flask or django, but anyway. Regards -- Jacob Kruger +2782 413 4791 "Resistance is futile...but, acceptance is versatile..." -- https://mail.python.org/mailman/listinfo/python-list

Re: gmpy2 problem

2018-11-05 Thread jacob m
Sorry Rhodri, my gmail set your email as default recipient when I was responding, I forgot to change that. Sorry for that Regards On Mon, 5 Nov 2018 at 13:06, Rhodri James wrote: > Jacob, please reply to the list, not to me personally. As I said, I > have no idea about gmpy2 or pip,

gmpy2 problem

2018-11-01 Thread jacob m
Hi guys I have some problems with gmpy2 module installation - pip install gmpy2 doesn't work for me [image: image.png] How to fix it? Regards -- https://mail.python.org/mailman/listinfo/python-list

Re: zpifile.py error - no crc 32 attribute

2018-08-24 Thread jacob m
On 2018-08-22 23:43, jacob m wrote: > > " import zlib > > print(zlib.__file__)" > > > > When I don't have the zlib uploaded to my Python3.7 library, I have the > > following error: > > "Traceback (most recent call last): > >File "

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
2 August 2018 at 23:09, Ashok Arora wrote: > Test this in the interpreter:- > > import zlib > zlib.__file__ > > It will return the location of zlib module. > > On 8/22/18, jacob m wrote: > > Hi, > > " Is there perhaps a different zlib on > >

Re: zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
0 newly installed, 0 to remove and 0 not upgraded." Regards On 22 August 2018 at 13:12, jacob m wrote: > Hi guys, > I have a problem with zipfile and zlib module, and hope to get some help. > > That's my error: > "import zipfile > File "/home/lib/pytho

zpifile.py error - no crc 32 attribute

2018-08-22 Thread jacob m
Hi guys, I have a problem with zipfile and zlib module, and hope to get some help. That's my error: "import zipfile File "/home/lib/python3.7/lib/python3.7/zipfile.py", line 19, in crc32 = zlib.crc32 AttributeError: module 'zlib' has no attribute 'crc32' " I have no idea what to do wi

Re: New to programming and asking about accessibility with jaws screen reader.

2016-07-24 Thread Jacob Kruger
Presume you're talking about python idle IDE? Forget it, and, like said, I use edSharp programmers text editor, and work from command line/console when want to test/run my code. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Resistance is futile, but, acceptance is versati

Re: New to programming and asking about accessibility with jaws screen reader.

2016-07-24 Thread Jacob Kruger
What part is not accessible? Ask since while haven't really gone past 3.4 and 3.5.1, at times, I generally work with specific text/code editors, and the command line window, and this works fine for me with both NVDA, and jaws 17 at times. Stay well Jacob Kruger Blind Biker Skype: Bl

Re: Resources/pointers for writing maintable, testable Python

2016-05-19 Thread Jacob Scott
Indeed, I skimmed the TOC for Test-Driven Development with Python and it does look to be rather Django-centric (which makes it a bit less helpful to me). I will take a look at "Testing Python: Applying Unit Testing, TDD, BDD and Acceptance Testing"! Thanks, Jacob On Thu, May 19, 2016

Re: Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Jacob Scott
) tend to be a bit lower level (utf-8 str) than what I'm focused on (maintainable and testable classes, functions, modules, etc). Thanks for the pointer to Code Like A Pythonista and the feedback on 2.7 vs 3! Jacob On Wed, May 18, 2016 at 5:55 PM, Ben Finney wrote: > Jacob Scott

Resources/pointers for writing maintable, testable Python

2016-05-18 Thread Jacob Scott
all of what I'm looking for, include - PEP-8 and PEP-20 - The Hitchhiker's Guide to Python <http://docs.python-guide.org/en/latest/> - Effective Python <http://www.effectivepython.com/> I'd appreciate any pointers to resources I might have missed

Re: Help

2016-02-28 Thread jacob Kruger
tence") s.replace(",", "") #do this for all common punctuation characters l = s.split(" ") #space is actually default s2 = input("enter word") i = l.index(s2) print("Your word is at position " + str(i+1) + " in the sentence") #end code That&#

Re: Installing pygame

2016-01-21 Thread jacob Kruger
pyGame under 3.5.1: https://skellykiernan.wordpress.com/2015/01/04/python-pygame-install/ That was after copying the .whl file into the./scripts directory under python 3.5.1 installation path. HTH Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space jani

Re: Hello.

2016-01-17 Thread jacob Kruger
Environment variables pointing to c:\python..? (needs to point to actual installation directory) Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-16 11:41 PM, Hmood Js wrote: cmd won't recognize python

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
#x27; if can get hold of that module for 2.7, and take it from there. Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-08 7:07 AM, Bernardo Sulzbach wrote: On Fri, Jan 8, 2016 at 1:54 AM, jacob Kruger wrote

Re: PyFladesk :: create GUI apps by Python and HTML, CSS and Javascript.

2016-01-07 Thread jacob Kruger
urllib2, and under 3.4, pip install can't find it either..? TIA Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." On 2016-01-08 1:08 AM, Saeed Moqadam wrote: create multi platform desktop application by using P

Python IDLE won't start

2015-09-27 Thread Jacob Chaar
Hi there, So, I download Python 3.5.0 and I while I execute the Python IDLE, it won't start up. Also, I try to open the python command line and a message error pop up. If you can help me, it will be really appreciate. Regards, Jacob Chaar -- https://mail.python.org/ma

Help with Flask (database stage of the Flask Mega Tutorial by Miguel Grinberg)

2015-08-14 Thread Jacob MacRitchie
http://blog.miguelgrinberg.com/post/the-flask-mega-tutorial-part-iv-database I've just finished making db_create.py (you can ctrl+f to it) and am getting... from migrate.versioning import api ImportError: No module named 'migrate' ...I diffed everything at this stage of the tutorial so I know I

Re: Writing a python editor for blind developers

2015-07-06 Thread Jacob Kruger
help with feedback, etc., and can also put you in touch with various other blind developers who do also work with python, etc. For example, AFAIK, the primary blind programmers mailing list is progra...@freelists.org, and besides me, there are a few other python developers on that list as well. Stay we

Re: Automation of Windows app?

2015-03-22 Thread Jacob Kruger
omatically, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
- Original Message - From: bink...@mweb.co.za To: ja...@blindza.co.za Cc: python-list@python.org Sent: Wednesday, March 11, 2015 4:10 PM Subject: RE: Re: I want to get involved with Python! > Jacob, thanks for replying. The IT job market is s specific in what t

Re: I want to get involved with Python!

2015-03-11 Thread Jacob Kruger
ure about industry specific use of different languages/platforms. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessible tools

2015-02-22 Thread Jacob Kruger
this page seems to offer enough detail relating to PDB, to start off with anyway: https://docs.python.org/3/library/pdb.html Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Accessible tools

2015-02-20 Thread Jacob Kruger
rd UI controls, and make sure tab index/order is suitable/relevant at times, etc. etc. As in, I think we'd primarily want to avoid having to use a mouse at all if possible, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space j

Re: Accessible tools

2015-02-19 Thread Jacob Kruger
gging code execution, etc. - at moment, primarily either print out information to console, during dev process, or at times invoke sound effects/TTS output to keep track, or even, occasionally use pickle to store images of objects for later review, etc., but anyway... Stay well Jacob Kruger Blind Biker Skyp

Re: Accessible tools

2015-02-19 Thread Jacob Kruger
couple of other topic specific ones, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: "Bryan Duarte" To: Sent: Wednesday, February 18, 2015 7:43 P

Re: help() function screen output

2015-01-31 Thread Jacob Kruger
gh to command line prompt before, or something, since am 99.9% sure always just used key to advance one screen at a time before - who knows, but, main thing is, yes, space bar does what I want it to. Thanks Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the

Re: help() function screen output

2015-01-31 Thread Jacob Kruger
- Original Message - From: "Steven D'Aprano" Newsgroups: comp.lang.python To: Sent: Saturday, January 31, 2015 11:13 AM Subject: Re: help() function screen output Jacob Kruger wrote: Using python 3.4 32 bit on windows 7 64 bit machine, and when, for example, type in

help() function screen output

2015-01-31 Thread Jacob Kruger
information, but, when, for example, hit enter key, it merely populates one more line of info, each time - under pythn 2.7, it seemed to render one full screen of info each time. Is there rather a different keystroke should use to invoke that, or is this a python 3.4 feature/issue? TIA Jacob Kruger

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
hon implementation - you're right that should have just redone that part of it ;) Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: "Dennis Lee Bieber" To: Sent: Thursday, January 15, 2015 4:22 PM Subject: Re: [OT] Re: MySQL connections On Thu, 15 Jan 2015 13:48:34 +0200, "Jacob Kruger" declaimed the following: Agree with that, but, like said in prior e-mail, ju

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: "Chris Angelico" Cc: Sent: Thursday, January 15, 2015 2:33 PM Subject: Re: MySQL connections On Thu, Jan 15, 2015 at 10:59 PM, Jacob Kruger wrote: Tried generating .exe with both cx_freeze, and pyInstaller, and the code itself, and both v

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
and then copy .exe back to this primary machine, then get same error - think it must relate to something else on this machine, but can't track it down. Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: [OT] Re: MySQL connections

2015-01-15 Thread Jacob Kruger
- Original Message - From: "Peter Otten" <__pete...@web.de> To: Sent: Thursday, January 15, 2015 12:40 PM Subject: [OT] Re: MySQL connections Jacob Kruger wrote: However, if implement similar code - down to just trying to open a connection, wait a few seconds, a

Re: MySQL connections

2015-01-15 Thread Jacob Kruger
And, FWIW, if I compile the 2.7 version on the other machine where it works, in both code and compiled forms, and then copy .exe back to the main machine, same error message pops up, so must be something to do with machine's configuration, etc. Stay well Jacob Kruger Blind Biker

MySQL connections

2015-01-15 Thread Jacob Kruger
() #MySQLdb version import MySQLdb cn = MySQLdb.connect("localhost", "root", "", "import_test") time.sleep(5) cn.close() #end code Stay well (away from this machine ;) ) Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." -- https://mail.python.org/mailman/listinfo/python-list

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
happens, but, the moment I in fact try to then just close the connection, that's when error dialogue immediately pops up. Sorry - should also have mentioned the connection, cursor, etc. ec. all work fine under normal python interpreter, but anyway. Jacob Kruger Blind Biker Skype: BlindZA &

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
, but, the moment I in fact try to then just close the connection, that's when error dialogue immediately pops up. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From:

Re: Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
See answers below. Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: "Dennis Lee Bieber" The very first hit /I/ get is: https://social.technet.microsoft.com/Forums/wi

Python 2.7, on windows7 64 bit development machine, inconsistent issue on similar machines

2015-01-13 Thread Jacob Kruger
exc: s_exc = str(exc.args) #lbc.DialogShow(title="errorMessage", message=s_exc) print(s_exc) exc_type, exc_obj, tb = sys.exc_info() print(str(exc_obj)) print("line number: " + str(tb.tb_lineno)) #end of convertExport function #---end cod

unidecode

2015-01-12 Thread Jacob Kruger
slate' it into a string value, and will apparently try handle some forms of character substitution - but will play around with it a bit more, and let's see... Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet...

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
Thanks. Yes, sorry didn't mention 2.7, and, unfortunately in this sense, all of this will be running on windows machines. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
this on site, so had to work first with generating string values, and then handle executing those statements against a MySQL server later on using MySQLdb. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..."

Re: String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
which could possibly result in a whole bunch of different character sets, etc. being copied across, so it comes down to that while can't control sources of data, need to manipulate/work with it to make it useful on our side now. Thanks again Jacob Kruger Blind Biker Skype: BlindZA "Roger

String character encoding when converting data from one type/format to another

2015-01-07 Thread Jacob Kruger
copy/pasted strings from documents, with strange encoding, or something: #sample code line for binary encoding into string output s_values += "0x" + str(l_data[J][I]).encode("hex").replace("\\", "") + ", " TIA Jacob Kruger Blind Biker Skype:

Re: need some guidance on Python syntax smart editor for use with speech recognition

2015-01-05 Thread Jacob Kruger
also pretty much useless to me, but anyway. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: "Eric S. Johansson" To: Sent: Monday, January 05, 2015 8:18 PM Subj

Re: Why For Loop Skips the Last element?

2015-01-01 Thread Jacob Kruger
Not sure after quick skim/scan, but, I would generally use either for I in range(len(inlist)): or just for it in inlist, instead of using while, etc. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - O

Re: If One Line

2014-12-25 Thread Jacob Kruger
Ok, makes sense - just slipped same one line if: action bit of code inside a function, and worked fine. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: Skip Montana

Re: If One Line

2014-12-25 Thread Jacob Kruger
Ok, makes sense - just slipped same one line if: action bit of code inside a function, and worked fine. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Message - From: Skip Montana

Re: If One Line

2014-12-25 Thread Jacob Kruger
Actually more that in the interpreter, it's prompting me with ... as if I had left out a closing ) or something, but, suppose it could work fine in an actual imported bit of code? Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space

Re: If One Line

2014-12-25 Thread Jacob Kruger
One line assignment is ok, but, seems like you can't perform actions. #the following will work: I = 1 if True else 2 #but the following will generate an error: if I == 1: print("one") And, not sure if/how to work around that second one myself. Stay well Jacob Kruger Bl

Re: If One Line

2014-12-25 Thread Jacob Kruger
One line assignment is ok, but, seems like you can't perform actions. #the following will work: I = 1 if True else 2 #but the following will generate an error: if I == 1: print("one") And, not sure if/how to work around that second one myself. Stay well Jacob Kruger Bl

Re: Simple background sound effect playback

2014-12-21 Thread Jacob Kruger
, but let's see... Am not sure of redistribution licence either, and will need/want to test it on a couple of other types of machines. Stay well Jacob Kruger Blind Biker Skype: BlindZA "Roger Wilco wants to welcome you...to the space janitor's closet..." - Original Messa

RE: Simple background sound effect playback

2014-12-20 Thread Jacob Kruger
olume(1, 0) channel = pygame.mixer.Sound.play(song) time.sleep(1) #end code Will now just have to double-check/test compilation of something including something like this, using something like cx_freeze, etc., but, thanks again. Stay well Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilc

Re: Simple background sound effect playback

2014-12-17 Thread Jacob Kruger
self to be installed, or something. Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... - Original Message - From: Ian Kelly To: Python Sent: Wednesday, December 17, 2014 3:49 AM Subject: Re: Simple background sound

Simple background sound effect playback

2014-12-16 Thread Jacob Kruger
to compiling into executable, and main thing is would like to keep it simple... Suggestions? TIA Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

New member - 'odd' question

2014-12-11 Thread Jacob Kruger
e this? That's also why am posting this here - trying to figure out how to track down what's causing this odd behaviour. TIA Jacob Kruger Blind Biker Skype: BlindZA ...Roger Wilco wants to welcome you, to the space janitor's closet... -- https://mail.python.org/mailman/listinfo/python-list

Re: [Baypiggies] Class decorator to capture the creation and deletion of objects

2014-02-24 Thread Jacob Alheid
— Sent from Mailbox for iPad On Mon, Feb 24, 2014 at 8:49 PM, David Lawrence wrote: > If as according to the docs, there is no guarantee of __del__ being called, > anything that relies on that seems unsafe (depending on how robust one > needs the solutions to be). Solutions I've seen elsewhere

ipython and pyglet

2014-01-01 Thread Jacob Goodson
Hello! Has anyone here tried to get ipython to interact with the event loop for pyglet? If so, would you be willing to share come example code? I would like to be able to interactively code in pyglet, creating and updating objects while the program is running. Thanks! -- https://mail.python

Re: How do you refer to an iterator in docs?

2012-04-20 Thread Jacob MacDonald
On Friday, April 20, 2012 6:41:25 AM UTC-7, Roy Smith wrote: > In article <4f910c3d$0$29965$c3e8da3$54964...@news.astraweb.com>, > Steven D'Aprano wrote: > > > I refer you to your subject line: > > > > "How do you refer to an iterator in docs?" > > > > In documentation, I refer to an iterator

Re: can I overload operators like "=>", "->" or something like that?

2012-04-20 Thread Jacob MacDonald
On Thursday, April 19, 2012 11:09:52 PM UTC-7, Ben Finney wrote: > alex23 writes: > > > On Apr 20, 5:54 am, Jacob MacDonald wrote: > > > > > On Thursday, April 19, 2012 12:28:50 PM UTC-7, dmitrey wrote: > > > > can I somehow overload operators like &q

Re: can I overload operators like "=>", "->" or something like that?

2012-04-19 Thread Jacob MacDonald
On Thursday, April 19, 2012 12:28:50 PM UTC-7, dmitrey wrote: > hi all, > can I somehow overload operators like "=>", "->" or something like > that? (I'm searching for appropriate overload for logical implication > "if a then b") > Thank you in advance, D. I don't believe that you could overload t

Re: os.system()

2012-04-19 Thread Jacob MacDonald
On Thursday, April 19, 2012 11:09:22 AM UTC-7, Yigit Turgut wrote: > When I use os.system() function, script waits for termination of the > windows that is opened by os.system() to continue thus throwing errors > and etc. How can i tell Python to let it go and keep on with the next > execution afte

Re: with statement

2012-04-19 Thread Jacob MacDonald
On Thursday, April 19, 2012 10:15:23 AM UTC-7, Kiuhnm wrote: > A with statement is not at the module level only if it appears inside a > function definition or a class definition. > Am I forgetting something? > > Kiuhnm That sounds about right to me. However, I haven't really used with's very mu

Re: How do you refer to an iterator in docs?

2012-04-19 Thread Jacob MacDonald
On Thursday, April 19, 2012 5:21:20 AM UTC-7, Roy Smith wrote: > Let's say I have a function which takes a list of words. I might write > the docstring for it something like: > > def foo(words): >"Foo-ify words (which must be a list)" > > What if I want words to be the more general case of

Re: Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén > > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >

Re: Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
Sunday 22 January 2012 you wrote: > On Sun, Jan 22, 2012 at 12:08 PM, Jacob Hallén > > wrote: > > I have a problem which ought to have an obvious solution, but I haven't > > found one despite searching for many hours. The problem occurs on > > Windows. > >

Trouble with internationalized path under windows

2012-01-22 Thread Jacob Hallén
I have a problem which ought to have an obvious solution, but I haven't found one despite searching for many hours. The problem occurs on Windows. This is a version of my problem reduced to its essentials: I have a file foo.py:: import bar and a file bar.py : baz = 42 If I store these two fi

Paramiko Question

2011-11-03 Thread Jacob Abraham
self.transport.close() self.live = False def __del__(self): self.close() if __name__ == '__main__': a= Connection('ip_or_hostname', 'root', '') print a.execute('version') print a.execute('version'

Re: Efficient python 2-d arrays?

2011-01-20 Thread Jacob Biesinger
On Thu, Jan 20, 2011 at 12:48 PM, Dan Stromberg wrote: > On Thu, Jan 20, 2011 at 11:36 AM, Jake Biesinger > wrote: >>> Thanks for the great suggestions! >> >> On a related note, is there no way to efficiently sort a python array? >> >> > x = array('f', xrange(1000)) > x.sort() >>

Paramiko and Threading

2010-09-29 Thread Jacob Abraham
Hi, Could someone help me understand how to using threading along with paramiko. For some reason only one of two of the threads returns the output correctly. Some of the threads returns an empty string as command output, but no errors are thrown. My attempt is pasted below. regards, Jacob

Re: PiCloud Beta Release

2009-11-05 Thread Jacob Shaw
On Nov 1, 5:13 pm, Ken Elkabany wrote: > Hello, > > PiCloud has just released a Python library, cloud, which allows you to > easily offload the execution of a function to a cluster of servers > running on Amazon Web Services. As a beta product, we are currently > free to all users who sign up with

PyCon 2009: Call for sprint projects

2009-02-09 Thread Jacob Kaplan-Moss
s/. If you have any questions, feel free to contact me directly. Thank you very much, and happy coding! Jacob Kaplan-Moss -- http://mail.python.org/mailman/listinfo/python-list

deleting objects by finding all references and deleting?

2008-06-08 Thread Jacob Davis
Hi, I read in some earlier messages that an object in Python is only removed or freed from memory when all references to that object have been deleted. Is this so? If so, is there a way to get all of the references to an object, so that they may all be deleted, thus actually deleting the

Re: Code correctness, and testing strategies

2008-06-02 Thread Jacob Hallen
nasty bugs are found - the ones where your thinking went wrong but your implementation is correct. if the testers are busy tracking trivial bugs, your customers will find the nasty one. If you are lucky, they will tell you. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Code correctness, and testing strategies

2008-05-24 Thread Jacob Hallen
27;t think I'd buy software today unless I know that it has been built using TDD. Certainly I am ahead of the curve in this, but it won't be long before this will be required by skilled organisations buying software and sooner or later the rest of the world will follow. Getting into a TDD mindset is hard work, but those who succeed produce better software with less effort. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Re: Psyco alternative

2008-05-18 Thread Jacob Hallen
efactoring has been finished and the results look very good, there are still many months of work to do before the JIT can be used in production. Jacob Hallén -- -- http://mail.python.org/mailman/listinfo/python-list

Can't see variables declared as global in a function

2008-04-16 Thread Jacob Davis
Hi. I have a hundred lines of code in a module that declare some global variables inside a function so that those variables can be used by other functions. I want to import this module so that I can more easily debug by looking at the value of individual variables. But when I try to rea

Re: Module not found in script that was found in command-line interpreter. Possible Path issue?

2008-04-15 Thread Jacob Davis
On Apr 3, 2008, at 10:54 AM, Trent Mick wrote: > Jacob Davis wrote: >> I just installed the MySQLdb module and I have been able to get it >> to run in my command line interpreter. I am running Mac Leopard, >> and Python 2.5. >> I have tested importing and actually c

  1   2   3   >