EuroPython has a new blog

2014-01-21 Thread M.-A. Lemburg
The EuroPython Society has setup a new blog for EuroPython in its efforts to provide more conference facilities for the EuroPython organization and to enhance the EuroPython attendee experience. http://blog.europython.eu/ There’s an RSS feed in case you want to subscribe to it:

EuroPython Society website now live

2014-01-21 Thread M.-A. Lemburg
The EuroPython Society has created a new website to collect information on EuroPython, the society and its workings: http://www.europython-society.org/ For those who don’t know: the society is a Swedish non-profit organization which was formed in 2004 by the EuroPython organizers to put on

[ANN] pypiserver 1.1.5 - minimal private pypi server

2014-01-21 Thread Ralf Schmitt
Hi, I've just uploaded pypiserver 1.1.5 to the python package index. pypiserver is a minimal PyPI compatible server. It can be used to serve a set of packages and eggs to easy_install or pip. pypiserver is easy to install (i.e. just 'pip install pypiserver'). It doesn't have any external

Frosted - The fast and simple Python code checker - V 1.0.0 released

2014-01-21 Thread timothy . crosley
Pyflakes has been forked to create Frosted: a simple, fast, and well documented Python code checker. See more here: https://github.com/timothycrosley/frosted -- https://mail.python.org/mailman/listinfo/python-announce-list Support the Python Software Foundation:

ANN: Yappi 0.82

2014-01-21 Thread Sümer Cip
Hi all, Yet Another Python Profiler v0.82 is out: Lots of bugfixes/improvements over the existing API. Features: - Profiler results can be saved in callgrindhttp://valgrind.org/docs/manual/cl-format.html and pstat http://docs.python.org/3.4/library/profile.html#pstats.Stats formats.

Wing IDE 5.0.2 released

2014-01-21 Thread Wingware
Hi, Wingware has released version 5.0.2 of Wing IDE, our integrated development environment designed specifically for the Python programming language. Wing IDE includes a professional quality code editor with vi, emacs, and other key bindings, auto-completion, call tips, refactoring,

Cython 0.20 release

2014-01-21 Thread Robert Bradshaw
I'm happy to announce the release of Cython 0.20. You can download it directly from the Cython site at http://cython.org/ or from PyPI at https://pypi.python.org/pypi/Cython/0.20 . There are a significant number of new features and bug fixes in this release, for a summary see

Sphinx 1.2.1 released

2014-01-21 Thread Georg Brandl
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, I'm very happy to announce the release of Sphinx 1.2.1, now available on the Python package index at http://pypi.python.org/pypi/Sphinx. It includes about 42 bug fixes for the 1.2 release series. What's new in 1.2 (very short version)?

ANN: rom 0.25.0 - Redis object mapper for Python

2014-01-21 Thread Josiah Carlson
Hey everyone, Big change today: rom now supports fast prefix, suffix, and pattern match queries over your data. The method is based on the autocomplete process described in my book, Redis in Action The rom package is a Redis object mapper for Python. It sports an interface similar to Django's

Early retirement project?

2014-01-21 Thread xeysxeys
Well, I retired early, and I guess now I've got some spare time to learn about programming, which always seemed rather mysterious. I am using an old mac as my main computer, and it runs os x 10.4 is this too old? It fills my needs, and I am on a fixed income and can't really afford to buy

Imports in Python

2014-01-21 Thread Johannes Schneider
Hi List, I remember some document explaining the python imports in detail somewhere, but I don't have any idea where it was. Even no idea if it was in the List or some blogbost. Does anybody of you have some suggestions where I can find those informations besides the official documentation?

Re: matlabFunction Equivalent?

2014-01-21 Thread Johannes Schneider
On 20.01.2014 23:09, rpi.bal...@gmail.com wrote: Hey all, I'm new at Python, so if you see any mistakes feel free to let me know. I'm trying to take a symbolic expression and turn it into a variable equation or function. I think that just an expression of variables would be preferable. I

Re: Early retirement project?

