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: 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
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-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

Tkinter (related)~

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

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

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

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: 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: 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

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: 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

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: 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

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: 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: 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: 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: 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-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: 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-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 ---

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: 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/

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

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

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

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

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

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

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
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 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
#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 -

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: 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

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: 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: 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: 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

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: 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

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: 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: 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: 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

HOTLIST

2017-07-17 Thread Jack
Hello Professionals, Greetings from NICHE SOFTWARE SOLUTIONS, Thank you for taking time to look over my Mail, This is Jack Stutter from Niche Software Solutions Inc working as Sr Bench sales recruiter, We have very strong bench consultants. I would highly appreciate if you can add me j

HOT LIST

2017-04-18 Thread Jack
B NC OPEN Regards Jack Email ID: j...@nichesoftsolutions.com Phone NO:5035362043 -- https://mail.python.org/mailman/listinfo/python-list

HOT LIST

2017-04-13 Thread Jack
B NC OPEN With Regards Jack -- https://mail.python.org/mailman/listinfo/python-list

HOT LIST

2017-04-12 Thread Jack
Hi Hope you doing great! Greeting from Niche Soft Solutions. I would like to present our topnotch consultants currently available. Please have a look at the below hot list of Niche Soft Solutions an

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
d .Utilize the administrative tools within WebFOCUS to provide end users with ad hoc and personalized reporting while maintaining a secure and cohesive environment. .Thorough understanding of the WebFOCUS product architecture Best Regards, Jack Stutter Niche Soft Solutions INC. Direct: +1503-536-20

Need webFOCUS Business Intelligence Developer

2017-04-11 Thread Jack
d .Utilize the administrative tools within WebFOCUS to provide end users with ad hoc and personalized reporting while maintaining a secure and cohesive environment. .Thorough understanding of the WebFOCUS product architecture Best Regards, Jack Stutter Niche Soft Solutions INC. Direct: +1503-536-204

Re: ANN: pyftpdlib 1.5.2 released

2017-04-07 Thread Jack Jansen
It looks as though you posted this message with the “about” paragraph from a different library? I looked at the web site, and pyftpdlib indeed seems to be an ftp daemon, as the name suggests, not a system load package…. Regards, Jack > On 06 Apr 2017, at 13:06, Giampaolo Rodola'

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

Re: Boolean Search using Strings

2015-04-23 Thread Jack Diederich
Here is an old one I wrote. Good for small collections of documents and uncomplicated queries. https://github.com/jackdied/boolmatch -Jack On Thu, Apr 23, 2015 at 10:50 AM, wrote: > Dear Group, > > I want to do the Boolean search over various sentences or documents. > I do not

Re: Pair of filenos read/write each other?

2013-08-15 Thread Jack Bates
On Wed, Aug 14, 2013 at 08:34:36AM +, Antoine Pitrou wrote: > Nobody nowhere.com> writes: > > On Tue, 13 Aug 2013 16:10:41 -0700, Jack Bates wrote: > > > Is there anything like os.pipe() where you can read/write both ends? > > > > There's socket.socketp

Re: Pair of filenos read/write each other?

2013-08-15 Thread Jack Bates
On Wed, Aug 14, 2013 at 01:55:38AM +0100, Chris Angelico wrote: > On Wed, Aug 14, 2013 at 1:17 AM, Rhodri James > wrote: > > On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates > > wrote: > > > >> Can anyone suggest a way to get a pair of file descriptor numbers such

Re: Pair of filenos read/write each other?

2013-08-15 Thread Jack Bates
On Wed, Aug 14, 2013 at 01:17:40AM +0100, Rhodri James wrote: > On Wed, 14 Aug 2013 00:10:41 +0100, Jack Bates > wrote: > > > Can anyone suggest a way to get a pair of file descriptor numbers such > > that data written to one can be read from the other and vice ve

Pair of filenos read/write each other?

2013-08-13 Thread Jack Bates
Can anyone suggest a way to get a pair of file descriptor numbers such that data written to one can be read from the other and vice versa? Is there anything like os.pipe() where you can read/write both ends? Thanks! -- http://mail.python.org/mailman/listinfo/python-list

Re: In pyqt, some signals seems not work well

2013-08-04 Thread Jack
On 2013/8/5 2:20, Vincent Vande Vyvre wrote: Le 04/08/2013 18:06, Jacknaruto a écrit : Hi, Guys! I created a thread class based QThread, and defined some signals to update UI through main thread. the UI used a stackedWidget,someone page named 'progressPage' have a progressBar and a Label, t

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,

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

My script use paramiko module, it will be blocked at compute_hmac

2013-02-22 Thread Jack
; #10 file '/usr/lib/python2.6/site-packages/paramiko-1.9.0-py2.6.egg/paramiko/packet.py', in 'read_message' #13 file '/usr/lib/python2.6/site-packages/paramiko-1.9.0-py2.6.egg/paramiko/transport.py', in 'run' #16 file '/usr/lib64/python2.6/thr

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: How to specify a field name dynamically

2012-11-06 Thread jack
On 2012/11/7 11:36, Dave Angel wrote: On 11/06/2012 10:14 PM, jack wrote: I have three tables: What's a table? I'll assume you're using Python, but what version, and what extra libraries do you have installed ? At least show your import statements, so we might have a chance at

How to specify a field name dynamically

