Docstrings and class Attributes

2011-08-08 Thread Nick
Is it possible to put a doc string on a class attribute? Something like this class Test (object): '''classx''' fred = 10 '''attribute''' print Test.__doc__ print Test.fred.__doc__ This code produces this output classx int(x[, base]) -> integer Convert a string or number to an inte

Re: Meta Data

2016-03-29 Thread Nick
I did find a couple of patterns in Effective Python: 59 Specific Ways to Write Better Python (Effective Software Development). Registering classes and a field example. Thanks N. -- https://mail.python.org/mailman/listinfo/python-list

Re: Bitching about the documentation...

2005-12-05 Thread nick
If you're interested in contributing to Python's documentation, there's no need to learn LaTeX if you're not so inclined; plain text contributions are more than welcome as well. """ -- nick (nicholas dot dokos at hp dot com) -- http://mail.python.org/mailman/listinfo/python-list

Re: Finding user's home dir

2005-02-02 Thread Nick
Python 2.4 (#1, Jan 1 2005, 21:33:55) [GCC 3.3.4] on linux2 Slackware 10 Current Works! Nice. -- http://mail.python.org/mailman/listinfo/python-list

Re: Lots of pdf files

2005-07-21 Thread nick
Paul Rubin wrote: > Greg Lindstrom <[EMAIL PROTECTED]> writes: > > There does not appear to be a simple way to merge many pdf's into one. > There's probably some way to do it with pstops or some related program > or set of programs. Google for "multivalent tools" - a co

Re: Python, VB and COM

2004-12-21 Thread Nick
Thanks Steve. I eventually found the library. Running makepy over the library produced the requisite file. Its working. Help appreciated. Nick -- http://mail.python.org/mailman/listinfo/python-list

Meta Data

2016-03-28 Thread Nick
Django has the idea of specifying models using typed Fields. The same exists within SQLAlchemy Are there any tutorials on setting up a similar system. ie. Declare classes and fields, query the meta data. Fields restricted to certain types. N. -- https://mail.python.org/mailman/listinfo/pytho

Re: Meta Data

2016-03-28 Thread Nick
Thanks Joel, A quick look on Amazon shows it is probably relevant. N. -- https://mail.python.org/mailman/listinfo/python-list

Python on handhelds

2006-09-10 Thread Nick
. Does anyone know if I can run Python on the Dell Axim handheld. It runs Windows CE. If so, what all is needed to make this possible. Thanks Nick../ -- http://mail.python.org/mailman/listinfo/python-list

Python Worship

2006-11-30 Thread Nick
http://www.sciencedaily.com/releases/2006/11/061130081347.htm World's Oldest Ritual Discovered -- Worshipped The Python 70,000 Years Ago Nick -- http://mail.python.org/mailman/listinfo/python-list

Click this link, scroll to the bottom, and get your own free mall!!

2006-02-17 Thread nick
http://www.telebay.com/esolutions/mall.html -- http://mail.python.org/mailman/listinfo/python-list

Click this link, scroll to the bottom, and get your own free mall!!

2006-02-17 Thread nick
http://www.telebay.com/esolutions/mall.html -- http://mail.python.org/mailman/listinfo/python-list

Click this link, scroll to the bottom, and get your own free mall!!

2006-02-17 Thread nick
http://www.telebay.com/esolutions/mall.html -- http://mail.python.org/mailman/listinfo/python-list

strip() 2.4.4

2007-06-21 Thread Nick
:'DZA':'012':'ALGERIA':'Algeria' 'AS':'ASM':'016':'AMERICAN SAMOA':'American Samoa' Code: f1 = open('in.txt', 'r') for line in f1: print line.rsplit(':')[4].strip("'"), Output: Afghanistan' Albania' Algeria' American Samoa' Why is there a apostrophe still at the end? Thanks in advance. Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: strip() 2.4.4

2007-06-21 Thread Nick
On 21 Jun, 14:53, Neil Cerutti <[EMAIL PROTECTED]> wrote: > On 2007-06-21, Nick <[EMAIL PROTECTED]> wrote: > > > > > strip() isn't working as i expect, am i doing something wrong - > > > Sample data in file in.txt: > > > 'AF':'

Curses and resizing windows

2007-02-28 Thread Nick !
on, it's not a bug, it's a feature. Joy! The workaround is to write a sigwinch_handler that at least does `endwin(); initscr()`. Sorry for reviving an old thread, but it doesn't seem the issue was ever resolved (the thread doesn't go anywhere and there's no warning about this in the docs that I noticed). (please CC: me if anyone cares, I'm not on the list) -Nick Guenther -- http://mail.python.org/mailman/listinfo/python-list

Escaping the semicolon?

2007-12-04 Thread Nick
Hi all, Is this expected behavior? >>> s = '123;abc' >>> s.replace(';', '\;') '123\\;abc' I just wanted a single backslash. I can see why this probably happens but i wondered if it is definitely intentional. Thanks Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Escaping the semicolon?

2007-12-04 Thread Nick
7;, '[', ']', ')', '?' ] for ch in escape_char_list: input = input.replace(ch, '\\' + ch) print input --- Try "123 *?/ abc d;o /$'" as the argument... and you get - 123 \*\?\/ abc d\\;o \/\$ Still two back slashes, did i miss something very obvious? Sorry, sometimes these things are exasperating and just need more eyes or a head screwed on (if thats the case!). Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Escaping the semicolon?

2007-12-04 Thread Nick
> > If you move '\\' to the front of your list of replacement characters, > things will probably work as you expect. > > -- > Jerry I knew it would be something like that! Thanks for your help. -- http://mail.python.org/mailman/listinfo/python-list

Re: problem with reload(sys) (doing reload on the sys module)

2006-05-04 Thread nick
you started Python from the command line, with no IDLE involved). -- nick (nicholas dot dokos at hp dot com) -- http://mail.python.org/mailman/listinfo/python-list

free download - breve 2.7.2 : a 3D Simulation Environment for Multi-Agent Simulations and Artificial Life

2009-01-22 Thread Nick
www.filecub.com What is breve? breve is a free, open-source software package which makes it easy to build 3D simulations of multi-agent systems and artificial life. Using Python, or using a simple scripting language called steve, you can define the behaviors of agents in a 3D world and observe how

Re: Portable way to refer to the null device?

2009-02-07 Thread nick
On Fri, Feb 06, 2009 at 07:32:20PM -0800, Roy Smith wrote: > I need to run a command using subprocess.Popen() and have stdin > connected to the null device. On unix, I would do: > > self.process = subprocess.Popen(argv, > env=new_env, >

Re: simple web app, where to start

2009-02-07 Thread nick
wbies, because the web server and the framework and bundled together. 1: http://www.cherrypy.org/ HTH, Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Best 3d graphics kit for CAD program???

2009-02-08 Thread nick
Gary Your email client is set to HTML mode and looks terrible for those of us who prefer plain view. It also appears your client is not properly sending your message in text/plain encoding. -- http://mail.python.org/mailman/listinfo/python-list

An inheritance question: getting the name of the "one up" class

2009-03-30 Thread Nick
print n, n = Well, this is where I'm stuck. super(???,???).??? print Oh, and while the gurus are at it, what would be the advantage (if any) of changing, say Primate.__init__(self) to super(Human, self).__init__() Thanks, all, Nick. -- http://mail.python.org/mailman/listinfo/python-list

Re: An inheritance question: getting the name of the "one up" class

2009-03-31 Thread Nick
Thanks for the replies. This has given me some incentive to start looking at Python 3. Oh, and thanks for the articles on super(). Nick -- http://mail.python.org/mailman/listinfo/python-list

SQL and CSV

2009-05-05 Thread Nick
<> "Canceled" Using adodb I can do this, so long as I don't have the where clause. :- ( Is there a reasonable lightweight way of doing this in Python? I could write some python code that is used to filter rows, and inport that from config, but it's not quite as elegant as a

Re: SQL and CSV

2009-05-05 Thread Nick
On May 5, 5:19 pm, Tim Golden wrote: > Nick wrote: > > I have a requirement to read a CSV file. Normally, no problem, just > > import CSV and slurp the file up. > > > However, in this case I want to filter out lines that have fields set > > to particular values. >

Re: SQL and CSV

2009-05-07 Thread Nick
On May 5, 8:27 pm, Tim Golden wrote: > Nick wrote: > > Part of the problem is that the 'selection' needs to be in a config > > file. I can put the if row['status'] != 'Cancelled': return True into > > a config, read it and eval it, but its n

Re: SQL and CSV

2009-05-08 Thread Nick
ed to manipulate the data. The choices are hard code the manipulation, or load the data from a config file. So what I've got is the query in the config and I can process it. Nick -- http://mail.python.org/mailman/listinfo/python-list

Implementation suggestions for creating a Hierarchical circuit database

2009-12-10 Thread nick
g out some simple electrical properties. I am just starting, so please bear with me if I haven't thought about corner cases. Regards Nick -- http://mail.python.org/mailman/listinfo/python-list

catching my own exception

2010-06-18 Thread nick
I have a problem with catching my own exception. Here is the code: http://fly.srk.fer.hr/~nick/travapi/blame.php?repname=Travian+API&path=%2Fvillage.py&; Line 252 calls a method, which on line 207 raises a SomethingBeingBuiltError exception. On line 253 I catch that exception, but when I

Re: catching my own exception

2010-06-18 Thread nick
Dana Fri, 18 Jun 2010 10:36:21 -0700 (PDT), Jon Clements kaze: > http://www.travian.com/spielregeln.php -- rule 3??? Yeah, I know. If it's any consolation to you, I'm not doing it for the fun of wining the game (hence not bothering to hide de code) but for the fun of coding the API. :-) Anyway,

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Nick
Emmy Noether writes: > On Jul 7, 1:57 pm, bolega wrote: >> "Democracy is sick in the US, government monitors your >> Internet"http://www.youtube.com/watch?v=2BfCJq_zIdk&feature=fvsr >> >> Enjoy . > > In this video, Stall man makes 4 promises to public but stalls on 2nd > of them. I have no

Re: Fascinating interview by Richard Stallman on Russia TV

2010-07-18 Thread Nick
Emmy Noether writes: > On Jul 18, 1:09 am, Nick <3-nos...@temporary-address.org.uk> wrote: >> Emmy Noether writes: >> > On Jul 7, 1:57 pm, bolega wrote: >> >> "Democracy is sick in the US, government monitors your >> >> Internet&qu

gett error message: "TypeError: 'int' object is not callable"

2009-07-09 Thread Nick
trying to read in 2 matrices from different files, strip away the header stuff and then take the dot product of the 2 matrices. any help is much appreciated. thanks, nick -- http://mail.python.org/mailman/listinfo/python-list

Re: gett error message: "TypeError: 'int' object is not callable"

2009-07-09 Thread Nick
On Jul 9, 10:02 am, "Richard Brodie" wrote: > "Nick" wrote in message > > news:e54c4461-c0b7-42fb-8542-cefd7bf5f...@h18g2000yqj.googlegroups.com... > > > file = open(prefix1) > > text = file.readlines() > > len = len(text) > > You have

Re: gett error message: "TypeError: 'int' object is not callable"

2009-07-09 Thread Nick
no problem, i understand, i haven't coded anything in literally 2 years, but it was a simple and pretty obvious mistake. thanks for all your help, nick On Jul 9, 11:30 am, Friðrik Már Jónsson wrote: > Previously, I wrote: > >> P.S. While this is a fairly obvious problem it

Re: gett error message: "TypeError: 'int' object is not callable"

2009-07-10 Thread Nick
On Jul 9, 8:22 pm, Paul Rubin <http://phr...@nospam.invalid> wrote: > Nick writes: > > text = file.readlines() > > len = len(text) > > fields = text[1].split() > > Is that intended to split the first line of the file? Remember > that arrays in python beg

This is a mess...

2009-07-16 Thread Nick
fields[i]) U1_matrix.append(fields) Input the second prefix2_U.asc file: this is the 2nd eigen vector matrix prefix2 = sys.argv[2] + "_U.asc" fileholder = open(prefix2) text = fileholder.readlines() fields = text[1].split() num_rows = int(fields[1]) num_cols = int(fie

Re: This is a mess...

2009-07-16 Thread Nick
e_val, e_vect): self.e_val = e_val self.e_vect = e_vect def length(self): return len(self.e_vect) def dot(self, other): d = 0.0 if other.length() != self.length(): raise ValueError, "Eigen Vectors not same Length" for

Re: "Strong typing vs. strong testing"

2010-09-28 Thread Nick
t...@sevak.isi.edu (Thomas A. Russ) writes: > Malcolm McLean writes: > >> I'd like to design a language like this. If you add a quantity in >> inches to a quantity in centimetres you get a quantity in (say) >> metres. If you multiply them together you get an area, if you divide >> them you get a

Re: "Strong typing vs. strong testing"

2010-09-29 Thread Nick
Ian Collins writes: > On 09/30/10 05:57 PM, RG wrote: >> >> I'm not saying one should not use compile-time tools, only that one >> should not rely on them. "Compiling without errors" is not -- and >> cannot ever be -- be a synonym for "bug-free." > > We is why wee all have run time tools called

RE: Creating a Super Simple WWW Link, Copy, & Paste into Spreadsheet Program

2013-06-13 Thread Nick Cash
use COM >to control the Excel >application in reading and writing the files. Outside >of Windows, the best bet is usually to work >with csv files instead, as Dave >suggested. I've had success with the xlrd and xlwt suite of modules (http://www.python-excel.org/), using bo

RE: vBulletin scraper -- feasible?

2012-06-25 Thread Nick Cash
You may want to look into http://www.crummy.com/software/BeautifulSoup/ It's made for parsing (potentially bad) HTML, and is quite easy to use. I'd say it's quite feasible. Thanks, Nick Cash NPC International -Original Message- From: python-list-bounces+nick.cash=n

RE: Numpy combine channels

2012-09-10 Thread Nick Cash
ecessary. A simple solution would be just a quick list comprehension: stereo_array = [[1, 1], [1, 2], [2, 3]] mono_array = [l+r for (l, r) in stereo_array] Thanks, Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

RE: get google scholar using python

2012-10-01 Thread Nick Cash
uk/scholar?q=albert+einstein%2B1905&btnG=&hl=en&as_sdt=0%2C5&as_sdtp=";, headers={"User-Agent":"Mozilla/5.0 Cheater/1.0"})) -Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

RE: len() on mutables vs. immutables

2012-10-18 Thread Nick Cash
pes would be similar, though I don't see anything explicitly saying so for bytearray. -Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

SQLAlchemy: How to do Table Reflection and MySQL?

2012-10-20 Thread Nick Sabalausky
Hi, I'm fairly new to Python, and I'm trying to figure out how to use SQLAlchemy to connect to a MySQL DB and use table reflection to set up SQLAlchemy's tables. But the SQLAlchemy documentation is gigantic and frankly kinda making my head spin, so I'm having trouble even finding any information o

Re: SQLAlchemy: How to do Table Reflection and MySQL?

2012-10-23 Thread Nick Sabalausky
On Mon, 22 Oct 2012 14:35:23 -0700 (PDT) darnold wrote: > > i'm not brave enough to dig too deeply into SQLAlchemy, but maybe this > will help? : > > http://kashififtikhar.blogspot.com/2010/07/using-sqlalchemy-reflection-with-pylons.html > > that came up from googling "sqlalchemy table reflecti

Re: SQLAlchemy: How to do Table Reflection and MySQL?

2012-10-23 Thread Nick Sabalausky
On Tue, 23 Oct 2012 22:42:08 + "Prasad, Ramit" wrote: > Nick Sabalausky wrote: > > On Mon, 22 Oct 2012 14:35:23 -0700 (PDT) > > darnold wrote: > > > > > > i'm not brave enough to dig too deeply into SQLAlchemy, but maybe > > > this wi

Re: Good use for itertools.dropwhile and itertools.takewhile

2012-12-04 Thread Nick Mellor
Hi Neil, Nice! But fails if the first word of the description starts with a capital letter. Nick On Wednesday, 5 December 2012 01:23:34 UTC+11, Neil Cerutti wrote: > On 2012-12-04, Nick Mellor wrote: > > > I have a file full of things like this: > > > > >

Re: Good use for itertools.dropwhile and itertools.takewhile

2012-12-04 Thread Nick Mellor
lever. If we could just get used to using takewhile. takewhile mines for gold at the start of a sequence, dropwhile drops the dross at the start of a sequence. Thanks all for your interest and your help, Best, Nick Terry's implementations: > from itertools import takewhile > &g

Re: Good use for itertools.dropwhile and itertools.takewhile

2012-12-05 Thread Nick Mellor
Hi Neil, Here's some sample data. The live data is about 300 minor variations on the sample data, about 20,000 lines. Nick Notes: 1. Whitespace is only used for word boundaries. Surplus whitespace is not significant and can be stripped 2. Retain punctuation and parentheses 3. Produ

Re: Good use for itertools.dropwhile and itertools.takewhile

2012-12-05 Thread Nick Mellor
Neil, Further down the data, found another edge case: "Spring ONION from QLD" Following the spec, the whole line should be description (description starts at first word that is not all caps.) This case breaks the latest groupby. N -- http://mail.python.org/mailman/listinfo/python-list

RE: urlopen in python3

2012-12-05 Thread Nick Cash
> In python2, this work if "something" is a regular file on the system as > well as a remote URL. The 2to3 script convert this to > urllib.request.urlopen. But it does not work anymore if "something" > is just a file name. > > My aim is to let the user specify a "file" on the command line and have

RE: How to get time.strptime()?

2012-12-26 Thread Nick Cash
> Error: AttributeError: 'module' object has no attribute '_strptime' > > This problem is driving me crazy. It only happens in Python 3.3.0, > while on my server running 3.1.3 it behaves as expected. When I try to > access time.strptime() it errors with > > AttributeError: 'module' object has no

Re: Need a specific sort of string modification. Can someone help?

2013-01-06 Thread Nick Mellor
Hi Sia, Here's another variation. It's within my tolerance for readability :-) and also quick, if that's an issue. It does 100,000 of your longer string in a couple of seconds on my venerable laptop. It handles only single-digit numbers. For multi-digit, I'd be inclined to have a look at takew

Re: Need a specific sort of string modification. Can someone help?

2013-01-06 Thread Nick Mellor
...' print p.reduce_plusminus_multi_digit(".+3ACG.+5CAACG.+3ACG.+3ACG") print p.reduce_plusminus_multi_digit(".+12ACGACGACGACG.+5CAACG.+3ACG.+3ACG") HTH, Nick On Saturday, 5 January 2013 19:35:26 UTC+11, Sia wrote: > I have strings such as: > > > > tA.-2AG.

Re: Need a specific sort of string modification. Can someone help?

2013-01-06 Thread Nick Mellor
o handle multi-digits. But it is about 4x slower than the less flexible 1-digit version on my hardware (about 25,000 per second.) Nick On Monday, 7 January 2013 14:40:02 UTC+11, Nick Mellor wrote: > Hi Sia, > > > > Find a multi-digit method in this version: > > > >

Re: Need a specific sort of string modification. Can someone help?

2013-01-06 Thread Nick Mellor
Oops! "You skip 2 + 11 characters, 2 digits in "12" and 11 letters following. And incidentally in: " should read: "You skip 2 + 11 characters, 2 digits in "11" and 11 letters following. And incidentally in: " N On Saturday, 5 January 2013 19:35:26 UTC+11, Sia wrote: > I have strings such as

Re: Need a specific sort of string modification. Can someone help?

2013-01-06 Thread Nick Mellor
7;'.join(list) swallows empty lists so takewhile and ''.join() do behind-the-scenes leg-work for me in detecting the case of absent digit(s). For my money speed isn't bad for these two methods (again, I don't know your domain.) On my (ancient) hardware the 1-d

Probabilistic unit tests?

2013-01-10 Thread Nick Mellor
mostEqual(...) # if test passed: break else: self.fail() (except that would create 5+1 tests as written!) Thanks for any thoughts, Best wishes, Nick -- http://mail.python.org/mailman/listinfo/python-list

Parent module adsite.adsiteviews.mainhanlder does not exist

2013-01-17 Thread Nick Dong
I created a django project using django 1.4.2. There is one 'app'(adsite) in this project. And It works. But when I copied some 'py' files into the 'app' folder, I got "Parent module adsite.adsiteviews.mainhanlder does not exist." Should I register the new files to __init__ in the 'app'? Did new

RE: Vote tallying...

2013-01-18 Thread Nick Cash
> I have a problem which may fit in a mysql database, but which I only > have python as an alternate tool to solve... so I'd like to hear some > opinions... Is there a reason you can't use an RDBMS for this? MySQL would certainly be fine, although I always recommend PostgreSQL over it. Based on t

urllib2 FTP Weirdness

2013-01-23 Thread Nick Cash
ted or closed... that seems like a stretch, though. Is this a urllib2 bug, or am I crazy? -Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

RE: Split string first data have ",

2013-01-29 Thread Nick Cash
ction to be a single token? Have you looked at the CSV module (http://docs.python.org/3/library/csv.html)? If my guess is wrong, or you're having difficulties with the csv module, a more specific question will help you get the answer you're looking for. -Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

RE: (any)dbm module lacks a context manager

2013-01-31 Thread Nick Cash
db. If dbm objects were real context managers, they would do this for you. This does seem like a useful enhancement. It might be slightly involved to do, as the dbm module has multiple implementations depending on what libraries are available on the OS. -Nick Cash -- http://mail.python.org/mailman/listinfo/python-list

Re: Parsing a serial stream too slowly

2012-01-23 Thread Nick Dokos
$' and end up as "1234$$B-10$$C987" - I doubt that's what you want: >>> sensor_result = "$A123$$B456$$C789$$A456$" >>> r = re.search(r'\$A.*\$.*', sensor_result) >>> s = r.group(0) >>> s = s[2:-1] >>> s '123$$B456$$C789$$A456' Is this perhaps closer to what you want? >>> r = re.search(r'\$A[^$]+\$', sensor_result) >>> r.group(0) '$A123$' >>> I'm sure there are more problems too - e.g. why are there three buffers? If they all start empty and get modified the same way, they will all contain the same string - are they modified differently in the part of the program you have not shown? They will presumably need to be trimmed appropriately to indicate which part has been consumed already. And, as somebody pointed out already, the searches should probably be against the *buffer* variables rather than the *enable* variables. Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Libxml2 Python Manual

2012-01-24 Thread Nick Dokos
he second entry in the Main Menu. Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: Determining version of OpenSSL linked against python?

2012-01-25 Thread Nick Dokos
| [GCC 4.5.2] on linux2 | Type "help", "copyright", "credits" or "license" for more information. | >>> import ssl | >>> ssl.OPENSSL_VERSION | 'OpenSSL 0.9.8o 01 Jun 2010' | >>> ` This assumes that ssh and python would use the same version of openssl: not guaranteed, but seems like a "reasonable" assumption to me. Nick -- http://mail.python.org/mailman/listinfo/python-list

Re: TypeError

2012-02-01 Thread Nick Dokos
ould be a string but for some reason, it is a None value: , | >>> ','.join([str(45), None, "bar", "foo"]) | Traceback (most recent call last): | File "", line 1, in | TypeError: sequence item 1: expected string, NoneType found |>>>

Re: Help writelines

2012-02-03 Thread Nick Dokos
. So *you* need to add the newlines, e.g. you can use a list comprehension: fob.writelines(["%s\n" % (x) for x in users]) or write in a loop: for u in users: fob.write("%s\n" % (u)) or join the list elements together with a newline separator (but you'll nee

Re: Python usage numbers

2012-02-12 Thread Nick Dokos
the TeX input method with C-x RET C-\ TeX RET. which does all of the above symbols with the exception of the cent symbol (or maybe I missed it) - you type the thing in the first column and you get the thing in the second column \pounds £ \'e é \ae æ \"o ö ^{TM} ™ \copyright © I gave up on the cent symbol and used ucs-insert (C-x 8 RET) which allows you to type a name, in this case CENT SIGN to get ¢. Nick -- http://mail.python.org/mailman/listinfo/python-list

RE: Where to set default data - where received, or where used

2012-06-11 Thread Nick Cash
This is really up to your programming style, but I'm of the opinion that defining all of the default values in one place keeps maintenance easier. Of course, if it's done differently elsewhere in your code base, I would aim for consistency instead. Thanks, Nick Cash -Origin

Problem porting class to python3.2

2011-06-02 Thread Nick Buchholz
the definition of time at the top level get recognized inside the class? If I can't get a simple two class file working in 3.2, I despair of ever moving to 3.2 Please reply directly. Nick nbuchh...@noao.edu Day phone: (520) 318-8203 "Time is an illusion, Lunchtime doubly so" - Ford P

Re: Problem porting class to python3.2

2011-06-02 Thread Nick Buchholz
On Thu, 02 Jun 2011 09:18:18 -0700 "Nick Buchholz" wrote: >Hi all, >I've been wandering through the DOCs for an hour and haven't found a > solution to this >I'm just starting to convert from 2.5 to 3.2 and I have a problem. I have a >code that look

Re: PyCon

2011-03-11 Thread Nick Stinemates
http://blip.tv/search?q=pycon <http://blip.tv/search?q=pycon>HTH Nick On Fri, Mar 11, 2011 at 4:45 AM, Rita wrote: > Hello, > > I noticed the old presentations at PyCon aren't avaliable anymore. > http://us.pycon.org/2010/ http://us.pycon.org/2009/ > > Does any

Re: Could I joined in this Happy family

2011-03-18 Thread Nick Stinemates
Welcome aboard ! On Mar 18, 2011 11:34 AM, "duxiu xiang" wrote: > Dear friends: > I am in China.For some rearon,I cannot visit your Google Group.May > I joint this mail list for help in learning Python? > > -- > 笑看嫣红染半山,逐风万里白云间。 -- http://mail.python.org/mailman/listinfo/python-list

Re: python time

2011-03-20 Thread Nick Stinemates
You should just use cron (or Windows Scheduled Tasks if that's your thing) for job scheduling, allowing people the flexibility of the environment they already know. Nick On Sun, Mar 20, 2011 at 6:19 PM, ecu_jon wrote: > I'm working on a script that will run all the time. at time s

[OSys PL Labs] 3 UI/UX Research Engineer Positions for Progr. Languages and Tools (Remote)

2021-08-24 Thread Nick Papoylias
Dear colleagues, The newly founded PL (Programming Languages) research Group at OutSystems has a goal of exploring the UI/UX frontier of Programming Tools. We are looking for 3 UI/UX Research Engineers for Programming Languages & Tools (Remote) to join our group. Please

Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
Afternoon everyone. Might be missing something obvious but the 3.6 What's New docs point to the release date being the 12th. https://docs.python.org/3.6/whatsnew/3.6.html#what-s-new-in-python-3-6 I got the team excited about Friday's release so that caused some confusion here. Guessing it's a t

Re: Wrong release date in 3.6 whats new docs?

2016-12-14 Thread Nick Sarbicki
I'm aware of the the schedule in the PEP. But if the date at the top of the What's New page is the last day it was updated and not the release date then that is what has caused the confusion. On Wed, 14 Dec 2016, 22:58 , wrote: > On Wednesday, December 14, 2016 at 2:09:22 PM UTC,

Basic plugin architecture

2016-04-06 Thread Nick Sarbicki
ould import as: > from loader import plugins plugins.plugins would then be a list of imported plugin modules. With this I can use the __dict__ of each plugin module in plugins.plugins to find which classes we want to use. This works. But I wonder if there is a better way. Any suggestions? - Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: Average calculation Program *need help*

2016-05-13 Thread Nick Sarbicki
On Fri, 13 May 2016, 06:52 Jake Kobs, wrote: > Thank you for the help..I think I'm getting closer, but I feel like after > they enter an invalid number, it should reset the invalid number(s) > somehow. Here's my updated code: > > ---

Re: Recommendation for GUI lib?

2016-06-02 Thread Nick Sarbicki
d a really nice GUI editor ( https://en.wikipedia.org/wiki/Qt_Creator). There are a lot of resources around and, as predicted, already has some examples of date pickers: http://www.eurion.net/python-snippets/snippet/Calendar_Date%20picker.html - Nick. -- https://mail.python.org/mailman/listinfo/python-list

Re: Recommendation for GUI lib?

2016-06-07 Thread Nick Sarbicki
finitely makes the work go faster. - Nick. > -- https://mail.python.org/mailman/listinfo/python-list

Re: Guys, can you please share me some sites where we can practice python programs for beginners and Intermediate.

2016-06-22 Thread Nick Sarbicki
On Wed, Jun 22, 2016 at 9:42 AM Miki Tebeka wrote: > IMO you can do that at https://www.codecademy.com/learn/python > Some people might think differently but I wouldn't recommend a python course which teaches 2.7 over 3.x. It bugs me that learnpythonthehardway and codecademy - probably 2 of the

[CfP] DLS 2019 - 15th Dynamic Languages Symposium, co-located with SPLASH 2019

2019-03-23 Thread Nick Papoylias
, University of Glasgow Joe Gibbs Politz, University of California San Diego Juan Fumero, The University of Manchester Julien Ponge, Red Hat Mandana Vaziri, IBM Research Manuel Serrano, Inria Marc Feeley, Université de Montréal Mark Marron, Microsoft Research Na Meng, Virginia Tech Nick Papoulias

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
PyCharm takes you to the source code within the editor for any variables/functions/classes/modules if you ctrl+click on what you want to see. It allows you to browse the relevant bits of code quickly, as well as let you change them in your local environment if need be. That way you don't have to d

Re: Which editor is suited for view a python package's source?

2019-08-19 Thread Nick Sarbicki
Yes the community edition works fine. It seems to require a 64 bit version of Windows 7 or higher (I'm not sure as I haven't used Windows in years). On Tue, 20 Aug 2019, 03:27 , wrote: > Nick Sarbicki於 2019年8月19日星期一 UTC+8下午5時33分27秒寫道: > > PyCharm takes you to the source cod

Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-20 Thread Nick Sarbicki
Hi Goktug, Firstly good luck, inspiring a crowd of people who have never learnt to code (and probably never expected to) to want to code sounds like a daunting task. I think you have broadly the right idea in that you want to spend only a little bit of time on the basic syntax before demoing what

Re: Recommendations for intro to python+programming lecture to Humanities MA students

2019-11-21 Thread Nick Sarbicki
ll probably struggle to captivate the entire audience with this. Whereas ending with some slightly wilder but more enticing examples can make those who weren't interested in the statistics want to pay more attention to what you have been saying. - Nick On Wed, Nov 20, 2019 at 11:33 PM MRAB

Re: Regarding Python

2020-04-16 Thread Nick Kelley
I need to install python 3.7 or above version, however the previously installed version is python2.7 I tried many commands sudo apt-get install python3.8 after running the command it fails I removed pthon 2.7 but again when I run the command Python --version it again shows python 2.7 please sugge

Re: [python-committers] Thank you Larry Hastings!

2020-10-06 Thread Nick Coghlan
Thank you, Larry! Cheers, Nick. -- https://mail.python.org/mailman/listinfo/python-list

Python 3

2020-11-06 Thread Nick Li
Does anyone know how to turn a decimal number into duodecimal or if there is a function built-in for it? -- https://mail.python.org/mailman/listinfo/python-list

play audio on OSX?

2005-09-30 Thread Nick Parker
I'm attempting to play an mp3 file on OSX, but am running into some difficulty. When using py-mad and py-ao, I only get static with the following code (which is derived off another mailing that I found from this list's archives): #!/usr/bin/env python '''Requires: py-mad (mp3 ability) py-ao (s

Re: ANN: Circe 0.0.3b1 released

2005-11-08 Thread Nick D.
to implement DCC support. Please check in when we have added that feature, we might have added some threading. Thanks, Nick D. http://circe.nick125.com -- http://mail.python.org/mailman/listinfo/python-list

ANN: PySizer 0.1

2005-11-13 Thread Nick Smallbone
I'd like to announce the first release of PySizer, a memory usage profiler for Python code. PySizer was written as part of Google's Summer of Code. The source, documentation and so on are at http://pysizer.8325.org. The current release is at http://pysizer.8325.org/dist/sizer-0.1.tar.gz. The code

Re: PySizer 0.1

2005-11-14 Thread Nick Smallbone
Claudio Grondi wrote: > A small hint about the Web-site: > At least to me, the links to the documentation as e.g. > > http://pysizer.8325.org/doc/auto/home/nick/sizer-trunk/doc/auto/scanner.html > are broken (no big thing, because the distro has it anyway). > Oops. That s

  1   2   3   4   5   6   7   8   9   10   >