2014-01-21 Thread Devin Jeanpierre
Congrats on the early retirement! It takes guts to decide to do that. :) Python can run on a mac 10.4. In the worst case you may have to download xcode and build Python from source, if there are no powerpc binaries available. That's pretty simple, though (./configure make make install). --

Re: Python Scalability TCP Server + Background Game

2014-01-21 Thread Philip Werner
Looking a lot more normal and readable now. Thanks! Note that some people have experienced odd issues with Pan, possibly relating to having multiple instances running simultaneously. You may want to take care not to let it open up a duplicate copy of itself. ChrisA Thanks for the heads

use class in class

2014-01-21 Thread Robert Voigtländer
Hi, I have a problem using a class object within another class. It is about the line: self.openlist.append(Node(self.start, None, 0, 0)) If I use it in __init__ it works. If I use it in calcRoute(self) I get the following error: local variable 'node' referenced before assignment The error

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Oscar Benjamin
On Tue, Jan 21, 2014 at 12:47:41AM +, Steven D'Aprano wrote: On Mon, 20 Jan 2014 09:08:28 -0500, Roy Smith wrote: In article mailman.5735.1390198899.18130.python-l...@python.org, Chris Angelico ros...@gmail.com wrote: On Mon, Jan 20, 2014 at 4:21 PM, Dan Stromberg

Re: use class in class

2014-01-21 Thread Chris Angelico
On Tue, Jan 21, 2014 at 9:20 PM, Robert Voigtländer r.voigtlaen...@gmail.com wrote: def calcRoute(self): self.openlist.append(Node(self.start, None, 0, 0)) for Node in self.openlist: print Node.pos, Node.parent, Node.g, Node.h, Node.f You're using the name Node to mean

Re: Imports in Python

2014-01-21 Thread Ben Finney
Johannes Schneider johannes.schnei...@galileo-press.de writes: I remember some document explaining the python imports in detail somewhere, but I don't have any idea where it was. Even no idea if it was in the List or some blogbost. What kind of detail do you want? Does anybody of you have

Re: use class in class

2014-01-21 Thread Robert Voigtländer
I recommend using a different name for the instances here, probably with a lower-case first letter. That would solve your problem _and_ make your code more readable. Thanks a lot! I was confused by the debuger gifing me the wrong line as containing the error. I changed it regarding your

which data structure to use?

2014-01-21 Thread Robert Voigtländer
Hi, which would be the best data structure to use for the following case? I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos self.parent = parent self.g = g self.h = h self.f = g+h I need to

Re: Early retirement project?

2014-01-21 Thread Gregory Ewing
xeysx...@gmail.com wrote: I am using an old mac as my main computer, and it runs os x 10.4 is this too old? Not at all! It's plenty powerful enough to run Python for educational purposes, and for some quite serious purposes as well. Also, Python is an excellent choice for learning

Re: which data structure to use?

2014-01-21 Thread Chris Angelico
On Tue, Jan 21, 2014 at 10:17 PM, Robert Voigtländer r.voigtlaen...@gmail.com wrote: 1. check if a specific item - identified by Node.pos - is in the list. 2. find the object with the lowest Node.f attribute and update or remove it Are both those values constant once the Node is added? If so,

Re: Early retirement project?

2014-01-21 Thread Gregory Ewing
Devin Jeanpierre wrote: Python can run on a mac 10.4. In the worst case you may have to download xcode and build Python from source, There's even a Python that already comes with the system, although it's an oldish version (somewhere around 2.5, I think). -- Greg --

Re: which data structure to use?

2014-01-21 Thread Ben Finney
Robert Voigtländer r.voigtlaen...@gmail.com writes: which would be the best data structure to use for the following case? First up, I want to compliment you on asking exactly the right question. Getting the data structure right or wrong can often shape the solution dramatically. I have

Re: Early retirement project?

2014-01-21 Thread Tim Chase
On 2014-01-21 00:00, xeysx...@gmail.com wrote: Well, I retired early, and I guess now I've got some spare time to learn about programming, which always seemed rather mysterious. I am using an old mac as my main computer, and it runs os x 10.4 is this too old? It fills my needs, and I am on a