2012-11-06 Thread jack
I have three tables: table1 |———| | id | f1 | |———| table2 |———| | id | f2 | |———| table3 |———| | id | f3 | |———| I want define a function to insert records to someone,but

Re: pythonic way

2012-11-02 Thread jack
thanks,but I don't think enumerate() is my want Have some ways to operate the reference of element,not a copy when I tried to traverse a list? I'm so sorry about my poor English, hope you don't mind it. On 2012/11/2 15:56, Chris Angelico wrote: On Fri, Nov 2, 2012 at 6:14

Re: pythonic way

2012-11-02 Thread jack
Sometimes, I need to alter the element as traverse a list like this (it's a sample): c = range(10) i = 0 for ele in c: # do something # branch: c[i] = # value i += 1 How to be pythonic? 2012/11/2 0:54, Zero Piraeus : : On 1 November 2012 11:32,

Re: Dumping all the sql statements as backup

2012-07-25 Thread Jack
On 07/25/2012 09:56 AM, andrea crotti wrote: > I have some long running processes that do very long simulations which > at the end need to write things on a database. > > At the moment sometimes there are network problems and we end up with > half the data on the database. > > The half-data problem

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: 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

Does python(django) have an official database driver to access SQLFire?

2012-01-28 Thread Jack
Does python(django) have an official database driver to access SQLFire? Or is there any roadmap to deliver an official database driver? Anyone know about this? -- http://mail.python.org/mailman/listinfo/python-list

Re: Debugging a difficult refcount issue.

2011-12-18 Thread Jack Diederich
)s so valgrind becomes useful. Worst case add assertions and printf()s in the places you think are most janky. -Jack On Sat, Dec 17, 2011 at 11:17 PM, buck wrote: > I'm getting a fatal python error "Fatal Python error: GC object already > tracked"[1]. > > Using gdb, I&#

Re: Multiprocessing: killing children when parent dies

2011-12-03 Thread Jack Keegan
I think the OP meant when the parent gets killed (by ctrl+c or similar), not deleted. At least that's what I think when I think of a program being killed. Is it even possible to send a signal in such a case? Cheers, Jack On Fri, Dec 2, 2011 at 4:27 PM, 8 Dihedral wrote: > Plea

Re: Multiple threads

2011-11-16 Thread Jack Keegan
On Wed, Nov 16, 2011 at 6:30 PM, Dave Angel wrote: > On 11/16/2011 01:22 PM, Dave Angel wrote: > >> (You're top-posting. Put your remarks AFTER what you're quoting) >> >> On 11/16/2011 12:52 PM, Jack Keegan wrote: >> >>> Ok, I thought that pro

Re: Multiple threads

2011-11-16 Thread Jack Keegan
would suit what I needed to do best. I'm still very confused about the whole thing. Can you elaborate on the above a bit please? Cheers, Jack -- The earth is a very small stage in a vast cosmic arena. Think of the rivers of blood spilled by all those generals and emperors so that in glor

Re: Opportunity missed by Python ?

2011-11-15 Thread Jack Keegan
; at Google ;) ? > > > > Also, Dart is looking to support (optional) strict typing, which > Python doesn't do. That's a fairly major performance enhancement. > > Traits from Enthought has defined types. I'm no expert mind so might not be suitable. Cheers,

Chaco for real-time plot of PySerial data

2011-11-01 Thread Jack Keegan
dangerous route to go down since it will be difficult to get help. Any recommendations? Thanks very much, Jack -- The earth is a very small stage in a vast cosmic arena. Think of the rivers of blood spilled by all those generals and emperors so that in glory and in triumph they could becom

Re: Implementing Python-OAuth2

2011-10-11 Thread Jack Diederich
r me, weighs in at 200 lines of code, and only needs stdlib + json libraries. Using the official google API required me to write more than 200 lines of code, so I'm a happy camper. https://github.com/jackdied/python-foauth2 Patches-welcome-ly, -Jack NB, the name can be pronounced "faux-aut

Re: ImportError: cannot import name dns

2011-09-14 Thread Jack Bates
> It is a circular dependency. Dns will try to import udp which will in turn > import dns (again) in an endless cycle; instead an ImportError is raised. > > Circular dependency is a Bad Thing. According to this documentation: http://docs.python.org/reference/simple_stmts.html#grammar-token-impor

ImportError: cannot import name dns

2011-09-13 Thread Jack Bates
Why is the following ImportError raised? $ ./test Traceback (most recent call last): File "./test", line 3, in from foo import dns File "/home/jablko/foo/dns.py", line 1, in from foo import udp File "/home/jablko/foo/udp.py", line 1, in from foo import dns ImportError: cannot

buffer() as argument to ctypes function which expects c_void_p?

2011-09-08 Thread Jack Bates
How do you pass a Python buffer() value as an argument to a ctypes function, which expects a c_void_p argument? I keep getting TypeError: ctypes.ArgumentError: argument 2: : wrong type -- http://mail.python.org/mailman/listinfo/python-list

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: 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-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-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

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

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

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 __slots__ slows down attribute access?

2011-08-23 Thread Jack
People have illusion that it is faster to visit the attribute defined by __slots__ . http://groups.google.com/group/comp.lang.python/msg/c4e413c3d86d80be That is wrong. The following tests show it is slower. __slots__ are implemented at the class level by creating descriptors (Implementing Descrip

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

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

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

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

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

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

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

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 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

  1   2   3   4   5   >