Is this a bug?

2013-07-15 Thread Jack Bates
Hello, Is the following code supposed to be an UnboundLocalError? Currently it assigns the value 'bar' to the attribute baz.foo foo = 'bar' class baz: foo = foo -- http://mail.python.org/mailman/listinfo/python-list

Re: Is this a bug?

2013-07-16 Thread Jack Bates
On 15/07/13 09:13 AM, Joshua Landau wrote: On 15 July 2013 16:50, Jack Bates wrote: Hello, Is the following code supposed to be an UnboundLocalError? Currently it assigns the value 'bar' to the attribute baz.foo foo = 'bar' class baz: foo = foo If so,

Build and runtime dependencies

2012-12-20 Thread Jack Silver
: expat bzip2 gdbm openssl libffi zlib tk sqlite valgrind bluez anything ? Is there anything I need to install on the client too ? Thanks Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: Guide to: Learning Python Decorators

2012-02-12 Thread Jack Diederich
just google "jack diederich decorators" it costs nothing and you get a free pycon talk out of it. -Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: OAuth 2.0 implementation

2012-03-26 Thread Jack Diederich
andard is just whatever people are actually doing. It seems less hostile when you think of it as vigorous documentation instead of protocols set in stone. -Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: Generator Frustration

2011-06-04 Thread Jack Diederich
hile the idea of a list is simpler than the idea of an iterable (and easier to get your head around) iterables promise less and that makes them more flexible and easier to composite. -Jack -- http://mail.python.org/mailman/listinfo/python-list

why the following python program does not face any concurrency problems without synchronize mechanism?

2011-07-09 Thread smith jack
from threading import Thread def calc(start, end): total = 0; for i in range(start, end + 1): total += i; print '--result:', total return total t = Thread(target=calc, args=(1,100)) t.start() I have run this program for many times,and the result is alw

Any suggestion to start more threads at the same time?

2011-07-28 Thread smith jack
I start many threads in order to make the work done, when the concurrent number is set to 300, all thing just works fine, but when the number is set to 350 or higher, error just comes out? what's wrong ? the error info is just as follows: failed to start . I am confused, does this have something

Identical descriptor value, without leaking memory?

2011-07-29 Thread Jack Bates
How can you get a descriptor to return an identical value, each time it's called with the same "instance" - without leaking memory? #!/usr/bin/env python class descriptor: class __metaclass__(type): def __get__(self, instance, owner): ... class owner: descriptor = descriptor inst

python import error, what's wrong?

2011-08-02 Thread smith jack
I am using pydev plugin in eclipse, all things works just as well but now i have confronted with a confusing problem, that is i can import a module write by myself successfully, but when i try to run this program, error just shows up, what's wrong? the directory structure is as follows: src org

How to define repeated string when using the re module?

2011-08-02 Thread smith jack
if it's for a single character, this should be very easy, such as c{m,n} the occurrence of c is between m and n, if i want to define the occurrence of (.*?) how should make it done? ((.*?)){1,3} seems not work, any method to define repeat string using python regex? -- http://mail.python.org/

how to sort a hash list without generating a new object?

2011-08-02 Thread smith jack
the source code is as follows x={} x['a'] = 11 x['c'] = 19 x['b'] = 13 print x tmp = sorted(x.items(), key = lambda x:x[0])# increase order by default, if i want to have a descending order, what should i do? # after sorted is called, a list will be generated, and the hash list x is not chang

what is the advantage of Django when comparing with LAMP and J2EE platform?

2011-08-02 Thread smith jack
There are so many choice to do the same thing, so is there any special advantage Django brings to user? -- http://mail.python.org/mailman/listinfo/python-list

Re: with statement and context managers

2011-08-02 Thread Jack Diederich
ntext is short it is clearer and time saving to _not_ alias it. If the context is sufficiently complicated then it is worth it to make the complex code into a first class context manager - contextlib.contextmanager makes this very easy and extremely readable. -Jack -- http://mail.python.org/mailman/listinfo/python-list

Replace all references to one object with references to other

2011-08-05 Thread Jack Bates
I have two objects, and I want to replace all references to the first object - everywhere - with references to the second object. What can I try? -- http://mail.python.org/mailman/listinfo/python-list

