Re: Unicode conversion problem (codec can't decode)

2008-04-04 Thread Eric S. Johansson
> > Almost there: use string-escape instead; it takes a byte string and > returns another byte string in ASCII. perfect. Exactly what I wanted. thank you so very much. > >> I really don't care about the character set used. I'm looking for a >> matched set >> of operations that converts t

is decorator the right thing to use?

2008-09-24 Thread Dmitry S. Makovey
print "A::another method, ",a def Aproxy(fn): def delegate(*args,**kw): print "%s::%s" % (args[0].__class__.__name__,fn.__name__) args=list(args) b=getattr(args[0],'b') fnew=getattr(b,fn.__name__) #

Re: is decorator the right thing to use?

2008-09-24 Thread Dmitry S. Makovey
[EMAIL PROTECTED] wrote: > Your code below is very abstract, so it's kind of hard to figure out > what problem you're trying to solve, but it seems to me that you're > using the B proxy class to decorate the A target class, which means > you want one of these options: Sorry for unclarities in orig

Re: is decorator the right thing to use?

2008-09-24 Thread Dmitry S. Makovey
Aaron "Castironpi" Brady wrote: > It might help to tell us the order of events that you want in your > program. You're not using 'mymethod' or 'mymethod2', and you probably > want 'return fnew' for the future. Something dynamic with __getattr__ > might work. Any method call to A, that is an A

Re: is decorator the right thing to use?

2008-09-24 Thread Dmitry S. Makovey
Dmitry S. Makovey wrote: > In my real-life case A is a proxy to B, C and D instances/objects, not > just one. forgot to mention that above would mean that I need to have more than one decorator function like AproxyB, AproxyC and AproxyD or make Aproxy smarter about which property of

Re: is decorator the right thing to use?

2008-09-25 Thread Dmitry S. Makovey
Diez B. Roggisch wrote: > Dmitry S. Makovey schrieb: >> Dmitry S. Makovey wrote: >>> In my real-life case A is a proxy to B, C and D instances/objects, not >>> just one. >> >> forgot to mention that above would mean that I need to have more than one >

Re: is decorator the right thing to use?

2008-09-25 Thread Dmitry S. Makovey
Thanks Bruno, your comments were really helpful (so was the "improved" version of code). My replies below: Bruno Desthuilliers wrote: >> So decorators inside of B just identify that those methods will be >> proxied by A. On one hand from logical standpoint it's kind of weird to >> tell class th

Re: is decorator the right thing to use?

2008-09-25 Thread Dmitry S. Makovey
Aaron "Castironpi" Brady wrote: > You should write it like this: > > class B(object): > @A.proxy > def bmethod(self,a): > > Making 'proxy' a class method on A. makes sense. > In case different A instances (do > you have more than one BTW?) yep. I have multiple instances of class

Re: is decorator the right thing to use?

2008-09-25 Thread Dmitry S. Makovey
of Aproxy you > posted, which could stand alone as you have it, or work as a > classmethod or staticmethod. > > def Aproxy(fn): > def delegate(self,*args,**kw): > print "%s::%s" % (args[0].__class__.__name__,fn.__name__) > fnew=getattr(self.b,fn.__name

Re: Eggs, VirtualEnv, and Apt - best practices?

2008-09-25 Thread Dmitry S. Makovey
Scott Sharkey wrote: > Any insight into the best way to have a consistent, repeatable, > controllable development and production environment would be much > appreciated. you have just described OS package building ;) I can't speak for everybody, but supporting multiple platforms (PHP, Perl, Pytho

Re: is decorator the right thing to use?

2008-09-25 Thread Dmitry S. Makovey
George Sakkis wrote: > I'm not sure if the approach below deals with all the issues, but one > thing it does is decouple completely the proxied objects from the > proxy: > class _ProxyMeta(type): It smelled to me more and more like metaclass too, I was just trying to avoid them :) Your code

Re: Eggs, VirtualEnv, and Apt - best practices?

2008-09-25 Thread Dmitry S. Makovey
Diez B. Roggisch wrote: > - different OS. I for one don't know about a package management tool > for windows. And while our servers use Linux (and I as developer as > well), all the rest of our people use windows. No use telling them to > apt-get instal python-imaging. that is a very valid poin

Re: Eggs, VirtualEnv, and Apt - best practices?

2008-09-25 Thread Dmitry S. Makovey
Diez B. Roggisch wrote: > Well, you certainly want a desktop-orientied Linux for users, so you > chose ubuntu - but then on the server you go with a more stable debian > system. Even though the both have the same technical and even package > management-base, they are still incompatible wrt to packa

Re: is decorator the right thing to use?

2008-09-26 Thread Dmitry S. Makovey
Paul McGuire wrote: >> see, in your code you're assuming that there's only 1 property ( 'b' ) >> inside of A that needs proxying. In reality I have several. > > No, really, Diez has posted the canonical Proxy form in Python, using > __getattr__ on the proxy, and then redirecting to the contained

Re: is decorator the right thing to use?

2008-09-26 Thread Dmitry S. Makovey
Bruno Desthuilliers wrote: > Hem... I'm afraid you don't really take Python's dynamic nature into > account here. Do you know that even the __class__ attribute of an > instance can be rebound at runtime ? What about 'once and for all' then ? must've been wrong wording on my part. Dynamic nature is

Re: is decorator the right thing to use?

2008-09-26 Thread Dmitry S. Makovey
Aaron "Castironpi" Brady wrote: > That prohibits using a descriptor in the proxied classes, or at least > the proxied functions, since you break descriptor protocol and only > call __get__ once. Better to cache and get by name. It's only slower > by the normal amount, and technically saves space,

Re: is decorator the right thing to use?

2008-09-26 Thread Dmitry S. Makovey
George Sakkis wrote: > You seem to enjoy pulling the rug from under our feet by changing the > requirements all the time :) but that's half the fun! ;) Bit more seriously - I didn't know I had those requirements until now :) I'm kind of exploring where can I get with those ideas. Initial post was

