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

YAMI4 1.4.0 released

2011-09-14 Thread Maciej Sobczak
a GUI management console that allows to browse and manage name servers, message brokers and individual agents in a bigger distributed system. -- Maciej Sobczak * http://www.msobczak.com * http://www.inspirel.com -- http://mail.python.org/mailman/listinfo/python-list

YAMI4 v. 1.2.0 released

2010-11-08 Thread Maciej Sobczak
the publish-subscribe scenario. Please see the changelog.txt file for the detailed list of improvements. -- Maciej Sobczak * http://www.inspirel.com -- http://mail.python.org/mailman/listinfo/python-list

YAMI4 v. 1.1.0 - messaging solution for distributed systems

2010-09-01 Thread Maciej Sobczak
communication involving many receivers even in case of partial system failure. Last but not least, a number of fixes and improvements have been introduced - please see the changelog.txt file, which is part of the whole package, for a detailed description of all improvements. -- Maciej Sobczak

GAE + recursion limit

2010-07-02 Thread Maciej
Hi, I'm writing a small translator using pyparsing library v1.5.2 (http://pyparsing.wikispaces.com/) and I'm using it both from command line and on Google App Engine. Recently I checked one of my samples which runs perfect from CLI against GAE and it throws me "RuntimeError 'maximum recursion depth

Re: [Python-Dev] Correction: Python Bug Day on April 25

2009-04-15 Thread Maciej Fijalkowski
On Wed, Apr 15, 2009 at 1:10 PM, Georg Brandl wrote: > Hi, > > I managed to screw up the date, so here it goes again: > > I'd like to announce that there will be a Python Bug Day on April 25. > As always, this is a perfect opportunity to get involved in Python > development, or bring your own issu

Python MIDI in 2008

2008-05-06 Thread Maciej Bliziński
) install portmidi, and pyportmidi seems to want portmidi installed. Is there any other package that allows sending MIDI events in real time? Did anyone recently got any of the above packages to work? Maciej -- http://mail.python.org/mailman/listinfo/python-list

urllib2.unquote() vs unicode

2008-03-17 Thread Maciej Bliziński
7;ascii' codec can't decode byte 0xc4 in position 0: ordinal not in range(128) -- Ran 6 tests in 0.001s FAILED (errors=1) Why does this test fail while others are successful? Any ideas? Regards, Maciej -- http://mail.python.org/mailman/listinfo/python-list

Private functions and inheritance

2007-07-16 Thread Maciej Bliziński
Hello, I've come across something that I don't quite understand about Python's inheritance. Consider the following code snippet: class A(object): def call_bar(self): return self.bar() def call___bar(self): return self.__bar() def __bar(self): return "A::__bar()" def bar(self): ret

Re: Adding tuples to a dictionary