can virtualenv run without the main installation?

2011-08-06 Thread smith jack
At first i have a python environment, after using virtualenv test command, a new environment named test is created, in that directory have some of the executable commands such as python.exe, so can i program without the main installation of python? -- http://mail.python.org/mailman/listinfo/python

Re: can virtualenv run without the main installation?

2011-08-06 Thread smith jack
env create by virtualenv will refer to the main env, how did it find the main env, is there any configuration files, if yes, where is it? 2011/8/6 smith jack : > At first i have a python environment, after using virtualenv test > command, a new environment named test is created, in that dir

How to make the program support communication behind NAT device?

2011-08-06 Thread smith jack
The subnet behind my router is 192.168.1.0/24, my pc ip is 192.168.1.9, the server written with python is hosted on 192.168.1.3 on port 1033, i can connect to this server from my pc But cannot connect to this server when outside of this subnet? why? I have made port translate on router, that is 1

how to separate a list into two lists?

2011-08-06 Thread smith jack
if a list L is composed with tuple consists of two elements, that is L = [(a1, b1), (a2, b2) ... (an, bn)] is there any simple way to divide this list into two separate lists , such that L1 = [a1, a2... an] L2=[b1,b2 ... bn] i do not want to use loop, any methods to make this done? -- http://mai

module import error, what's wrong?

2011-08-07 Thread smith jack
from common.URLTool import URLTool tool = URLTool() Traceback (most recent call last): File "E:\workspace\url\test.py", line 7, in ? from common.URLTool import URLTool ImportError: No module named common.URLTool URLTools is a class write by myself, it works well ,but cannot be imported in t

Cookie Problem

2011-08-10 Thread Jack Hatterly
(str(cookie['lastvisit']), '=')[1], '.', '')[:-1] # load() parses the cookie string cookie.load(cookie_string) # Use the value attribute of the cookie to get it lastvisit = float(cookie['lastvisit'].value) for morsel in cookie: print '', morsel, '=', cookie[morsel].value print '' for key in cookie[morsel]: print key, '=', cookie[morsel][key], '' print '' print '' TIA, Jack -- http://mail.python.org/mailman/listinfo/python-list

RE: Cookie Problem

2011-08-11 Thread Jack Hatterly
stvisit = float(cookie['lastvisit'].value) for morsel in cookie: print '', morsel, '=', cookie[morsel].value print '' for key in cookie[morsel]: print key, '=', cookie[morsel][key], '' print '' # for key, morsel in cookie.iteritems(): # print "key: %s\n" % key # print "morsel: %s\n\n" % morsel print '' and it does the same thing: namely, when I clear out the cookie, it creates a cookie but apparently not with the data I'm trying to push and when I refresh it displays all the keys without any morsel values. What do? TIA, Jack -- http://mail.python.org/mailman/listinfo/python-list

Problem reading HTTP_COOKIE

2011-08-12 Thread Jack Hatterly
print os.environ.get('HTTP_COOKIE') print '' print '' if __name__ == "__main__": parse_cookie() It prints "None". However, when I look in my browser's cookie jar, there is a cookie "www.my_site.com" where m

RE: Problem reading HTTP_COOKIE

2011-08-12 Thread Jack Hatterly
cookiedict[key] = c.get(key).value print c print 'Content-Type: text/html\n' print '' print '' if __name__ == "__main__": parse_cookie() You see, every time when the cookie is read it comes back None which gets translated to '' and then the cookie is re-baked. *NOT* what I want!! I can see the cookie in my browser. TIA, Jack -- http://mail.python.org/mailman/listinfo/python-list

RE: Problem reading HTTP_COOKIE

2011-08-12 Thread Jack Hatterly
Chris, I finally got a script that works. Thanks for trying! Jack #!/usr/bin/env python import string import os import datetime, Cookie, random import time # The returned cookie is available in the os.environ dictionary cookie_string = os.environ.get('HTTP_COOKIE') if not coo

How to use python environment created using virtualenv?