Re: is decorator the right thing to use?

2008-09-27 Thread Dmitry S. Makovey
George Sakkis wrote: > It's funny how often you come with a better solution a few moments > after htting send! The snippet above can (ab)use the decorator syntax > so that it becomes: > > class A(Proxy): > > @ProxyMethod > def bmethod(self): > return self.b1 > > @ProxyMethod

Re: is decorator the right thing to use?

2008-09-28 Thread Dmitry S. Makovey
George Sakkis wrote: > FYI, in case you missed it the final version doesn't need a Proxy base > class, just inherit from object. Also lowercased ProxyMethod to look > similar to staticmethod/classmethod: I cought that, just quoted the wrong one :) > class A(object): > > def __init__(self, b1

Re: Advice for a replacement for plone.

2008-10-02 Thread Dmitry S. Makovey
disclaimer: I'm not affiliated with any company selling Plone services ;) I also have nothing against Django and such. Ken Seehart wrote: > I want a new python based CMS. ... One that won't keep me up all night > > > I've been fooling around with zope and plone, and I like plone for some

gdbm threadsafeness

2008-10-05 Thread Eric S. Johansson
how thread safe is the gdbm module? -- http://mail.python.org/mailman/listinfo/python-list

Re: [fcntl]how to lock a file

2006-04-07 Thread Eric S. Johansson
marcello wrote: > Hello > I need to do this: > 1 opening a file for writing/appending > 2 to lock the file as for writing (i mean: the program > that lock can keep writing, all others programs can't ) > 3 wtite and close/unlock http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/65203 been

drag and drop to icon

2006-04-12 Thread Eric S. Johansson
I have a small problem that may be best solved by dragging and dropping a mail message to an icon. But I'm honestly not sure what the data will look like from different e-mail clients. Since most of my programming experience is something a user rarely sees, I'm not even sure where to start cr

Re: drag and drop to icon

2006-04-12 Thread Eric S. Johansson
Diez B. Roggisch wrote: > Eric S. Johansson wrote: > Drag'n'Drop is highly OS-dependand and clearly out of scope for > standard-out-of-the-box python. If you are on macintosh, pyobjc and > > http://www.cocoadev.com/index.pl?DragAndDrop > > will certainly help. i

Re: New Karrigel page in Wikipedia

2006-04-12 Thread Eric S. Johansson
Luis M. González wrote: > For those interested in the simplest, easiest and most pythonic web > framework out there, there's a new page in Wikipedia: this all depends on your criteria for simplest and easiest. For me HTML is pure hell. I avoid it whenever possible because it literally makes my

Re: New Karrigel page in Wikipedia

2006-04-12 Thread Eric S. Johansson
Ravi Teja wrote: > You don't need to do that. You can always use your favorite templating > system. I am using Cheetah. actually, I got burned lots of times using template systems. I think I live by the minimum new scar tissue metric. After all, the only intuitive user interface is the mammali

why do I get this behavior from a while loop?

2009-11-27 Thread S. Chris Colbert
This seems strange to me, but perhaps I am just missing something: In [12]: t = 0. In [13]: time = 10. In [14]: while t < time: : print t : t += 1. : : 0.0 1.0 2.0

Re: why do I get this behavior from a while loop?

2009-11-27 Thread S. Chris Colbert
What a newbie mistake for me to make. I appreciate the replies everyone! Cheers, Chris > On Fri, 27 Nov 2009 17:06:44 +0100, S. Chris Colbert wrote: > > I would think that second loop should terminate at 9.9, no? > > > > I am missing something fundamental? > > &qu

ANN: Pymazon 0.1.0 released!

2010-01-07 Thread S. Chris Colbert
Hello, I'm happy to announce the first non-beta release of Pymazon: a python implemented downloader for the Amazon mp3 store. Improvements from the beta: - Running download status indicator - Various fixes for Windows - Some code cleanup Pymazon was created to be a simple and easy alternative

Re: Dictionary used to build a Triple Store

2010-01-07 Thread S. Chris Colbert
> Definitely a newbie question, so please bear with me. > > I'm reading "Programming the Semantic Web" by Segaran, Evans, and Tayor. > > It's about the Semantic Web BUT it uses python to build a "toy" triple > store claimed to have good performance in the "tens of thousands" of > triples. > > J

Re: Scheme as a virtual machine?

2010-11-25 Thread Mario S. Mommer
Raffael Cavallaro writes: > On 2010-11-24 16:19:49 -0500, toby said: > >> And furthermore, he has cooties. > > Once again, not all ad hominem arguments are ad hominem > fallacies. Financial conflict of interest is a prime example of a > perfectly valid ad hominem argument. It has limited validit

For loop comprehensions

2011-02-11 Thread Benjamin S Wolf
It occurred to me as I was writing a for loop that I would like to write it in generator comprehension syntax, eg. for a in b if c: rather than using one of the more verbose but allowable syntaxes: for a in (x for x in b if c): for a in b: if not c: continue Python 3.1 does not suppo

Re: For loop comprehensions

2011-02-12 Thread Benjamin S Wolf
On Feb 11, 3:47 pm, Westley Martínez wrote: > No, too confusing. Then people'll want compound loops e.g.: > > for a in b if c while d else return x: >     print('Ha ha I'm so clever!') On Feb 11, 6:34 pm, Steven D'Aprano wrote: > There's nothing wrong with writing > > for x in iterable: >     if