Re: which data structure to use?

2014-01-21 Thread Oscar Benjamin
On Tue, Jan 21, 2014 at 03:17:43AM -0800, Robert Voigtländer wrote: Hi, which would be the best data structure to use for the following case? I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos self.parent =

Re:use class in class

2014-01-21 Thread Dave Angel
Robert Voigtländer r.voigtlaen...@gmail.com Wrote in message: Hi, I have a problem using a class object within another class. It is about the line: self.openlist.append(Node(self.start, None, 0, 0)) If I use it in __init__ it works. If I use it in calcRoute(self) I get the following

Re: Early retirement project?

2014-01-21 Thread Larry Martell
On Tue, Jan 21, 2014 at 1:30 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: Congrats on the early retirement! It takes guts to decide to do that. :) I thought it took money. -- https://mail.python.org/mailman/listinfo/python-list

Re: which data structure to use?

2014-01-21 Thread Robert Voigtländer
On Tue, Jan 21, 2014 at 03:17:43AM -0800, Robert Voigtl�nder wrote: I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos self.parent = parent self.g = g self.h = h

Re: which data structure to use?

2014-01-21 Thread Robert Voigtländer
Am Dienstag, 21. Januar 2014 14:38:34 UTC+1 schrieb Robert Voigtländer: On Tue, Jan 21, 2014 at 03:17:43AM -0800, Robert Voigtl�nder wrote: I have objects like this: class Node(object): def __init__(self, pos, parent, g , h):

Flushing out data from Popen buffer

2014-01-21 Thread abc79721
I am working on a python script that reads data by tailing a file and then puts in a different file. The script works in a time bound manner and eventually flushes out the data from the buffer when the ENDTIME is reached. However there has been a mismatch in the source and target file in terms

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Dan Sommers
On Tue, 21 Jan 2014 10:32:13 +, Oscar Benjamin wrote: ... When you set assignments the students will usually learn more if they work in groups. However at some point you need to try and assess how much they've individually learned. I find in practice that it's easy to tell when a student

Re: which data structure to use?

2014-01-21 Thread Oscar Benjamin
On Tue, Jan 21, 2014 at 05:38:34AM -0800, Robert Voigtländer wrote: On Tue, Jan 21, 2014 at 03:17:43AM -0800, Robert Voigtl�nder wrote: I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos

Re: which data structure to use?

2014-01-21 Thread Peter Otten
Robert Voigtländer wrote: On Tue, Jan 21, 2014 at 03:17:43AM -0800, Robert Voigtl�nder wrote: I have objects like this: class Node(object): def __init__(self, pos, parent, g , h): self.pos = pos self.parent = parent self.g = g

Re: which data structure to use?

2014-01-21 Thread Peter Otten
Peter Otten wrote: def pop(self): f, node = heapq.heappop() del lookup[node.pos] return node That should be def pop(self): f, node = heapq.heappop(self.heap) del self.lookup[node.pos] return node --

import file without .py into another module

2014-01-21 Thread kevinbercaw
I have a python script that accepts two arguments: sys.argv[1] is the full directory path to a config script. The script is python but does not have a .py extension! sys.argv[2] is the file name of the config script For example: mainScript.py ./ a15800 The config script sets variables that I

Re: import file without .py into another module

2014-01-21 Thread MRAB
On 2014-01-21 14:44, kevinber...@gmail.com wrote: I have a python script that accepts two arguments: sys.argv[1] is the full directory path to a config script. The script is python but does not have a .py extension! sys.argv[2] is the file name of the config script For example: mainScript.py

Re: import file without .py into another module

2014-01-21 Thread kevinbercaw
On Tuesday, January 21, 2014 10:06:16 AM UTC-5, MRAB wrote: On 2014-01-21 14:44, wrote: I have a python script that accepts two arguments: sys.argv[1] is the full directory path to a config script. The script is python but does not have a .py extension! sys.argv[2] is the file

Re: import file without .py into another module