2011-08-15 Thread smith jack
I have created a python environment using virtualenv, but when i want to import such environment to PyDev, error just appears, it tells there should be a Libs dir, but there is no Libs DIr in the virtual envronment created using virtualenv, what should i do if i want to use this virtual environment

Anyone here can do a comparation between Djang and RoR

2011-08-16 Thread smith jack
what is the advantage of Django over RoR:) -- http://mail.python.org/mailman/listinfo/python-list

How to install easy_install on windows ?

2011-08-16 Thread smith jack
it needs read registry, but the python i used is extracted from .zip, so there is no record in the registry, what should i do in order to install easy_install for my python environment? -- http://mail.python.org/mailman/listinfo/python-list

Failed to create virtual environment when using --relocatable option, what's wrong?

2011-08-16 Thread smith jack
all things works well without --relocatable option, the error info when using --relocatable option is as follows : F:\PythonEnv\djangoEnv>virtualenv f:\PythonEnv\djangoEnv2 --relocatable PYTHONHOME is set. You *must* activate the virtualenv before using it The environment doesn't have a file f:\P

why i cannot import djang?

2011-08-16 Thread smith jack
this package is already in the site-packages directory, but i cannot import it , it's really confusing ... -- http://mail.python.org/mailman/listinfo/python-list

Some warning appears when installing virtualenv, does it matters?

2011-08-17 Thread smith jack
the warning is just as follows E:\Tools>pip install virtualenv Downloading/unpacking virtualenv Downloading virtualenv-1.6.4.tar.gz (1.9Mb): 1.9Mb downloaded Running setup.py egg_info for package virtualenv warning: no previously-included files matching '*.*' found under directory ' do

How to build python using visual studio 2005?

2011-08-17 Thread smith jack
anybody here have build it correctly? how to make a msi file just as the official site did? is there any detailed tutorial online? -- http://mail.python.org/mailman/listinfo/python-list

Re: lists and for loops

2011-08-17 Thread Jack Trades
ce to the slot that value is stored in. To update the numbers list you would want something like this: numbers = [1, 2, 3, 4, 5] for n in range(len(numbers)): numbers[n] += 5 print numbers Alternatively if you didn't need to update the numbers list you could make a new list like this: [n

Measure the amount of memory used?

2011-08-18 Thread Jack Bates
I wrote a content filter for Postfix with Python, https://github.com/jablko/cookie It should get started once, and hopefully run for a long time - so I'm interested in how it uses memory: 1) How does the amount of memory used change as it runs? 2) How does the amount of memory used change as I

is there any principle when writing python function

2011-08-23 Thread smith jack
i have heard that function invocation in python is expensive, but make lots of functions are a good design habit in many other languages, so is there any principle when writing python function? for example, how many lines should form a function? -- http://mail.python.org/mailman/listinfo/python-li

why i cannot invoke python script using command line?