ANN: pyevolve 0.6rc1 released !

2010-04-25 Thread Christian S. Perone
Pyevolve is an evolutionary computation framework written in pure Python. This is the first release candidate before the 0.6 official release. See more information about this release on the official announce at (http://pyevolve.sourceforge.net/wordpress/?p=1164) or in the Documentation site at (h

Re: death of newsgroups (Microsoft closing their newsgroups)

2010-07-16 Thread Uday S Reddy
On 7/13/2010 7:43 PM, Xah Lee wrote: I use comp.lang.lisp, comp.emacs since about 1999. Have been using them pretty much on a weekly basis in the past 10 years. Starting about 2007, the traffic has been increasingly filled with spam, and the posters are always just the 20 or 30 known faces. I t

Re: pep 8 constants

2009-06-28 Thread Eric S. Johansson
Bruno Desthuilliers wrote: > Brendan Miller a écrit : >> PEP 8 doesn't mention anything about using all caps to indicate a >> constant. >> >> Is all caps meaning "don't reassign this var" a strong enough >> convention to not be considered violating good python style? I see a >> lot of people using

Re: pep 8 constants

2009-06-28 Thread Eric S. Johansson
Rhodri James wrote: > Reject away, but I'm afraid you've still got some work to do to > convince me that PEP 8 is more work for an SR system than any other > convention. Name name higher than normal recognition error rate. can require multiple tries or hand correction MultiWordName

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Peter Otten wrote: > Eric S. Johansson wrote: > >> MultiWordName mulitwordname >> very high error rate. many retries or hand hurting typing. > > Can you define macros in your speech recognition software? > > multiwordname > > might slightly lower the erro

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
alex23 wrote: > "Eric S. Johansson" wrote: >> no, I know the value if convention when editors can't tell you anything about >> the name in question. I would like to see more support for disabled >> programmers >> like myself and the thousands of pr

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Tim Chase wrote: It sounds like the issue should be one of making your screen-reader > smarter, not dumbing down Python conventions. I don't know what SR > you're using (Jaws? Window Eyes? yasr? screeder? speakup? Naturally speaking is speech recognition (speech in text out) it is not text

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Ethan Furman wrote: > Eric S. Johansson wrote: >> >> yup how long will i[t] be before you become disablesd? maybe not as >> badly as I am >> but you should start feeling some hand problems in your later 40's to >> early 50's >> and it goes down h

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Rhodri James wrote: > On Mon, 29 Jun 2009 06:07:19 +0100, Eric S. Johansson > wrote: > >> Rhodri James wrote: >> >>> Reject away, but I'm afraid you've still got some work to do to >>> convince me that PEP 8 is more work for an SR system th

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Rhodri James wrote: > > Could you elucidate a bit? I'm not seeing how you're intending to keep > PEP-8 conventions in this, and I'm not entirely convinced that without > them the smart editor approach doesn't in fact reduce your productivity. > thank you for asking for an elaboration. Program

Re: pep 8 constants

2009-06-29 Thread Eric S. Johansson
Steven D'Aprano wrote: > Why do you think a smart editing environment is in opposition to coding > conventions? Surely an editor smart enough to know a variable name spoken > as "pear tree" is an instance and therefore spelled as pear_tree (to use > your own example) would be smart enough to kn

Re: pep 8 constants

2009-06-30 Thread Eric S. Johansson
Rhodri James wrote: > [Trimming for length, sorry if that impacts too much on intelligibility] no problem, one of the hazards of speech recognition uses you become very verbose. > This goes a long way, but it doesn't eliminate the need for some forms > of escape coming up on a moderately frequen

Re: pep 8 constants

2009-06-30 Thread Eric S. Johansson
Tim Chase wrote: > Eric S. Johansson wrote: > np. I get this confusion often. > > While I have used SR in some testing, I've found that while it's > passable for prose (and even that, proclamations of "95% accuracy" sound > good until you realize how many w

Re: pep 8 constants

2009-07-01 Thread Eric S. Johansson
Tim Chase wrote: >> I've tried it least two dozen editors and they all fail miserably >> because they're focused on keyboard use (but understandable) > [...snip...] >> I've tried a whole bunch, like I said at least a dozen. They >> all fail for first reasons such as inability to access all >> funct

Re: pep 8 constants

2009-07-01 Thread Eric S. Johansson
Rhodri James wrote: > > Gah. Ignore me. I hit 'send' instead of 'cancel', after my musings > concluded that yes, an editor could be smart enough, but it would have to > embed a hell of a lot of semantic knowledge of Python and it still wouldn't > eliminate the need to speak the keyboard at time

Re: pep 8 constants

2009-07-01 Thread Eric S. Johansson
Steven D'Aprano wrote: > That assumes that every word is all caps. In practice, for real-life > Python code, I've tripled the vocal load of perhaps one percent of your > utterances, which cuts your productivity by 2%. > > If you have 1 words in you per day, and one percent get wrapped with

Re: pep 8 constants

2009-07-03 Thread Eric S. Johansson
Horace Blegg wrote: > I've been kinda following this. I have a cousin who is permanently wheel > chair bound and doesn't have perfect control of her hands, but still > manages to use a computer and interact with society. However, the > idea/thought of disabled programmers was new to me/hadn't ever

language analysis to enforce code standards

2009-07-09 Thread Jason S. Friedman
Hello, I administer the Informatica ETL tool at my company. Part of that role involves creating and enforcing standards. I want the Informatica developers to add comments to certain key objects and I want to be able to verify (in an automated fashion) that they have done so. I cannot merely

Re: Does python have the capability for driver development ?

2009-07-29 Thread Rodrigo S Wanderley
ython VM could communicate with the driver through the user space API. Is there a Python module for that? -- Rodrigo S. Wanderley -- Blog: http://rsw.digi.com.br -- http://mail.python.org/mailman/listinfo/python-list

Re: socket.inet_ntop, and pton question

2009-08-05 Thread Mahesh Poojary S
Martin-298 wrote: > > Hi > > Are these functions (inet_ntop(), inet_pton()) from the socket library > supported on Windows. > > If not is there an equivalent for them using Windows > > Ive seen mention of people creating their own in order to use them > > Appreciate the help > > ty > --

Re: python doc available in emacs info format?

2009-08-17 Thread Colin S. Miller
O documentation can be generated by info2html or info_to_html on them, or texi2html on the source. Have a nice day, Colin S. Miller -- http://mail.python.org/mailman/listinfo/python-list

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Em 25/09/2009, às 03:15, Olof Bjarnason escreveu: Hi! I write small games in Python/PyGame. I want to find a way to make a downloadable package/installer/script to put on my webpage, especially for Ubu

Re: Distributing Python-programs to Ubuntu users

2009-09-25 Thread Daniel S. Braz
for my -- very -- bad english) Daniel Em 25/09/2009, às 12:54, Olof Bjarnason escreveu: 2009/9/25 Daniel S. Braz : Hi, To create a .deb file you may use checkinstall, it's very simple and work very well. Hi Daniel, From what I gather browsing the web abount checkinstall, it seems to

Re: Static typing, Python, D, DbC

2010-09-12 Thread Eric S. Johansson
On 9/12/2010 4:28 PM, Paul Rubin wrote: Bearophile writes: I see DbC for Python as a way to avoid or fix some of the bugs of the program, and not to perform proof of correctness of the code. Even if you can't be certain, you are able reduce the probabilities of some bugs to happen. I think Db

ValueError: Input contains NaN, infinity or a value too large for dtype('float32')

2017-04-27 Thread Siva Kumar S
Source Code: clean_train_reviews=[] for review in train["review"]: clean_train_reviews.append(review_to_wordlist(review, remove_stopwords=True)) trainDataVecs=getAvgFeatureVecs(clean_train_reviews, model, num_features) print "Creating average feature vecs for test reviews" clean_test_review

Reg : Wikipedia 1.4 package

2017-06-08 Thread Siva Kumar S
Dear members, how to install wikipedia 1.4 package in python 2.7 above without PIP. from, Sivakumar S -- https://mail.python.org/mailman/listinfo/python-list

Reg : Wikipedia 1.4 package

2017-06-08 Thread Siva Kumar S
Dear members, How to install Wikipedia 1.4 package in python 2.7 above without PIP. from, Sivakumar S -- https://mail.python.org/mailman/listinfo/python-list

EuroPython 2018: First list of accepted sessions available

2018-05-31 Thread Alexander C. S. Hendorf
We have received an amazing collection of 376 proposals. Thank you all for your contributions! Given the overwhelming quality of the proposals, we had some very difficult decisions to make. Nonetheless we are happy to announce we have published the first 120+ sessions. https://ep2018.europython.eu

Re: PEP 246 revision

2005-03-06 Thread S?bastien Boisg?rault
[EMAIL PROTECTED] (Magnus Lie Hetland) wrote in message news:<[EMAIL PROTECTED]>... > In article <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] wrote: > > > > > >I had a look at the new reference implementation of PEP 246 > >(Object Adaptation) and I feel uneasy with one specific point > >of this new ve

Re: [Python-ideas] How the heck does async/await work in Python 3.5

2016-02-24 Thread Joao S. O. Bueno
Today I also stumbled on this helpful "essay" from Brett Cannon about the same subject http://www.snarky.ca/how-the-heck-does-async-await-work-in-python-3-5 On 23 February 2016 at 18:05, Sven R. Kunze wrote: > On 20.02.2016 07:53, Christian Gollwitzer wrote: > > If you have difficulties wit hthe

how to build and install multiple micro-level major.minor versions of Python

2014-04-29 Thread Brent S. Elmer Ph.D.
I have built and installed Python on AIX as well as installed a stack of Python tools. The version I installed is 2.7.2. Everything is working fine but I want to install Python 2.7.6 and the tool stack. Before I installed 2.7.2, I installed 2.6.x. I was able to install the 2.7.2 and 2.6.x side

Re: how to build and install multiple micro-level major.minor versions of Python

2014-04-29 Thread Brent S. Elmer Ph.D.
On Tue, 2014-04-29 at 11:35 -0700, Ned Deily wrote: > In article <1398785310.2673.16.camel@belmer>, > "Brent S. Elmer Ph.D." wrote: > > Is there a way to do what I want to do (i.e. install 2.7.6 beside 2.7)? > > The usual way to support multiple micro versio

Re: Speed of Python

2007-09-07 Thread S bastien Boisg rault
On Sep 7, 6:42 pm, "wang frank" <[EMAIL PROTECTED]> wrote: Matlab (aka MATrix LABoratory) has been designed with numeric computations in mind (every object being natively a n-dim array). If you wish to develop that kind of applications in Python, consider using the numerical array structure provi

request for Details about Dictionaries in Python

2008-03-14 Thread Saideep A V S
Hello Sir, I am a beginner level programmer in Python. I am in search of a function for 'On-Disk' Dictionaries which is similar to On-Disk Hash tables in Perl (i.e., tie function in Perl). Could anyone help me with the concept. I have also searched the net, but was not successful in fin

Re: Python surpasses Perl in popularity?

2008-12-01 Thread Casper H . S . Dik
Stephane CHAZELAS <[EMAIL PROTECTED]> writes: >It's true it was vague and misleading, >/bin is not the standard place to look for "sh" as far as the >"POSIX" standard is concerned. That doesn't mean that standard >commands (POSIX or not) cannot be found in /bin. But /bin/sh has >been made a non-s

Re: Instagram: 40% Py3 to 99% Py3 in 10 months

2017-06-16 Thread Rauklei P . S . Guimarães
Very Nice. Em sex, 16 de jun de 2017 às 13:30, Terry Reedy escreveu: > https://thenewstack.io/instagram-makes-smooth-move-python-3/ > -- > Terry Jan Reedy > > -- > https://mail.python.org/mailman/listinfo/python-list > -- https://mail.python.org/mailman/listinfo/python-list

How asyncio works? and event loop vs exceptions

2016-07-22 Thread Marco S. via Python-list
I'm developing a web app based on aiohttp, and I find the event loop concept very interesting. I never programmed with it before, but I know that node.js and GUIs are based on it. What I can't understand is how asyncio make it possible to run multiple tasks concurrently, since it's single threaded

Re: When I need classes?

2016-01-13 Thread Mike S via Python-list
On 1/11/2016 3:45 PM, Travis Griggs wrote: On Jan 10, 2016, at 9:48 AM, Bernardo Sulzbach wrote: Essentially, classes (as modules) are used mainly for organizational purposes. Although you can solve any problem you would solve using classes without classes, solutions to some big problems ma

Re: >>> %matplotlib inline results in SyntaxError: invalid syntax

2016-01-29 Thread Mike S via Python-list
On 1/28/2016 11:57 PM, Steven D'Aprano wrote: On Fri, 29 Jan 2016 06:04 pm, Mike S wrote: %matplotlib inline I get an error on the last line. I am running this code in Idle Python 3.4.4 Shell... Python 3.4.4 (v3.4.4:737efcadf5a6, Dec 20 2015, 19:28:18) [MSC v.1600 32 bit (Intel)] on

>>> %matplotlib inline results in SyntaxError: invalid syntax

2016-01-29 Thread Mike S via Python-list
I have installed Python 3.4.4 on XPSP3 and am trying to work my way through this tutorial. A Complete Tutorial on Ridge and Lasso Regression in Python http://www.analyticsvidhya.com/blog/2016/01/complete-tutorial-ridge-lasso-regression-python/ In Step 2 "Why Penalize the Magnitude of Coefficien

Re: Install Error

2016-02-08 Thread Mike S via Python-list
On 2/3/2016 1:55 PM, Barrie Taylor wrote: Hi, I am attempting to install and run Python3.5.1 on my Windows machine. After installation on launching I am presented the attached error message. It reads: 'The program can't start because api-ms-win-crt-runtime-l1-1-0.dll is missing from your compu

Re: setup failed

2016-02-08 Thread Mike S via Python-list
On 2/4/2016 4:39 AM, Prince Thomas wrote: Hi I am an computer science engineer. I downloaded the python version 3.5.1.amd64 and just python 3.5.1. The problem is when I install the program setup is failed and showing 0*80070570-The file or directory is corrupted and unreadable. I install the n

from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

2016-02-08 Thread Mike S via Python-list
t.show(block=false) #perform Dickey=Fuller test print('Results of Dickey-Fuller Test:') dftest = adfuller(timeseries, autolag='AIC') dfoutput = pd.Series(dftest[0:4], index=['Test Statistic','p-value','#Lags Used','Number

Re: from scipy.linalg import _fblas ImportError: DLL load failed: The specified module could not be found.

2016-02-09 Thread Mike S via Python-list
On 2/9/2016 1:33 AM, Mark Lawrence wrote: On 09/02/2016 04:22, Mike S via Python-list wrote: I have Python 3.4.4 installed on Windows 7, also IPython, scipy, numpy, statsmodels, and a lot of other modules, and am working through this tutorial http://www.analyticsvidhya.com/blog/2016/02/time

Re: Cygwin and Python3

2016-02-09 Thread Mike S via Python-list
On 2/9/2016 7:26 PM, Larry Hudson wrote: On 02/09/2016 08:41 AM, Fillmore wrote: Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for that matter). The command will hang and nothing happens. Just curious... Since Python runs natively in Windows, why are you trying

