Re: Namespaces: memory vs 'pollution'

2019-07-22 Thread DL Neil
On 22/07/19 9:40 PM, Thomas Jollans wrote: On 22/07/2019 07.06, DL Neil wrote: Current thoughts: import environment_module as em - so, even more of an abbreviation than suggested!? - I rarely need to write a long list of import statements, so there won't be many. - not normally

Hermetic environments

2019-07-23 Thread DL Neil
Is Python going 'the right way' with virtual environments? Warning: this post may contain Python-heresy. I don't use any of the Python virtual environments! I'm not an *ops person either - unless Ops happened to be included within a wider department. However, in attempting to follow the "Prop

Re: Nesting Custom Errors in Classes

2019-07-23 Thread DL Neil
On 23/07/19 11:55 PM, Cameron Simpson wrote: On 23Jul2019 14:54, DL Neil wrote: Do you use nested classes? Python manages nested classes. I've NEVER seen such 'in the wild'. (but perhaps I lead a sheltered life?) So sheltered :-) Well, over here there aren't the ve

Re: Nesting Custom Errors in Classes

2019-07-23 Thread DL Neil
On 24/07/19 10:07 AM, Cameron Simpson wrote: On 24Jul2019 07:21, DL Neil wrote: ... Get some linting tools. They're great for catching this kind of error. SublimeText has SublimeLinter and PycodeStyle installed, but I'm still familiarising myself with ST. Nothing is reported.

Re: Hermetic environments

2019-07-24 Thread DL Neil
On 25/07/19 10:31 AM, Cameron Simpson wrote: On 24Jul2019 19:59, Eli the Bearded <*@eli.users.panix.com> wrote: In comp.lang.python, DL Neil  wrote: Is Python going 'the right way' with virtual environments? ... Am I 'getting away with it', perhaps because my work-

Re: Hermetic environments

2019-07-24 Thread DL Neil
On 25/07/19 4:43 PM, Cameron Simpson wrote: On 25Jul2019 15:45, DL Neil wrote: In my current life I'm working on a project with a python API and a JavaScript front end. A release involves building a clean versioned directory on the server machine; it contains a specific Python venv insi

Re: Definite or indefinite article for non-singletons?

2019-07-27 Thread DL Neil
On 28/07/19 9:10 AM, Chris Angelico wrote: When talking about indistinguishable objects, is it correct to talk about "the " or "an "? Example: def f(s): """Frob a thing. If s is an empty string, frobs all the things. OR If s is the empty string, frobs all the things. """

Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
Please recommend a Python-friendly, bandwidth-respectful, (but effective) system for pair-programming; where the 'pair' are geographically separate. Next week is the local PUG's next meeting (details below) billed as a "Python Hands-On Coding night". I shall be travelling, so can't attend in

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 8:32 AM, Terry Reedy wrote: On 8/2/2019 5:10 AM, DL Neil wrote: Please recommend a Python-friendly, bandwidth-respectful, (but effective) system for pair-programming; where the 'pair' are geographically separate. 'geographically separate' could range from i

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 8:44 AM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 6:34 AM Terry Reedy wrote: On 8/2/2019 5:10 AM, DL Neil wrote: Please recommend a Python-friendly, bandwidth-respectful, (but effective) system for pair-programming; where the 'pair' are geographicall

Re: [Python-ideas] Fwd: Re: PEP: add a `no` keyword as an alias for `not`

