Re: Instant File I/O

2011-03-24 Thread Charles
etrieving the up-to-date statistics data during the same > session. Is there anyway I can fix this? I'm using .write() to write [snip] .flush() ? >From http://www.tutorialspoint.com/python/file_methods.htm file.flush() Flush the internal buffer, like stdio's fflush. This may be a n

Re: English Idiom in Unix: Directory Recursively

2011-05-26 Thread Charles
g the sub-directories of sub-directories and sub-directories of sub-directories of sub-directories and so on. Charles -- http://mail.python.org/mailman/listinfo/python-list

Can I compile Python for the web?

2005-09-23 Thread Charles
if it were compiled. Thanks, -- Charles. Desenvolvimento e criação de sites: www.auriance.com Hospedagem de sites e servidores dedicados: www.auriance.net -- http://mail.python.org/mailman/listinfo/python-list

How can I find a freelance programmer?

2006-02-14 Thread Charles
Hello, I am looking for a freelance Python programmer to create a cross-platform application with wxPython. Any idea where I could find one? Thanks, -- Charles. landemaine[at]gmail[dot]com -- http://mail.python.org/mailman/listinfo/python-list

Re: How can I find a freelance programmer?

2006-02-14 Thread Charles
On Tue, 14 Feb 2006 17:46:46 -0300, Tim Parkin <[EMAIL PROTECTED]> wrote: > You could ask Steve Holden? - that'll be 10% commission Steve! ;-) Him: http://sholden.typepad.com/ ? -- Charles. Desenvolvimento e criação de sites: www.auriance.com Hospedagem de sites e servid

mod_python and open HTTP connection

2006-02-16 Thread Charles
, the mod_python process is terminated, right? Thanks, -- Charles. Desenvolvimento e criação de sites: www.auriance.com Hospedagem de sites e servidores dedicados: www.auriance.net -- http://mail.python.org/mailman/listinfo/python-list

Re: mod_python and open HTTP connection

2006-02-17 Thread Charles
ves goodbye. Really? Wow... Gotta be carefull from now on... -- Charles. Desenvolvimento e criação de sites: www.auriance.com Hospedagem de sites e servidores dedicados: www.auriance.net -- http://mail.python.org/mailman/listinfo/python-list

Re: Firefighters at the site of WTC7 "Move away the building is going to blow up, get back the building is going to blow up."

2007-05-04 Thread Charles
On Fri, 04 May 2007 20:19:33 -0700, James Stroud <[EMAIL PROTECTED]> wrote: >MooseFET wrote: >> On May 4, 12:32 pm, James Stroud <[EMAIL PROTECTED]> wrote: >> [] >> >>>The Marxist contribution to western thought is that it put everything in >>>terms of labor and thus allowed us to quantify th

Re: Python and Regular Expressions

2010-04-08 Thread Charles
hed expression, without doing a sequential loop over the regular expressions. Of course there is a loop over the reults of the match to determine which sub-expression matched, but a good regexp library (which I presume Python has) should match the sub-expressions without looping over them. The techniques to do this were well known in the 1970's when the first versons of lex were written. Not that I would recommend tricks like this. The regular expression would quickly get out of hand for any non-trivial list of regular expresssions to match. Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] strange interaction between open and cwd

2010-05-03 Thread Charles
rrent directory for ".." and finds the inode for /home/baz/tmp, then searches that directory (/home/baz/tmp) for abc.txt and finds it. Note that, on unix, hard links and possible duplicate NFS mounts make it impossible to guarantee a unique "name" for a file. Even on windows, multiple CIFS mounts can result in in being impossible to guarantee a unique name. Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: Recursive functions not returning lists as expected

2010-05-03 Thread Charles
nt x,y > if not x: >return y > recur_trace(x[1:], y + [x[0]]) > shouldn't it be return recur_trace(x[1:], y + [x[0]]) otherwise the recursive call returns nothing Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: [OT] strange interaction between open and cwd

2010-05-04 Thread Charles
"Gregory Ewing" wrote in message news:84a1mcffn...@mid.individual.net... > Charles wrote: > >> In the OP's case, references to the directory have been removed >> from the file system, but his process still has the current working >> directory reference to

Re: global variable not working inside function. Increment