2014-01-21 Thread kevinbercaw
On Tuesday, January 21, 2014 9:44:13 AM UTC-5, kevin...@gmail.com wrote: I have a python script that accepts two arguments: sys.argv[1] is the full directory path to a config script. The script is python but does not have a .py extension! sys.argv[2] is the file name of the config script

Re: use class in class

2014-01-21 Thread Robert Voigtländer
copy/paste of the whole thing. The actual error message could not have said node, as there's no such name in the method. You are correct. I copied the error before I renamed node into Node. I have to be more consistent here. :-) The source for the error was still the same. --

Re: Early retirement project?

2014-01-21 Thread Grant Edwards
On 2014-01-21, Larry Martell larry.mart...@gmail.com wrote: On Tue, Jan 21, 2014 at 1:30 AM, Devin Jeanpierre jeanpierr...@gmail.com wrote: Congrats on the early retirement! It takes guts to decide to do that. :) I thought it took money. One or the other. If you've got money, it doesn't take

Re: import file without .py into another module

2014-01-21 Thread Peter Otten
kevinber...@gmail.com wrote: How do I get the value of the config file variable myVar?? It seems it's interpreting the variable name as a string rather than a variable name. I don't see any python function stringToVariable. The line: configModuleObject =

Re: import file without .py into another module

2014-01-21 Thread Tim Chase
On 2014-01-21 07:13, kevinber...@gmail.com wrote: On Tuesday, January 21, 2014 10:06:16 AM UTC-5, MRAB wrote: configModuleObject = imp.load_source(fileName, filePath) imports the module and then binds it to the name configModuleObject, therefore: print configModuleObject.myVar

Re: which data structure to use?

2014-01-21 Thread Robert Voigtländer
Am Dienstag, 21. Januar 2014 15:19:54 UTC+1 schrieb Peter Otten: Peter Otten wrote: def pop(self): f, node = heapq.heappop() del lookup[node.pos] return node That should be def pop(self): f, node =

Re: which data structure to use?

2014-01-21 Thread Robert Voigtländer
def pop(self): f, node = heapq.heappop() del lookup[node.pos] return node That should be def pop(self): f, node = heapq.heappop(self.heap) del self.lookup[node.pos] return node Hi Peter, this works great. I

ANN: rom 0.25.0 - Redis object mapper for Python

2014-01-21 Thread Josiah Carlson
Hey everyone, Big change today: rom now supports fast prefix, suffix, and pattern match queries over your data. The method is based on the autocomplete process described in my book, Redis in Action The rom package is a Redis object mapper for Python. It sports an interface similar to Django's

Re: import file without .py into another module

2014-01-21 Thread kevinbercaw
On Tuesday, January 21, 2014 10:40:09 AM UTC-5, Peter Otten wrote: kevin...@gmail.com wrote: How do I get the value of the config file variable myVar?? It seems it's interpreting the variable name as a string rather than a variable name. I don't see any python function

Re: Diving in to Python - Best resources?

2014-01-21 Thread Rustom Mody
On Tuesday, January 21, 2014 1:04:16 AM UTC+5:30, Matt Watson wrote: Getting in the habit of dropping in a google group for any new project - everyone tends to be so helpful. I work in the automotive sales industry(management) and find myself doing so many day to day tasks that could easily

Re: Early retirement project?

2014-01-21 Thread Terry Reedy
On 1/21/2014 6:38 AM, Tim Chase wrote: On 2014-01-21 00:00, xeysx...@gmail.com wrote: Well, I retired early, and I guess now I've got some spare time to learn about programming, which always seemed rather mysterious. I am using an old mac as my main computer, and it runs os x 10.4 is this too

autoconf tools and python3 3m 3dm

2014-01-21 Thread Mark Heieis
Hi, I've been migrating a python2 package+extension to python3. The problem I'm running into is with ./configure and which version it picks up or doesn't in this case. The default is python2 and works just fine as expected. However, when ./configure PYTHON=python3 is run, the problems

Re: Diving in to Python - Best resources?