2019-08-02 Thread DL Neil
A truly marvellous aspect of Python is its world-wide spread! Many people use Python with greater ease than they speak or write English, despite Python appearing to be a sub-set of the English language! Native English-speakers often* have difficulty following negatively-worded sentences, eg "

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 8:57 AM, Dennis Lee Bieber wrote: On Fri, 2 Aug 2019 21:10:32 +1200, DL Neil declaimed the following: - AWS Cloud9: (apparently will run on a small, free, cloud-server) Cloud9 is normally available on BeagleBone Black cards (though you'd have to open up your firewall

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 10:34 AM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 7:30 AM DL Neil wrote: On 3/08/19 8:44 AM, Chris Angelico wrote: Google Hangouts, or a proprietary internal platform ("Owl") which does similar things but is better able to handle different bandwidth connections. Th

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 11:50 AM, Cameron Simpson wrote: appear.in can also screen share along with its video conferencing, and I imagine Zoom might do so also. But a screen share is "read only" for the other party. You could both screen share of course, but it doesn't solve the keep-the-code-in-sync issue.

Re: Remote/Pair-Programming in-the-cloud

2019-08-02 Thread DL Neil
On 3/08/19 4:02 PM, Terry Reedy wrote: On 8/2/2019 4:52 PM, DL Neil wrote: On 3/08/19 8:32 AM, Terry Reedy wrote: On 8/2/2019 5:10 AM, DL Neil wrote: Please recommend a Python-friendly, bandwidth-respectful, (but effective) system for pair-programming; where the 'pair' are geog

Re: Remote/Pair-Programming in-the-cloud

2019-08-03 Thread DL Neil
On 3/08/19 5:20 PM, Cameron Simpson wrote: On 03Aug2019 08:52, DL Neil wrote: On 3/08/19 8:32 AM, Terry Reedy wrote: 2. Do two systems connect directly peer-to-peer or through a server? Exclusively the latter (thus far in the investigation). If one party is remote and both are behind a NAT

Re: Remote/Pair-Programming in-the-cloud

2019-08-03 Thread DL Neil
On 3/08/19 5:17 PM, Cameron Simpson wrote: On 03Aug2019 16:51, DL Neil wrote: On 3/08/19 11:50 AM, Cameron Simpson wrote: appear.in can also screen share along with its video conferencing, and I imagine Zoom might do so also. But a screen share is "read only" for the other party.

Re: Remote/Pair-Programming in-the-cloud

2019-08-03 Thread DL Neil
On 3/08/19 2:08 PM, Bryon Tjanaka wrote: Depending on how often you need to run the code, you could use a google doc and copy the code over when you need to run. Of course, if you need linters and other tools to run frequently this would not work. Thanks for the thought Bryon. Elsewhere there

Re: Remote/Pair-Programming in-the-cloud

2019-08-04 Thread DL Neil
hread): - shared IDE - ability to observe - ability to develop - ability to switch rôles - collaboration facilities (haven't tried these yet) [and a more formal 'class' mode/option - not reviewed] On 4/08/19 3:45 AM, Dennis Lee Bieber wrote: On Sat, 3 Aug 2019 11:20:20 +1200, DL Neil

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 5/08/19 4:04 AM, Ian Kelly wrote: On Sat, Aug 3, 2019, 9:25 AM Bryon Tjanaka wrote: Depending on how often you need to run the code, you could use a google doc and copy the code over when you need to run. Of course, if you need linters and other tools to run frequently this would not work.

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 3/08/19 5:50 PM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: Good. Master-satellite would be much easier. We added line numbers to IDLE's editor last week, so verbal feedback from satellite to master should be sufficien

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 4/08/19 6:44 AM, Terry Reedy wrote: On 8/3/2019 1:50 AM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: Is that really "p-p" or more "code review"? The latter.  The quotes here mean "the closest

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 4/08/19 8:20 AM, Chris Angelico wrote: On Sun, Aug 4, 2019 at 4:46 AM Terry Reedy wrote: On 8/3/2019 1:50 AM, Chris Angelico wrote: Since master and clone are copies of the same program, switching roles should be simple, and easier than trading seats. Should be indeed, though having accide

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 5/08/19 9:59 PM, Dennis Lee Bieber wrote: On Mon, 5 Aug 2019 18:52:14 +1200, DL Neil declaimed the following: Herewith a progress-report, and an attempt to respond to (interposed) questions:- I didn't have questions so much as just comments based on documentation... Your a

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 6/08/19 1:43 AM, Hugh Sasse wrote: I might not have followed this thread closely enough.  I remembered there is a thing called Copilot. It connects two machines so that two people can work together. https://www.copilot.com/About If this is the wrong answer, it may at least help define the ne

Re: Remote/Pair-Programming in-the-cloud

2019-08-05 Thread DL Neil
On 6/08/19 12:04 AM, Chris Angelico wrote: On Mon, Aug 5, 2019 at 8:54 PM DL Neil wrote: On 3/08/19 5:50 PM, Chris Angelico wrote: On Sat, Aug 3, 2019 at 3:36 PM DL Neil wrote: On 3/08/19 4:02 PM, Terry Reedy wrote: ... Sometimes there can be magical firewall penetration tricks that

Re: Remote/Pair-Programming in-the-cloud

2019-08-12 Thread DL Neil
On 7/08/19 4:20 AM, Dennis Lee Bieber wrote: {Playing Devil's Advocate} If this list had avatars, I would graffiti yours to have horns and a tail! No. Many have also requested feedback. Sadly the news is not good. Herewith:- On Tue, 6 Aug 2019 09:07:41 +1200, DL Neil declaime

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 13/08/19 10:01 AM, Morten W. Petersen wrote: On 12.08.2019 18:13, Brian Oney wrote: On August 12, 2019 9:14:55 AM GMT+02:00, morphex wrote: Hi. What frameworks are there for generating static web pages in Python? I have used: https://github.com/Frozen-Flask/Frozen-Flask It's pretty simple.

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 14/08/19 2:26 AM, Grant Edwards wrote: On 2019-08-13, Jon Ribbens via Python-list wrote: If it's really that small then it sounds like what you are looking for is known as a "text editor". Bah. Kids these days. $ cat > index.hmtl [roaring with laughter] Oh come now. Surely a per

Re: Web framework for static pages

2019-08-13 Thread DL Neil
On 13/08/19 10:54 PM, Morten W. Petersen wrote: I was hoping to avoid testing a lot of different systems, spending time there. Sooner or later you have to make a decision - and be responsible for it to your clients. So that's why I'm asking here. People here are helpful. The more time yo

Re: MySQLdb for 3.6 on RHEL7

2019-08-13 Thread DL Neil
On 14/08/19 6:14 AM, Chris Angelico wrote: On Wed, Aug 14, 2019 at 1:48 AM Larry Martell wrote: On Tue, Aug 13, 2019 at 9:59 AM Chris Angelico wrote: On Tue, Aug 13, 2019 at 11:33 PM Larry Martell wrote: I am trying to install MySQLdb (https://pypi.org/project/mysqlclient/) for python3.6

Re: Style suggestions/critiques

2019-08-20 Thread DL Neil
On 21/08/19 9:11 AM, Michael F. Stemper wrote: I recently wrote a couple of modules (more to come) to help me use the tikz package in TeX/LaTeX. Since it's all to do with drawing, I have a lot of points in R^2. Being unimaginative, I implemented them as ordered pairs (2-tuples) of floats. E.g.: p

Re: Let the copyfilepath.py to support chinese file path name.

2019-08-23 Thread DL Neil
On 24/08/19 2:36 AM, Hongyi Zhao wrote: Hi, The following is a gedit plugin which provides a way to copy the current file path to the clipboard. https://github.com/willianveiga/gedit-copy-file-path/blob/master/ copyfilepath.py But, I try and find that it doesn't support the path/file names inc

Re: Style suggestions/critiques

2019-08-23 Thread DL Neil
On 24/08/19 7:15 AM, Michael F. Stemper wrote: On 20/08/2019 21.57, DL Neil wrote: On 21/08/19 9:11 AM, Michael F. Stemper wrote: I recently wrote a couple of modules (more to come) to help me use the tikz package in TeX/LaTeX. Since it's all to do with drawing, I have a lot of points i

Re: Fwd: installation problem

2019-08-28 Thread DL Neil
On 29/08/19 10:11 AM, fateme jbr wrote: Dear Python team We are a mailing list of enthusiasts with volunteer membership. I downloaded "Windows x86-64 executable installer " form your website. My windows version is 8.1 and it is

Re: multiple lines in one line

2019-08-30 Thread DL Neil
On 31/08/19 8:26 AM, tascioglu.ta...@gmail.com wrote: Hello,I working on some file operations with python.I have 2 text file which is consist of lines such as apple_pie 0.3434 0.6767 0.2312 and other text file has apple 0.2334 0.3412 0.123 pie 0.976 0.75654 0.2312 I want to append lines like ap

Re: Python argv and special characters

2005-09-23 Thread Neil Hodgson
Jakob Simon-Gaarde: > How can I ensure a safe passing of arguments maybe having speciel > characters within. Use ctypes to call the Windows GetCommandLine function. The CommandLineToArgvW function can be used to break up the command line string into arguments. Neil --

Re: Python argv and special characters

2005-09-23 Thread Neil Hodgson
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1231336&group_id=5470 Neil -- http://mail.python.org/mailman/listinfo/python-list

Simple Dialogs

2005-09-23 Thread neil . fraser
I'm looking for a lightweight dialog boxes from Python. JavaScript uses: alert(), confirm() and prompt() VB uses: MsgBox() and InputBox() EasyGui seemed perfect, but a "Hello World" application takes nearly a minute to execute after the program has been compiled by py2exe. There appear to be dozen

Re: Simple Dialogs

2005-09-23 Thread neil . fraser
James Stroud wrote: > from tkMessageBox import showerror > showerror('Problem','Program Crashed before Starting') Thanks. That works great when interpreted (though a blank window seems to open as well). Unfortunately it still takes 40 seconds to execute after it has been 'compiled' with py2exe (

Re: cElementTree clear semantics

2005-09-25 Thread Neil Hodgson
te that 10% of the answers I give are wrong or useless, sometimes due to misunderstanding the query and sometimes due to confusion over how the component works. * Public fora are archived and searchable. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Simple Dialogs

2005-09-26 Thread neil . fraser
James Stroud wrote: > from tkMessageBox import showerror > showerror('Problem','Program Crashed before Starting') Here's a faster method, though not cross-platform: import ctypes ctypes.windll.user32.MessageBoxA(0, "Hello World", "Title", 0x00) -- http://mail.python.org/mailman/listinfo/python-

Re: PEP 350: Codetags

2005-09-26 Thread Neil Hodgson
on of a convention as an "Informational PEP". Documenting conventions is useful. If you don't want conventions documented in PEPs then you should propose a change to PEP 1, "PEP Guidelines". Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Font management under win32

2005-09-28 Thread Neil Hodgson
ectly and may be easier to use. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Overhead of individual python apps

2005-09-28 Thread Neil Hodgson
mmit of one page, 4096 bytes. Neil C:\Python24>dumpbin /headers python.exe Microsoft (R) COFF/PE Dumper Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. Dump of file python.exe PE signature found File Type: EXECUTABLE IMAGE FILE HEADER VALUES 14

Re: What encoding is used when initializing sys.argv?

2005-09-30 Thread Neil Hodgson
(unicode(sys.argv[1], "mbcs")) C:\bin>python glurp.py abcß• 'abc\xdf\x95' u'abc\xdf\u2022' Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: "no variable or argument declarations are necessary."

2005-10-04 Thread Neil Hodgson
= Fn();// C# 3.0 http://www.research.att.com/~bs/rules.pdf http://msdn.microsoft.com/vcsharp/future/ (most useful is the C# 3.0 language spec Word document) Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: How to prevent logging warning?

2005-10-05 Thread Neil Benn
the >library, but is this really how logging is intended to be used? > > >log = logging.getLogger("comtypes.client") > >class NULLHandler(logging.Handler): >def emit(self, *args): >pass > >log.addHandler(NULLHandler()) > > >Thomas > >

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

2005-10-06 Thread Neil Hodgson
th less English and hence less ability to handle accents. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: non descriptive error

2005-10-09 Thread Neil Hodgson
File "xx.py", line 3 if Decimal(self.parent.TillDetails[self.TillSelection.GetStringSelection()]['ChangeTinBalance'])) == Decimal('0'): ^ SyntaxError: invalid syntax Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-13 Thread Neil Hodgson
3 machine have short file name support turned off? The NtfsDisable8dot3NameCreation registry option is popular with some administrators. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-14 Thread Neil Hodgson
Frank Borell: > On all three types of PC/Servers they are set to 0. > > For now I'll have to process this script on non 2003 servers?!? What do you get if you call win32api.GetShortPathName on the long name? Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: wierd threading behavior

2005-10-14 Thread Neil Hodgson
program has exited before the thread has managed to run. It is undefined behaviour whether secondary threads survive main thread termination but it looks like they don't on your system. Use the threading module and call join to wait for all threads to complete before exiting the program. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: win32api.FindFiles Win2003, problem with Short Name

2005-10-17 Thread Neil Hodgson
m the 2003 system? If so it means that there are APIs capable of finding the information so I'd be trying to use ctypes to call the underlying wide character FindFirstFileExW function. > ^2aCOSBY SON PROFILE^2fNYT18|A^2ACOSB.1A7 This was hex escaped from *COSBY SON PROFILE/NYT18. Ne

Re: [OT] Python vs Ruby

2005-10-24 Thread Neil Hodgson
homophones "two" and "too". We could smear the homophones further and say OCaml is the "nextfather". Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Spambayes modifications with web services

2005-10-28 Thread Neil Hodgson
s, first think through all the potential consequences of your actions. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: reading internet data to generate random numbers.

2005-11-02 Thread Neil Schemenauer
Grant Edwards <[EMAIL PROTECTED]> wrote: > Doesn't your OS have an entropy-gathering RN generator built-in? Alternatively, if you want lots of high-quality random numbers, buy a cheap web camera: http://www.lavarnd.org/ . Using data from the Internet is just a bad idea.

Re: [OT] Map of email origins to Python list

2005-11-07 Thread Neil Hodgson
gh Thunderbird on my local machine through my ISP's news server. I expect the marked locations are for the ISP's news hubs. Gmail only comes into the picture when I'm sent spam in response to a post. Multiple locations for gmail doesn't imply discovery of real origins of

Re: how to modify code while debugging it without having to stop and then restart debugger

2005-11-09 Thread Neil Hodgson
e about all the limitations and they change between releases but it probably fails about one time in ten for me. This doesn't stop the session, just leaves your change unapplied. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: path module / class

2005-11-16 Thread Neil Hodgson
a wiki page. http://wiki.python.org/moin/PathClass Guido was unenthusiastic so a good step would be to produce some compelling examples. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: check if com api is still available

2005-11-18 Thread Neil Hodgson
he guid of > the com server, maybe there is a call where i can check, if a certain > com server is available. All running COM servers should be in the "Running Object Table" (ROT). If you search the net for this term you will find code that can show what is in the ROT, so the

Re: path module / class

2005-11-19 Thread Neil Hodgson
t set of features that work with path.py without overlap so that the obsolete methods can be deprecated. If adding path.py leads to a fuzzy overlapping situation where os.path is occasionally useful then we are complicating the user's life rather than simplifying it. Neil -- http://m

Re: path module / class

2005-11-20 Thread Neil Hodgson
nicode strings on Windows NT+ which will behave correctly in more cases than byte strings. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: sort the list

2005-11-22 Thread Neil Hodgson
= [[1,4],[3,9],[2,5],[3,2]] >>> print lst [[1, 4], [3, 9], [2, 5], [3, 2]] >>> lst.sort(key=lambda x: x[1]) >>> print lst [[3, 2], [1, 4], [2, 5], [3, 9]] Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: about sort and dictionary

2005-11-23 Thread Neil Hodgson
arguments. There was a recent thread on this in c.l.ruby "Array#insert", starting 8 posts down. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: return in loop for ?

2005-11-24 Thread Neil Hodgson
to release something when you add a return statement. Yes, the rule has obvious shortcomings, but OTOH if it had enabled reasonable formal verification... http://en.wikipedia.org/wiki/Structured_programming#Multiple_points_of_exit Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Writing big XML files where beginning depends on end.

2005-11-24 Thread Neil Benn
k and look at using a different data representation. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mailman/listinfo/python-list

Re: unicode speed

2005-11-29 Thread Neil Hodgson
line = unicode(line, 'utf-8') line = unicodedata.normalize('NFKD', line) output = [] for c in line: if not unicodedata.combining(c): output.append(c) return u''.join(output) Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: windows paging Q

2005-11-29 Thread Neil Hodgson
Many page faults are soft faults and don't go to disk. Others are caused by reading files. Run perfmon for more details and from the memory performance object select page reads to see hard page faults. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Ant (with Python extensions) good replacement for distutils?

2005-12-07 Thread Neil Benn
://ant.apache.org/ant_in_anger.html However anyone up for Maven?? This is a build tool with a different philosophy than most others. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154

Re: Bitching about the documentation...

2005-12-08 Thread Neil Schemenauer
eing a hypocrite. Andrew is saying that he doesn't have time to detail with all the messages that get sent to him personally. What do you propose he should do? I think people expect more that a message saying "Thanks for you contribution. PS: Since I don't have time to do anything wi

Re: shutil.move has a mind of its own

2005-01-11 Thread Neil Benn
Daniel Bickett wrote: Oh, I'm sorry, that was my mistake. The example contained that error, but my code does not. Daniel Bickett To be fair though - I would have expected the method to throw an error rather than default to cwd. Neil -- Neil Benn Senior Automation Engineer Cenix BioSc

Re: Game programming in Python

2005-01-12 Thread Neil Benn
Baza wrote: I'm looking for any books or on-line resources on game programming using Python. Does anyone have any advice? -- Computer says, 'no' Like the end quote : eh, eh, eeehh!! -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatz

Re: Excel module for Python

2005-01-12 Thread Neil Benn
erl so this bit is only a guess!). However the last time I looked (about a year ago) POI does have limitations with excel graphs. Cheers, Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
case we could also say that threading in VB6 is even easier than python - I'll leave you to guess why!!! Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Ce

Re: pyserial and com port interrupts

2005-01-13 Thread Neil Benn
Neil Benn wrote: engsol wrote: Has anyone done a script that will rspond to the serial com port(s) receive buffer interrupt, as opposed to polling and timeouts? Win2000 is the main interest right now. Thanks Norm B Hello, I came across this problem as when I first used PySerial, I

Re: What strategy for random accession of records in massive FASTA file?

2005-01-14 Thread Neil Benn
s,etc) is unlikely to be pure python. The advantage of putting it in a DB will show up later when you have fast and powerful retrieval capability. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4

Oddity is shutil.copyfileobj

2005-01-20 Thread Neil Benn
ed my code again and again and I'm definatly not apeending this. I'm also copying files across, in the same program but the source and dest are binary - this doesn't have the same problem, the filenames are not changed. My question is - has anyone else seen this behaviou

[Fwd: Re: Oddity is shutil.copyfileobj]

2005-01-20 Thread Neil Benn
--- Begin Message --- Tim Golden wrote: [Neil Benn] | I'm running a program which is using | shutil.copyfileobj on a Win2K Pro, python 2.3 box. Just for (possible) reassurance, I've just run the following code snippet on my Win2k Python 2.3.4 box and it seemed to work without

Re: python without OO

2005-01-26 Thread Neil Benn
er simply by typing 'class Klass(object):'. Rather than reading a GOF book, I'd pick up an introduction to OO programming book to take a refresher course - you thank yourself!! Language without OO at all - what about Logo - drive that little tortoise around!! Cheers, Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: Python Code Auditing Tool

2005-02-02 Thread Neil Benn
which has require and ensure clauses on every method (following Meyer's Programming by contract philosophy). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTE

Re: Save the Canvas!

2005-02-02 Thread Neil Benn
march! Save the Canvas! Long live the ComboBox!! Free the ScrollPane!! Sorry in a funny mood. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website :

Logging

2005-02-02 Thread Neil Benn
in emit .self.stream.seek(0, 2) #due to non-posix-compliant Windows feature .ValueError: I/O operation on closed file .>>> This means that I any code that write or use, if it calls logging.shutdown the logging is buggered for that process - is my analysis correct? Cheers, Neil -

Re: Logging

2005-02-02 Thread Neil Benn
Neil Benn wrote: Hello, I'm running a test and having issues with logging, if I call logging.shutdown() and then want to start the logging going again then I get a problem as if I call shutdown, I can't get the root logger again, such as : . Previous code missed

Re: Logging

2005-02-03 Thread Neil Benn
ound inside the logging package but I will put the cleaning up of the dict on a shutdown() call as a feature request for logging. Thanks for the comm. Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)35

Re: Avoiding deadlocks in concurrent programming

2005-06-22 Thread Neil Hodgson
der and require that locks only be acquired in that order. There is an OK introduction to deadlock on the wikipedia: http://en.wikipedia.org/wiki/Deadlock Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: List of all installed applications (XP)?

2005-06-23 Thread Neil Hodgson
of this problem but the one I tried "Tally Systems WebCensus" (now owned by Novell) failed to find NuMega BoundsChecker and it also believes Yahoo Messenger is still installed even though it was uninstalled. Neil -- http://mail.python.org/mailman/listinfo/python-list

__eq__ on a dict

2005-07-11 Thread Neil Benn
google is not my friend - I invited it out for a drink last week and it stood me up :-). Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website :