Re: Cygwin and Python3

2016-02-10 Thread Mike S via Python-list
On 2/10/2016 5:05 AM, Mark Lawrence wrote: On 10/02/2016 03:39, Mike S via Python-list wrote: On 2/9/2016 7:26 PM, Larry Hudson wrote: On 02/09/2016 08:41 AM, Fillmore wrote: Hi, I am having a hard time making my Cygwin run Python 3.5 (or Python 2.7 for that matter). The command will hang

Re: Cygwin and Python3

2016-02-11 Thread Mike S via Python-list
On 2/10/2016 11:46 PM, blindanag...@nowhere.net wrote: On 10/02/2016 23:05, Mike S wrote: On 2/10/2016 5:05 AM, Mark Lawrence wrote: [snip] Have you seen this? http://www.davidbaumgold.com/tutorials/set-up-python-windows/ I have now, but I'm perfectly happy with the free versio

Re: Considering migrating to Python from Visual Basic 6 for engineering applications

2016-02-20 Thread Mike S via Python-list
On 2/19/2016 8:58 PM, Denis Akhiyarov wrote: On Wednesday, February 17, 2016 at 1:49:44 PM UTC-6, wrong.a...@gmail.com wrote: I am mostly getting positive feedback for Python. It seems Python is used more for web based applications. Is it equally fine for creating stand-alone *.exe's? Can the