2013-05-13 Thread charles benoit
On Friday, September 4, 2009 4:52:11 PM UTC-7, Rami Chowdhury wrote: > > global no_picked > > no_picked = 0 > > > > def picked(object, event): > > no_picked += 1 > > print no_picked > > In order to be able to affect variables in the global scope, you need to > dec

executing python scripts that are symlinked

2013-05-16 Thread Charles Smith
d treat that as its base of operations. Charles. -- http://www.creative-telcom-solutions.de -- http://mail.python.org/mailman/listinfo/python-list

Re: executing python scripts that are symlinked

2013-05-16 Thread Charles Smith
On 16 Mai, 10:18, Dave Angel wrote: > On 05/16/2013 03:48 AM, Charles Smith wrote: > > > Hi. > > > How can I say, from the cmd line, that python should take my CWD as my > > CWD, and not the directory where the script actually is? > > > I have a python sc

Re: executing python scripts that are symlinked

2013-05-16 Thread Charles Smith
On 16 Mai, 11:04, Steven D'Aprano wrote: > Python does use your current working directory as your current working > directory. I think you are misdiagnosing the problem. That's usually how it ends up ... > > Here's a demonstration: > > steve@runes:~$ cat test.py > import os > print os.getcwd(

subclassing from unittest

2013-05-22 Thread Charles Smith
Hi, I'd like to subclass from unittest.TestCase. I observed something interesting and wonder if anyone can explain what's going on... some subclasses create null tests. I can create this subclass and the test works: class StdTestCase (unittest.TestCase): blahblah and I can create this

Re: subclassing from unittest

2013-05-22 Thread Charles Smith
On 22 Mai, 17:32, Charles Smith wrote: > Hi, > > I'd like to subclass from unittest.TestCase.  I observed something > interesting and wonder if anyone can explain what's going on... some > subclasses create  null tests. > > I can create this subclass and the test

python adds an extra half space when reading from a string or list

2013-06-28 Thread charles benoit
number_drawn=() def load(lot_number,number_drawn): first=input("enter first lot: ") last=input("enter last lot: ") for lot_number in range(first,last): line_out=str(lot_number) for count in range(1,5): number_drawn=raw_input("number: ") line_out=l

exception problem

2012-06-24 Thread Charles Hixson
ons as to what's wrong with the code? FWIW, chunkLine begins: def chunkLine (self, line): print("chunkLine: ") print ("line = ", line) ifline == None: return[] assert(isinstance (line, str) ) -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: exception problem

2012-06-24 Thread Charles Hixson
Sorry, I left out: er$ python3 --version Python 3.2.3rc1 On 06/24/2012 03:26 PM, Charles Hixson wrote: The code: print("pre-chunkLine") chunks=[] try: chunks=self.chunkLine (l)

Re: exception problem

2012-06-24 Thread Charles Hixson
On 06/24/2012 03:43 PM, MRAB wrote: On 24/06/2012 23:26, Charles Hixson wrote: The code: print("pre-chunkLine") chunks=[] try: chunks=self.chunkLine (l)

Re: exception problem

2012-06-24 Thread Charles Hixson
On 06/24/2012 03:43 PM, Charles Hixson wrote: On 06/24/2012 03:36 PM, Chris Angelico wrote: On Mon, Jun 25, 2012 at 8:26 AM, Charles Hixson wrote: The code: finally: print ("at finally") print ("chunks =") produces

Re: exception problem

2012-06-25 Thread Charles Hixson
On 06/24/2012 11:23 PM, Andrew Berg wrote: On 6/25/2012 12:27 AM, Charles Hixson wrote: The documentation section covering the except statement could stand to be a *LOT* clearer. I read the sections on the except statement and exception handlers several times and couldn't figure ou

Re: exception problem

2012-06-27 Thread Charles Hixson
On 06/25/2012 12:48 AM, Steven D'Aprano wrote: On Sun, 24 Jun 2012 16:16:25 -0700, Charles Hixson wrote: But what I wanted was to catch any exception. Be careful of what you ask for, since you might get it. "Catch any exception" is almost certainly the wrong thin

How do I display unicode value stored in a string variable using ord()