Re: __eq__ on a dict

2005-07-11 Thread Neil Benn
not as far as I can see from these docs. Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 46 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com -- http://mail.python.org/mai

Re: __eq__ on a dict

2005-07-11 Thread Neil Benn
Steven D'Aprano wrote: > On Mon, 11 Jul 2005 12:42:55 +0200, Neil Benn wrote: > > > >> Hello, >> >>I can't find the docs for __eq__ on a dict and I can't >> find a description on what the eq does (strangely it does implement &g

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Neil Hodgson
I characters in file names or ... Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: odd python/linux/cherrypy behavior

2005-07-16 Thread Neil Hodgson
CONFIG INFO server.socketQueueSize: 5 2005/07/17 11:01:33 CONFIG INFO server.threadPool: 10 2005/07/17 11:01:33 HTTP INFO Serving HTTP on socket: ('', 8080) 2005/07/17 11:01:56 HTTP INFO 127.0.0.1 - GET / HTTP/1.1 2005/07/17 11:01:56 HTTP INFO 127.0.0.1 - GET /favicon.ico HTTP/1.1 Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: os.path.expanduser on Windows: UnicodeEncodeError

2005-07-18 Thread Neil Hodgson
ll fix your problem. The main benefit of the patch appears to be IMO that it will use the standard USERPROFILE environment variable. Neil -- http://mail.python.org/mailman/listinfo/python-list

