Re: any json data validation library recommendation? (Reposting on Python-Lists Prohitibited)

2016-10-06 Thread Maciej Dziardziel
On Thursday, October 6, 2016 at 7:20:58 AM UTC+1, Lawrence D’Oliveiro wrote: > What action are users supposed to take on such errors, other than include > them in a bug report? By users I mean API users (developers). Most common action would be to add a missing field, correct typo or change valu

any json data validation library recommendation?

2016-10-05 Thread Maciej Dziardziel
tly or via some DSL). Can anyone recommend library that provides good API for declaring data schemas, so I could see how it could be done? (Doing it is not a problem. Doing it in a way that's convenient for users, readable and generates good error messages is something I care about). Th

Python package index in elasticsearch

2014-07-17 Thread Maciej Dziardziel
is in progress, but over 60% of pypi packages are there, it should get to 100% within max few hours. Having the basics working, I hope to polish it soon. Maciej Dziardziel fied...@gmail.com -- https://mail.python.org/mailman/listinfo/python-list

Re: PEP8 and 4 spaces

2014-07-04 Thread Maciej Dziardziel
> Surely the issue of mixing tabs and spaces is much more important than > > working systems? :) Python 3 considers tabs as an error and refuses to work. -- https://mail.python.org/mailman/listinfo/python-list

Re: python 3.44 float addition bug?

2014-06-25 Thread Maciej Dziardziel
On Saturday, June 21, 2014 1:57:19 AM UTC+1, FraserL wrote: > I'm not hugely accustomed to Python, but this seems crazy to me. Floating points values use finite amount of memory, and cannot accurately represent infinite amount of numbers, they are only approximations. This is limitation of floa

Re: pypi - package metdata

2014-06-18 Thread Maciej Dziardziel
On Wednesday, June 18, 2014 9:12:46 PM UTC+1, Mark Lawrence wrote: > Why not use google and do a site specific search of pypi? I am looking for good use of elasticsearch I have there, rather then quick way of finding something once quickly. Neither pypi nor google provide faceting for example. I'

pypi - package metdata

2014-06-18 Thread Maciej Dziardziel
I wasn't quiet happy with the way search on pypi works, so I've got an idea of getting all package metadata from pypi and do search locally. The only problem is that I can't figure out where to get the data from. I tried to use bandersnatch to set up mirror, but all I've got was a mixture of egg,

Re: pypi - package metdata

2014-06-18 Thread Maciej Dziardziel
On Wednesday, June 18, 2014 8:21:12 PM UTC+1, Maciej Dziardziel wrote: > I wasn't quiet happy with the way search on pypi works, > > so I've got an idea of getting all package metadata from pypi > > and do search locally. The only problem is that I can't figure

Re: Why this code works in python3, but not python 2:

2013-07-03 Thread Maciej Dziardziel
On Thursday, July 4, 2013 5:05:23 AM UTC+1, alex23 wrote: > It was an explicit syntax change for Python3. You can read about the > reasoning behind it here: > > http://www.python.org/dev/peps/pep-3102/ Thanks, that was helpful. Maciej Dziardziel -- http://mail.python.org/mail

Why this code works in python3, but not python 2:

2013-07-03 Thread Maciej Dziardziel
Out of curiosity: Does anyone know why the code below is valid in python3, but not python2: def foo(*args, bar=1, **kwargs): pass -- Maciej Dziardziel -- http://mail.python.org/mailman/listinfo/python-list

Re: Emphasizing a gtk.Label