good python tutorial

2016-02-22 Thread Mike S via Python-list
This site was recommended by a friend, it looks really well put together, I thought it might be of interest to people considering online tutorials. http://www.python-course.eu/index.php -- https://mail.python.org/mailman/listinfo/python-list

Python used in several places in LIGO effort

2016-02-24 Thread Mike S via Python-list
https://www.reddit.com/r/IAmA/comments/45g8qu/we_are_the_ligo_scientific_collaboration_and_we/czxnlux?imm_mid=0e0d97&cmp=em-data-na-na-newsltr_20160224 -- https://mail.python.org/mailman/listinfo/python-list

Re: Computational Chemistry Analysis

2016-02-25 Thread Mike S via Python-list
On 2/25/2016 7:31 AM, Oscar Benjamin wrote: On 25 February 2016 at 01:01, Feagans, Mandy wrote: Hi! I am a student interested in conducting computational analysis of protein-ligand binding for drug development analysis. Recently, I read of an individual using a python program for their studie

Speech recognition and synthesi in Python

2016-02-25 Thread Mike S via Python-list
Pretty nice example code... https://ggulati.wordpress.com/2016/02/24/coding-jarvis-in-python-3-in-2016/ -- https://mail.python.org/mailman/listinfo/python-list

Re: Everything good about Python except GUI IDE?