2014-01-21 Thread Terry Reedy
On 1/21/2014 11:00 AM, Rustom Mody wrote: On Tuesday, January 21, 2014 1:04:16 AM UTC+5:30, Matt Watson wrote: Getting in the habit of dropping in a google group for any new project - everyone tends to be so helpful. I work in the automotive sales industry(management) and find myself doing

Re: Add followers at time of import

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 4:52 AM, emile em...@fenx.com wrote: Hi Ethan, How hard would it be to add a follower to a transaction (PO or Sales Order) at time of import if the account has that follower? IOW, Ron follows 'hilltop ranch' -- he'd like all activity linked to 'hilltop ranch' to

Running pywin32-218.win32-py2.7.exe (win32 package for Python) results in error “The file exists”

2014-01-21 Thread Ziv Tepman
I am trying to install the Python module win32 but whenever I click on the exe file (pywin32-218.win32-py2.7.exe) I get the message The file exists Could not create temporary file, and when I click OK, I get the message, pywin32-218.win32-py2.7. I have chosen the appropriate build. How might I fix

Re: which data structure to use?

2014-01-21 Thread Mark Lawrence
On 21/01/2014 13:43, Robert Voigtländer wrote: [double spaced google disease snipped] I'm pleased to see the regular contributors helping out as usual. In response would you please be kind enough to read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the

Add followers at time of import

2014-01-21 Thread emile
Hi Ethan, How hard would it be to add a follower to a transaction (PO or Sales Order) at time of import if the account has that follower? IOW, Ron follows 'hilltop ranch' -- he'd like all activity linked to 'hilltop ranch' to include him as a follower. Right now, following the account

Re: import file without .py into another module

2014-01-21 Thread Mark Lawrence
On 21/01/2014 15:50, kevinber...@gmail.com wrote: [snipped the double line spaced stuff courtesy of google] Would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the double line spacing that google inserts, thanks. -- My fellow

Re: Add followers at time of import

2014-01-21 Thread Ethan Furman
On 01/21/2014 10:03 AM, Chris Angelico wrote: On Wed, Jan 22, 2014 at 4:52 AM, emile wrote: Ask if that's not clear. I'm not entirely sure, but I think this might have been meant for somewhere other than python-list. Welcome to the club. And it's an elite club, too! Very few members. ;)

Re: which data structure to use?

2014-01-21 Thread Peter Otten
Robert Voigtländer wrote: def pop(self): f, node = heapq.heappop() del lookup[node.pos] return node That should be def pop(self): f, node = heapq.heappop(self.heap) del self.lookup[node.pos] return node Hi

Re: Add followers at time of import

2014-01-21 Thread emile
On 01/21/2014 10:03 AM, Chris Angelico wrote: On Wed, Jan 22, 2014 at 4:52 AM, emile em...@fenx.com wrote: SNIP Ask if that's not clear. I'm not entirely sure, but I think this might have been meant for somewhere other than python-list. Welcome to the club. Aargh! -- I hate when that

A day of free Python Django talks tutorials, Cardiff (UK)

2014-01-21 Thread D.M. Procida
Django Weekend Cardiff https://djangoweekend.org/ is completely sold out. Our open day remains open however, and you're invited to attend the numerous talks, tutorials and demonstrations in the programme. They'll all be held at Cardiff University.

Re: Running pywin32-218.win32-py2.7.exe (win32 package for Python) results in error “The file exists”

2014-01-21 Thread Ziv Tepman
A small correction to my prior message: I am trying to install the Python module win32 but whenever I click on the exe file (pywin32-218.win32-py2.7.exe) I get the message The file exists Could not create temporary file, and when I click OK, I get the message, *Setup program invalid or damaged*.

Re: Python 3.x adoption

2014-01-21 Thread Travis Griggs
Looks like the 2/3 topic has lain fallow for a couple of days, gotta keep it burning… I’m a relatively recent python convert, but been coding and talking to others about coding for many moons on this big blue orb. I think the industrial side of this debate has been talked up quite a bit. We

Re: Python 3.x adoption