2011-08-23 Thread smith jack
but i can invoke it in eclipse, what's wrong? the script refered to another python script in eclipse project. f:\project\src\a.py f:\project\src\lib\b.py there is such lines in a.py from lib import b i can invoke a.py very well in eclipse but failed when using python f:\project\src\a.py, what's

Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
I'm writing a Scheme interpreter and I need to be able to create and return a Python function from a string. This is a port of another Scheme interpreter I wrote in Scheme. What I'm trying to do looked like this: (define (scheme-syntax expr) (hash-table-set! global-syntax (car expr) (eval (cad

Re: Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
On Mon, Aug 29, 2011 at 12:30 PM, Rob Williscroft wrote: > Jack Trades wrote in > > ... I wanted to allow the user to manually return the > > function from the string, like this: > > > > a = exec(""" > > def double(x): > > return x * 2

Re: Returning a value from exec or a better solution

2011-08-29 Thread Jack Trades
On Mon, Aug 29, 2011 at 5:50 PM, Arnaud Delobelle wrote: > > Hi Jack, > > Here is a possible solution for your problem (Python 3): > > > >>> class CapturingDict(dict): > ... def __setitem__(self, key, val): > ... self.key, self.val = key, val >

Re: Returning a value from exec or a better solution

2011-08-30 Thread Jack Trades
On Tue, Aug 30, 2011 at 2:37 AM, Rob Williscroft wrote: > > That's brilliant and works flawlessly. Thank you very much! > > If an impementation (as you say up thread) can populate globals > or locals with whatever they want, then how do you know that last > item added was the function definitio

Re: Returning a value from exec or a better solution

2011-08-30 Thread Jack Trades
On Tue, Aug 30, 2011 at 1:19 PM, Ethan Furman wrote: > > I spoke a bit too soon with the "works flawlessly" post. In addition to >> your issue, there is also the problem that supplying an empty environment >> does not allow the user to call necessary functions (like scheme_eval). >> > > > So, ju

Re: Problems with read_eager and Telnet

2011-02-28 Thread Jack Diederich
cket and stores the plain text in a buffer to return from all the read_* commands. read_eager() returns the plain text that has already been read from the socket. That might be a partial line. It won't try to read from the socket to get a full line. That's why it is fast, because it never does I/O. -Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with read_eager and Telnet

2011-02-28 Thread Jack Diederich
by > many consequent lines all together out of a single read_eager() call? Yes. read_eager() will never actually read from the socket, if it has any data it has already read & processed it will return those. If you call it enough times it will just start returning empty strings because it never asks the socket to read & wait for new data. -Jack -- http://mail.python.org/mailman/listinfo/python-list

Re: Problems with read_eager and Telnet

2011-02-28 Thread Jack Diederich
On Mon, Feb 28, 2011 at 12:13 PM, Roberto Inzerillo wrote: > Yes. read_eager() will never actually read from the socket, if it has >> >> any data it has already read & processed it will return those.  If you >> call it enough times it will just start returning empty strings >> because it never ask

Re: Reading/Writing files

2011-03-18 Thread Jack Trades
27;s an example I just ran... >>> import os >>> os.getcwd() '/media/DATA/code/lispy/liSpy' The folder that is returned from os.getcwd() is the folder that "open" will use. You can specify another folder by giving the full path. open("/full/path/to/file.txt

Re: Reading/Writing files

2011-03-18 Thread Jack Trades
On Fri, Mar 18, 2011 at 4:56 PM, Jon Herman wrote: > Jack, > > thanks. > > Alright, so what I did is create a file called hello.txt with a single line > of text in there. I then did the following: > > f="fulldirectory\hello.txt" (where fulldirectory is of course

Re: Reading/Writing files

2011-03-18 Thread Jack Trades
On Fri, Mar 18, 2011 at 4:59 PM, Jack Trades wrote: > > > On Fri, Mar 18, 2011 at 4:56 PM, Jon Herman wrote: > >> Jack, >> >> thanks. >> >> Alright, so what I did is create a file called hello.txt with a single >> line of text in there. I then did

Re: Reading/Writing files

2011-03-18 Thread Jack Trades
On Fri, Mar 18, 2011 at 5:21 PM, Jon Herman wrote: > Folks, > > thanks for the many responses! Specifying the full file name (and not using > parentheses when inappropriate, thanks Jack :)) I am now happily > reading/writing files. > > My next question: what is the best w

Reliably call code after object no longer exists or is "unreachable"?

2011-04-27 Thread Jack Bates
In Python, how can you reliably call code - but wait until an object no longer exists or is "unreachable"? I want to ensure that some code is called (excluding some exotic situations like when the program is killed by a signal not handled by Python) but can't call it immediately. I want to wait un

"raise (type, value, traceback)" and "raise type, value, traceback"

2011-05-02 Thread Jack Bates
Hi, anyone know why these two statements aren't equivalent? raise (type, value, traceback) raise type, value, traceback -- http://mail.python.org/mailman/listinfo/python-list

Re: turn monitor off and on

2011-05-20 Thread Jack Krieger
> def turnOffMonitor(): > SC_MONITORPOWER = 0xF170 > win32gui.SendMessage(win32con.HWND_BROADCAST, > win32con.WM_SYSCOMMAND, SC_MONITORPOWER, 2) This code does not return control to you, so programm still locked. In my opinion it due broadcasting message. But I do not know how to send message

Re: This newsgroup (comp.lang.python) may soon be blocked by Google Groups

2018-02-01 Thread Jack Dangler
On 02/01/2018 12:06 PM, alister via Python-list wrote: On Thu, 01 Feb 2018 09:01:35 -0800, superchromix wrote: Our own programming discussion newsgroup, located at comp.lang.idl-pvwave, started receiving spam messages several months ago. Two weeks ago, access to comp.lang.idl-pvwave was bloc

Re: How to make Python run as fast (or faster) than Julia

2018-02-22 Thread Jack Fearnley
ans you actually see the performance of *calculation*. I realize that this thread is about benchmarking and not really about generating fibonacci numbers, but I hope nobody is using this code to generate them on a 'production' basis, Fibonacci numbers, any linearly recursive sequence f

Re: How to make Python run as fast (or faster) than Julia

2018-02-23 Thread Jack Fearnley
On Thu, 22 Feb 2018 17:13:02 -0800, Rick Johnson wrote: > On Thursday, February 22, 2018 at 1:55:35 PM UTC-6, Jack Fearnley wrote: > [...] >> I realize that this thread is about benchmarking and not really about >> generating fibonacci numbers, but I hope nobody is using this c

Re: code issue

2022-04-21 Thread Jack Dangler
On 4/21/22 13:09, Chris Angelico wrote: On Fri, 22 Apr 2022 at 03:02, Tola Oj wrote: for i in range(1, n+1): if i % 3 == 0 and i % 5 == 0: print("Fizzbuzz") elif i % 3 == 0: print("Fizz") elif i % 5 == 0: print("Buzz")

Re: Verifying I installed Python correctly

2022-04-25 Thread Jack Dangler
On 4/24/22 13:59, Greg wrote: I am trying to get Hello World to appear under my directory. The files of *C:\Users\gd752>cd C:\google-python-exercises> python hello.py* *The system cannot find the path specified.* *C:\Users\gd752>cd C:\google-python-exercises>* *The syntax of the command is in

help, please, with 3.10.4 install

2022-05-29 Thread Jack Gilbert
I downloaded 3.10.4 on a 64 bit , 8.1 I can see IDLE shell 3.10.1, I see Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 also, the same line: Python 3.10.4 (tags/v3.10.4:9d38120, Mar 23 2022, 23:13:41) [MSC v.1929 64 bit (AMD64)] on win32 in CMD pro

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Jack Dangler
Ari Have you tried running a snap update? Regards יַעֲקֹב On 2/1/23 11:31, אורי wrote: Hi, I have a server with Ubuntu 22.04.1 LTS and the Python version there is Python 3.10.6. Is there a safe way to upgrade to the latest version of Python 3.10 (3.10.9)? I tried with the OS update and upgra

Re: Upgrading Python on Ubuntu 22.04.1 LTS

2023-02-01 Thread Jack Dangler
months ago. אורי u...@speedy.net You can probably install it from the deadsnakes repository: sudo add-apt-repository ppa:deadsnakes/ppa More than likely it will have your package.  See https://github.com/deadsnakes On Wed, Feb 1, 2023 at 7:33 PM Jack Dangler wrote: Ari Have you tri

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Jack Dangler
On 3/29/23 02:08, Chris Angelico wrote: On Wed, 29 Mar 2023 at 16:56, Greg Ewing via Python-list wrote: On 28/03/23 2:25 pm, Travis Griggs wrote: Interestingly the error also only started showing up when I switched from running a statistics.mean() on one of these, instead of what I had been

Re: What kind of "thread safe" are deque's actually?

2023-03-29 Thread Jack Dangler
On 3/29/23 13:13, Chris Angelico wrote: On Thu, 30 Mar 2023 at 01:52, Jack Dangler wrote: On 3/29/23 02:08, Chris Angelico wrote: On Wed, 29 Mar 2023 at 16:56, Greg Ewing via Python-list wrote: On 28/03/23 2:25 pm, Travis Griggs wrote: Interestingly the error also only started showing

Need help please

2023-04-10 Thread Jack Gilbert
I D/L 3.11.3, I can see it in CMD running W10 64bit I have IDL on my desktop, HOW do I get 3.11.3 on my desktop? Thanks Jack g -- https://mail.python.org/mailman/listinfo/python-list

Tkinter (related)~

2023-05-18 Thread Jack Dangler
ovide... Jack -- https://mail.python.org/mailman/listinfo/python-list

Re: Tkinter (related)~

2023-05-18 Thread Jack Dangler
On 5/18/23 12:33, Mats Wichmann wrote: On 5/18/23 10:06, Jack Dangler wrote: I didn't want to hijack another thread... I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I

Re: txtorcon 23.5.0

2023-05-19 Thread Jack Dangler
b, pacman, dpkg, and zypper for starters. *dpkg is my go-to pkgmgr of choice... Also, the names of many linux-centric utility plugins, extensions, and other goodies, while seemingly cryptic, are usually a prominent clue as to what the package is used for. The world of *NIX has never been for the fain

Re: Tkinter (related)~

2023-05-19 Thread Jack Dangler
On 5/18/23 21:11, Grant Edwards wrote: On 2023-05-19, Cameron Simpson wrote: On 18May2023 12:06, Jack Dangler wrote: I thought the OP of the tkinter thread currently running may have needed to install the tkinter package (since I had the same missing component error message), so I tried to

Re: txtorcon 23.5.0

2023-05-19 Thread Jack Dangler
On 5/19/23 08:42, Benjamin Schollnick wrote: *Top-posting? Really? In that case, yes, because the conversion did not depend on what was originally said.  Unlike this conversation. Actually, a very cursory look through the intarweb would have yielded this - And that’s the point, if you

Re: Ann: New Python curses book

2021-04-11 Thread Jack Dangler
On 4/10/21 4:29 PM, Russell via Python-list wrote: I believe this is it: https://www.amazon.com/dp/B091CL3DTK/ref=cm_sw_su_dp But for some reason the ASIN is different. William Ray Wing wrote: I???ve ordered the book (physical volume). It will fulfill a need I???ve had for some time. Unfo

Re: help me please. "install reppy"

2021-07-22 Thread Jack DeVries
See here for a discussion around this issue: https://github.com/seomoz/reppy/issues/90 This project requires a C++ build environment to be setup on your computer. The fact that your compiler is reporting that `std=c++11` as an unknown option shows that you don't have a C++ build environment set up

Re: help me please. "install reppy"

2021-07-22 Thread Jack DeVries
Oops, forgot the link to the standard library robots.txt parser. Here are the docs! https://docs.python.org/3/library/urllib.robotparser.html *sorry for the noise* On Thu, Jul 22, 2021 at 11:34 PM Jack DeVries wrote: > See here for a discussion around this issue: > https://github.com/

on slices, negative indices, which are the equivalent procedures?

2021-08-06 Thread Jack Brandom
For instance, I can reverse a "Jack" this way: >>> s = "Jack Brandom" >>> s[3 : -13 : -1] 'kcaJ' I have no idea how to replace that -13 with a positive index. Is it possible at all? But this example gives me the idea that perhaps each slice is e

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-06 Thread Jack Brandom
"Michael F. Stemper" writes: > On 05/08/2021 12.35, Jack Brandom wrote: >> The FAQ at >>https://docs.python.org/3/faq/programming.html#what-s-a-negative-index >> makes me think that I can always replace negative indices with >> positive >> ones ---

Re: CODING PAGE ACCESS

2021-08-09 Thread Jack Dangler
Or open a terminal and type 'python3' ... Or open an editor, type in a py program, save it as "myfirstcode.py" and then at the console type 'python3 ./myfirstcode.py' and hit return... There are a number of choices to get there - that's the tenet of Linux. It's all about choice. On 8/7/21 3

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-09 Thread Jack Brandom
Greg Ewing writes: > On 6/08/21 12:00 pm, Jack Brandom wrote: >> It seems >> that I'd begin at position 3 (that's "k" which I save somewhere), then I >> subtract 1 from 3, getting 2 (that's "c", which I save somewhere), then >> I sub

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-11 Thread Jack Brandom
ing-things-up, to suit yourself (hopefully). Well observed. (I suppose it is a habit of mine to try to infer the axioms of things.) [...] > On 06/08/2021 05.35, Jack Brandom wrote: >> The FAQ at >> >> https://docs.python.org/3/faq/programming.html#what-s-a-negative-inde

Re: on slices, negative indices, which are the equivalent procedures?

2021-08-16 Thread Jack Brandom
Dennis Lee Bieber writes: > On Wed, 11 Aug 2021 11:59:11 -0300, Jack Brandom > declaimed the following: > >> >>Where are these production rules coming from? They're not at >> >> https://docs.python.org/3/reference/grammar.html >> >>

Re: Logging user activity

2022-02-08 Thread Jack Dangler
ation of data on nearly any level of complication/sophistication your customers need. Hope this helps. Regards Jack -- https://mail.python.org/mailman/listinfo/python-list

Re: Coding help

2022-02-24 Thread Jack Dangler
On 2/23/22 17:02, Richard Pullin via Python-list wrote: I know next to nothing about computer coding nor Python. However, I am working on a mathematical challenge in which coding is required to calculate and generate different potential solutions. Can anyone help? If so, please private messag

Re: Suggestion for Linux Distro (from PSA: Linux vulnerability)

2022-03-10 Thread Jack Dangler
On 3/10/22 08:03, Marco Sulla wrote: On Thu, 10 Mar 2022 at 04:50, Michael Torrie wrote: On 3/9/22 13:05, Marco Sulla wrote: So my laziness pays. I use only LTS distros, and I update only when there are security updates. PS: any suggestions for a new LTS distro? My Lubuntu is reaching its en

Re: googletrans in python

2022-04-04 Thread Jack Dangler
more people will be responsive to the work once you dig in... Jack -- https://mail.python.org/mailman/listinfo/python-list

Error with math.sqrt

2017-01-07 Thread Jack Harvey
I'm starting out with Python 3.5. My current frustration is with: >>> math.sqrt(25) Traceback (most recent call last): File "", line 1, in math.sqrt(25) NameError: name 'math' is not defined >>> Advice? Jack -- https://mail.python.org/mailman/listinfo/python-list

Guido's leaving

2018-07-14 Thread Jack Gilbert
To Guido, I wish you much success in all your future endeavors. Jack G Python Newby -- https://mail.python.org/mailman/listinfo/python-list

Re: Number 7 syntax ERROR

2018-11-08 Thread Jack Dangler
On 11/7/18 8:52 PM, NoHaxAllSwagg wrote: Hello, I have been experiencing difficulty while trying to run scripts on my IDLE software, considering that when I run my program, I get an error at the top of the page in the “Python 3.7.1” area, highlighting the seven telling me that there is a synta

TEST

2018-11-08 Thread Jack Gilbert
not to tick anybody off, I want to see if this is the correct way to post to the python list. Thanks to all who are helping me. Jack G -- https://mail.python.org/mailman/listinfo/python-list

Re: the python name

2019-01-03 Thread Jack Dangler
Odd that COBOL (Common Business Oriented Language)  and DIBOL (Digital Business Oriented Language) follow the paradigm, but SNOBOL went with "symBOlic"... On 1/2/19 7:22 PM, Rich Shepard wrote: On Wed, 2 Jan 2019, Dennis Lee Bieber wrote: Which was a derivative of BCPL (so one could clai

Re: Guido (Sarducci)

2019-01-17 Thread Jack Dangler
On 1/16/19 9:48 PM, Avi Gross wrote: Dennis, I wish to apologize for introducing any suggestion to name anything as Guido, let alone any language that springs from a python. Yes, it may be a stereotypic Italian name related to what you hint at. You probably recognized it as an allusion to some

Re: Exercize to understand from three numbers which is more high

2019-01-29 Thread Jack Dangler
On 1/27/19 5:19 AM, ^Bart wrote: In my experience based on decades of writing programs... 1. The assignment/exercise/problem should be a write a function with a particular signature.  So first decide on the signature. def max3(n1, n2, n3): "Return the max of the three inputs." retu

Re: Exercize to understand from three numbers which is more high

2019-01-29 Thread Jack Dangler
On 1/27/19 7:34 AM, Frank Millman wrote: "^Bart" wrote in message news:q2k1kk$1anf$1...@gioia.aioe.org... >    You need to do this exercize just by using if, elif and else, >    but in the quotation above, you use "=". We can use > < and = Now I wrote: number1 = int( input("Insert the first

Re: Python program to phone?

2019-02-07 Thread Jack Dangler
e but I think there is an Android lib for py that is available to help convert your app to a mobile platform. Also, if you're of a mind, I'd love to see the code you wrote for blood sugar. I need to lower my A1C as well and could use all the help I can get. Regards Jack -- https://mail

Not Defined error in basic code

2019-03-14 Thread Jack Dangler
Just getting started with tutorials and such, and don't understand this - class weapon:     weaponId     manufacturerName     def printWeaponInfo(self):     infoString = "ID: %d Mfg: %s Model: %s" % (self.weaponId, self.manufacturerName)     return infoString import class_weapon

Re: Not Defined error in basic code

2019-03-14 Thread Jack Dangler
#x27;t something you need to do in Python. If you simply remove these lines your example should work. On Thu, Mar 14, 2019 at 10:05 AM Jack Dangler <mailto:tdl...@gmail.com>> wrote: Just getting started with tutorials and such, and don't understand this -

Re: Not Defined error in basic code

2019-03-14 Thread Jack Dangler
On 3/14/19 10:39 AM, Calvin Spealman wrote: A few notes, Jack: On Thu, Mar 14, 2019 at 10:32 AM Jack Dangler <mailto:tdl...@gmail.com>> wrote: On 3/14/19 10:11 AM, Calvin Spealman wrote: Where are you seeing something like this? The two lines under `class weapon:

Re: Not Defined error in basic code

2019-03-14 Thread Jack Dangler
at 12:43 PM Jack Dangler <mailto:tdl...@gmail.com>> wrote: On 3/14/19 10:39 AM, Calvin Spealman wrote: A few notes, Jack: On Thu, Mar 14, 2019 at 10:32 AM Jack Dangler mailto:tdl...@gmail.com>> wrote: On 3/14/19 10:11 AM, Calvin Spealman wrote: Where

Re: Not Defined error in basic code

2019-03-14 Thread Jack Dangler
On 3/14/19 2:28 PM, DL Neil wrote: Jack, On 15/03/19 3:05 AM, Jack Dangler wrote: Just getting started with tutorials and such, and don't understand this - Did you answer the post asking which tutorial you were following/copying? Sorry - it is this - https://www.learnpython.o

Re: Not Defined error in basic code

2019-03-14 Thread Jack Dangler
On 3/14/19 3:49 PM, DL Neil wrote: Just getting started with tutorials and such, and don't understand this - Did you answer the post asking which tutorial you were following/copying? Sorry - it is this - https://www.learnpython.org/en/ .. The section is on classes and objects - https://www.l

requests

2019-04-04 Thread Jack Dangler
Hi, all. Just getting started but already have an idea for something to save me some grief we have lists of files that reside on a sharepoint site at work that we pick from. These have a variety of data items in them and we need to start the process by copying the entire contents into a local

help with 3.8.0

2019-11-02 Thread Jack Gilbert
Need help please just downloaded 3.8.0, can't get it to open the shell. Thanks in advance for helping me.. Jack -- https://mail.python.org/mailman/listinfo/python-list

Help!

2019-11-11 Thread Jack Gilbert
he install, something with in my win 8.1 system that maybe causing this problem. Thanks in advance for helping me. Jack G. -- https://mail.python.org/mailman/listinfo/python-list

pip issue

2020-02-21 Thread Jack Dangler
Hi, all Went to setup path and got an error. attempted to update pip and got the same error... The error being thrown is - Traceback (most recent call last):   File "/home/jack/.local/bin/pip", line 11, in     sys.exit(main())   File "/home/jack/.local/lib/python2.7/si

Re: Best practices for dynamically loading plugins at startup

2005-09-26 Thread Jack Diederich
On Sun, Sep 25, 2005 at 11:24:04PM +0200, Christoph Haas wrote: > Dear coders... > > I'm working on an application that is supposed to support "plugins". > The idea is to use the plugins as packages like this: > > Plugins/ > __init__.py > Plugin1.py > Plugin2.py > Plugin3.py > > When the

<    1   2   3   4   5   >