2016-03-02 Thread Mike S via Python-list
On 2/27/2016 10:13 AM, wrong.addres...@gmail.com wrote: On Saturday, 27 February 2016 18:08:36 UTC+2, Dietmar Schwertberger wrote: On 27.02.2016 12:18, wrong.addres...@gmail.com wrote: Isn't there any good GUI IDE like Visual Basic? I hope there are some less well known GUI IDEs which I did n

Suggestion: make sequence and map interfaces more similar

2016-03-23 Thread Marco S. via Python-list
I noticed that the sequence types does not have these methods that the map types has: get(), items(), keys(), values(). It could seem useless to have them for sequences, but I think it will ease the creation of functions and methods that allow you to input a generic iterable as parameter, but nee

Re: Suggestion: make sequence and map interfaces more similar

2016-03-27 Thread Marco S. via Python-list
Steven D'Aprano wrote: > The point you might have missed is that treating lists as if they were > mappings violates at least one critical property of mappings: that the > relationship between keys and values are stable. This is true for immutable maps, but for mutable ones, you can simply do ma

Re: how do I learn python ?

2015-11-19 Thread Mike S via Python-list
On 11/19/2015 1:00 AM, Michiel Overtoom wrote: On 18 Nov 2015, at 05:58, 夏华林 wrote: (nothing) You might want to start at https://www.python.org/about/gettingstarted/ PS. Leaving the body of an email or usenet article empty is considered bad form. Greetings, Thanks for that, there is a gr