2014-01-21 Thread Chris Kaynor
On Tue, Jan 21, 2014 at 11:04 AM, Travis Griggs travisgri...@gmail.comwrote: Being a fan of JIT, I have big hopes for PyPy, I can’t figure out why they aren’t pitching their “cutting edge” interpreter, for the “cutting edge” version of python. There should be a wall of superpowers/shame for

Modifying the default argument of function

2014-01-21 Thread
Hi everybody, A friend of mine asked me a question about the following code: [code] def f(x=[2,3]): x.append(1) return x print(f()) print(f()) print(f()) [/code] The results are [2, 3, 1], [2, 3, 1, 1] and [2, 3, 1, 1, 1]. The function acts as if there were a global variable x, but

Re: Modifying the default argument of function

2014-01-21 Thread Steve Jones
On Tue, 21 Jan 2014 20:11:02 +0100 Mû m...@melix.net wrote: Hi everybody, A friend of mine asked me a question about the following code: [code] def f(x=[2,3]): x.append(1) return x print(f()) print(f()) print(f()) [/code] The results are [2, 3, 1], [2, 3, 1, 1] and

Re: Modifying the default argument of function

2014-01-21 Thread emile
Function defs with mutable arguments hold a reference to the mutable container such that all invocations access the same changeable container. To get separate mutable default arguments, use: def f(x=None): if x is None: x=[2,3] Emile On 01/21/2014 11:11 AM, Mû wrote: Hi everybody, A

Re: Modifying the default argument of function

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 6:11 AM, Mû m...@melix.net wrote: The function acts as if there were a global variable x, but the call of x results in an error (undefined variable). I don't understand why the successive calls of f() don't return the same value: indeed, I thought that [2,3] was the

Re: Modifying the default argument of function

2014-01-21 Thread
Le 21/01/2014 20:19, Chris Angelico a écrit : On Wed, Jan 22, 2014 at 6:11 AM, Mû m...@melix.net wrote: The function acts as if there were a global variable x, but the call of x results in an error (undefined variable). I don't understand why the successive calls of f() don't return the same

Re: Modifying the default argument of function

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 6:36 AM, Mû m...@melix.net wrote: These were clear and quick answers to my problem. I did not think of this possibility: the default argument is created once, but accessible only by the function, therefore is not a global variable, whereas it looks like if it were at

Re: Diving in to Python - Best resources?

2014-01-21 Thread Ethan Furman
On 01/21/2014 08:00 AM, Rustom Mody wrote: Most people -- even those using spreadsheets -- dont seem to think of the spreadsheet macro language/VBA as a programming language Ack, are you trying to put him off programming again?!? ;) Python us fun and a pleasure to use. VBA is not. (IMNSHO

Re: Python 3.x adoption

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 6:04 AM, Travis Griggs travisgri...@gmail.com wrote: I’ve had a bunch of interns around me lately though, wanting to get into python, and this is where I find the momentum really breaks down. If newcomers go to take an online course in python, they might try MIT’s Open

how to avoid spaghetti in Python?

2014-01-21 Thread CM
I've been learning and using Python for a number of years now but never really go particularly disciplined about all good coding practices. I've definitely learned *some*, but I'm hoping this year to take a good step up in terms of refactoring, maintainability, and mostly just de-spaghettizing

Python 1.0 - release date?

2014-01-21 Thread Dan Stromberg
Does anyone know when Python 1.0 was released? I want to say August of 1993, but there are apparently those who disagree. Thanks. -- https://mail.python.org/mailman/listinfo/python-list

Re: how to avoid spaghetti in Python?

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 7:38 AM, CM cmpyt...@gmail.com wrote: 1) One of my main spaghetti problems is something I don't know what to ever call. Basically it is that I sometimes have a chain of functions or objects that get called in some order and these functions may live in different

http://bugs.python.org/user?@template=rego_progress broken?

2014-01-21 Thread Charles Hixson
I have tried to register at http://bugs.python.org, and got as far as this page, where I am told: You will shortly receive an email to confirm your registration. To complete the registration process, visit the link indicated in the email. But it hasn't arrived after over a day. This case isn't

