r a more direct input string like "Provider.Amazon,
Provider.Netfilx" Any idea?
Or even a better way from cli option to enum list?
Josef
--
https://mail.python.org/mailman/listinfo/python-list
guage, **kwargs):
>... # no pop() or del
I'm using Python 2.7.10, but this also works there, so, I replace it with your
suggestion.
And before you tell me that python 2.7 is old, the thing is that I'm writing a
pluging for Gimp and this is the version they distribute :-(
Thanks for your valuable help
Best regards
Josef
--
https://mail.python.org/mailman/listinfo/python-list
Translations, object):
def __init__(self, *args, **kwargs):
language = kwargs['language']
del kwargs['language']
super(MissingTranslationsFallback, self).__init__(*args, **kwargs)
self.add_fallback(MissingTranslationsLogger(language))
Best regards
Josef
-O
s MissingTranslationsLogger(gettext.NullTranslations):
def __init__(self, language):
self._language = language
self._missing = set()
def gettext(self, message):
if (message not in self._missing):
self._missing.add(message)
print "Missing message: " + message + "
e notebooks are for when I know what I'm doing and want a nice
summary or presentation, but not when I need to figure out what I'm supposed to
be doing.
Josef
>
> Cody
--
https://mail.python.org/mailman/listinfo/python-list
t without github.
We cannot forget what we never learned.
git is way to complicated for regular users without support like what github
provides.
I haven't done a merge without the Green Button in a long time. And when I did
I always had to triple check to make sure to avoid any mistakes.
I never needed to check what a pull request would be in pure git.
Josef
--
https://mail.python.org/mailman/listinfo/python-list
On Sunday, December 20, 2015 at 3:29:34 AM UTC-5, Thomas 'PointedEars' Lahn
wrote:
> Josef Pktd wrote:
> ^^
> I doubt that is your real name.
But it's the name I used for almost all of my Python open source development,
and can be easily googled.
except I misspe
will switch away from Windows when I have an extra year
to figure out weird things in other operating systems.
So far I never managed more than two weeks in a Linux virtual machine before
never opening it again.
Josef
PS: loyal Windows user since Windows 95, currently considering whether to
u
asts
> > >
> > > C:\Users\rj\AppData\Local\Enthought\Canopy\User\lib\site-packages\patsy\design_info.pyc
> > > in __init__(self, factor, type, state, num_columns, categories)
> > > 86 if self.type == "numerical":
> > >
blems.
`vars` is convenient, for example, to check which attributes have been
initialized to None, and which already have assigned values. And checking again
after some calculations, I roughly see which attributes have been added or
changed in the mean time.
aside: I'm boring and like code that has no magic, especially if I have to
maintain it.
Josef
>
>
>
> --
> Steven
--
https://mail.python.org/mailman/listinfo/python-list
py.float64) # convert anything array_like to array
do calculations that only use numpy arrays
return result
In the center we have static types (as far as numpy arrays are static), and we
don't have to guess on what methods are actually doing, and code inspection
could infe
ences, not essential to be
> > competent in Python.
> >
> Only one of its huge advantages. As long as no GUI is necessary ... but
> that's another story.
I don't know about GUI programming, but even though it's not part of the
language there are packages for example for asserting and maintaining types and
restriction on values like traits and traitlets.
Josef
>
> Sibylle
--
https://mail.python.org/mailman/listinfo/python-list
On Monday, October 5, 2015 at 11:27:58 PM UTC-4, Ian wrote:
> On Oct 5, 2015 4:27 PM, "Ben Finney" wrote:
>
> >
>
> > Josef Pktd writes:
>
> >
>
> > > related
>
> >
>
> > Care to give us a summary of what that is, and de
related
https://youtu.be/wsczq6j3_bA?t=20m9s
Josef
--
https://mail.python.org/mailman/listinfo/python-list
Hi i was wondering if it's possible to trace a website.
If im for example is interested of the content of www.example.com/cars/audi
and i have noticed that they are changing all URL's on the site so it dosent
change at all and that it always stays the same like for example
www.example.com and tha
an extra dimension that
linregress cannot handle, because np.random.normal(0.0,1.0, 1) returns an array
and not a scalar.
much easier: use vectorized numpy instead of loop
z = y + 0.1*np.random.normal(0.0,1.0, len(y))
which is a one dimensional array and works with linregress
Josef
>
>
Josef Perktold gmail.com> writes:
>
> Oscar Benjamin gmail.com> writes:
>
> >
> > On 17 September 2013 15:52, Josef Perktold gmail.com>
wrote:
> > >
> > > On the other hand, python-xy comes with MingW, and I never had any
problems
> &
Oscar Benjamin gmail.com> writes:
>
> On 17 September 2013 15:52, Josef Perktold gmail.com> wrote:
> >
> > On the other hand, python-xy comes with MingW, and I never had any problems
> > compiling pandas and statsmodels for any version combination of pyth
Oscar Benjamin gmail.com> writes:
>
> On 17 September 2013 14:35, Josef Pktd gmail.com> wrote:
> >> (As an aside, this is all much simpler if you're using Ubuntu or some
> >> other Linux distro rather than Windows.)
> >
> > scientific pyth
t;
> academic users). These are distributions that bundle Python with
>
> numpy/scipy and lots of other packages. I think they both still use
>
> Python 2.7 though.
>
>
>
> (As an aside, this is all much simpler if you're using Ubuntu or some
>
> other
le trovare il modulo specificato.
>
>
>
> I tryed to re-install the scipy executable that I downloaded from
> http://www.lfd.uci.edu/~gohlke/pythonlibs/
>
> but the problem persists
Did you also install numpy from gohlke?
My guess would be binary incompatibility if numpy is not the MKL version.
Josef
--
https://mail.python.org/mailman/listinfo/python-list
d scikit-learn. There is some overlap
of functionality where the purpose or use cases are different, but in general
we try to avoid too much duplication.
https://pypi.python.org/pypi/statsmodels
https://pypi.python.org/pypi/pandas
https://pypi.python.org/pypi/patsy (R like formulas)
htt
tribute in
any Windows filing system.
Not in the file system,
but in the environment it is definitely possible.
One might try http://www.google.de/search?q=pathext
or just have a look at http://wiki.tcl.tk/1785
(the respective filetype has to be associated with
it's interpreter however for
g
1st control appears
2nd control appears immediately after the 1st without any visible delay
Could someone give a hint, how to change the seeming behavior into the
intended one?
Thanks in advance Josef
P.S.:
here is the actual code snippet:
def OnVacuum(self,event):
panel=Ntab(self.des
really dive in, though, I'm curious to hear what others think about
the choice between these two languages.
(On a related note, you might also read Tim Bray's On
Ruby<http://www.tbray.org/ongoing/When/200x/2006/07/24/Ruby>post,
since he just started learning Ruby.)
Josef Tupag - best
On Aug 27, 1:35 pm, Ethan Furman wrote:
> josef wrote:
> > Thanks to everyone who responded.
>
> > I will be going with some sort of a = MyClass(name = 'a') format. It's
> > the Python way.
>
> > For me, it was very hard to accept that EVERYTHING i
But I think it all makes sense now.
Thanks again,
Josef
On Aug 21, 1:07 am, josef wrote:
> To begin, I'm new with python. I've read a few discussions about
> object references and I think I understand them.
>
> To be clear, Python uses a "Pass By Object Reference"
On Aug 21, 4:26 am, Ben Finney wrote:
> josef writes:
> > To be clear, Python uses a "Pass By Object Reference" model.
>
> Yes. (I'm glad this concept has propagated to newcomers so well :-)
I found one really good discussion on python semantics versus other
langu
On Aug 21, 1:34 am, Miles Kaufmann wrote:
> On Aug 20, 2009, at 11:07 PM, josef wrote:
>
> > To begin, I'm new with python. I've read a few discussions about
> > object references and I think I understand them.
>
> > To be clear, Python uses a "Pass B
emory location will change the next time I run a
python session. I will be using the object reference name for
processing right away.
My main focus of this post is: "How do I find and use object reference
memory locations?"
Thoughts?
Thanks,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
rful thing
called "Jensen's Device", which you cannot do when you pass parameters
by reference!
Josef
--
These are my personal views and not those of Fujitsu Siemens Computers!
Josef Möllers (Pinguinpfleger bei FSC)
If failure had no penalty success would not be a prize (
Hi,
I have a bunch of CDF files that I need to read/process and I'd like
to use python for that. Does anybody know an API for interfacing with
CDF? So far I only found pycdf for netCDF, and pytables for HDF but
nothing for CDF.
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ter question would be: what do you use Perl for, as I'd say most
Perl programs utilize REs at some point or the other.
But IIRC we've had that thread already.
--
Mails please to josef dot moellers
and I'm on gmx dot de.
--
http://mail.python.org/mailman/listinfo/python-list
simon kagwe wrote:
> Hi,
>
> I have a string "distances = [[1,1,1,1],[2,2,2,2]]". I want to create a
> variable called distances whose value is the list [[1,1,1,1],[2,2,2,2]]. How
> can
> I go about that?
s = "distances = [[1,1,1,1],[2,2,2,2]]"
exec(s
ng to clarify this. My response was slow,
because I have been experiencing problems with my newsreader setup.
- Josef
--
http://mail.python.org/mailman/listinfo/python-list
Windows
between the two versions.
I actually like the new behaviour better, because I believe the
reported time of a file should not depend on the timezone or other
local settings, however the old behaviour is the time also Windows
shows - and there is an incompatibility.
Is this a bug?
- Josef
your local time differs from GMT,
then do:
import os, time
print time.ctime(os.path.getmtime('foo.txt'))
on a file foo.txt, once with Python 2.4 then with Python 2.5,
and you should see what I mean.
- Josef
--
http://mail.python.org/mailman/listinfo/python-list
-> DCOracle.Connect('user/psw') ->
OK
thanks for every
idea
Josef
--
http://mail.python.org/mailman/listinfo/python-list
Hi Mechele,
In string s u want to replace string "b" or "c" to -> "x"
import re
s ="a1b2c3"
re.sub("[bc]","x",s)
Sincerely josef
Josef
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Be
If dict.has_key('key'):
print dict['']
Josef Cihal
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]
On Behalf Of Georg Brandl
Sent: Friday, June 30, 2006 5:07 PM
To: python-list@python.org
Subject: Re: Way for see if dict has a key
Bruno
lplus in command line:
sqlplus
"/ as sysdba"
Thanks for every
idea!
Josef
--
http://mail.python.org/mailman/listinfo/python-list
rce Compiler
http://tinyurl.com/lxfsz
There was a big polemic and it is really long, but there are some useful
posts there.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ocation of the curl library, which isn't implemented in
python.
You can find the binaries (or the sources) here:
http://curl.haxx.se/dlwiz/
Regards
Josef
--
http://mail.python.org/mailman/listinfo/python-list
Xah Lee wrote:
> Python has a new logo!
So does the bakery around the corner!
Oh ... and by the way, our butcher now has a new till.
'thought you'd like to know.
--
josef punkt moellers bei gmx punkt de
--
http://mail.python.org/mailman/listinfo/python-list
ve as well:
http://web.archive.org/web/20050401015445/http://www.python.org/
Regards
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ed that one, but perhaps you could just test it.
I have other links to tools based in the libyahoo2[1] package, but
unfortunately all are written in C or java. Perhaps you could find a
python wrapper in google.
Regards,
Josef
[1] http://libyahoo2.sourceforge.net
--
http://mail.python.org/mailman/listinfo/python-list
l.com/d45ym
There is even a better recipe, explained step by step from Guido:
* Five-minute Multimethods in Python
Link: http://tinyurl.com/8ppd6
Regards
Josef
--
http://mail.python.org/mailman/listinfo/python-list
in part you are right since the python core doesn't include them.
However they can be implemented with decorators:
* Subject: decorators and multimethods
Group: comp.lang.python
Link:http://tinyurl.com/d45ym
Anyway, as you, I also use the default arguments.
Regards
Josef
--
ht
included with Windows.
- Using MSMQ from C#
http://www.codeproject.com/csharp/mgpMyQueue.asp
Unfortunatelly, I don't have python examples, but since they use the
Windows Api it may be possible to implement with the windows extensions
for python. You just have to look for them in the python lis
Sorry, I replied to the Wrong list :-(
Josef Meile wrote:
>> su zope (or whoever your zope runs)
>> ./yourmethod.py someuser somepass
>>
>> You will see it fail (apart from the fact you need
>> the #!/path/to/python.bin and set the execution bit
&g
adding user
set_user_id only works with C binary files. So, here you have to use
sudo.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ssl documentation or in
its official list. Then if you aren't able to compile it, then you have
to ask there.
If on the other hand, you have already installed openssl, but the
pyopenssl fails to run, then you can first see if pyopenssl has a
mailing list and ask there. On the contrary, you c
27;t an issue, so, I use it some
times.
By the way, the benchmarking, from which I don't have any information,
was done in python 2.1.3, so, for sure you will get a better performance
with 2.4.
Regards,
Josef
Iain King wrote:
> I have some code that converts html into xhtml. For example
> Anyone know of a simple ssl api in python :-)
Perhaps pow may help:
http://sourceforge.net/projects/pow
or pyopenssl:
http://pyopenssl.sourceforge.net/
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
Hi,
> I just want to test that a given website is up or not from a python
> script. I thought of using wget as an os command. Any better ideas?
Here is how I did it:
import urllib2
import socket
def checkUrl(url, timeout=1):
"""Checks an url for a python version greater
than 2.3.3.
2ac64a3c3aece2/
It mentioned how to call simpleocr, which according to the website:
http://www.simpleocr.com
it is Royalty Free. I haven't tried it, so, I can say how accurate it
is.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
group/comp.lang.python/browse_frm/thread/362ac64a3c3aece2/
It mentioned how to call simpleocr, which according to the website:
http://www.simpleocr.com
it is Royalty Free. I haven't tried it, so, I can say how accurate it
is.
Regards,
Josef
Timothy Smith wrote:
> i'm looking for ocr librar
Hi,
I get an error, when I am trying to download URL with using Cookies.
Where is the Problem?
Thank u very much for all ideas!!!
sincerely
Josef
import os, cookielib, urllib2
cj = cookielib.MozillaCookieJar()
os.environ["http_proxy"] = "http://proxy.irm.at:1234";
os.
- Original Message -
From: Josef Cihal
To: python-list@python.org
Sent: Saturday, September 03, 2005 12:09 AM
Subject: urllib.urlopen doesn't work
Hallo,
i need a help with module URLLIB.
I am trying to open url via:
- urllib.urlopen
('http://brokerjet.ece
Hallo,
i need a help with module URLLIB.
I am trying to open url via:
- urllib.urlopen
('http://brokerjet.ecetra.com/at/markets/stocks/indices.phtml?notation=92866')
Problem is, that I am always redirecting to
- LOGIN page (www.brokerjet.at),
and cannot get my page with "news", whi
have the same problem when I import to the same platform but with
> Python 2.4.0
I just have to warn you that some persons in the zope list are going to
tell you "Python 2.4 isn't a supported option for zope". So, you may use
it only for testing and not in a production environment.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
feature because it just makes me do a lot of
mistakes. ie: In VB you can do:
fooFunction fooParameter
but if you want to assign this to a variable you **must** use this:
fooVer = fooFunction(fooParaMeter)
I really get confused because I automatically use the braces.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
unt of Python that
> you will be able to use.
I just want to add that ZPT and DTML are only intended for the
presentation and not for the logic, which can be done all using python.
However, as you may see, there are some zope developers that use it
wrong and do lots of logic stuff within dtm
re time
(I don't know; you may benchmark it -> homework)
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
erop.Word, and
Microsoft.Office.Interop.Outlook
A good start is to see the SDK documentation of each office product you
need at each developer center in www.msdn.microsoft.com
Good luck,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ortal_catalog',None)
If at this point catalog = None, then you have to print the objects in
the plone site by doing:
>>> print ploneSite.objectIds()
Once you find the catalog object, you could try the script I post before
from the command line.
I haven't tested this, but I hope it helps.
Regards,
Josef Meile
--
http://mail.python.org/mailman/listinfo/python-list
ly if you only have the Data.fs and don't have access to
the original Plone site. But I don't know how to do it. You may ask in
the ZODB list:
http://lists.zope.org/mailman/listinfo/zodb-dev
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
panyVision,
jobData.description,
jobData.positionOffered,
jobData.jobProfile,
jobData.contact,
jobData.country)
OID += 1
return printed
Off course, this only work assuming that your fields aren't files like
images or PDFs.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
ting modules needed. At that time I already knew that one
could import modules from functions; however, I didn't come up with that
solution :-(
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
gt; George
I don't find this two replies funy :-(. I think it is impolite to make
fun of the OP. You could say: "The official language is english" or
something like that. And if somebody knows the language he speaks, then
a pointer to an appropiate list would be usefull.
Best regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
Hi Mir,
you are asking in the wrong place. This is a python specific list. You
can find a suitable list here:
http://mail.zope.org/mailman/listinfo
Regards,
Josef
Mir Nazim wrote:
Hi,
I wanted to know what will happen to plone once Zope3 will be official
version. Is plone being ported to Zope3. I
to do proper checking, etc. It doesn't seem that
sys.version was built with this type of usage in mind. So, what is the
*best* most correct way to go about this?
What's about:
>>> import sys
>>> print sys.version_info
(2, 1, 3, 'final', 0)
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
well that's nice, but I don't do blogs and certainly don't do M$
Passport logins which it seems the gotdotnet site requires.
I agree, even for reading the FAQ and the Readme you need a password :-(
--
http://mail.python.org/mailman/listinfo/python-list
my only issue with psycopg, is last time i looked they had no win32 port?
Not completely true. Since long time ago there is a website with
unofficial psycopg binaries:
http://www.stickpeople.com/projects/python/psycopg/
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
which
indeed are stuck in the ZODB. But in fact you can write external python
products for zope, which reside on your file system. What is stuck in
the ZODB would be the instances of those products.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
Now the website seems to be down, but perhaps there is a mirror
somewhere.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
splitpath(r'c:dir\file')
['c:', 'dir', 'file']
Again, I forgot it.
If you really are worried about speed (and are sure you aren't optimising
prematurely), then you could combine some special case processing near the
start of the string with a simple s
oach, you only scan the string twice:
when you do "os.path.normpath(somestring)" and finally when splitting
the string. On the other hand, the second approach goes through the
string several times, when doing the os.path.split. Finally when doing
the res.reverse(). Or am I wrong? I also saw you said:
"This should work ***reasonably*** reliably on Windows and Unix". Are
there any cases when it does not work?
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
it's necessary and sufficient that a specific
>Tim> person volunteer to support MinGW forever. If that person goes
>Tim> away, so does the support they provided; it's the same story for
>Tim> Cygwin, and even for Linux and native Windows.
So, it is not just making the patch. You will have to compromise to
support it and not just go away.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
t putting your code under the GPL?
- Josef
--
http://mail.python.org/mailman/listinfo/python-list
Zope + Formulator is a nice combination to validating and designing
forms and add some functionality. If you want a more complicated content
management framework, then you can additionally install plain CMF or
Plone, which is based on CMF. There is also something called Silva, but
it doesn't have m
have many products as the other two; however, it is also
nice.
I have heard also about CherryPy, Quixote, Twisted Matrix and Webware,
but I haven't tested them. Once I saw that somebody posted a link, which
compares some of them, but I lost that thread :-(
Regards,
Josef
--
http://mail.pyt
s on win32 platform:
http://mail.python.org/pipermail/python-list/2005-January/262511.html
Just tried that and got the message
"You don't have permission to access
/dev/python/curses/files/wcurses-0.1-py2.4.zip on this server."
Yes, I also have problems.
Regards,
Josef
--
http://mail.py
also some similar
thing for python. Perhaps a litle bit more complicated (I haven't
tested it):
WATSUP - Windows Application Test System Using Python
http://www.tizmoi.net/watsup/intro.html
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
cement for ncurses, so, it's up-to-you to test
them.
Regards,
Josef
--
http://mail.python.org/mailman/listinfo/python-list
86 matches
Mail list logo