Re: Why won't this run?

2015-11-19 Thread Mike S via Python-list
On 11/15/2015 12:38 PM, jbak36 wrote: Python 3.5.0 (v3.5.0:374f501f4567, Sep 13 2015, 02:27:37) [MSC v.1900 64 bit (AMD64)] on win32 Type "copyright", "credits" or "license()" for more information. #this program says hello and asks for my name print:('Hello world!') Hello world! print:('What

Syntax error for simple script

2017-06-26 Thread Ben S. via Python-list
Sorry for this newbie question: I installed Python v3.6.1 on win 7. Afterwards I tried to execute the following simple python script from webpage http://www.pythonforbeginners.com/code-s...me-script/: Python Code: from datetime import datetime now = datetime.now() mm = str(now.month) dd

"Python launcher" required to run *.py scripts on Windows?

2017-06-26 Thread Ben S. via Python-list
As I observed v3.6.1 installs (on Windows 7) in addition to the core python engine a second program "Python Launcher". As far as I read this component seems to be not necessary since it only aims to facilitate the handling with *.py scripts on Windows. When I always call Python script from Comm

Check Python version from inside script? Run Pythons script in v2 compatibility mode?

2017-07-06 Thread Ben S. via Python-list
Can I somehow check from inside a Python script if the executing Python engine is major version v2 or v3? I am thinking about a code similar to if (os.python-majorversion<3) print hello else print (hello) Additional question: Is there a way to execute a python script with v3 python engine