Re: Python 1.0 - release date?

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 7:54 AM, Dan Stromberg drsali...@gmail.com wrote: Does anyone know when Python 1.0 was released? I want to say August of 1993, but there are apparently those who disagree. Wikipedia [1] says Jan 1994, but the cited link [2] doesn't actually give a date for 1.0. However,

Re: how to avoid spaghetti in Python?

2014-01-21 Thread andrea crotti
2014/1/21 CM cmpyt...@gmail.com: I've been learning and using Python for a number of years now but never really go particularly disciplined about all good coding practices. I've definitely learned *some*, but I'm hoping this year to take a good step up in terms of refactoring,

Re: Python 1.0 - release date?

2014-01-21 Thread Skip Montanaro
I want to say August of 1993, but there are apparently those who disagree. Misc/HISTORY says 26 January 1994: === == Release 1.0.0 (26 January 1994) == === Actually, Misc/HISTORY has release headings going back as far as

Re: Running pywin32-218.win32-py2.7.exe (win32 package for Python) results in error “The file exists”

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 5:45 AM, Ziv Tepman ztep...@gmail.com wrote: I am trying to install the Python module win32 but whenever I click on the exe file (pywin32-218.win32-py2.7.exe) I get the message The file exists Could not create temporary file, and when I click OK, I get the message,

RE: Implementing append within a descriptor

2014-01-21 Thread Joseph L. Casale
You're going to have to subclass list if you want to intercept its methods. As I see it, there are two ways you could do that: when it's set, or when it's retrieved. I'd be inclined to do it in __set__, but either could work. In theory, you could make it practically invisible - just check to

Re: autoconf tools and python3 3m 3dm

2014-01-21 Thread Asaf Las
On Tuesday, January 21, 2014 7:55:13 PM UTC+2, Mark Heieis wrote: Hi, would work either as one would need to know in advance specifically which one to call and there'd be extra work to extract the full version info, etc. ($python3-config --includes yields -I/usr/include/python3.3m

Separate Address number and name

2014-01-21 Thread Shane Konings
I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. FarmID Address 1 1067 Niagara Stone 2 4260 Mountainview 3 25 Hunter 4 1091 Hutchinson 5 5172 Green Lane 6 500 Glenridge 7

Re: Separate Address number and name

2014-01-21 Thread Anders Wegge Keller
Shane Konings shane.koni...@gmail.com writes: I have struggled with this for a while and know there must be a simple method to achieve this result. There are several. But without seeing the code you have already written, it's har to help you improve it. -- /Wegge Leder efter redundant

Re: Separate Address number and name

2014-01-21 Thread Shane Konings
I don't have any code to split that part up. There is other information following the street name such as street suffix, city, province, postal code, etc. I have been able to split the rest of it up based on certain criteria but have had no luck with splitting up the street name from the

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Steven D'Aprano
Hi Indar, On Sun, 19 Jan 2014 23:55:59 -0800, indar kumar wrote: If you allow me I can post a small part of that assignment, it just requires the manipulation with dictionary which I am not getting. I am not asking to write a code for me. But a small hint would get me out of trouble. In

Re: Separate Address number and name

2014-01-21 Thread Ben Finney
Shane Konings shane.koni...@gmail.com writes: I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. FarmIDAddress 1 1067 Niagara Stone 2 4260 Mountainview 3 25 Hunter 4 1091

Re: Separate Address number and name

2014-01-21 Thread Shane Konings
inHandler = open(inFile, 'r') outHandler = open(outFile, 'w') outHandler.write('ID\tAddress\tStreetNumName\tSufType\tDir\tCity\tProvince\tPostalCode\n') for line in inHandler: str = line.replace('FarmID\tAddress','') outHandler.write(str[0:-1]) str = str.replace(', ON', '\t ON\t')

Re: Separate Address number and name

2014-01-21 Thread Asaf Las
On Wednesday, January 22, 2014 1:49:16 AM UTC+2, Shane Konings wrote: I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. I have struggled with this for a while and know there must be a simple method to