Python Path Setting

2005-07-21 Thread Neil Benn
nd the like - does anyone know where I can find this? Cheers, Neil -- Neil Benn Senior Automation Engineer Cenix BioScience BioInnovations Zentrum Tatzberg 47 D-01307 Dresden Germany Tel : +49 (0)351 4173 154 e-mail : [EMAIL PROTECTED] Cenix Website : http://www.cenix-bioscience.com --

Re: PEP on path module for standard library

2005-07-22 Thread Neil Hodgson
s.path.join(z, "a") if os.path.isfile(os.path.join( > are not qualified as being Pythonic. I like Path but the above is trying too hard to be poor code. os.path.join takes more than 2 arguments, so that should be [os.path.join(z, "a", x) for x in os.path.listdir(os.path.join(z,

Re: PEP on path module for standard library

2005-07-22 Thread Neil Hodgson
path that switches in the middle (which it might do if we get to a > ZIP file or use the newer dir-in-file file systems. If you are promoting from byte strings with a known encoding to unicode path objects then this should always work. Neil -- http://mail.python.org/mailman/listinfo/python-list

Re: PyGTK or wxPython (not a flame war) on Windows

2005-07-22 Thread Neil Hodgson
ions. http://www.scintilla.org/GtkFile.png Neil -- http://mail.python.org/mailman/listinfo/python-list

Vanilla python path

2005-07-25 Thread Neil Benn
Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3', '/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-darwin', '/Library/Frameworks/Python.framework/Versions/2.3/lib/python2.3/plat-mac', '/Library/Frameworks/Python.framework/Versions/2

Re: pySerial Windows write problem

2005-07-29 Thread Neil Benn
;d write a C extension to do the serial stuff, but I don't know a thing >about Windows programming. > >Thanks! > > > > I wouldn't bother as well - PySerial works fine for me, as I mentioned the only thing I don;t like is no evetn firing when data is availabel but

Re: Block-structured resource handling via decorators

2005-07-29 Thread Neil Hodgson
John Perks: > When handling resources in Python, where the scope of the resource is > known, there seem to be two schools of thought: > ... This is part of what PEP 343 addresses: http://www.python.org/peps/pep-0343.html Neil -- http://mail.python.org/mailman/listinfo/python-list

<    1   2   3   4   5   6   7   8   9   10   >