2006-09-25 Thread Maciej Dziardziel
ravenheart wrote: > I want to give some emphasis to a Label from gtk, without breaking gnome > theme (i.e. not changing colors, etc) > I think bolding it would be a good option (could be also underscoring > but don't like it at all). > What would be the best solution? How to do it? I have found ho

Re: matplotlib

2006-09-14 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Can somebody give some quick pointers to start off with matplotlib. > > Thanks http://matplotlib.sourceforge.net/tutorial.html -- Maciej "Fiedzia" Dziardziel ([EMAIL PROTECTED]) If you can read this, you are in phaser range. -- http://mail.python.org/mailman/listin

Re: python for flash drives

2006-08-29 Thread Maciej Dziardziel
Putty wrote: > Is there such a thing as a special version of python that I can run > more efficiently from a flash drive? google for movable python (or similar) -- Maciej "Fiedzia" Dziardziel ([EMAIL PROTECTED]) In the land of the blind, the one eyed man is king. -- http://mail.python.org/mai

Re: Using Which Version of Linux

2005-11-05 Thread Maciej Dziardziel
blahman ([EMAIL PROTECTED]) wrote: > ok, i m going to use Linux for my Python Programs, mainly because i > need to see what will these fork() and exec() do. So, can anyone tell > me which flavour of linux i should use, some say that Debian is more > programmer friendly, or shold i use fedora, or S

Re: Fork() and exec() dont work

2005-11-04 Thread Maciej Dziardziel
blahman ([EMAIL PROTECTED]) wrote: > i m using Windows XP, and by tomorrow i will have have fedora core > installed too. the problem is, when i use these "fork() and exec()" my > windows doesnt do anything, python gives an error about the module, > the kind of error when u know u r wrong. > > is

Re: Automatically creating a HOME environ variable on Windows?

2005-10-31 Thread Maciej Dziardziel
Jorgen Grahn wrote: >> Best solution would be to have portable function that returns >> user home directory and knows about all platfom quirks. > > Why is that better than Python creating a HOME in os.environ, if it > doesn't > already exist? I can think of a few reasons it's better, and a few >

Re: Automatically creating a HOME environ variable on Windows?

2005-10-29 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Cool, even better. So what's best, having code to add HOME > (=USERPROFILE) to os.environ, or change the various places that HOME is > used to check for USERPROFILE? Best solution would be to have portable function that returns user home directory and knows about all pl

Re: tool for syntax coloring in html

2005-10-26 Thread Maciej Dziardziel
Xah Lee wrote: > in some online documentations, for examples: > > http://perldoc.perl.org/perlref.html > http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html > http://www.haskell.org/hawiki/HaskellDemo > > the codes are syntax colored. > > Is there a tool that produce codes in ht

Re: subprocess exiting in an incomprehensible fashion

2005-10-21 Thread Maciej Dziardziel
Will wrote: > After the first number is input, the subprocess is exiting after the > first communicate. I do not understand why. As help(calc.communicate) says: Read data from stdout and stderr, until end-of-file is reached. Wait for process to _terminate_. > Any help would be much appreciated.

Re: Help with language, dev tool selection

2005-10-21 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > 1)What programming language to use This is trivial task, whatever language you choose, will do it. Python too, and its also simple and popular, so i can recommend it. > 2)What development tools to use You don't need nothing beyond python interpreter. > 3)

Re: Forcing a stack trace from the command line?

2005-10-13 Thread Maciej Dziardziel
Willie Walker wrote: > Any advice would be greatly appreciated. Perhaps strace will tell you something. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl 'Not all who wander are lost.' - J.R.R. Tolkien, The Fellowship of the Ring -- http://mail.python

Re: ezPyCrypto

2005-09-14 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Hi!! > > I finally decided to use ezPyCrypto for my project but I can't download > it from http://www.freenet.org.nz/ezPyCrypto/ ... Check this link now, it works for me. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Con

Re: newbie question: convert a list to one string

2005-08-25 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > H! > > I'm searching for the fastest way to convert a list to one big string. > > For example: > test = ['test','test2','test3'] '-'.join(test) -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Stewardesses is the longest w

Re: distributing scripts

2005-05-03 Thread Maciej Dziardziel
Anand S Bisen wrote: > Hello, > > What is a good way to distributing python scripts as a package. Since > lately i am facing lots of issues with my python scripts not being able > to run properly due to either (old python 2.2 at the client machine) or > missing module. Is there a way by which i c

Re: Read / Write image file

2005-05-03 Thread Maciej Dziardziel
codecraig wrote: > I have a image file on my pc, say a .jpg. Basically I want to setup a > client/server socket, and I want the client to read in the jpg and send > it to the server, where the server can write that data into a new file > on the server. > > I tried just doing something like.. >

Re: delete will assure file is deleted?

2005-04-26 Thread Maciej Dziardziel
[EMAIL PROTECTED] wrote: > Hello, > > If I use os.remove(fileName), does it always assure that the code will > move to the next code only if the fileName is deleted completely? Yes, it will be deleted, but not necessary completly. Deleting isn't equal to erasing file's content, so it might be po

Re: PyGTK vs. wxPython

2005-04-25 Thread Maciej Dziardziel
dcrespo wrote: > Hi all... > > I think wxPython is much better than PyGTK. First of all, PyGTK needs > the GTK runtime installed, whereas wxPython is entirely Python's > modules, so It facilitates the apps' distribution. As already mentioned, it is not true. You will still need GTK (on Linux, no