Re: Modifying the default argument of function

2014-01-21 Thread Asaf Las
On Tuesday, January 21, 2014 9:46:16 PM UTC+2, Chris Angelico wrote: On Wed, Jan 22, 2014 at 6:36 AM, Mû m...@melix.net wrote: These were clear and quick answers to my problem. I did not think of this possibility: the default argument is created once, but accessible only by the function,

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Steven D'Aprano
On Mon, 20 Jan 2014 18:39:44 +1100, Ben Finney wrote: But sometimes different skills are being examined, and the student should be exercising skills on their own without basing it directly on the work of others. In these cases, penalties for plagiarism are appropriate, would you agree? How

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Steven D'Aprano
On Mon, 20 Jan 2014 19:17:35 +1100, Ben Finney wrote: indar kumar indarkuma...@gmail.com writes: Hint would have been enough but I was strictly discouraged. You asked for private help, specifically to subvert the rules against plagiarism you're subject to. So no, I don't believe this

Re: Separate Address number and name

2014-01-21 Thread Anders Wegge Keller
Shane Konings shane.koni...@gmail.com writes: ... The following is a sample of the data. There are hundreds of lines that need to have an automated process of splitting the strings into headings to be imported into excel with theses headings ID Address StreetNum StreetName SufType Dir

Re: http://bugs.python.org/user?@template=rego_progress broken?

2014-01-21 Thread Terry Reedy
On 1/21/2014 4:00 PM, Charles Hixson wrote: I have tried to register at http://bugs.python.org, and got as far as this page, where I am told: You will shortly receive an email to confirm your registration. To complete the registration process, visit the link indicated in the email. But it

Re: Diving in to Python - Best resources?

2014-01-21 Thread notbob
On 2014-01-20, Matt Watson mattwatson.m...@gmail.com wrote: My question to you guys is... for someone like me, what route would you take to learning Python? Learn Python the Hard Way sounds like a good route, but I prefer some testimony before I make a purchase. You sound a lot like myself,

Re: Separate Address number and name

2014-01-21 Thread John Gordon
In 9fe1b47b-65ce-4063-9188-07b81cdba...@googlegroups.com Shane Konings shane.koni...@gmail.com writes: I have the following sample from a data set and I am looking to split the address number and name into separate headings as seen below. FarmIDAddress 1 1067 Niagara Stone 2

Self healthcheck

2014-01-21 Thread Asaf Las
Hi When designing long running background process is it feasible to monitor object/memory leakage due to improper programming? If it could be possible to make module which monitor and record trends if alive objects then event can be generated and logged if noof zombie objects are to

Re: Separate Address number and name

2014-01-21 Thread Tim Chase
On 2014-01-22 02:46, John Gordon wrote: FarmID AddressNumAddressName 1 1067 Niagara Stone 2 4260 Mountainview 3 25Hunter 4 1091 Hutchinson I have struggled with this for a while and know there must be a simple method to

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Rustom Mody
On Wednesday, January 22, 2014 6:21:37 AM UTC+5:30, Steven D'Aprano wrote: On Mon, 20 Jan 2014 19:17:35 +1100, Ben Finney wrote: indar kumar writes: Hint would have been enough but I was strictly discouraged. You asked for private help, specifically to subvert the rules against

Re: Self healthcheck

2014-01-21 Thread Chris Angelico
On Wed, Jan 22, 2014 at 1:51 PM, Asaf Las roeg...@gmail.com wrote: When designing long running background process is it feasible to monitor object/memory leakage due to improper programming? I assume you're talking about pure Python code, running under CPython. (If you're writing an extension

Re: Can post a code but afraid of plagiarism

2014-01-21 Thread Roy Smith
In article c8157920-dca7-4049-b677-56178d259...@googlegroups.com, Rustom Mody rustompm...@gmail.com wrote: I was working in a large sw-development company some years ago. One day unexpectedly I found I could not download any more the FOSS sw I regularly use. What happened?? Evidently a

  1   2   3   >