2007-06-11 Thread Maciej Blizi ski
tuple cache reduced the memory consumption by about 3-4 times (I'm telling that by looking at the gkrellm display). Thanks! Maciej -- http://mail.python.org/mailman/listinfo/python-list

Adding tuples to a dictionary

2007-05-31 Thread Maciej Bliziński
would like to kindly ask, if anyone has an idea about how to create this data structure (list of dictionaries of tuples, assuming that size of all dictionaries is the same), in constant time? Regards, Maciej -- http://mail.python.org/mailman/listinfo/python-list

Re: Emphasizing a gtk.Label

2006-09-25 Thread Maciej Dziardziel
do it? I have found how to > change colors and underscoring but nothing else. > Thanks. Just set text to " whatever". -- Maciej "Fiedzia" Dziardziel ([EMAIL PROTECTED]) Inside his head is a little dust particle with a sign that says 'Space for Rent'

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

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:/

Re: Detect current virtual desktop

2006-08-21 Thread Maciej Bliziński
On Mon, 21 Aug 2006 12:52:59 +0200, Harald Karner wrote: > Maciej Bliziński wrote: >> How to detect current virtual desktop in GNOME? How to detect a virtual >> desktop change? >> > Take a look at http://wallpapoz.sourceforge.net/ Harald, many thanks. By the way, I have

Detect current virtual desktop

2006-08-21 Thread Maciej Bliziński
Hello Pythonists, I'd like to write for myself a tiny program that counts time spent on each virtual desktop (in GNOME). In order to do that, I need my program to detect the current virtual desktop. I've googled for it for about one hour and couldn't find any solution. The closest thing I found is

Re: Using Which Version of Linux

2005-11-05 Thread Maciej Dziardziel
control i have over it, it is also well documented and popular. I suggest first use Knoppix - Debian based distro, that boots from cd, doesn't require installation and contains tons of software, including python of course. Solaris is a different os, has nothing to do with Linux. -- Maciej &quo

Re: Fork() and exec() dont work

2005-11-04 Thread Maciej Dziardziel
programs > or use windows? You can achive the same thing in windows by taking different approach, but i would say that Linux is way more programmer-friendly (especially Debian ;-) -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl When tempte

Re: Automatically creating a HOME environ variable on Windows?

2005-10-31 Thread Maciej Dziardziel
(or ntpath), including expanduser, and its better to use function than relay on some interpreter behaviour that may be different on jython or ironpython. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl How come in Scooby Doo Fred and Daphne were

Re: Automatically creating a HOME environ variable on Windows?

2005-10-29 Thread Maciej Dziardziel
nows about all platfom quirks. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl If you lost your left arm, your right arm would be left. -- http://mail.python.org/mailman/listinfo/python-list

Re: tool for syntax coloring in html

2005-10-26 Thread Maciej Dziardziel
tool that produce codes in html with syntax coloring? It is and its called highlight (available in most linux distributions) -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Gravity isn't MY fault--I voted for velcro! -- http://mail.python.org/mailman/listinfo/python-list

Re: subprocess exiting in an incomprehensible fashion

2005-10-21 Thread Maciej Dziardziel
n.write("%d\n" % value) if value > 1: calc.stdin.write("*\n") calc.stdin.write("p\n") calc.stdin.write("q\n") calc.stdin.flush() status = calc.wait() print calc.stdout.read() -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) p

Re: Help with language, dev tool selection

2005-10-21 Thread Maciej Dziardziel
disk space greedy - even if file has 300 bytes, it may take 4kb or more on disk, depending on filesystem and its settings. Perhaps collecting names starting with the same letter in single file will be enough. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.

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 Fellowsh

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 (

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) fi

Re: distributing scripts

2005-05-03 Thread Maciej Dziardziel
e a way by which i can solve these issues > revolving around my scripts ??? You can use cxFreeze (http://starship.python.net/crew/atuining/cx_Freeze/) to freeze python interpreter and all required modules. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fi

Re: Read / Write image file

2005-05-03 Thread Maciej Dziardziel
ing something like.. > > x = open("abc.jpg") > y = x.read() > tmp = open("newFile.jpg", "w") > tmp.write(y) > tmp.close() > x.close() > > ...but that doesn't give me a copy of abc.jpg > > any ideas? Thanks Give us more details. Th

Re: delete will assure file is deleted?

2005-04-26 Thread Maciej Dziardziel
ontent, so it might be possible to recover deleted file, plus on some systems deleted files are kept for those processes (and only for them), who are still using them, and disappear when everyone close them. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fie

Re: PyGTK vs. wxPython

2005-04-25 Thread Maciej Dziardziel
ore then wx. It works great, is well documented (including python specific issues) and possible GNOME integration might be great help. -- Maciej "Fiedzia" Dziardziel (fiedzia (at) fiedzia (dot) prv (dot) pl) www.fiedzia.prv.pl Music is the art of thinking with sounds. -- http://mail.python.org/mailman/listinfo/python-list

Re: Big development in the GUI realm

2005-02-08 Thread Maciej Mróz
on such border cases, instead of simple "yes/no" answers faq is filled with some advocacy talks ... regards, Maciej Mróz -- http://mail.python.org/mailman/listinfo/python-list

Re: OT: why are LAMP sites slow?

2005-02-04 Thread Maciej Mróz
Kartic wrote: Paul Rubin said the following on 2/3/2005 7:20 PM: LAMP = Linux/Apache/MySQL/P{ython,erl,HP}. Refers to the general class of database-backed web sites built using those components. This being c.l.py, if you want, you can limit your interest to the case the P stands for Python. I not