Calling a dos batch file from python

2007-09-04 Thread n o s p a m p l e a s e
Suppose I have a batch file called mybatch.bat and I want to run it from a python script. How can I call this batch file in python script? Thanx/NSP -- http://mail.python.org/mailman/listinfo/python-list

Re: Calling a dos batch file from python

2007-09-05 Thread n o s p a m p l e a s e
On Sep 4, 5:01 pm, [EMAIL PROTECTED] wrote: > On Sep 4, 8:42 am, n o s p a m p l e a s e <[EMAIL PROTECTED]> > wrote: > > > Suppose I have a batch file called mybatch.bat and I want to run it > > from a python script. How can I call this batch file in python scri

Calling a matlab script from python

2007-09-05 Thread n o s p a m p l e a s e
Suppose I have a matlab script mymatlab.m. How can I call this script from a python script? Thanx/NSP -- http://mail.python.org/mailman/listinfo/python-list

Re: Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
[with link] Henry S. Thompson via Python-list writes: > I've spent several days trying to get this example [1] working, using > Python3.11 and Cython 3.0.11 of Debian. > > I've copied the example files as carefully as I can, renamed some to > avoid a name clash with the

Complete working version of cython Queue example?

2025-01-13 Thread Henry S. Thompson via Python-list
d although the Cython version compiles, it doesn't work. Before giving details, just checking first if anyone can simply point to a set of files, preferably Pure Python but failing that Cython, that actually work for them. Thanks, ht -- Henry S. Thompson, School of Informatics

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-22 Thread Henry S. Thompson via Python-list
Schimon Jehudah via Python-list writes: > Yesterday, I have added support for a new syndication format, Gemini > feed. I note that 'gemini' is not (yet?) a registered URI scheme: https://www.iana.org/assignments/uri-schemes/uri-schemes.xhtml ht -- Henry S. Tho

Re: Module urljoin does not appear to work with scheme Gemini

2025-04-23 Thread Henry S. Thompson via Python-list
es: it would be silly to expect anyone to actually check even just the other 81 Permanent schemes to see if they should be added to this list, much less the Provisional or Historical ones, and even sillier to expect that the list ought to be regularly synchronised with the IANA registry. ht [1] ht

<    2   3   4   5   6   7   8   >