2012-08-16 Thread Charles Jensen
Everyone knows that the python command ord(u'…') will output the number 8230 which is the unicode character for the horizontal ellipsis. How would I use ord() to find the unicode value of a string stored in a variable? So the following 2 lines of code will give me the ascii value of th

Which Version of Python?

2012-09-11 Thread Charles Hottel
I have a lot of programming experience in many different languages and now I want to learn Python. Which version do you suggest I download, Python 2.x or Python 3.x ? Also why should I prefer one over the other? Right now I am thinkng Python 3.x as it has been out since 2008, but I have some

'generator ignored GeneratorExit''

2012-10-20 Thread Charles Hixson
raiseStopIteration The message appears to be purely informational, but I *would* like to fix whatever problem it's reporting, and none of the changes that I've tried have worked. What *should* I be doing? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: 'generator ignored GeneratorExit''

2012-10-20 Thread Charles Hixson
On 10/20/2012 04:28 PM, Ian Kelly wrote: On Sat, Oct 20, 2012 at 2:03 PM, Charles Hixson wrote: If I run the following code in the same module, it works correctly, but if I import it I get the message: Exception RuntimeError: 'generator ignored GeneratorExit' in ignored def

bit count or bit set && Python3

2012-10-25 Thread Charles Hixson
s, or their equivalents in terms of union and intersection.) Or do I need to drop into C for this? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

bit count or bit set && Python3

2012-10-25 Thread Charles Hixson
s, or their equivalents in terms of union and intersection.) Or do I need to drop into C for this? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: bit count or bit set && Python3

2012-10-25 Thread Charles Hixson
ion significantly. Really nice and good to know. I had guessed the other way. (As you point out this is compiler dependent, and I'll be using Python3, but...conversion from an int to a bit string must be a *lot* faster than I had thought.) -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

bit count or bit set && Python3

2012-10-25 Thread Charles Hixson
s, or their equivalents in terms of union and intersection.) Or do I need to drop into C for this? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: bit count or bit set && Python3

2012-10-26 Thread Charles Hixson
cas...@gmail.com wrote: On Thursday, October 25, 2012 7:56:25 AM UTC-7, Charles Hixson wrote: In Python3 is there any good way to count the number of on bits in an integer (after an& operation)? You may want to look at gmpy2[1] and the popcount() function. Alternatively, is there any

except clause syntax question

2012-01-30 Thread Charles Yeomans
to "catch this single thing composed of three exception types". Charles Yeomans -- http://mail.python.org/mailman/listinfo/python-list

Re: except clause syntax question

2012-01-30 Thread Charles Yeomans
On Jan 30, 2012, at 12:56 PM, Aaron wrote: > On 01/30/2012 06:41 PM, Charles Yeomans wrote: >> To catch more than one exception type in an except block, one writes >> >> except (A, B, C) as e: >> >> I'm wondering why it was decided to match tuples, but n

Re: except clause syntax question

2012-01-31 Thread Charles Yeomans
On Jan 30, 2012, at 7:00 PM, Steven D'Aprano wrote: > On Mon, 30 Jan 2012 12:41:00 -0500, Charles Yeomans wrote: > >> To catch more than one exception type in an except block, one writes >> >> except (A, B, C) as e: >> >> I'm wondering why

Re: except clause syntax question

2012-01-31 Thread Charles Yeomans
On Jan 31, 2012, at 9:51 AM, Steven D'Aprano wrote: > On Tue, 31 Jan 2012 08:57:31 -0500, Charles Yeomans wrote: > >> I don't think of a tuple as a container, and I don't think it a >> misunderstanding on my part to think this. > > Well, it is a misunder

Re: except clause syntax question

2012-01-31 Thread Charles Yeomans
On Jan 31, 2012, at 11:38 AM, Devin Jeanpierre wrote: > On Tue, Jan 31, 2012 at 11:23 AM, Charles Yeomans > wrote: >> >> On Jan 31, 2012, at 9:51 AM, Steven D'Aprano wrote: >> >>> On Tue, 31 Jan 2012 08:57:31 -0500, Charles Yeomans wrote: >>> &g

Re: except clause syntax question

2012-01-31 Thread Charles Yeomans
On Jan 31, 2012, at 8:24 AM, Mel Wilson wrote: > Charles Yeomans wrote: > >> To catch more than one exception type in an except block, one writes >> >> except (A, B, C) as e: >> >> I'm wondering why it was decided to match tuples, but not lists: >&g

Re: except clause syntax question

2012-01-31 Thread Charles Yeomans
On Jan 31, 2012, at 7:12 PM, Terry Reedy wrote: > On 1/31/2012 8:57 AM, Charles Yeomans wrote: > >> In any case, though I appreciate your attempt at a post hoc justification, > > I was hoping for a positive explanation. > > I think the best you are going to get

indexed property? Can it be done?

2012-05-07 Thread Charles Hixson
node[3] is a list of values, etc. What I'd like to do is to be able to address them thusly: k = node.key[2] v = node.value[2] but if there's a way to do this, I haven't been able to figure it out. Any suggestions? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: indexed property? Can it be done?

2012-05-07 Thread Charles Hixson
On 05/07/2012 08:33 PM, Chris Rebert wrote: On Mon, May 7, 2012 at 8:15 PM, Charles Hixson wrote: class Node: def__init__(self, nodeId, key, value, downRight, downLeft, parent): dirty=True dlu=utcnow() self.node=[nodeId, downLeft

Re: indexed property? Can it be done?

2012-05-07 Thread Charles Hixson
On 05/07/2012 08:44 PM, Dan Sommers wrote: On Mon, 07 May 2012 20:15:36 -0700 Charles Hixson wrote: class Node: def__init__(self, nodeId, key, value, downRight, downLeft, parent): dirty=True dlu=utcnow() self.node=[nodeId, downLeft

Re: indexed property? Can it be done?

2012-05-08 Thread Charles Hixson
On 05/08/2012 12:50 AM, Peter Otten wrote: Charles Hixson wrote: class Node: def__init__(self, nodeId, key, value, downRight, downLeft, parent): dirty=True dlu=utcnow() self.node=[nodeId, downLeft, [key], [value

Re: indexed property? Can it be done?

2012-05-08 Thread Charles Hixson
On 05/08/2012 01:19 PM, Adam Tauno Williams wrote: On Mon, 2012-05-07 at 20:15 -0700, Charles Hixson wrote: class Node: def__init__(self, nodeId, key, value, downRight, downLeft, parent): dirty=True dlu=utcnow() self.node

non-pickle persistance for dicts?

2012-05-16 Thread Charles Hixson
e a simple convert to and from either bytes or strings. repr works well for the conversion into string (I said they were simple), but I'd really rather be able to turn "{'a': 'A', 1: 23, 2: ['b', 2]}" back into a dict without allowing the execution of arb

Re: non-pickle persistance for dicts?

2012-05-16 Thread Charles Hixson
On 05/16/2012 03:11 PM, Ian Kelly wrote: On Wed, May 16, 2012 at 3:52 PM, Charles Hixson wrote: I want to persist simple dicts, but due to the security problems with (un)pickle, I'd prefer to not use shelve, and the only way I could see to persist them onto sqlite also invoked pickle

Questions on __slots__

2012-05-18 Thread Charles Hixson
Does __slots__ make access to variables more efficient? If one uses property() to create a few read-only pseudo-variables, does that negate the efficiency advantages of using __slots__? (Somehow I feel the documentation needs a bit of improvement.) -- Charles Hixson -- http://mail.python.org

Re: Questions on __slots__

2012-05-19 Thread Charles Hixson
On 05/19/2012 06:39 AM, Adam Tauno Williams wrote: On Fri, 2012-05-18 at 09:53 -0700, Charles Hixson wrote: Does __slots__ make access to variables more efficient? Absolutely, yes. If one uses property() to create a few read-only pseudo-variables, does that negate the

Unexpected exception thrown in __del__

2012-05-21 Thread Charles Hixson
re the class, thus: defnowI(): t=int (time() * 100) returnt All I can guess is that there's some reason that an external to the class function shouldn't be called during a __del__. Is this correct? -- Charles Hixson -- http://mail.python.org/mailman/listinfo/python-list

Re: Unexpected exception thrown in __del__

2012-05-21 Thread Charles Hixson
On 05/21/2012 08:29 AM, Charles Hixson wrote: message excerpt: flush: sql = insert or replace into persists (id, name, data, rdCnt, rdTim, wrCnt, wrTim, deprecation) values (?, ?, ?, ?, ?, ?, ?, ?) Exception TypeError: "'NoneType' object is not callable" in method Shelve2.

Re: Purely historic question: VT200 text graphic programming

2011-03-10 Thread Charles Turner
On Thu, 10 Mar 2011 00:38:11 -0600, GrayShark declaimed the following in gmane.comp.python.general: Once, many, many, years ago, I programmed some type of 'graphical' interface on a VT200 terminal A wild guess: Prestel? Bildschirmtext? Telidon? Teletex? NAPLPS? -- http://mail.python.org/mail

Re: Purely historic question: VT200 text graphic programming

2011-03-11 Thread Charles Turner
vector drawing codes. It was based on an earlier ANSI x.500 protocol that was used in Teleltex, etc., but I've forgotten the exact name/designation. In the US, most of the Teletex work was done on DEC hardware, AFAIK... Best, Charles -- http://mail.python.org/mailman/listinfo/python-list

RE: [IronPython] IronPython 2.7 Now Available

2011-03-13 Thread Medcoff, Charles
Can someone on the list clarify differences or overlap between the tools included in this release, and the PTVS release? -- http://mail.python.org/mailman/listinfo/python-list

RE: [IronPython] IronPython 2.7 Now Available

2011-03-13 Thread Medcoff, Charles
to not by either not installing the IpyTools w/ the IronPython install and install the PTVS or you can just stick w/ the existing IronPython tools. > -Original Message- > From: users-boun...@lists.ironpython.com [mailto:users- > boun...@lists.ironpython.com] On Behalf Of Medcoff, Ch

Re: new sorting algorithm

2022-05-02 Thread charles hottel
On 5/1/2022 7:45 PM, Chris Angelico wrote: On Mon, 2 May 2022 at 09:20, Dan Stromberg wrote: On Sun, May 1, 2022 at 1:44 PM Chris Angelico wrote: On Mon, 2 May 2022 at 06:43, Dan Stromberg wrote: On Sun, May 1, 2022 at 11:10 AM Chris Angelico wrote: On Mon, 2 May 2022 at 01:53, Nas Ba

Python-pickle error

2023-04-19 Thread charles wiewiora
Hello, I am experincing problems with the pickle moducle the folowing code was working before, import pickle number=2 my_pickeld_object=pickle.dumps(number) print("this is my pickled object",{my_pickeld_object},) with open('file.pkl', 'rb') as file: number=pickle.load(file) my_unpickeled_objec

Importing modules with arguments

2021-07-30 Thread Charles Smith
I have found myself wanting to import module and provide arguments to them. There's two main reason I could think of for this. First is to prevent a circular import, though most of circular imports can be prevented by changing the design. The second reason is to invert dependencies between two m

Re: Importing modules with arguments

2021-07-30 Thread Charles Smith
First off, thanks for the answer. I don't see the cached module as a problem here. If you provide arguments to a module, the goal is "most likely" to alter/parameterize the behavior of the first import. Now, I agree that behavior becomes unpredictable because passing different parameters on subs

Re: on writing a while loop for rolling two dice

2021-09-08 Thread charles hottel
On 9/7/2021 9:20 PM, Avi Gross wrote: Greg, Yes, a smart person may come up with such tricks but a really smart person, in my view, adjusts. With some exceptions, such as when trying to port existing code to a new language quickly, someone who is not too obsessive will try to pick up the goals a

Re: Call for Assistance

2016-08-09 Thread Charles Ross
> CC-BY-NC-SA is not a license for free (as in speech) content. Is that > what you want? I really appreciate all the conversation about the license. Perhaps I made a mistake with requiring noncommercial in the license, I don’t know, but I’ll look at the links provided about free documentation an

Re: Call for Assistance

2016-08-09 Thread Charles Ross
Well, I’ve been convinced. The license for the book is now Creative Commons Attribution-ShareAlike. https://github.com/chivalry/meta-python/blob/master/LICENSE.md Thanks, Chuck > On Aug 9, 2016, at 3:00 PM, Charles Ross wrote: > >> CC-BY-NC-SA is not a license for free (as in spe

Meta Python Chapter 3 Available

2016-08-12 Thread Charles Ross
I’ve completed a first draft of Chapter 3: Modules (and Packages) of the Meta Python book. Feedback from novices and experts alike would be welcome. https://github.com/chivalry/meta-python Thanks, Chuck -- https://mail.python.org/mailman/listinfo/pytho

How to get Read the Docs to generate py-modindex.html?

2016-08-29 Thread Charles Ross
Since I appear to be experiencing one of the few times that Stack Overflow hasn’t provided any quick answers to a problem (http://stackoverflow.com/questions/39197037/how-to-get-read-the-docs-to-generate-py-modindex-html

Multiprocessing interactive processes with connections

2016-09-06 Thread Charles Hixson
I want to process a bunch of processes that all talk to each other. I've figured out how to do this using queues with the main process as the mail handler, but I'd rather have them talk directly. If I use connections, then I can pass the pipes to the processes, but there doesn't seem to be an

Multiprocessing queues receiving from wrong process

2016-12-23 Thread Charles Hixson
I was looking to avoid using a upd connection to transfer messages between processes, so I thought I'd use multiprocessing (which I expect would be faster), but...I sure would appreciate an explanation of this problem. When I run the code (below) instead of messages receiving messages from th

Re: Multiprocessing queues receiving from wrong process

2016-12-23 Thread Charles Hixson
On 12/23/2016 01:56 PM, Charles Hixson wrote: I was looking to avoid using a upd connection to transfer messages between processes, so I thought I'd use multiprocessing (which I expect would be faster), but...I sure would appreciate an explanation of this problem. When I run the

MySQL schema sync or diff

2017-01-04 Thread Charles Heizer
Hello, I have a MySQL database that is not managed (yet) and I would like to get an output or diff against my new model file. I'm using flask-sqlalchemy. Are there any modules that would help me discover the differences so that I can script a migration to begin using flask-migrate? Thanks! --

MySQL schema sync or diff

2017-01-06 Thread Charles Heizer
Hello, I have a MySQL database that is not managed (yet) and I would like to get an output or diff against my new model file. I'm using flask-sqlalchemy. Are there any modules that would help me discover the differences so that I can script a migration to begin using flask-migrate? Thanks! --

Embedding python, run a function and get it's result

2017-01-31 Thread Charles Heizer
Hello, I'm messing around with the embedded python and I can get parts to work. What I'm having a hard time is getting my head around calling a function in the python string and getting it's result. Question, how do I load the python script and call runMe() and get it's value? Thanks! Example

PyDictObject to NSDictionary

2017-02-02 Thread Charles Heizer
Hello, I'm embedding python in to my Objective-C app and I need to know how do I convert a PyDictObject (PyObject) to a NSDictionary? Thanks! -- https://mail.python.org/mailman/listinfo/python-list

Fwd: Fwd: ftplib sending data out of order

2018-03-26 Thread Charles Wilt
considerably faster than they did with storline. So we've continued to use our new function. On Mon, Jul 10, 2017 at 7:23 AM, Charles Wilt wrote: > I downloaded the 3.6.1 source and added some debug logging to > sock_sendall() and sock_send_impl() in socketmodule.c. > > As I un

Re: Why exception from os.path.exists()?

2018-06-10 Thread Charles Hixson
On 06/07/2018 12:45 AM, Chris Angelico wrote: On Thu, Jun 7, 2018 at 1:55 PM, Steven D'Aprano wrote: On Tue, 05 Jun 2018 23:27:16 +1000, Chris Angelico wrote: And an ASCIIZ string cannot contain a byte value of zero. The parallel is exact. Why should we, as Python programmers, care one whit

Call for Assistance

2016-08-09 Thread Charles Ross
I’ve begun a new book called Meta Python that I’m looking for assistance with. The book is one I wish was out there, and so am writing. The book is targeted at experienced programmers who are novice Python users and want to move from that point to one where they have published to PyPI. I’m spec

Re: Call for Assistance

2016-08-09 Thread Charles Ross
gt; On Tuesday 09 August 2016 11:52, Charles Ross wrote: > >> I’ve begun a new book called Meta Python that I’m looking for assistance >> with. > > Are you looking for people to be co-authors? Are you offering payment, or > credit? A free copy of the book? A kick to t

Installation Error

2020-05-21 Thread Charles Seagraves
Hi, I have been learning and using Python to create a program to play Mah Jongg and it was going well until my windows 10 computer started receiving an update. My computer restarted and Python was gone. I have attempted to reinstall with a message that the install was successful. When I started to

Unable to set up Python correctly

2020-11-13 Thread Charles Okorobo
I have a problem going to one(1) week now. Our instructor told us that we can check if our Python is well installed or well set up correctly by typing Control-Shift- P on Windows OS while in VS Code Editor. We cut out the path enclosed within the Quotation Marks, then we type "Select Interpreter" a

Re: Python's Performance

2005-10-11 Thread Charles Krug
On Mon, 10 Oct 2005 11:21:18 -0700, Donn Cave <[EMAIL PROTECTED]> wrote: >> Iron- >> Python). is it still an interpreter if it generates machine code? > > Is what an interpreter? > > I am not very well acquainted with these technologies, but it sounds > like variations on the implementation of a

Re: When someone from Britain speaks, Americans hear a "British accent"...

2005-10-11 Thread Charles Krug
On Mon, 10 Oct 2005 15:46:34 -0500, Terry Hancock <[EMAIL PROTECTED]> wrote: > On Saturday 08 October 2005 04:35 am, Steve Holden wrote: >> I must have been working at NASA at the time; they are well known for >> embiggening prices. > > Not nearly as much as the DoD, from what I hear. > > Truthf

[wxPython-users] Web based applications are possible with wxPython?

2005-10-18 Thread Ruben Charles
Hi, I am reading some essays --http://www.paulgraham.com/avg.html "Beating the averages"-- and i am very interested in the web-based applications. I want to take the advantages having the application on a server. Is easy to update, maintain, etc... My questions is Can i have a wxPython GUI app

Re: Need Python Pro for Help!! Plzz

2005-10-31 Thread Ruben Charles
A stranger from the land of Woot came to Master Foo as he was eating the morning meal with his students. "I hear y00 are very l33t," he said. "Pl33z teach m3 all y00 know." Master Foo's students looked at each other, confused by the stranger's barbarous language. Master Foo just smiled and replie

Re: Need Python Pro for Help!! Plzz

2005-11-01 Thread Ruben Charles
> On the other hand, a group for learning that has no experts in it may > tend to produce "what works" style of programming as oppsoed to "what is > a good idea or practise". What is better? Good practise doesn't work better? -- http://mail.python.org/mailman/listinfo/python-list

Re: testing C code with python

2005-11-11 Thread Ruben Charles
On 11/10/05, Peter Hansen <[EMAIL PROTECTED]> wrote: > [EMAIL PROTECTED] wrote: > > A simple question - Is it common/good practice to test C code using > > Python? For example one could wrap individual C functions, and test > > each of them using python, maybe not for low-level things but at least

Re: tutorial example

2005-11-12 Thread Ruben Charles
That is the diference between a method and a function. A method do something and a function return something. Example: def psum(n, m): print (n + m) def rsum(n, m): return (n +m) Then try this... >>> psum(2, 3) >>> a = psum(2, 3) >>> a >>> a = rsum(2, 3) >>> a You see it? -- ht

Re: tutorial example

2005-11-12 Thread Ruben Charles
On 11/12/05, Max Erickson <[EMAIL PROTECTED]> wrote: > > Not in python. > > For example, what would you call the following? > > def rsum(n, m): > print n+m > return n+m > > > In python a method is callable attached to an object. A function is a > callable object constructed with a def state

Re: Is there something similar to ?: operator (C/C++) in Python?

2005-06-20 Thread Charles Krug
On Mon, 20 Jun 2005 06:36:42 GMT, Ron Adam <[EMAIL PROTECTED]> wrote: > Ron Adam wrote: > >> You might be able to use a dictionary of tuples. >> >> call_obj = {(type_obj1,0):obj1a, >> (type_obj1,0):obj1b, >> (type_boj2,1):obj2a, >> (type_obj2,1):obj2b, >>

Couple functions I need, assuming they exist?

2005-06-20 Thread Charles Krug
a LaTeX source containing randomly generated arithmetic problems of various types. The target of the problems (my daughter) would prefer that the thousands be delimited. Is there a string function that does this? Thanks Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: Couple functions I need, assuming they exist?

2005-06-20 Thread Charles Krug
gt; 'English_United Kingdom.1252' >>>> print locale.format("%d", 100, True) > 1,000,000 Perfect! Thanks. Sometimes "hard part" is figuring out which package already does the thing I need done. Charles. -- http://mail.python.org/mailman/listinfo/python-list

Re: Python choice of database

2005-06-21 Thread Charles Krug
On Mon, 20 Jun 2005 23:42:21 -0800, EP <[EMAIL PROTECTED]> wrote: > Oren suggested: > >> How about using the filesystem as a database? For the number of records >> you describe it may work surprisingly well. A bonus is that the >> database is easy to manage manually. > > I tried this for one appl

Re: Loop until condition is true

2005-06-21 Thread Charles Krug
On Tue, 21 Jun 2005 12:05:25 +0200, Magnus Lycka <[EMAIL PROTECTED]> wrote: > Remi Villatel wrote: >> while True: >> some(code) >> if final_condition is True: >> break >> # >> # >> >> What I don't find so "nice" is to have to build an infinite loop only to >> break it. > > Th

Re: Excellent Site for Developers

2005-06-25 Thread Charles Krug
On Sat, 25 Jun 2005 14:50:48 GMT, Brian <[EMAIL PROTECTED]> wrote: > Do Re Mi chel La Si Do wrote: >> rather... super troll > > 100% Agreed. > > Can anyone say, "This looks like spam... Feels like spam... and is about > as useful here in the Python forums as spam -- therfore my conclusion is

Having trouble importing against PP2E files

2005-07-08 Thread Charles Krug
t, but the file isn't importing unless I copy it to the current directory. Thanx Charles -- http://mail.python.org/mailman/listinfo/python-list

Re: Having trouble importing against PP2E files

2005-07-09 Thread Charles Krug
On Fri, 08 Jul 2005 22:43:55 +0300, Elmo Mäntynen <[EMAIL PROTECTED]> wrote: > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > >> Import Error: no module named PP2E.launchmodes >> >> However if I copy launchmodes.py into my work directory, it imports >> successfully. >> >> Both "Examples" abov

Re: Launching Python programs from Linux shell script

2005-09-09 Thread Ruben Charles
Yes... - Or... Add this line in de source: #!/usr/bin/env python then chmod +x myscript.py ./myscript.py On 9 Sep 2005 08:31:27 -0700, Ernesto <[EMAIL PROTECTED]> wrote: > Does anyone know how to start Python program(s) from a Linux shell > script

Re: Creating a list of Mondays for a year

2005-09-19 Thread Charles Krug
On Mon, 19 Sep 2005 12:10:04 GMT, Chris <[EMAIL PROTECTED]> wrote: > Thanks to everyone for your help! > > That fit the need perfectly. > > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] says... >> Is there a way to make python create a list of Mondays for a given year? >> >> For example,

Re: How to program efficient pattern searches in a list of float numbers?

2005-09-19 Thread Charles Krug
On 19 Sep 2005 00:02:34 -0700, malv <[EMAIL PROTECTED]> wrote: > Simple case: > In this list, how to find all occurences of intervals of n adjacent > indexes having at least one list-member with a value between given > limits. > Visualizing the list as a two-dimensional curve, this is like > horizo

[OT]Scipy plotting problems

2005-09-19 Thread Ruben Charles
Hi, I'm using Scipy on Debian Gnu/Linux. (python2.3-scipy) in a program that have to show plots but while i'm testing capabilities of the three possible options (gplt, plt an xplt) a couple of questions comes up.

How can I tell if my host supports Python?

2005-02-14 Thread Charles Stricklin
rmine if they do? -- Charles Stricklin -- http://mail.python.org/mailman/listinfo/python-list

hotshot load error

2005-03-09 Thread Charles Hartman
from within the WingIDE on a Mac under OS 10.3.8, if any of that makes a difference. Nothing there prevents hotshot from loading a file that's been made without the lineevents=1 argument.) Charles Hartman Professor of English, Poet in Residence http://cherry.conncoll.edu/cohar http://villex.blogspot.com -- http://mail.python.org/mailman/listinfo/python-list

  1   2   3   4   >